Type Alias GDBusProxyTypeFunc

Source
pub type GDBusProxyTypeFunc = Option<unsafe extern "C" fn(manager: *mut GDBusObjectManagerClient, object_path: *const gchar, interface_name: *const gchar, data: gpointer) -> GType>;
Expand description

GDBusProxyTypeFunc: @manager: A #GDBusObjectManagerClient. @object_path: The object path of the remote object. @interface_name: (nullable): The interface name of the remote object or %NULL if a #GDBusObjectProxy #GType is requested. @data: data passed in by the user.

Function signature for a function used to determine the #GType to use for an interface proxy (if @interface_name is not %NULL) or object proxy (if @interface_name is %NULL).

This function is called in the [thread-default main loop][g-main-context-push-thread-default] that @manager was constructed in.

Returns: A #GType to use for the remote object. The returned type must be a #GDBusProxy or #GDBusObjectProxy -derived type.

Since: 2.30

Aliased Type§

enum GDBusProxyTypeFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GDBusObjectManagerClient, *const i8, *const i8, *mut c_void) -> u64),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.