Searched refs:match_callback (Results 1 - 9 of 9) sorted by relevance

/systemd/src/libsystemd/sd-bus/
H A Dbus-match.h61 struct match_callback *callback;
84 int bus_match_add(struct bus_match_node *root, struct bus_match_component *components, unsigned n_components, struct match_callback *callback);
85 int bus_match_remove(struct bus_match_node *root, struct match_callback *callback);
87 int bus_match_find(struct bus_match_node *root, struct bus_match_component *components, unsigned n_components, sd_bus_message_handler_t callback, void *userdata, struct match_callback **ret);
H A Dtest-bus-match.c69 s->match_callback.callback = filter;
71 r = bus_match_add(root, components, n_components, &s->match_callback);
130 assert_se(bus_match_remove(&root, &slots[8].match_callback) >= 0);
131 assert_se(bus_match_remove(&root, &slots[13].match_callback) >= 0);
H A Dbus-slot.c96 bus_remove_match_internal(slot->bus, slot->match_callback.match_string, slot->match_callback.cookie);
99 bus_match_remove(&slot->bus->match_callbacks, &slot->match_callback);
101 free(slot->match_callback.match_string);
H A Dbus-internal.h53 struct match_callback { struct
150 struct match_callback match_callback; member in union:sd_bus_slot::__anon118
H A Dtest-bus-chat.c38 static int match_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { function
104 r = sd_bus_add_match(bus, NULL, "type='signal',interface='foo.bar',member='Notify'", match_callback, NULL);
110 r = sd_bus_add_match(bus, NULL, "type='signal',interface='org.freedesktop.DBus',member='NameOwnerChanged'", match_callback, NULL);
H A Dbus-match.c321 slot = container_of(node->leaf.callback, sd_bus_slot, match_callback);
596 struct match_callback *callback) {
637 s = container_of(c->leaf.callback, sd_bus_slot, match_callback);
982 struct match_callback *callback) {
1005 struct match_callback *callback) {
1042 struct match_callback **ret) {
1168 printf(" %p/%p\n", node->leaf.callback->callback, container_of(node->leaf.callback, sd_bus_slot, match_callback)->userdata);
H A Dsd-bus.c2984 s = bus_slot_allocate(bus, !slot, BUS_MATCH_CALLBACK, sizeof(struct match_callback), userdata);
2990 s->match_callback.callback = callback;
2991 s->match_callback.cookie = ++bus->match_cookie;
3008 s->match_callback.match_string = strdup(match);
3009 if (!s->match_callback.match_string) {
3015 r = bus_add_match_internal(bus, s->match_callback.match_string, components, n_components, s->match_callback.cookie);
3024 r = bus_match_add(&bus->match_callbacks, components, n_components, &s->match_callback);
3047 struct match_callback *c;
3062 sd_bus_slot_unref(container_of(c, sd_bus_slot, match_callback));
[all...]
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-internal.h46 struct match_callback { struct
51 LIST_FIELDS(struct match_callback, match_callbacks);
85 LIST_HEAD(struct match_callback, match_callbacks);
H A Dsd-netlink.c168 struct match_callback *f;
352 struct match_callback *c;
846 _cleanup_free_ struct match_callback *c = NULL;
853 c = new0(struct match_callback, 1);
905 struct match_callback *c;

Completed in 31 milliseconds