38 #define GLOBUS_UUID_TEXTLEN 36 40 #define GLOBUS_UUID_VERSION(uuid) ((uuid).binary.bytes[6] >> 4) 41 #define GLOBUS_UUID_VERSION_TIME 1 42 #define GLOBUS_UUID_VERSION_DCE 2 43 #define GLOBUS_UUID_VERSION_NAME 3 44 #define GLOBUS_UUID_VERSION_RANDOM 4 46 #define GLOBUS_UUID_MATCH(u1, u2) \ 47 (memcmp((u1).binary.bytes, (u2).binary.bytes, 16) == 0) 53 uint16_t time_hi_and_version;
54 uint8_t clock_seq_hi_and_reserved;
55 uint8_t clock_seq_low;
57 } globus_uuid_fields_t;
65 globus_uuid_fields_t fields;
68 char text[GLOBUS_UUID_TEXTLEN + 1];
79 globus_uuid_t * uuid);
107 globus_uuid_t * uuid,
108 globus_uuid_fields_t * uuid_fields);
int globus_uuid_create(globus_uuid_t *uuid)
Create UUIDCreates a time based, Leach-Salz variant uuid, using the mac address when available...
Definition: globus_uuid.c:217
int globus_uuid_import(globus_uuid_t *uuid, const char *str)
Import a UUIDImport a string in the text UUID format into a globus_uuid_t value.
Definition: globus_uuid.c:285
int globus_uuid_fields(globus_uuid_t *uuid, globus_uuid_fields_t *uuid_fields)
Extract fields from UUIDCopy the fields from uuid to uuid_fields in host byte order.
Definition: globus_uuid.c:344
Thread-safe libc macros, function prototypes.