X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fdbus.h;h=01ab2fcb8d5239bdd49bb0bb5951ba7cbbc94d69;hp=ccee74f99fdfc8fddf649b007e60fdad77813a44;hb=5de6b302196f3a708a0ed36d88abd9e17bbc9d52;hpb=82c121a4754a9d405b07c75796e329942af2ccc5 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