Module uuid from libvirt

Table of Contents

#define VIR_UUID_RAW_LEN
int	virUUIDGenerate			(unsigned char * uuid)
int	virUUIDParse			(const char * uuid, 
unsigned char * rawuuid)

Description

Macro: VIR_UUID_RAW_LEN

#define VIR_UUID_RAW_LEN

number of bytes used by an UUID in raw form

Function: virUUIDGenerate

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

Function: virUUIDParse

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.