UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches

Manage UUIDs. More...

#include <sysdep.hpp>
+ Include dependency graph for uuid.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  uuid_upnp
 uuid UPNP More...
 

Functions

void uuidMutexInit ()
 Initialize mutex for synchronizing the uuid creation process.
 
int uuidMutexDestroy ()
 Destroy mutex for synchronizing the uuid creation process.
 
int uuid_create (uuid_upnp *uid)
 Generate a UUID.
 
void upnp_uuid_unpack (uuid_upnp *u, char *out)
 Unpack a UUID.
 
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".
 
int uuid_compare (uuid_upnp *u1, uuid_upnp *u2)
 Compare two UUID's "lexically".
 

Detailed Description

Manage UUIDs.

Definition in file uuid.hpp.


Class Documentation

◆ uuid_upnp

struct 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.

Function Documentation

◆ uuidMutexInit()

void uuidMutexInit ( )

Initialize mutex for synchronizing the uuid creation process.

Definition at line 198 of file uuid.cpp.

+ Here is the caller graph for this function:

◆ uuidMutexDestroy()

int uuidMutexDestroy ( )

Destroy mutex for synchronizing the uuid creation process.

Returns
  • On success: 0
  • On error: EBUSY

Definition at line 202 of file uuid.cpp.

+ Here is the caller graph for this function:

◆ uuid_create()

int uuid_create ( uuid_upnp uid)

Generate a UUID.

Returns
Always 1.
Parameters
[out]uidPointer to a place for the created uuid.

Definition at line 211 of file uuid.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ upnp_uuid_unpack()

void upnp_uuid_unpack ( uuid_upnp u,
char *  out 
)

Unpack a UUID.

Parameters
[in]uPacked UUID.
[out]outWill be xxxx-xx-xx-xx-xxxxxx format.

Definition at line 242 of file uuid.cpp.

+ Here is the caller graph for this function:

◆ uuid_create_from_name()

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".

Parameters
[out]uidResulting UUID.
[in]nsidUUID to serve as context, so identical names from different name spaces generate different UUIDs.
[in]nameThe name from which to generate a UUID.
[in]namelenThe length of the name.

Definition at line 250 of file uuid.cpp.

+ Here is the call graph for this function:

◆ uuid_compare()

int uuid_compare ( uuid_upnp u1,
uuid_upnp u2 
)

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
[in]u1
[in]u2

Definition at line 278 of file uuid.cpp.