xpc_dictionary_dup_fd(_:_:)
Creates a file descriptor from a dictionary directly.
Declaration
func xpc_dictionary_dup_fd(_ xdict: xpc_object_t, _ key: UnsafePointer<CChar>) -> Int32Parameters
- xdict:
The dictionary object which is to be examined.
- key:
The key whose value is to be obtained.
Return Value
A new file descriptor created from the value for the specified key. You are responsible for closing this descriptor. -1 if the value for the specified key is not a file descriptor value or if there is no value for the specified key.
See Also
Dictionary objects
XPCDictionaryxpc_dictionary_create(_:_:_:)xpc_dictionary_create_empty()xpc_dictionary_create_connection(_:_:)xpc_dictionary_create_reply(_:)xpc_dictionary_set_value(_:_:_:)xpc_dictionary_get_count(_:)xpc_dictionary_get_value(_:_:)xpc_dictionary_apply(_:_:)xpc_dictionary_get_array(_:_:)xpc_dictionary_get_bool(_:_:)xpc_dictionary_get_data(_:_:_:)xpc_dictionary_get_date(_:_:)xpc_dictionary_get_dictionary(_:_:)xpc_dictionary_get_double(_:_:)