LibreOffice
LibreOffice 24.8 SDK C/C++ API Reference
 
Loading...
Searching...
No Matches
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 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20/*
21 * This file is part of LibreOffice published API.
22 */
23#ifndef INCLUDED_RTL_UUID_H
24#define INCLUDED_RTL_UUID_H
25
26#include "sal/config.h"
27
28#include "rtl/string.h"
29#include "sal/saldllapi.h"
30#include "sal/types.h"
31
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
65 sal_uInt8 *pTargetUUID,
66 const sal_uInt8 *pPredecessorUUID,
67 sal_Bool bUseEthernetAddress );
68
84SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid(
85 const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 );
86
123 sal_uInt8 *pTargetUUID,
124 const sal_uInt8 *pNameSpaceUUID,
125 const rtl_String *pName
126 );
127
128
129
130/*
131 Predefined Namespaces
132 (Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS;
133 */
140#define RTL_UUID_NAMESPACE_DNS {\
141 0x6b,0xa7,0xb8,0x10,\
142 0x9d,0xad,\
143 0x11,0xd1,\
144 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
145 }
146
151#define RTL_UUID_NAMESPACE_URL { \
152 0x6b, 0xa7, 0xb8, 0x11,\
153 0x9d, 0xad,\
154 0x11, 0xd1,\
155 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
156 }
157
162#define RTL_UUID_NAMESPACE_OID {\
163 0x6b, 0xa7, 0xb8, 0x12,\
164 0x9d, 0xad,\
165 0x11, 0xd1,\
166 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
167 }
168
173#define RTL_UUID_NAMESPACE_X500 {\
174 0x6b, 0xa7, 0xb8, 0x14,\
175 0x9d, 0xad,\
176 0x11, 0xd1,\
177 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
178 }
179
180#ifdef __cplusplus
181}
182#endif
183
184#endif
185
186/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_uInt8
Definition types.h:44
unsigned char sal_Bool
Definition types.h:38
#define SAL_DLLPUBLIC
Definition saldllapi.h:34
SAL_DLLPUBLIC sal_Int32 rtl_compareUuid(const sal_uInt8 *pUUID1, const sal_uInt8 *pUUID2)
Compare two UUID's lexically.
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 void rtl_createNamedUuid(sal_uInt8 *pTargetUUID, const sal_uInt8 *pNameSpaceUUID, const rtl_String *pName)
Creates named UUIDs.