Interface
GioDBusObject
Description [src]
interface Gio.DBusObject : GObject.Object
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.
Prerequisite
In order to implement DBusObject, your type must inherit fromGObject
.
Instance methods
g_dbus_object_get_interface
Gets the D-Bus interface with name interface_name
associated with
object
, if any.
since: 2.30
Interface structure
struct GioDBusObjectIface {
GTypeInterface parent_iface;
const gchar* (* get_object_path) (
GDBusObject* object
);
GList* (* get_interfaces) (
GDBusObject* object
);
GDBusInterface* (* get_interface) (
GDBusObject* object,
const gchar* interface_name
);
void (* interface_added) (
GDBusObject* object,
GDBusInterface* interface_
);
void (* interface_removed) (
GDBusObject* object,
GDBusInterface* interface_
);
}
Base object type for D-Bus objects.
Interface members
parent_iface |
|
The parent interface. |
|
get_object_path |
|
Returns the object path. See g_dbus_object_get_object_path(). |
|
get_interfaces |
|
Returns all interfaces. See g_dbus_object_get_interfaces(). |
|
get_interface |
|
Returns an interface by name. See g_dbus_object_get_interface(). |
|
interface_added |
|
Signal handler for the |
|
interface_removed |
|
Signal handler for the |
Virtual methods
Gio.DBusObject.get_interface
Gets the D-Bus interface with name interface_name
associated with
object
, if any.
since: 2.30