XMMS2
UUID

Functions dealing with UUID More...

Macros

#define HEX_TO_CHAR(c)   ((c)<10?(c) + '0':(c) + 'a' - 10)
 

Functions

void s4_create_uuid (unsigned char uuid[16])
 Creates a new random UUID and saves it in the array passed.
 
void s4_get_uuid (s4_t *s4, unsigned char uuid[16])
 Gets the UUID of a S4 database.
 
char * s4_get_uuid_string (s4_t *s4)
 Gets the UUID-string of a S4 database.
 

Detailed Description

Functions dealing with UUID

Every S4 database is assigned a random UUID. This can be used to identify a database without using the filename.

Macro Definition Documentation

◆ HEX_TO_CHAR

#define HEX_TO_CHAR ( c)    ((c)<10?(c) + '0':(c) + 'a' - 10)

Referenced by s4_get_uuid_string().

Function Documentation

◆ s4_create_uuid()

void s4_create_uuid ( unsigned char uuid[16])

Creates a new random UUID and saves it in the array passed.

Parameters
uuidThe array to save the new UUID to

◆ s4_get_uuid()

void s4_get_uuid ( s4_t * s4,
unsigned char uuid[16] )

Gets the UUID of a S4 database.

Parameters
s4The database to find the UUID of
uuidAn array to save the UUID in

◆ s4_get_uuid_string()

char * s4_get_uuid_string ( s4_t * s4)

Gets the UUID-string of a S4 database.

Parameters
s4The database to find the UUID of
Returns
A NUL-terminated string with the UUID. Must be freed

Referenced by xmms_medialib_uuid().