X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/c38e3ce98599a410a47dc10253faa4d5830f13b2..427c49bcad63d042b29ada2ac27e3dfc4845c779:/utilities/src/SecXPCError.h diff --git a/utilities/src/SecXPCError.h b/utilities/src/SecXPCError.h new file mode 100644 index 00000000..0a5896b7 --- /dev/null +++ b/utilities/src/SecXPCError.h @@ -0,0 +1,33 @@ +// +// SecXPCError.h +// utilities +// +// Created by John Hurley on 5/6/13. +// Copyright (c) 2013 Apple Inc. All rights reserved. +// + +#ifndef _UTILITIES_SECXPCERROR_H_ +#define _UTILITIES_SECXPCERROR_H_ + +#include +#include +#include + +__BEGIN_DECLS + +extern CFStringRef sSecXPCErrorDomain; + +enum { + kSecXPCErrorSuccess = 0, + kSecXPCErrorUnexpectedType = 1, + kSecXPCErrorUnexpectedNull = 2, + kSecXPCErrorConnectionFailed = 3, + kSecXPCErrorUnknown = 4, +}; + +CFErrorRef SecCreateCFErrorWithXPCObject(xpc_object_t xpc_error); +xpc_object_t SecCreateXPCObjectWithCFError(CFErrorRef error); + +__END_DECLS + +#endif /* UTILITIES_SECXPCERROR_H */