1// 2// SecuritydXPC.h 3// sec 4// 5// Created by Mitch Adler on 11/16/12. 6// 7// 8 9#include <xpc/xpc.h> 10#include <CoreFoundation/CFError.h> 11 12#ifndef _UTILITIES_SECURITYDXPC_H_ 13#define _UTILITIES_SECURITYDXPC_H_ 14 15bool SecXPCDictionarySetData(xpc_object_t message, const char *key, CFDataRef data, CFErrorRef *error); 16bool SecXPCDictionarySetDataOptional(xpc_object_t message, const char *key, CFDataRef data, CFErrorRef *error); 17 18bool SecXPCDictionarySetPList(xpc_object_t message, const char *key, CFTypeRef object, CFErrorRef *error); 19bool SecXPCDictionarySetPListOptional(xpc_object_t message, const char *key, CFTypeRef object, CFErrorRef *error); 20 21bool SecXPCDictionarySetString(xpc_object_t message, const char *key, CFStringRef string, CFErrorRef *error); 22 23CFTypeRef SecXPCDictionaryCopyPList(xpc_object_t message, const char *key, CFErrorRef *error); 24bool SecXPCDictionaryCopyPListOptional(xpc_object_t message, const char *key, CFTypeRef *pobject, CFErrorRef *error); 25 26CFArrayRef SecXPCDictionaryCopyArray(xpc_object_t message, const char *key, CFErrorRef *error); 27bool SecXPCDictionaryCopyArrayOptional(xpc_object_t message, const char *key, CFArrayRef *parray, CFErrorRef *error); 28 29CFDataRef SecXPCDictionaryCopyData(xpc_object_t message, const char *key, CFErrorRef *error); 30bool SecXPCDictionaryCopyDataOptional(xpc_object_t message, const char *key, CFDataRef *pdata, CFErrorRef *error); 31 32CFDictionaryRef SecXPCDictionaryCopyDictionary(xpc_object_t message, const char *key, CFErrorRef *error); 33 34CFStringRef SecXPCDictionaryCopyString(xpc_object_t message, const char *key, CFErrorRef *error); 35bool SecXPCDictionaryCopyDictionaryOptional(xpc_object_t message, const char *key, CFDictionaryRef *pdictionary, CFErrorRef *error); 36 37 38#endif 39