Type Alias binder_ndk_sys::AServiceManager_onRegister
source · pub type AServiceManager_onRegister = Option<unsafe extern "C" fn(instance: *const c_char, registered: *mut AIBinder, cookie: *mut c_void)>;
Expand description
Function to call when a service is registered. The instance is passed as well as ownership of the binder named ‘registered’.
WARNING: a lock is held when this method is called in order to prevent races with AServiceManager_NotificationRegistration_delete. Do not make synchronous binder calls when implementing this method to avoid deadlocks.
\param instance instance name of service registered \param registered ownership-passed instance of service registered \param cookie data passed during registration for notifications
Aliased Type§
enum AServiceManager_onRegister {
None,
Some(unsafe extern "C" fn(_: *const i8, _: *mut AIBinder, _: *mut c_void)),
}