XMMS2
Macros | Functions
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. More...
 
void s4_get_uuid (s4_t *s4, unsigned char uuid[16])
 Gets the UUID of a S4 database. More...
 
char * s4_get_uuid_string (s4_t *s4)
 Gets the UUID-string of a S4 database. More...
 

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

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

Referenced by s4_get_uuid_string().

Function Documentation

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
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
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().