diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2020-05-13 15:21:53 +0200 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2020-06-01 11:59:55 +0200 |
commit | 73994c48c1ef0bb75b2defae8d2ff1cb9ee758eb (patch) | |
tree | 2d9122cb68007b839ecfc85329ae2cc62c6dfc32 | |
parent | 688c714673c9906122e77a7bbaf88544f3247f9a (diff) | |
download | dbus-73994c48c1ef0bb75b2defae8d2ff1cb9ee758eb.tar.gz dbus-73994c48c1ef0bb75b2defae8d2ff1cb9ee758eb.tar.bz2 dbus-73994c48c1ef0bb75b2defae8d2ff1cb9ee758eb.zip |
bus/connection: API for getting list of names from connections
Change-Id: I2854f6cc51b26ff04a9984778f899ba9656ba290
-rw-r--r-- | bus/connection.c | 9 | ||||
-rw-r--r-- | bus/connection.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bus/connection.c b/bus/connection.c index 851fb1b7..9d637532 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -1528,6 +1528,15 @@ bus_connection_is_service_owner_by_prefix (DBusConnection *connection, return FALSE; } +const DBusList * +bus_connection_get_owned_services_list (DBusConnection *connection) +{ + BusConnectionData *d; + + d = BUS_CONNECTION_DATA (connection); + return d->services_owned; +} + void bus_connection_add_owned_service_link (DBusConnection *connection, DBusList *link) diff --git a/bus/connection.h b/bus/connection.h index 868508ab..85607be0 100644 --- a/bus/connection.h +++ b/bus/connection.h @@ -103,6 +103,7 @@ void bus_connection_clear_deferred_messages (DBusConnection *con /* called by policy.c */ dbus_bool_t bus_connection_is_service_owner_by_prefix (DBusConnection *connection, const char *name_prefix); +const DBusList *bus_connection_get_owned_services_list (DBusConnection *connection); /* called by signals.c */ dbus_bool_t bus_connection_add_match_rule (DBusConnection *connection, |