| Top | Description | Object Hierarchy | Prerequisites | Known Implementations |
#include <gio/gio.h>
GDBusInterface;
struct GDBusInterfaceIface;
GDBusInterfaceInfo * g_dbus_interface_get_info (GDBusInterface *interface_);
GDBusObject * g_dbus_interface_get_object (GDBusInterface *interface_);
GDBusObject * g_dbus_interface_dup_object (GDBusInterface *interface_);
void g_dbus_interface_set_object (GDBusInterface *interface_,
GDBusObject *object);
The GDBusInterface type is the base type for D-Bus interfaces both on the service side (see GDBusInterfaceSkeleton) and client side (see GDBusProxy).
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 g_dbus_interface_get_info(). |
|
Gets the enclosing GDBusObject. See g_dbus_interface_get_object(). |
|
Sets the enclosing GDBusObject. See g_dbus_interface_set_object(). |
|
Gets a reference to the enclosing GDBusObject. See g_dbus_interface_dup_object(). Added in 2.32. |
Since 2.30
GDBusInterfaceInfo * g_dbus_interface_get_info (GDBusInterface *interface_);
Gets D-Bus introspection information for the D-Bus interface
implemented by interface_.
|
An exported D-Bus interface. |
Returns : |
A GDBusInterfaceInfo. Do not free. [transfer none] |
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.
|
An exported D-Bus interface |
Returns : |
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.
|
An exported D-Bus interface. |
Returns : |
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.
|
An exported D-Bus interface. |
|
A GDBusObject or NULL. [allow-none]
|
Since 2.30