Top |
ExampleObject | |
struct | ExampleObjectIface |
struct | ExampleObjectProxy |
struct | ExampleObjectProxyClass |
struct | ExampleObjectSkeleton |
struct | ExampleObjectSkeletonClass |
GInterface ╰── ExampleObject GObject ├── GDBusObjectProxy │ ╰── ExampleObjectProxy ╰── GDBusObjectSkeleton ╰── ExampleObjectSkeleton
ExampleObjectProxy implements GDBusObject and ExampleObject.
ExampleObjectSkeleton implements GDBusObject and ExampleObject.
This section contains the ExampleObject, ExampleObjectProxy, and ExampleObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
ExampleAnimal *
example_object_get_animal (ExampleObject *object
);
Gets the ExampleAnimal instance for the D-Bus interface org.gtk.GDBus.Example.ObjectManager.Animal on object
, if any.
A ExampleAnimal that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
Since: 2.30
ExampleCat *
example_object_get_cat (ExampleObject *object
);
Gets the ExampleCat instance for the D-Bus interface org.gtk.GDBus.Example.ObjectManager.Cat on object
, if any.
A ExampleCat that must be freed with g_object_unref()
or NULL
if object
does not implement the interface.
[transfer full][nullable]
ExampleAnimal *
example_object_peek_animal (ExampleObject *object
);
Like example_object_get_animal()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A ExampleAnimal or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
Since: 2.30
ExampleCat *
example_object_peek_cat (ExampleObject *object
);
Like example_object_get_cat()
but doesn't increase the reference count on the returned object.
It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object
is running.
[skip]
A ExampleCat or NULL
if object
does not implement the interface. Do not free the returned object, it is owned by object
.
[transfer none][nullable]
ExampleObjectProxy * example_object_proxy_new (GDBusConnection *connection
,const gchar *object_path
);
Creates a new proxy object.
ExampleObjectSkeleton *
example_object_skeleton_new (const gchar *object_path
);
Creates a new skeleton object.
void example_object_skeleton_set_animal (ExampleObjectSkeleton *object
,ExampleAnimal *interface_
);
Sets the ExampleAnimal instance for the D-Bus interface org.gtk.GDBus.Example.ObjectManager.Animal on object
.
Since: 2.30
void example_object_skeleton_set_cat (ExampleObjectSkeleton *object
,ExampleCat *interface_
);
Sets the ExampleCat instance for the D-Bus interface org.gtk.GDBus.Example.ObjectManager.Cat on object
.
typedef struct _ExampleObject ExampleObject;
The ExampleObject type is a specialized container of interfaces.
struct ExampleObjectIface { GTypeInterface parent_iface; };
Virtual table for the ExampleObject interface.
struct ExampleObjectProxy;
The ExampleObjectProxy structure contains only private data and should only be accessed using the provided API.
struct ExampleObjectProxyClass { GDBusObjectProxyClass parent_class; };
Class structure for ExampleObjectProxy.
struct ExampleObjectSkeleton;
The ExampleObjectSkeleton structure contains only private data and should only be accessed using the provided API.
struct ExampleObjectSkeletonClass { GDBusObjectSkeletonClass parent_class; };
Class structure for ExampleObjectSkeleton.
“animal”
property“animal” ExampleAnimal *
The ExampleAnimal instance corresponding to the D-Bus interface org.gtk.GDBus.Example.ObjectManager.Animal, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: ExampleObject
Flags: Read / Write
Since: 2.30
“cat”
property“cat” ExampleCat *
The ExampleCat instance corresponding to the D-Bus interface org.gtk.GDBus.Example.ObjectManager.Cat, if any.
Connect to the “notify” signal to get informed of property changes.
Owner: ExampleObject
Flags: Read / Write