Top |
void | interface-added | Run Last |
void | interface-removed | Run Last |
void | object-added | Run Last |
void | object-removed | Run Last |
GDBusObjectManager is implemented by GDBusObjectManagerClient and GDBusObjectManagerServer.
The GDBusObjectManager type is the base type for service- and client-side implementations of the standardized org.freedesktop.DBus.ObjectManager interface.
See GDBusObjectManagerClient for the client-side implementation and GDBusObjectManagerServer for the service-side implementation.
const gchar *
g_dbus_object_manager_get_object_path (GDBusObjectManager *manager
);
Gets the object path that manager
is for.
Since: 2.30
GList *
g_dbus_object_manager_get_objects (GDBusObjectManager *manager
);
Gets all GDBusObject objects known to manager
.
A list of
GDBusObject objects. The returned list should be freed with
g_list_free()
after each element has been freed with
g_object_unref()
.
[transfer full][element-type GDBusObject]
Since: 2.30
GDBusObject * g_dbus_object_manager_get_object (GDBusObjectManager *manager
,const gchar *object_path
);
Gets the GDBusObjectProxy at object_path
, if any.
Since: 2.30
GDBusInterface * g_dbus_object_manager_get_interface (GDBusObjectManager *manager
,const gchar *object_path
,const gchar *interface_name
);
Gets the interface proxy for interface_name
at object_path
, if
any.
manager |
||
object_path |
Object path to lookup. |
|
interface_name |
D-Bus interface name to lookup. |
Since: 2.30
typedef struct _GDBusObjectManager GDBusObjectManager;
GDBusObjectManager is an opaque data structure and can only be accessed using the following functions.
struct GDBusObjectManagerIface { GTypeInterface parent_iface; /* Virtual Functions */ const gchar *(*get_object_path) (GDBusObjectManager *manager); GList *(*get_objects) (GDBusObjectManager *manager); GDBusObject *(*get_object) (GDBusObjectManager *manager, const gchar *object_path); GDBusInterface *(*get_interface) (GDBusObjectManager *manager, const gchar *object_path, const gchar *interface_name); /* Signals */ void (*object_added) (GDBusObjectManager *manager, GDBusObject *object); void (*object_removed) (GDBusObjectManager *manager, GDBusObject *object); void (*interface_added) (GDBusObjectManager *manager, GDBusObject *object, GDBusInterface *interface_); void (*interface_removed) (GDBusObjectManager *manager, GDBusObject *object, GDBusInterface *interface_); };
Base type for D-Bus object managers.
GTypeInterface |
The parent interface. |
|
Virtual function for |
||
Virtual function for |
||
Virtual function for |
||
Virtual function for |
||
Signal handler for the “object-added” signal. |
||
Signal handler for the “object-removed” signal. |
||
Signal handler for the “interface-added” signal. |
||
Signal handler for the “interface-removed” signal. |
Since: 2.30
“interface-added”
signalvoid user_function (GDBusObjectManager *manager, GDBusObject *object, GDBusInterface *interface, gpointer user_data)
Emitted when interface
is added to object
.
This signal exists purely as a convenience to avoid having to
connect signals to all objects managed by manager
.
manager |
The GDBusObjectManager emitting the signal. |
|
object |
The GDBusObject on which an interface was added. |
|
interface |
The GDBusInterface that was added. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.30
“interface-removed”
signalvoid user_function (GDBusObjectManager *manager, GDBusObject *object, GDBusInterface *interface, gpointer user_data)
Emitted when interface
has been removed from object
.
This signal exists purely as a convenience to avoid having to
connect signals to all objects managed by manager
.
manager |
The GDBusObjectManager emitting the signal. |
|
object |
The GDBusObject on which an interface was removed. |
|
interface |
The GDBusInterface that was removed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.30
“object-added”
signalvoid user_function (GDBusObjectManager *manager, GDBusObject *object, gpointer user_data)
Emitted when object
is added to manager
.
manager |
The GDBusObjectManager emitting the signal. |
|
object |
The GDBusObject that was added. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.30
“object-removed”
signalvoid user_function (GDBusObjectManager *manager, GDBusObject *object, gpointer user_data)
Emitted when object
is removed from manager
.
manager |
The GDBusObjectManager emitting the signal. |
|
object |
The GDBusObject that was removed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.30