union {
struct {
- uint8_t u8;
char *str;
+ uint8_t u8;
} value;
struct {
- sd_message_handler_t callback;
+ sd_bus_message_handler_t callback;
void *userdata;
+ unsigned last_iteration;
} leaf;
struct {
/* If this is set, then the child is NULL */
int bus_match_run(sd_bus *bus, struct bus_match_node *root, int ret, sd_bus_message *m);
-int bus_match_add(struct bus_match_node *root, const char *match, sd_message_handler_t callback, void *userdata, struct bus_match_node **ret);
-int bus_match_remove(struct bus_match_node *root, const char *match, sd_message_handler_t callback, void *userdata);
+int bus_match_add(struct bus_match_node *root, const char *match, sd_bus_message_handler_t callback, void *userdata, struct bus_match_node **ret);
+int bus_match_remove(struct bus_match_node *root, const char *match, sd_bus_message_handler_t callback, void *userdata);
void bus_match_free(struct bus_match_node *node);