UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
uuid.hpp
Go to the documentation of this file.
1#ifndef COMPA_UUID_HPP
2#define COMPA_UUID_HPP
3/*
4 * Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
5 * Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
6 * Digital Equipment Corporation, Maynard, Mass.
7 * Copyright (c) 1998 Microsoft.
8 * Copyright (C) 2022+ GPL 3 and higher by Ingo Höft, <Ingo@Hoeft-online.de>
9 * Redistribution only with this Copyright remark. Last modified: 2025-05-04
10 *
11 * To anyone who acknowledges that this file is provided "AS IS"
12 * without any express or implied warranty: permission to use, copy,
13 * modify, and distribute this file for any purpose is hereby
14 * granted without fee, provided that the above copyright notices and
15 * this notice appears in all source code copies, and that none of
16 * the names of Open Software Foundation, Inc., Hewlett-Packard
17 * Company, or Digital Equipment Corporation be used in advertising
18 * or publicity pertaining to distribution of the software without
19 * specific, written prior permission. Neither Open Software
20 * Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment
21 * Corporation makes any representations about the suitability of
22 * this software for any purpose.
23 */
30#include <sysdep.hpp>
31
33void uuidMutexInit();
34
40
42struct uuid_upnp {
45 uint32_t time_low;
46 uint16_t time_mid;
50 uint8_t node[6];
52};
53
59int uuid_create( //
60 uuid_upnp* uid
61);
62
66void upnp_uuid_unpack( //
67 uuid_upnp* u,
68 char* out
69);
70
76 uuid_upnp* uid,
79 uuid_upnp nsid,
81 void* name,
83 int namelen);
84
95int uuid_compare( //
96 uuid_upnp* u1,
97 uuid_upnp* u2
98);
99
100#endif /* COMPA_UUID_HPP */
Get some system dependent information.
void uuid_create_from_name(uuid_upnp *uid, uuid_upnp nsid, void *name, int namelen)
Create a UUID using a "name" from a "name space".
Definition uuid.cpp:250
uint8_t clock_seq_hi_and_reserved
Member variable.
Definition uuid.hpp:48
uint16_t time_mid
Member variable.
Definition uuid.hpp:46
void uuidMutexInit()
Initialize mutex for synchronizing the uuid creation process.
Definition uuid.cpp:198
uint32_t time_low
Member variable.
Definition uuid.hpp:45
int uuid_compare(uuid_upnp *u1, uuid_upnp *u2)
Compare two UUID's "lexically".
Definition uuid.cpp:278
void upnp_uuid_unpack(uuid_upnp *u, char *out)
Unpack a UUID.
Definition uuid.cpp:242
int uuidMutexDestroy()
Destroy mutex for synchronizing the uuid creation process.
Definition uuid.cpp:202
uint8_t node[6]
Member variable.
Definition uuid.hpp:50
uint8_t clock_seq_low
Member variable.
Definition uuid.hpp:49
int uuid_create(uuid_upnp *uid)
Generate a UUID.
Definition uuid.cpp:211
uint16_t time_hi_and_version
Member variable.
Definition uuid.hpp:47
uuid UPNP
Definition uuid.hpp:42