UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /************************************************************************* 00003 * 00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 00005 * 00006 * Copyright 2000, 2010 Oracle and/or its affiliates. 00007 * 00008 * OpenOffice.org - a multi-platform office productivity suite 00009 * 00010 * This file is part of OpenOffice.org. 00011 * 00012 * OpenOffice.org is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 3 00014 * only, as published by the Free Software Foundation. 00015 * 00016 * OpenOffice.org is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License version 3 for more details 00020 * (a copy is included in the LICENSE file that accompanied this code). 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * version 3 along with OpenOffice.org. If not, see 00024 * <http://www.openoffice.org/license.html> 00025 * for a copy of the LGPLv3 License. 00026 * 00027 ************************************************************************/ 00028 #ifndef _RTL_UUID_H_ 00029 #define _RTL_UUID_H_ 00030 00031 00032 #include <sal/types.h> 00033 #include <rtl/string.h> 00034 00053 #ifdef __cplusplus 00054 extern "C" { 00055 #endif 00056 00067 SAL_DLLPUBLIC void SAL_CALL rtl_createUuid( 00068 sal_uInt8 *pTargetUUID, 00069 const sal_uInt8 *pPredecessorUUID, 00070 sal_Bool bUseEthernetAddress ); 00071 00087 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid( 00088 const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 ); 00089 00125 SAL_DLLPUBLIC void SAL_CALL rtl_createNamedUuid( 00126 sal_uInt8 *pTargetUUID, 00127 const sal_uInt8 *pNameSpaceUUID, 00128 const rtl_String *pName 00129 ); 00130 00131 00132 00133 /* 00134 Predefined Namespaces 00135 (Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS; 00136 */ 00143 #define RTL_UUID_NAMESPACE_DNS {\ 00144 0x6b,0xa7,0xb8,0x10,\ 00145 0x9d,0xad,\ 00146 0x11,0xd1,\ 00147 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00148 } 00149 00154 #define RTL_UUID_NAMESPACE_URL { \ 00155 0x6b, 0xa7, 0xb8, 0x11,\ 00156 0x9d, 0xad,\ 00157 0x11, 0xd1,\ 00158 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00159 } 00160 00165 #define RTL_UUID_NAMESPACE_OID {\ 00166 0x6b, 0xa7, 0xb8, 0x12,\ 00167 0x9d, 0xad,\ 00168 0x11, 0xd1,\ 00169 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00170 } 00171 00176 #define RTL_UUID_NAMESPACE_X500 {\ 00177 0x6b, 0xa7, 0xb8, 0x14,\ 00178 0x9d, 0xad,\ 00179 0x11, 0xd1,\ 00180 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00181 } 00182 00183 #ifdef __cplusplus 00184 } 00185 #endif 00186 00187 #endif 00188 00189 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */