Skip to content

Commit 5edc563

Browse files
jefdriesenmikeller
authored andcommitted
Rename the prefix functions
The prefix based matching functions have been renamed so that their function names share the same prefix.
1 parent 31275f5 commit 5edc563

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/descriptor.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ dc_match_prefix (const void *key, const void *value)
542542
}
543543

544544
static int
545-
dc_match_number_with_prefix (const void *key, const void *value)
545+
dc_match_prefix_with_number (const void *key, const void *value)
546546
{
547547
const char *str = (const char *) key;
548548
const char *prefix = *(const char * const *) value;
@@ -565,7 +565,7 @@ dc_match_number_with_prefix (const void *key, const void *value)
565565
}
566566

567567
static int
568-
dc_match_hex_with_prefix (const void *key, const void *value)
568+
dc_match_prefix_with_hex (const void *key, const void *value)
569569
{
570570
const char *str = (const char *) key;
571571
const char *prefix = *(const char * const *) value;
@@ -602,7 +602,7 @@ dc_match_oceanic (const void *key, const void *value)
602602

603603
const char *p = prefix;
604604

605-
return dc_match_number_with_prefix (key, &p);
605+
return dc_match_prefix_with_number (key, &p);
606606
}
607607

608608
static int
@@ -616,7 +616,7 @@ dc_match_cressi (const void *key, const void *value)
616616

617617
const char *p = prefix;
618618

619-
return dc_match_hex_with_prefix (key, &p);
619+
return dc_match_prefix_with_hex (key, &p);
620620
}
621621

622622
static int
@@ -811,7 +811,7 @@ dc_filter_divesystem (const dc_descriptor_t *descriptor, dc_transport_t transpor
811811
};
812812

813813
if (transport == DC_TRANSPORT_BLUETOOTH || transport == DC_TRANSPORT_BLE) {
814-
return DC_FILTER_INTERNAL (userdata, bluetooth, 0, dc_match_number_with_prefix);
814+
return DC_FILTER_INTERNAL (userdata, bluetooth, 0, dc_match_prefix_with_number);
815815
}
816816

817817
return 1;

0 commit comments

Comments
 (0)