OBEXAddTypeHeader

Function OBEXAddTypeHeader 

Source
pub unsafe extern "C-unwind" fn OBEXAddTypeHeader(
    type: Option<&CFString>,
    dict_ref: Option<&CFMutableDictionary>,
) -> OBEXError
Available on crate features OBEX and objc2-core-foundation only.
Expand description

Add a CFStringRef to a dictionary of OBEXheaders.

Parameter type: String containing the type of header to add.

Parameter dictRef: dictionary you have allocated to hold the headers. Make sure it’s mutable.

Returns: Error code, kOBEXSuccess (0) if success.

Type header - OBEX Spec, 2.2.3: 1-byte Null terminated ascii string.

§Safety

  • type might not allow None.
  • dict_ref generics must be of the correct type.
  • dict_ref might not allow None.