GIO Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations | Signals |
#include <gio/gio.h> GDBusObjectManager; struct GDBusObjectManagerIface; const gchar * g_dbus_object_manager_get_object_path (GDBusObjectManager *manager
); GList * g_dbus_object_manager_get_objects (GDBusObjectManager *manager
); GDBusObject * g_dbus_object_manager_get_object (GDBusObjectManager *manager
,const gchar *object_path
); GDBusInterface * g_dbus_object_manager_get_interface (GDBusObjectManager *manager
,const gchar *object_path
,const gchar *interface_name
);
GDBusObjectManager is implemented by GDBusObjectManagerClient and GDBusObjectManagerServer.
"interface-added" :Run Last
"interface-removed" :Run Last
"object-added" :Run Last
"object-removed" :Run Last
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.
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 g_dbus_object_manager_get_object_path() . |
|
Virtual function for g_dbus_object_manager_get_objects() . |
|
Virtual function for g_dbus_object_manager_get_object() . |
|
Virtual function for g_dbus_object_manager_get_interface() . |
|
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
const gchar * g_dbus_object_manager_get_object_path
(GDBusObjectManager *manager
);
Gets the object path that manager
is for.
|
A GDBusObjectManager. |
Returns : |
A string owned by manager . Do not free. |
Since 2.30
GList * g_dbus_object_manager_get_objects (GDBusObjectManager *manager
);
Gets all GDBusObject objects known to manager
.
|
A GDBusObjectManager. |
Returns : |
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.
|
A GDBusObjectManager. |
|
Object path to lookup. |
Returns : |
A GDBusObject or NULL . Free with
g_object_unref() . [transfer full]
|
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.
|
A GDBusObjectManager. |
|
Object path to lookup. |
|
D-Bus interface name to lookup. |
Returns : |
A GDBusInterface instance or NULL . Free
with g_object_unref() . [transfer full]
|
Since 2.30
"interface-added"
signalvoid user_function (GDBusObjectManager *manager,
GDBusObject *object,
GDBusInterface *interface,
gpointer user_data) : Run Last
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
.
|
The GDBusObjectManager emitting the signal. |
|
The GDBusObject on which an interface was added. |
|
The GDBusInterface that was added. |
|
user data set when the signal handler was connected. |
Since 2.30
"interface-removed"
signalvoid user_function (GDBusObjectManager *manager,
GDBusObject *object,
GDBusInterface *interface,
gpointer user_data) : Run Last
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
.
|
The GDBusObjectManager emitting the signal. |
|
The GDBusObject on which an interface was removed. |
|
The GDBusInterface that was removed. |
|
user data set when the signal handler was connected. |
Since 2.30
"object-added"
signalvoid user_function (GDBusObjectManager *manager,
GDBusObject *object,
gpointer user_data) : Run Last
Emitted when object
is added to manager
.
|
The GDBusObjectManager emitting the signal. |
|
The GDBusObject that was added. |
|
user data set when the signal handler was connected. |
Since 2.30
"object-removed"
signalvoid user_function (GDBusObjectManager *manager,
GDBusObject *object,
gpointer user_data) : Run Last
Emitted when object
is removed from manager
.
|
The GDBusObjectManager emitting the signal. |
|
The GDBusObject that was removed. |
|
user data set when the signal handler was connected. |
Since 2.30