X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fdbus.h;h=01ab2fcb8d5239bdd49bb0bb5951ba7cbbc94d69;hb=a567261a29b4e19c0c195240411b7562063d99f8;hp=ccee74f99fdfc8fddf649b007e60fdad77813a44;hpb=552e4331bf165290eb02596355d9570c1ef9af47;p=elogind.git diff --git a/src/dbus.h b/src/dbus.h index ccee74f99..01ab2fcb8 100644 --- a/src/dbus.h +++ b/src/dbus.h @@ -105,6 +105,12 @@ int bus_property_append_ul(Manager *m, DBusMessageIter *i, const char *property, int bus_parse_strv(DBusMessage *m, char ***_l); +bool bus_has_subscriber(Manager *m); +bool bus_connection_has_subscriber(Manager *m, DBusConnection *c); + +#define BUS_CONNECTION_SUBSCRIBED(m, c) dbus_connection_get_data((c), (m)->subscribed_data_slot) +#define BUS_PENDING_CALL_NAME(m, p) dbus_pending_call_get_data((p), (m)->name_data_slot) + extern const char * const bus_interface_table[]; #endif