]> git.saurik.com Git - apple/security.git/blame - utilities/src/SecXPCError.h
Security-55471.14.18.tar.gz
[apple/security.git] / utilities / src / SecXPCError.h
CommitLineData
427c49bc
A
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
18extern CFStringRef sSecXPCErrorDomain;
19
20enum {
21 kSecXPCErrorSuccess = 0,
22 kSecXPCErrorUnexpectedType = 1,
23 kSecXPCErrorUnexpectedNull = 2,
24 kSecXPCErrorConnectionFailed = 3,
25 kSecXPCErrorUnknown = 4,
26};
27
28CFErrorRef SecCreateCFErrorWithXPCObject(xpc_object_t xpc_error);
29xpc_object_t SecCreateXPCObjectWithCFError(CFErrorRef error);
30
31__END_DECLS
32
33#endif /* UTILITIES_SECXPCERROR_H */