1 /* Copyright (c) 2012 Apple Inc. All Rights Reserved. */
3 #ifndef _SECURITY_AUTH_OBJECT_H_
4 #define _SECURITY_AUTH_OBJECT_H_
6 #include "authd_private.h"
7 #include <CoreFoundation/CoreFoundation.h>
8 #include <CoreFoundation/CFRuntime.h>
10 #if defined(__cplusplus)
14 #define __AUTH_BASE_STRUCT_HEADER__ \
18 __AUTH_BASE_STRUCT_HEADER__
;
21 #define AUTH_TYPE(type) const CFRuntimeClass type
23 #define AUTH_TYPE_INSTANCE(name, ...) \
24 AUTH_TYPE(_auth_type_##name) = { \
26 .className = #name "_t", \
30 #define AUTH_CLASS_SIZE(name) (sizeof(struct _##name##_s) - sizeof(CFRuntimeBase))
32 #if defined(__cplusplus)
36 #endif /* !_SECURITY_AUTH_OBJECT_H_ */