Type Alias GDBusInterfaceGetPropertyFunc

Source
pub type GDBusInterfaceGetPropertyFunc = Option<unsafe extern "C" fn(connection: *mut GDBusConnection, sender: *const gchar, object_path: *const gchar, interface_name: *const gchar, property_name: *const gchar, error: *mut *mut GError, user_data: gpointer) -> *mut GVariant>;
Expand description

GDBusInterfaceGetPropertyFunc: @connection: A #GDBusConnection. @sender: The unique bus name of the remote caller. @object_path: The object path that the method was invoked on. @interface_name: The D-Bus interface name for the property. @property_name: The name of the property to get the value of. @error: Return location for error. @user_data: The @user_data #gpointer passed to g_dbus_connection_register_object().

The type of the @get_property function in #GDBusInterfaceVTable.

Returns: 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.

Since: 2.26

Aliased Type§

enum GDBusInterfaceGetPropertyFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GDBusConnection, *const i8, *const i8, *const i8, *const i8, *mut *mut _GError, *mut c_void) -> *mut _GVariant),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _GDBusConnection, *const i8, *const i8, *const i8, *const i8, *mut *mut _GError, *mut c_void) -> *mut _GVariant)

Some value of type T.