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)
13extern "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
21unsigned char *uuid_init_with_sessionid(uuid_t uuid, uint32_t sessionid);
22const char *uuid_to_string(const uuid_t uuid, char *buf);
23
24#if defined(__cplusplus)
25}
26#endif
27