mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-21 15:40:31 +01:00
bus_driver_get_owner_of_name: Clarify role of connection
This connection is the one looking at the name, as opposed to the one that owns the name (if any). Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105656
This commit is contained in:
parent
50a724b6fc
commit
f67509cbaf
1 changed files with 2 additions and 2 deletions
|
|
@ -52,14 +52,14 @@ nonnull (const char *maybe_null,
|
|||
}
|
||||
|
||||
static DBusConnection *
|
||||
bus_driver_get_owner_of_name (DBusConnection *connection,
|
||||
bus_driver_get_owner_of_name (DBusConnection *observer,
|
||||
const char *name)
|
||||
{
|
||||
BusRegistry *registry;
|
||||
BusService *serv;
|
||||
DBusString str;
|
||||
|
||||
registry = bus_connection_get_registry (connection);
|
||||
registry = bus_connection_get_registry (observer);
|
||||
_dbus_string_init_const (&str, name);
|
||||
serv = bus_registry_lookup (registry, &str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue