]> git.saurik.com Git - apple/security.git/blob - utilities/src/SecXPCError.h
Security-55471.14.tar.gz
[apple/security.git] / utilities / src / SecXPCError.h
1 //
2 // SecXPCError.h
3 // utilities
4 //
5 // Created by John Hurley on 5/6/13.
6 // Copyright (c) 2013 Apple Inc. All rights reserved.
7 //
8
9 #ifndef _UTILITIES_SECXPCERROR_H_
10 #define _UTILITIES_SECXPCERROR_H_
11
12 #include <CoreFoundation/CFString.h>
13 #include <CoreFoundation/CFError.h>
14 #include <xpc/xpc.h>
15
16 __BEGIN_DECLS
17
18 extern CFStringRef sSecXPCErrorDomain;
19
20 enum {
21 kSecXPCErrorSuccess = 0,
22 kSecXPCErrorUnexpectedType = 1,
23 kSecXPCErrorUnexpectedNull = 2,
24 kSecXPCErrorConnectionFailed = 3,
25 kSecXPCErrorUnknown = 4,
26 };
27
28 CFErrorRef SecCreateCFErrorWithXPCObject(xpc_object_t xpc_error);
29 xpc_object_t SecCreateXPCObjectWithCFError(CFErrorRef error);
30
31 __END_DECLS
32
33 #endif /* UTILITIES_SECXPCERROR_H */