Functions
example_animal_override_properties ()
guint
example_animal_override_properties (GObjectClass *klass,
guint property_id_begin);
Overrides all GObject properties in the ExampleAnimal interface for a concrete class.
The properties are overridden in the order they are defined.
Returns
The last property id.
Since: 2.30
example_animal_call_poke ()
void
example_animal_call_poke (ExampleAnimal *proxy,
gboolean arg_make_sad,
gboolean arg_make_happy,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
Asynchronously invokes the Poke() D-Bus method on proxy
.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
You can then call example_animal_call_poke_finish() to get the result of the operation.
See example_animal_call_poke_sync() for the synchronous, blocking version of this method.
Since: 2.30
example_animal_call_poke_sync ()
gboolean
example_animal_call_poke_sync (ExampleAnimal *proxy,
gboolean arg_make_sad,
gboolean arg_make_happy,
GCancellable *cancellable,
GError **error);
Synchronously invokes the Poke() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See example_animal_call_poke() for the asynchronous version of this method.
Returns
TRUE if the call succeded, FALSE if error
is set.
[skip]
Since: 2.30
example_animal_complete_poke ()
void
example_animal_complete_poke (ExampleAnimal *object,
GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the Poke() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation
, you cannot use it afterwards.
Since: 2.30
example_animal_emit_jumped ()
void
example_animal_emit_jumped (ExampleAnimal *object,
gdouble arg_height);
Emits the "Jumped" D-Bus signal.
Since: 2.30
example_animal_get_mood ()
const gchar *
example_animal_get_mood (ExampleAnimal *object);
Gets the value of the "Mood" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use example_animal_dup_mood() if on another thread.
[skip]
Returns
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
Since: 2.30
example_animal_get_foo ()
const gchar *
example_animal_get_foo (ExampleAnimal *object);
Gets the value of the "Foo" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use example_animal_dup_foo() if on another thread.
[skip]
Returns
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
Since: 2.30
example_animal_get_bar ()
const gchar *
example_animal_get_bar (ExampleAnimal *object);
Gets the value of the "Bar" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object
was constructed. Use example_animal_dup_bar() if on another thread.
[skip]
Returns
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object
.
[transfer none][nullable]
Since: 2.36
example_animal_dup_mood ()
gchar *
example_animal_dup_mood (ExampleAnimal *object);
Gets a copy of the "Mood" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Returns
The property value or NULL if the property is not set. The returned value should be freed with g_free().
[transfer full][nullable]
Since: 2.30
example_animal_dup_foo ()
gchar *
example_animal_dup_foo (ExampleAnimal *object);
Gets a copy of the "Foo" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Returns
The property value or NULL if the property is not set. The returned value should be freed with g_free().
[transfer full][nullable]
Since: 2.30
example_animal_dup_bar ()
gchar *
example_animal_dup_bar (ExampleAnimal *object);
Gets a copy of the "Bar" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
[skip]
Returns
The property value or NULL if the property is not set. The returned value should be freed with g_free().
[transfer full][nullable]
Since: 2.36
example_animal_set_mood ()
void
example_animal_set_mood (ExampleAnimal *object,
const gchar *value);
Sets the "Mood" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
Since: 2.30
example_animal_set_foo ()
void
example_animal_set_foo (ExampleAnimal *object,
const gchar *value);
Sets the "Foo" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
Since: 2.30
example_animal_set_bar ()
void
example_animal_set_bar (ExampleAnimal *object,
const gchar *value);
Sets the "Bar" D-Bus property to value
.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
[skip]
Since: 2.36
example_animal_proxy_new_finish ()
ExampleAnimal *
example_animal_proxy_new_finish (GAsyncResult *res,
GError **error);
Finishes an operation started with example_animal_proxy_new().
Returns
The constructed proxy object or NULL if error
is set.
[transfer full][type ExampleAnimalProxy]
Since: 2.30
example_animal_proxy_new_for_bus_finish ()
ExampleAnimal *
example_animal_proxy_new_for_bus_finish
(GAsyncResult *res,
GError **error);
Finishes an operation started with example_animal_proxy_new_for_bus().
Returns
The constructed proxy object or NULL if error
is set.
[transfer full][type ExampleAnimalProxy]
Since: 2.30