Home
last modified time | relevance | path

Searched refs:n_components (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/libsystemd/sd-bus/
Dfuzz-bus-match.c57 unsigned n_components; in LLVMFuzzerTestOneInput() local
58 r = bus_match_parse(line, &components, &n_components); in LLVMFuzzerTestOneInput()
65 log_debug("Parsed %u components.", n_components); in LLVMFuzzerTestOneInput()
67 _cleanup_free_ char *again = bus_match_to_string(components, n_components); in LLVMFuzzerTestOneInput()
69 bus_match_parse_free(components, n_components); in LLVMFuzzerTestOneInput()
77 r = bus_match_add(&root, components, n_components, &slot.match_callback); in LLVMFuzzerTestOneInput()
78 bus_match_parse_free(components, n_components); in LLVMFuzzerTestOneInput()
Dtest-bus-match.c41 unsigned n_components; in match_add() local
47 r = bus_match_parse(match, &components, &n_components); in match_add()
54 r = bus_match_add(root, components, n_components, &s->match_callback); in match_add()
55 bus_match_parse_free(components, n_components); in match_add()
62 unsigned n_components = 0; in test_match_scope() local
64 assert_se(bus_match_parse(match, &components, &n_components) >= 0); in test_match_scope()
65 assert_se(bus_match_get_scope(components, n_components) == scope); in test_match_scope()
66 bus_match_parse_free(components, n_components); in test_match_scope()
Dbus-match.c695 void bus_match_parse_free(struct bus_match_component *components, unsigned n_components) { in bus_match_parse_free() argument
696 for (unsigned i = 0; i < n_components; i++) in bus_match_parse_free()
708 unsigned n_components = 0; in bus_match_parse() local
801 if (!GREEDY_REALLOC(components, n_components + 1)) { in bus_match_parse()
806 components[n_components++] = (struct bus_match_component) { in bus_match_parse()
824 typesafe_qsort(components, n_components, match_component_compare); in bus_match_parse()
827 for (unsigned i = 0; i+1 < n_components; i++) in bus_match_parse()
834 *ret_n_components = n_components; in bus_match_parse()
839 bus_match_parse_free(components, n_components); in bus_match_parse()
843 char *bus_match_to_string(struct bus_match_component *components, unsigned n_components) { in bus_match_to_string() argument
[all …]
Dbus-match.h68 …us_match_node *root, struct bus_match_component *components, unsigned n_components, struct match_c…
79 void bus_match_parse_free(struct bus_match_component *components, unsigned n_components);
80 char *bus_match_to_string(struct bus_match_component *components, unsigned n_components);
82 …tch_scope bus_match_get_scope(const struct bus_match_component *components, unsigned n_components);
Dsd-bus.c3487 unsigned n_components = 0; in bus_add_match_full() local
3496 r = bus_match_parse(match, &components, &n_components); in bus_add_match_full()
3512 scope = bus_match_get_scope(components, n_components); in bus_add_match_full()
3549 r = bus_match_add(&bus->match_callbacks, components, n_components, &s->match_callback); in bus_add_match_full()
3558 bus_match_parse_free(components, n_components); in bus_add_match_full()