Function

GioDBusInterfaceGetPropertyFunc

Declaration

GVariant*
(* GDBusInterfaceGetPropertyFunc) (
  GDBusConnection* connection,
  const gchar* sender,
  const gchar* object_path,
  const gchar* interface_name,
  const gchar* property_name,
  GError** error,
  gpointer user_data
)

Description [src]

The type of the get_property function in GDBusInterfaceVTable.

Available since:2.26

Parameters

connection GDBusConnection
 

A GDBusConnection.

 The data is owned by the caller of the function.
sender const gchar*
 

The unique bus name of the remote caller.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
object_path const gchar*
 

The object path that the method was invoked on.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
interface_name const gchar*
 

The D-Bus interface name for the property.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
property_name const gchar*
 

The name of the property to get the value of.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError
 

Return location for error.

 The data is owned by the caller of the function.
user_data gpointer
 

The user_data #gpointer passed to g_dbus_connection_register_object().

Return value

Returns: GVariant
 

A GVariant with the value for property_name or NULL if error is set. If the returned GVariant is floating, it is consumed - otherwise its reference count is decreased by one.

 The caller of the function takes ownership of the data, and is responsible for freeing it.