]> git.saurik.com Git - apple/securityd.git/blob - libsecurity_agent/lib/utils.h
securityd-55199.3.tar.gz
[apple/securityd.git] / libsecurity_agent / lib / utils.h
1 /*
2 * utils.h
3 * libsecurity_agent
4 *
5 * Copyright (c) 2010 Apple Inc. All rights reserved.
6 *
7 */
8
9 #include <uuid/uuid.h>
10 #include <bsm/audit.h>
11
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
15
16 #define UUID_INITIALIZER_FROM_SESSIONID(sessionid) \
17 { 0,0,0,0, 0,0,0,0, 0,0,0,0, \
18 (0xff000000 & (sessionid))>>24, (0x00ff0000 & (sessionid))>>16, \
19 (0x0000ff00 & (sessionid))>>8, (0x000000ff & (sessionid)) }
20
21 unsigned char *uuid_init_with_sessionid(uuid_t uuid, uint32_t sessionid);
22 const char *uuid_to_string(const uuid_t uuid, char *buf);
23
24 #if defined(__cplusplus)
25 }
26 #endif