GDBusObjectSkeleton
GDBusObjectSkeleton — Service-side D-Bus object
|
|
Object Hierarchy
GObject
╰── GDBusObjectSkeleton
Implemented Interfaces
GDBusObjectSkeleton implements
GDBusObject.
Includes
#include <gio/gio.h>
Description
A GDBusObjectSkeleton instance is essentially a group of D-Bus
interfaces. The set of exported interfaces on the object may be
dynamic and change at runtime.
This type is intended to be used with GDBusObjectManager.
Functions
g_dbus_object_skeleton_add_interface ()
void
g_dbus_object_skeleton_add_interface (GDBusObjectSkeleton *object,
GDBusInterfaceSkeleton *interface_);
Adds interface_
to object
.
If object
already contains a GDBusInterfaceSkeleton with the same
interface name, it is removed before interface_
is added.
Note that object
takes its own reference on interface_
and holds
it until removed.
Since: 2.30
g_dbus_object_skeleton_remove_interface_by_name ()
void
g_dbus_object_skeleton_remove_interface_by_name
(GDBusObjectSkeleton *object,
const gchar *interface_name);
Removes the GDBusInterface with interface_name
from object
.
If no D-Bus interface of the given interface exists, this function
does nothing.
Since: 2.30
g_dbus_object_skeleton_set_object_path ()
void
g_dbus_object_skeleton_set_object_path
(GDBusObjectSkeleton *object,
const gchar *object_path);
Sets the object path for object
.
Since: 2.30
Types and Values
GDBusObjectSkeleton
typedef struct _GDBusObjectSkeleton GDBusObjectSkeleton;
The GDBusObjectSkeleton structure contains private data and should only be
accessed using the provided API.
Since: 2.30
struct GDBusObjectSkeletonClass
struct GDBusObjectSkeletonClass {
GObjectClass parent_class;
/* Signals */
gboolean (*authorize_method) (GDBusObjectSkeleton *object,
GDBusInterfaceSkeleton *interface_,
GDBusMethodInvocation *invocation);
};
Class structure for GDBusObjectSkeleton.
Since: 2.30
Property Details
The “g-object-path” property
“g-object-path” gchar *
The object path where the object is exported.
Owner: GDBusObjectSkeleton
Flags: Read / Write / Construct
Default value: NULL
Since: 2.30