/systemd-251/src/libsystemd/sd-bus/ |
D | bus-slot.c | 68 … (void) bus_remove_match_internal(slot->bus, slot->match_callback.match_string); in bus_slot_disconnect() 70 if (slot->match_callback.install_slot) { in bus_slot_disconnect() 71 bus_slot_disconnect(slot->match_callback.install_slot, true); in bus_slot_disconnect() 72 … slot->match_callback.install_slot = sd_bus_slot_unref(slot->match_callback.install_slot); in bus_slot_disconnect() 76 bus_match_remove(&slot->bus->match_callbacks, &slot->match_callback); in bus_slot_disconnect() 78 slot->match_callback.match_string = mfree(slot->match_callback.match_string); in bus_slot_disconnect() 306 *description = slot->match_callback.match_string; in sd_bus_slot_get_description()
|
D | bus-match.h | 45 struct match_callback *callback; 68 …t, struct bus_match_component *components, unsigned n_components, struct match_callback *callback); 69 int bus_match_remove(struct bus_match_node *root, struct match_callback *callback);
|
D | test-bus-match.c | 52 s->match_callback.callback = filter; in match_add() 54 r = bus_match_add(root, components, n_components, &s->match_callback); in match_add() 116 assert_se(bus_match_remove(&root, &slots[8].match_callback) >= 0); in main() 117 assert_se(bus_match_remove(&root, &slots[13].match_callback) >= 0); in main()
|
D | fuzz-bus-match.c | 37 .match_callback = {}, in LLVMFuzzerTestOneInput() 77 r = bus_match_add(&root, components, n_components, &slot.match_callback); in LLVMFuzzerTestOneInput()
|
D | bus-internal.h | 38 struct match_callback { struct 153 struct match_callback match_callback; member
|
D | test-bus-chat.c | 23 static int match_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { in match_callback() function 92 r = sd_bus_match_signal(bus, NULL, NULL, NULL, "foo.bar", "Notify", match_callback, NULL); in server_init() 98 … "type='signal',interface='org.freedesktop.DBus',member='NameOwnerChanged'", match_callback, NULL); in server_init()
|
D | sd-bus.c | 3430 match_slot->match_callback.match_string, in add_match_callback() 3435 … log_debug("Match %s successfully installed.", match_slot->match_callback.match_string); in add_match_callback() 3437 if (match_slot->match_callback.install_callback) { in add_match_callback() 3446 assert(bus->current_slot == match_slot->match_callback.install_slot); in add_match_callback() 3451 bus->current_handler = match_slot->match_callback.install_callback; in add_match_callback() 3454 r = match_slot->match_callback.install_callback(m, match_slot->userdata, ret_error); in add_match_callback() 3456 bus->current_slot = match_slot->match_callback.install_slot; in add_match_callback() 3467 …match_slot->match_callback.install_slot = sd_bus_slot_unref(match_slot->match_callback.install_slo… in add_match_callback() 3500 … s = bus_slot_allocate(bus, !slot, BUS_MATCH_CALLBACK, sizeof(struct match_callback), userdata); in bus_add_match_full() 3506 s->match_callback.callback = callback; in bus_add_match_full() [all …]
|
D | bus-match.c | 308 slot = container_of(node->leaf.callback, sd_bus_slot, match_callback); in bus_match_run() 540 struct match_callback *callback) { in bus_match_add_leaf() 886 struct match_callback *callback) { in bus_match_add() 908 struct match_callback *callback) { in bus_match_remove() 1027 container_of(node->leaf.callback, sd_bus_slot, match_callback)->userdata); in bus_match_dump()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-slot.c | 71 LIST_REMOVE(match_callbacks, nl->match_callbacks, &slot->match_callback); in netlink_slot_disconnect() 73 for (size_t i = 0; i < slot->match_callback.n_groups; i++) in netlink_slot_disconnect() 74 (void) socket_broadcast_group_unref(nl, slot->match_callback.groups[i]); in netlink_slot_disconnect() 76 slot->match_callback.n_groups = 0; in netlink_slot_disconnect() 77 slot->match_callback.groups = mfree(slot->match_callback.groups); in netlink_slot_disconnect()
|
D | netlink-internal.h | 26 struct match_callback { struct 33 LIST_FIELDS(struct match_callback, match_callbacks); argument 56 struct match_callback match_callback; member 90 LIST_HEAD(struct match_callback, match_callbacks);
|
D | sd-netlink.c | 463 slot = container_of(c, sd_netlink_slot, match_callback); in process_match() 938 … r = netlink_slot_allocate(nl, !ret_slot, NETLINK_MATCH_CALLBACK, sizeof(struct match_callback), in netlink_add_match_internal() 943 slot->match_callback.groups = newdup(uint32_t, groups, n_groups); in netlink_add_match_internal() 944 if (!slot->match_callback.groups) in netlink_add_match_internal() 947 slot->match_callback.n_groups = n_groups; in netlink_add_match_internal() 948 slot->match_callback.callback = callback; in netlink_add_match_internal() 949 slot->match_callback.type = type; in netlink_add_match_internal() 950 slot->match_callback.cmd = cmd; in netlink_add_match_internal() 952 LIST_PREPEND(match_callbacks, nl->match_callbacks, &slot->match_callback); in netlink_add_match_internal()
|
/systemd-251/src/systemd/ |
D | sd-bus.h | 395 … const char *interface, const char *member, sd_bus_message_handler_t match_callback, sd_bus_messag…
|