| Top |
| const gchar * | g_dbus_object_get_object_path () |
| GList * | g_dbus_object_get_interfaces () |
| GDBusInterface * | g_dbus_object_get_interface () |
The GDBusObject type is the base type for D-Bus objects on both the service side (see GDBusObjectSkeleton) and the client side (see GDBusObjectProxy). It is essentially just a container of interfaces.
const gchar *
g_dbus_object_get_object_path (GDBusObject *object);
Gets the object path for object
.
Since: 2.30
GList *
g_dbus_object_get_interfaces (GDBusObject *object);
Gets the D-Bus interfaces associated with object
.
A list of GDBusInterface instances.
The returned list must be freed by g_list_free() after each element has been freed
with g_object_unref().
[element-type GDBusInterface][transfer full]
Since: 2.30
GDBusInterface * g_dbus_object_get_interface (GDBusObject *object,const gchar *interface_name);
Gets the D-Bus interface with name interface_name
associated with
object
, if any.
NULL if not found, otherwise a
GDBusInterface that must be freed with g_object_unref().
[transfer full]
Since: 2.30
typedef struct _GDBusObject GDBusObject;
GDBusObject is an opaque data structure and can only be accessed using the following functions.
struct GDBusObjectIface {
GTypeInterface parent_iface;
/* Virtual Functions */
const gchar *(*get_object_path) (GDBusObject *object);
GList *(*get_interfaces) (GDBusObject *object);
GDBusInterface *(*get_interface) (GDBusObject *object,
const gchar *interface_name);
/* Signals */
void (*interface_added) (GDBusObject *object,
GDBusInterface *interface_);
void (*interface_removed) (GDBusObject *object,
GDBusInterface *interface_);
};
Base object type for D-Bus objects.
The parent interface. |
||
Returns the object path. See |
||
Returns all interfaces. See |
||
Returns an interface by name. See |
||
Signal handler for the “interface-added” signal. |
||
Signal handler for the “interface-removed” signal. |
Since: 2.30
“interface-added” signalvoid user_function (GDBusObject *object, GDBusInterface *interface, gpointer user_data)
Emitted when interface
is added to object
.
object |
The GDBusObject emitting the signal. |
|
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 (GDBusObject *object, GDBusInterface *interface, gpointer user_data)
Emitted when interface
is removed from object
.
object |
The GDBusObject emitting the signal. |
|
interface |
The GDBusInterface that was removed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.30