Manage UUIDs.
More...
Go to the source code of this file.
Manage UUIDs.
Definition in file uuid.hpp.
◆ uuid_upnp
uuid UPNP
Definition at line 42 of file uuid.hpp.
Class Members |
uint32_t |
time_low |
Member variable. |
uint16_t |
time_mid |
Member variable. |
uint16_t |
time_hi_and_version |
Member variable. |
uint8_t |
clock_seq_hi_and_reserved |
Member variable. |
uint8_t |
clock_seq_low |
Member variable. |
uint8_t |
node[6] |
Member variable. |
◆ uuidMutexInit()
Initialize mutex for synchronizing the uuid creation process.
Definition at line 198 of file uuid.cpp.
◆ uuidMutexDestroy()
Destroy mutex for synchronizing the uuid creation process.
- Returns
- On success: 0
- On error: EBUSY
Definition at line 202 of file uuid.cpp.
◆ uuid_create()
Generate a UUID.
- Returns
- Always 1.
- Parameters
-
[out] | uid | Pointer to a place for the created uuid. |
Definition at line 211 of file uuid.cpp.
◆ upnp_uuid_unpack()
void upnp_uuid_unpack |
( |
uuid_upnp * |
u, |
|
|
char * |
out |
|
) |
| |
Unpack a UUID.
- Parameters
-
[in] | u | Packed UUID. |
[out] | out | Will be xxxx-xx-xx-xx-xxxxxx format. |
Definition at line 242 of file uuid.cpp.
◆ uuid_create_from_name()
Create a UUID using a "name" from a "name space".
- Parameters
-
[out] | uid | Resulting UUID. |
[in] | nsid | UUID to serve as context, so identical names from different name spaces generate different UUIDs. |
[in] | name | The name from which to generate a UUID. |
[in] | namelen | The length of the name. |
Definition at line 250 of file uuid.cpp.
◆ uuid_compare()
Compare two UUID's "lexically".
- Returns
- -1: u1 is lexically before u2
- 0: u1 is equal to u2
- 1: u1 is lexically after u2
- Note
- Lexical ordering is not temporal ordering!
- Parameters
-
Definition at line 278 of file uuid.cpp.