binder_ndk_sys

Type Alias ABinderRpc_AccessorProviderUserData_deleteCallback

Source
pub type ABinderRpc_AccessorProviderUserData_deleteCallback = 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_registerAccessorProvider for the ABinderRpc_AccessorProvider_getAccessorCallback to use. That object is owned by the ABinderRpc_AccessorProvider and must remain valid for the lifetime of the callback because it may be called and use the object. This _delete callback is called after the ABinderRpc_AccessorProvider is remove and is guaranteed never to be called again.

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

Aliased Type§

enum ABinderRpc_AccessorProviderUserData_deleteCallback {
    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.