From a470eaa0789662d3d3e1f0a23e75c7be2ab574cc Mon Sep 17 00:00:00 2001 From: Olivier Andrieu Date: Thu, 15 Apr 2004 22:08:05 +0000 Subject: 2004-04-15 Olivier Andrieu * bus/driver.c (bus_driver_handle_get_service_owner): implement a GetServiceOwner method. * doc/dbus-specification.xml: document it. * dbus/dbus-errors.h: add a 'ServiceHasNoOwner' error. * glib/dbus-gproxy.c (dbus_gproxy_new_for_service_owner): implement, using the bus GetServiceOwner method. * test/glib/test-dbus-glib.c: use dbus_gproxy_new_for_service_owner so that we can receive the signal. --- doc/dbus-specification.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'doc/dbus-specification.xml') diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 94dc740c..2f22b772 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -2206,6 +2206,58 @@ + + <literal>org.freedesktop.DBus.GetServiceOwner</literal> + + As a method: + + STRING GetServiceOwner (in STRING service_name) + + Message arguments: + + + + + Argument + Type + Description + + + + + 0 + STRING + Name of the service to query + + + + + Reply arguments: + + + + + Argument + Type + Description + + + + + 0 + STRING + Return value, a base service name + + + + + Returns the base service name of the primary owner of the + service in argument. If the requested service isn't active, + returns a + org.freedesktop.DBus.Error.ServiceHasNoOwner error. + + + <literal>org.freedesktop.DBus.Error.NoMemory</literal> -- cgit