binder_ndk_sys

Type Alias ABinderRpc_ConnectionInfoProviderUserData_delete

Source
pub type ABinderRpc_ConnectionInfoProviderUserData_delete = Option<unsafe extern "C" fn(data: *mut c_void)>;
Expand description

This callback is responsible deleting the void* data object that is passed in to ABinderRpc_Accessor_new for the ABinderRpc_ConnectionInfoProvider to use. That object is owned by the ABinderRpc_Accessor and must remain valid for the lifetime the Accessor because it may be used by the connection info provider callback. This _delete callback is called after the ABinderRpc_Accessor is removed and is guaranteed never to be called again.

\param data a pointer to data that the ABinderRpc_AccessorProvider uses which is to be deleted by this call.

Aliased Type§

enum ABinderRpc_ConnectionInfoProviderUserData_delete {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void))

Some value of type T.