Type Alias GDBusSubtreeEnumerateFunc

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

GDBusSubtreeEnumerateFunc: @connection: A #GDBusConnection. @sender: The unique bus name of the remote caller. @object_path: The object path that was registered with g_dbus_connection_register_subtree(). @user_data: The @user_data #gpointer passed to g_dbus_connection_register_subtree().

The type of the @enumerate function in #GDBusSubtreeVTable.

This function is called when generating introspection data and also when preparing to dispatch incoming messages in the event that the %G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES flag is not specified (ie: to verify that the object path is valid).

Hierarchies are not supported; the items that you return should not contain the / character.

The return value will be freed with g_strfreev().

Returns: (array zero-terminated=1) (transfer full): A newly allocated array of strings for node names that are children of @object_path.

Since: 2.26

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.