Top |
The GDBusInterface type is the base type for D-Bus interfaces both on the service side (see GDBusInterfaceSkeleton) and client side (see GDBusProxy).
GDBusInterfaceInfo *
g_dbus_interface_get_info (GDBusInterface *interface_
);
Gets D-Bus introspection information for the D-Bus interface
implemented by interface_
.
Since: 2.30
GDBusObject *
g_dbus_interface_get_object (GDBusInterface *interface_
);
Gets the GDBusObject that interface_
belongs to, if any.
It is not safe to use the returned object if interface_
or
the returned object is being used from other threads. See
g_dbus_interface_dup_object()
for a thread-safe alternative.
[skip]
A GDBusObject or NULL
. The returned
reference belongs to interface_
and should not be freed.
[transfer none]
Since: 2.30
GDBusObject *
g_dbus_interface_dup_object (GDBusInterface *interface_
);
Gets the GDBusObject that interface_
belongs to, if any.
[rename-to g_dbus_interface_get_object]
A GDBusObject or NULL
. The returned
reference should be freed with g_object_unref()
.
[transfer full]
Since: 2.32
void g_dbus_interface_set_object (GDBusInterface *interface_
,GDBusObject *object
);
Sets the GDBusObject for interface_
to object
.
Note that interface_
will hold a weak reference to object
.
Since: 2.30
typedef struct _GDBusInterface GDBusInterface;
Base type for D-Bus interfaces.
Since: 2.30
struct GDBusInterfaceIface { GTypeInterface parent_iface; /* Virtual Functions */ GDBusInterfaceInfo *(*get_info) (GDBusInterface *interface_); GDBusObject *(*get_object) (GDBusInterface *interface_); void (*set_object) (GDBusInterface *interface_, GDBusObject *object); GDBusObject *(*dup_object) (GDBusInterface *interface_); };
Base type for D-Bus interfaces.
GTypeInterface |
The parent interface. |
|
Returns a GDBusInterfaceInfo. See |
||
Gets the enclosing GDBusObject. See |
||
Sets the enclosing GDBusObject. See |
||
Gets a reference to the enclosing GDBusObject. See |
Since: 2.30