OBEXAddCountHeader

Function OBEXAddCountHeader 

Source
pub unsafe extern "C-unwind" fn OBEXAddCountHeader(
    count: u32,
    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 count: Count value you want to add to the OBEX header dictionary.

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

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

Count header - OBEX Spec, 2.2.1: 4 byte unsigned integer

§Safety

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