MTPDataPutFunc

Type Alias MTPDataPutFunc 

Source
pub type MTPDataPutFunc = Option<unsafe extern "C" fn(params: *mut c_void, priv_: *mut c_void, sendlen: u32, data: *mut c_uchar, putlen: *mut u32) -> u16>;
Expand description

Callback function for put by handler function @param params the device parameters @param priv a user-defined dereferencable pointer @param sendlen the number of bytes available @param data a buffer to read the data from @param putlen pointer to the number of bytes actually read from data @return LIBMTP_HANDLER_RETURN_OK if successful, LIBMTP_HANDLER_RETURN_ERROR on error or LIBMTP_HANDLER_RETURN_CANCEL to cancel the transfer

Aliased Type§

pub enum MTPDataPutFunc {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut c_void, u32, *mut u8, *mut u32) -> u16),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut c_void, u32, *mut u8, *mut u32) -> u16)

Some value of type T.