![]() | virterror | ![]() | API documentation | ![]() | The virtualization API |
---|
#define VIR_UUID_RAW_LEN
int virUUIDGenerate (unsigned char * uuid)
int virUUIDParse (const char * uuid,
unsigned char * rawuuid)
#define VIR_UUID_RAW_LEN
number of bytes used by an UUID in raw form
int virUUIDGenerate (unsigned char * uuid)
Generates a randomized unique identifier.
uuid: | array of VIR_UUID_RAW_LEN bytes to store the new UUID |
Returns: | 0 in case of success and -1 in case of failure |
int virUUIDParse (const char * uuid,
unsigned char * rawuuid)
Parses the external string representation, allowing spaces and '-' character in the sequence, and storing the result as a raw UUID
uuid: | zero terminated string representation of the UUID |
rawuuid: | array of VIR_UUID_RAW_LEN bytes to store the raw UUID |
Returns: | 0 in case of success and -1 in case of error. |
Graphics and design by Diana Fong