Lines Matching refs:prefix

99                 const char *prefix,  in add_enumerated_to_set()  argument
107 assert(prefix); in add_enumerated_to_set()
121 r = c->callback(bus, prefix, slot->userdata, &children, error); in add_enumerated_to_set()
142 if (!object_path_startswith(*k, prefix)) { in add_enumerated_to_set()
169 const char *prefix, in add_subtree_to_set() argument
178 assert(prefix); in add_subtree_to_set()
182 r = add_enumerated_to_set(bus, prefix, n->enumerators, s, error); in add_subtree_to_set()
191 if (!object_path_startswith(i->path, prefix)) in add_subtree_to_set()
204 r = add_subtree_to_set(bus, prefix, i, flags, s, error); in add_subtree_to_set()
217 const char *prefix, in get_child_nodes() argument
227 assert(prefix); in get_child_nodes()
235 r = add_subtree_to_set(bus, prefix, n, flags, s, error); in get_child_nodes()
1044 const char *prefix, in object_manager_serialize_path() argument
1056 assert(prefix); in object_manager_serialize_path()
1060 n = hashmap_get(bus->nodes, prefix); in object_manager_serialize_path()
1180 _cleanup_free_ char *prefix = NULL; in object_manager_serialize_path_and_fallbacks() local
1199 prefix = new(char, pl + 1); in object_manager_serialize_path_and_fallbacks()
1200 if (!prefix) in object_manager_serialize_path_and_fallbacks()
1203 OBJECT_PATH_FOREACH_PREFIX(prefix, path) { in object_manager_serialize_path_and_fallbacks()
1204 r = object_manager_serialize_path(bus, reply, prefix, path, true, error); in object_manager_serialize_path_and_fallbacks()
1397 _cleanup_free_ char *prefix = NULL; in bus_process_object() local
1423 prefix = new(char, pl + 1); in bus_process_object()
1424 if (!prefix) in bus_process_object()
1435 OBJECT_PATH_FOREACH_PREFIX(prefix, m->path) { in bus_process_object()
1440 r = object_find_and_run(bus, m, prefix, true, &found_object); in bus_process_object()
1559 _cleanup_free_ char *prefix = NULL; in bus_find_parent_object_manager() local
1564 prefix = new(char, pl + 1); in bus_find_parent_object_manager()
1565 if (!prefix) in bus_find_parent_object_manager()
1568 OBJECT_PATH_FOREACH_PREFIX(prefix, path) { in bus_find_parent_object_manager()
1569 n = hashmap_get(bus->nodes, prefix); in bus_find_parent_object_manager()
1643 const char *prefix, in sd_bus_add_fallback() argument
1647 return bus_add_object(bus, slot, true, prefix, callback, userdata); in sd_bus_add_fallback()
1993 const char *prefix, in sd_bus_add_fallback_vtable() argument
1999 … return add_object_vtable_internal(bus, slot, prefix, interface, vtable, true, find, userdata); in sd_bus_add_fallback_vtable()
2049 const char *prefix, in emit_properties_changed_on_interface() argument
2065 assert(prefix); in emit_properties_changed_on_interface()
2070 n = hashmap_get(bus->nodes, prefix); in emit_properties_changed_on_interface()
2086 key.path = prefix; in emit_properties_changed_on_interface()
2260 _cleanup_free_ char *prefix = NULL; in sd_bus_emit_properties_changed_strv() local
2285 prefix = new(char, pl + 1); in sd_bus_emit_properties_changed_strv()
2286 if (!prefix) in sd_bus_emit_properties_changed_strv()
2298 OBJECT_PATH_FOREACH_PREFIX(prefix, path) { in sd_bus_emit_properties_changed_strv()
2299 …r = emit_properties_changed_on_interface(bus, prefix, path, interface, true, &found_interface, nam… in sd_bus_emit_properties_changed_strv()
2340 const char *prefix, in object_added_append_all_prefix() argument
2351 assert(prefix); in object_added_append_all_prefix()
2354 n = hashmap_get(bus->nodes, prefix); in object_added_append_all_prefix()
2428 _cleanup_free_ char *prefix = NULL; in object_added_append_all() local
2476 prefix = new(char, pl + 1); in object_added_append_all()
2477 if (!prefix) in object_added_append_all()
2480 OBJECT_PATH_FOREACH_PREFIX(prefix, path) { in object_added_append_all()
2481 r = object_added_append_all_prefix(bus, m, s, prefix, path, true); in object_added_append_all()
2559 const char *prefix, in object_removed_append_all_prefix() argument
2570 assert(prefix); in object_removed_append_all_prefix()
2573 n = hashmap_get(bus->nodes, prefix); in object_removed_append_all_prefix()
2617 _cleanup_free_ char *prefix = NULL; in object_removed_append_all() local
2652 prefix = new(char, pl + 1); in object_removed_append_all()
2653 if (!prefix) in object_removed_append_all()
2656 OBJECT_PATH_FOREACH_PREFIX(prefix, path) { in object_removed_append_all()
2657 r = object_removed_append_all_prefix(bus, m, s, prefix, path, true); in object_removed_append_all()
2734 const char *prefix, in interfaces_added_append_one_prefix() argument
2747 assert(prefix); in interfaces_added_append_one_prefix()
2751 n = hashmap_get(bus->nodes, prefix); in interfaces_added_append_one_prefix()
2804 _cleanup_free_ char *prefix = NULL; in interfaces_added_append_one() local
2821 prefix = new(char, pl + 1); in interfaces_added_append_one()
2822 if (!prefix) in interfaces_added_append_one()
2825 OBJECT_PATH_FOREACH_PREFIX(prefix, path) { in interfaces_added_append_one()
2826 r = interfaces_added_append_one_prefix(bus, m, prefix, path, interface, true); in interfaces_added_append_one()