pub unsafe extern "C-unwind" fn OBEXAddTypeHeader(
type: Option<&CFString>,
dict_ref: Option<&CFMutableDictionary>,
) -> OBEXErrorAvailable 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
typemight not allowNone.dict_refgenerics must be of the correct type.dict_refmight not allowNone.