Lines Matching full:uuid
2 * Python UUID module that wraps libuuid or Windows rpcrt4.dll.
10 #include <uuid/uuid.h>
12 #include <uuid.h>
25 uuid_t uuid; in py_uuid_generate_time_safe() local
29 res = uuid_generate_time_safe(uuid); in py_uuid_generate_time_safe()
30 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in py_uuid_generate_time_safe()
33 uuid_create(&uuid, &status); in py_uuid_generate_time_safe()
35 unsigned char buf[sizeof(uuid)]; in py_uuid_generate_time_safe()
36 uuid_enc_be(buf, &uuid); in py_uuid_generate_time_safe()
37 return Py_BuildValue("y#i", buf, sizeof(uuid), (int) status); in py_uuid_generate_time_safe()
39 return Py_BuildValue("y#i", (const char *) &uuid, sizeof(uuid), (int) status); in py_uuid_generate_time_safe()
42 uuid_generate_time(uuid); in py_uuid_generate_time_safe()
43 return Py_BuildValue("y#O", (const char *) uuid, sizeof(uuid), Py_None); in py_uuid_generate_time_safe()
53 UUID uuid; in py_UuidCreate() local
57 res = UuidCreateSequential(&uuid); in py_UuidCreate()
65 All success codes, but the latter two indicate that the UUID is random in py_UuidCreate()
69 return Py_BuildValue("y#", (const char *)&uuid, sizeof(uuid)); in py_UuidCreate()