Function

OBEXAddTypeHeader(_:_:)

Add a CFStringRef to a dictionary of OBEXheaders.

Declaration

func OBEXAddTypeHeader(_ type: CFString!, _ dictRef: CFMutableDictionary!) -> OBEXError

Parameters

description

Description containing the name you want to add to the OBEX header dictionary.

dictRef

dictionary you have allocated to hold the headers. Make sure it's mutable.

Return Value

Error code, kOBEXSuccess (0) if success.

Discussion

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

See Also

Miscellaneous

func OBEXAddApplicationParameterHeader(UnsafeRawPointer!, UInt32, CFMutableDictionary!) -> OBEXError

Add bytes representing an application parameter to a dictionary of OBEX headers.

func OBEXAddAuthorizationChallengeHeader(UnsafeRawPointer!, UInt32, CFMutableDictionary!) -> OBEXError

Add an authorization challenge header to a dictionary of OBEXheaders.

func OBEXAddAuthorizationResponseHeader(UnsafeRawPointer!, UInt32, CFMutableDictionary!) -> OBEXError

Add an authorization Response header to a dictionary of OBEXheaders.

func OBEXAddConnectionIDHeader(UnsafeRawPointer!, UInt32, CFMutableDictionary!) -> OBEXError

Add bytes representing a connection ID to a dictionary of OBEX headers.

func OBEXAddCountHeader(UInt32, CFMutableDictionary!) -> OBEXError

Add a CFStringRef to a dictionary of OBEXheaders.

func OBEXAddLengthHeader(UInt32, CFMutableDictionary!) -> OBEXError

Add a CFStringRef to a dictionary of OBEXheaders.

func OBEXAddNameHeader(CFString!, CFMutableDictionary!) -> OBEXError

Add a CFStringRef to a dictionary of OBEXheaders.

func OBEXAddTime4ByteHeader(UInt32, CFMutableDictionary!) -> OBEXError

Add a CFStringRef to a dictionary of OBEXheaders.

func OBEXAddUserDefinedHeader(UnsafeRawPointer!, UInt32, CFMutableDictionary!) -> OBEXError

Add a user-defined custom header to a dictionary of OBEXheaders.

func OBEXGetHeaders(UnsafeRawPointer!, Int) -> CFDictionary!

Take a data blob and looks for OBEX headers.

func OBEXHeadersToBytes(CFDictionary!) -> Unmanaged<CFMutableData>!

Converts a dictionary of headers to a data pointer, from which you can extract as bytes and pass to the OBEX command/response functions.