AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uuid.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 #ifndef INCLUDED_RTL_UUID_H
4 #define INCLUDED_RTL_UUID_H
5 
6 #include "sal/config.h"
7 
8 #include "rtl/string.h"
9 #include "sal/saldllapi.h"
10 #include "sal/types.h"
11 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
44 SAL_DLLPUBLIC void SAL_CALL rtl_createUuid(
45  sal_uInt8 *pTargetUUID,
46  const sal_uInt8 *pPredecessorUUID,
47  sal_Bool bUseEthernetAddress );
48 
64 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid(
65  const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 );
66 
102 SAL_DLLPUBLIC void SAL_CALL rtl_createNamedUuid(
103  sal_uInt8 *pTargetUUID,
104  const sal_uInt8 *pNameSpaceUUID,
105  const rtl_String *pName
106  );
107 
108 
109 
110 /*
111  Predefined Namespaces
112  (Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS;
113  */
120 #define RTL_UUID_NAMESPACE_DNS {\
121  0x6b,0xa7,0xb8,0x10,\
122  0x9d,0xad,\
123  0x11,0xd1,\
124  0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
125  }
126 
131 #define RTL_UUID_NAMESPACE_URL { \
132  0x6b, 0xa7, 0xb8, 0x11,\
133  0x9d, 0xad,\
134  0x11, 0xd1,\
135  0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
136  }
137 
142 #define RTL_UUID_NAMESPACE_OID {\
143  0x6b, 0xa7, 0xb8, 0x12,\
144  0x9d, 0xad,\
145  0x11, 0xd1,\
146  0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
147  }
148 
153 #define RTL_UUID_NAMESPACE_X500 {\
154  0x6b, 0xa7, 0xb8, 0x14,\
155  0x9d, 0xad,\
156  0x11, 0xd1,\
157  0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
158  }
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif
165 
166 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition: types.h:18
SAL_DLLPUBLIC void rtl_createNamedUuid(sal_uInt8 *pTargetUUID, const sal_uInt8 *pNameSpaceUUID, const rtl_String *pName)
Creates named UUIDs.
unsigned char sal_uInt8
Definition: types.h:24
SAL_DLLPUBLIC void rtl_createUuid(sal_uInt8 *pTargetUUID, const sal_uInt8 *pPredecessorUUID, sal_Bool bUseEthernetAddress)
Generates a new Version 4 (random number based) UUID (Universally Unique IDentifier).
SAL_DLLPUBLIC sal_Int32 rtl_compareUuid(const sal_uInt8 *pUUID1, const sal_uInt8 *pUUID2)
Compare two UUID's lexically.
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14