pub unsafe extern "C-unwind" fn OBEXAddUserDefinedHeader(
in_header_data: *const c_void,
in_header_data_length: u32,
dict_ref: Option<&CFMutableDictionary>,
) -> OBEXErrorAvailable on crate features
OBEX and objc2-core-foundation only.Expand description
Add a user-defined custom header to a dictionary of OBEXheaders.
Parameter inHeaderData: bytes you want to put in the user-defined header.
Parameter inHeaderDataLength: length of the bytes you want to put in user-defined header.
Parameter dictRef: dictionary you have allocated to hold the headers. Make sure it’s mutable.
Returns: Error code, kOBEXSuccess (0) if success.
User Defined header - OBEX Spec, 2.2.20: User Defined Headers.
§Safety
in_header_datamust be a valid pointer.dict_refgenerics must be of the correct type.dict_refmight not allowNone.