Functions dealing with UUID.
More...
Functions dealing with UUID.
Every S4 database is assigned a random UUID. This can be used to identify a database without using the filename.
◆ HEX_TO_CHAR
◆ s4_create_uuid()
void s4_create_uuid |
( |
unsigned char | uuid[16] | ) |
|
Creates a new random UUID and saves it in the array passed.
- Parameters
-
uuid | The 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
-
s4 | The database to find the UUID of |
uuid | An 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
-
s4 | The database to find the UUID of |
- Returns
- A NUL-terminated string with the UUID. Must be freed
Referenced by xmms_medialib_uuid().