LibreOffice
LibreOffice 7.1 SDK C/C++ API Reference
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#ifndef INCLUDED_RTL_UUID_H
20#define INCLUDED_RTL_UUID_H
21
22#include "sal/config.h"
23
24#include "rtl/string.h"
25#include "sal/saldllapi.h"
26#include "sal/types.h"
27
46#ifdef __cplusplus
47extern "C" {
48#endif
49
61 sal_uInt8 *pTargetUUID,
62 const sal_uInt8 *pPredecessorUUID,
63 sal_Bool bUseEthernetAddress );
64
80SAL_DLLPUBLIC sal_Int32 SAL_CALL rtl_compareUuid(
81 const sal_uInt8 *pUUID1 , const sal_uInt8 *pUUID2 );
82
119 sal_uInt8 *pTargetUUID,
120 const sal_uInt8 *pNameSpaceUUID,
121 const rtl_String *pName
122 );
123
124
125
126/*
127 Predefined Namespaces
128 (Use them the following way : sal_uInt8 aNsDNS[16]) = RTL_UUID_NAMESPACE_DNS;
129 */
136#define RTL_UUID_NAMESPACE_DNS {\
137 0x6b,0xa7,0xb8,0x10,\
138 0x9d,0xad,\
139 0x11,0xd1,\
140 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
141 }
142
147#define RTL_UUID_NAMESPACE_URL { \
148 0x6b, 0xa7, 0xb8, 0x11,\
149 0x9d, 0xad,\
150 0x11, 0xd1,\
151 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
152 }
153
158#define RTL_UUID_NAMESPACE_OID {\
159 0x6b, 0xa7, 0xb8, 0x12,\
160 0x9d, 0xad,\
161 0x11, 0xd1,\
162 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
163 }
164
169#define RTL_UUID_NAMESPACE_X500 {\
170 0x6b, 0xa7, 0xb8, 0x14,\
171 0x9d, 0xad,\
172 0x11, 0xd1,\
173 0x80, 0xb4, 0x00, 0xc0, 0x4f, 0xd4, 0x30, 0xc8\
174 }
175
176#ifdef __cplusplus
177}
178#endif
179
180#endif
181
182/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_uInt8
Definition: types.h:40
unsigned char sal_Bool
Definition: types.h:34
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
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.