Functions dealing with UUID.
More...
|
#define | HEX_TO_CHAR(c) ((c)<10?(c) + '0':(c) + 'a' - 10) |
|
Functions dealing with UUID.
Every S4 database is assigned a random UUID. This can be used to identify a database without using the filename.
#define HEX_TO_CHAR |
( |
|
c | ) |
((c)<10?(c) + '0':(c) + 'a' - 10) |
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 |
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 |
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().