Type Alias binder_ndk_sys::AIBinder_Class_onTransact

source ·
pub type AIBinder_Class_onTransact = Option<unsafe extern "C" fn(binder: *mut AIBinder, code: transaction_code_t, in_: *const AParcel, out: *mut AParcel) -> binder_status_t>;
Expand description

This is called whenever a transaction needs to be processed by a local implementation.

This method will be called after the equivalent of android.os.Parcel#enforceInterface is called. That is, the interface descriptor associated with the AIBinder_Class descriptor will already be checked.

\param binder the object being transacted on. \param code implementation-specific code representing which transaction should be taken. \param in the implementation-specific input data to this transaction. \param out the implementation-specific output data to this transaction.

\return the implementation-specific output code. This may be forwarded from another service, the result of a parcel read or write, or another error as is applicable to the specific implementation. Usually, implementation-specific error codes are written to the output parcel, and the transaction code is reserved for kernel errors or error codes that have been repeated from subsequent transactions.

Aliased Type§

enum AIBinder_Class_onTransact {
    None,
    Some(unsafe extern "C" fn(_: *mut AIBinder, _: u32, _: *const AParcel, _: *mut AParcel) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut AIBinder, _: u32, _: *const AParcel, _: *mut AParcel) -> i32)

Some value of type T.