diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-22 05:58:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-22 15:46:49 +0100 |
commit | a652755d2e8c2ddb31eb281f4585a3edbb333338 (patch) | |
tree | faa7e96e608b9f42e9bfd13b2c2c893d8b8c20c6 /src/libsystemd-bus/bus-internal.h | |
parent | 3cbb76ee3469998771b4e9c7ee85d8d7407a2f5a (diff) |
bus: implement object handler registry
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r-- | src/libsystemd-bus/bus-internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h index 56514aebbc..82f60849d5 100644 --- a/src/libsystemd-bus/bus-internal.h +++ b/src/libsystemd-bus/bus-internal.h @@ -48,6 +48,14 @@ struct filter_callback { LIST_FIELDS(struct filter_callback, callbacks); }; +struct object_callback { + sd_message_handler_t callback; + void *userdata; + + char *path; + bool is_fallback; +}; + enum bus_state { BUS_OPENING, BUS_AUTHENTICATING, @@ -81,6 +89,7 @@ struct sd_bus { Prioq *reply_callbacks_prioq; Hashmap *reply_callbacks; LIST_HEAD(struct filter_callback, filter_callbacks); + Hashmap *object_callbacks; union { struct sockaddr sa; |