|
UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /* 00003 * This file is part of the LibreOffice project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * This file incorporates work covered by the following license notice: 00010 * 00011 * Licensed to the Apache Software Foundation (ASF) under one or more 00012 * contributor license agreements. See the NOTICE file distributed 00013 * with this work for additional information regarding copyright 00014 * ownership. The ASF licenses this file to you under the Apache 00015 * License, Version 2.0 (the "License"); you may not use this file 00016 * except in compliance with the License. You may obtain a copy of 00017 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 00018 */ 00019 #ifndef _RTL_UUID_H_ 00020 #define _RTL_UUID_H_ 00021 00022 #include "sal/config.h" 00023 00024 #include "rtl/string.h" 00025 #include "sal/saldllapi.h" 00026 #include "sal/types.h" 00027 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif 00049 00060 SAL_DLLPUBLIC void SAL_CALL rtl_createUuid( 00061 sal_uInt8 *pTargetUUID, 00062 const sal_uInt8 *pPredecessorUUID, 00063 sal_Bool bUseEthernetAddress ); 00064 00080 SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid( 00081 const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 ); 00082 00118 SAL_DLLPUBLIC void SAL_CALL rtl_createNamedUuid( 00119 sal_uInt8 *pTargetUUID, 00120 const sal_uInt8 *pNameSpaceUUID, 00121 const rtl_String *pName 00122 ); 00123 00124 00125 00126 /* 00127 Predefined Namespaces 00128 (Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS; 00129 */ 00136 #define RTL_UUID_NAMESPACE_DNS {\ 00137 0x6b,0xa7,0xb8,0x10,\ 00138 0x9d,0xad,\ 00139 0x11,0xd1,\ 00140 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00141 } 00142 00147 #define RTL_UUID_NAMESPACE_URL { \ 00148 0x6b, 0xa7, 0xb8, 0x11,\ 00149 0x9d, 0xad,\ 00150 0x11, 0xd1,\ 00151 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00152 } 00153 00158 #define RTL_UUID_NAMESPACE_OID {\ 00159 0x6b, 0xa7, 0xb8, 0x12,\ 00160 0x9d, 0xad,\ 00161 0x11, 0xd1,\ 00162 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00163 } 00164 00169 #define RTL_UUID_NAMESPACE_X500 {\ 00170 0x6b, 0xa7, 0xb8, 0x14,\ 00171 0x9d, 0xad,\ 00172 0x11, 0xd1,\ 00173 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\ 00174 } 00175 00176 #ifdef __cplusplus 00177 } 00178 #endif 00179 00180 #endif 00181 00182 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3