Vuo  2.0.2
VuoUuid.h
Go to the documentation of this file.
1 
10 #pragma once
11 struct json_object;
12 
14 typedef void * VuoList_VuoUuid;
15 #define VuoList_VuoUuid_TYPE_DEFINED
16 
31 typedef struct
32 {
33  // can't return unsigned char[16] from VuoUuid_makeFromJson, so store in a struct.
34  unsigned char bytes[16];
35  char blah[42];
36 } VuoUuid;
37 
39 struct json_object * VuoUuid_getJson(const VuoUuid value);
40 char * VuoUuid_getSummary(const VuoUuid value);
41 
43 
45 
48 VuoUuid VuoUuid_makeFromString(const char *str);
49 char * VuoUuid_getString(const VuoUuid value);
50 void VuoUuid_retain(VuoUuid value);
51 void VuoUuid_release(VuoUuid value);
53 
59 static inline bool VuoUuid_areEqual(const VuoUuid value1, const VuoUuid value2)
60 {
61  return value1.bytes[ 0] == value2.bytes[ 0] &&
62  value1.bytes[ 1] == value2.bytes[ 1] &&
63  value1.bytes[ 2] == value2.bytes[ 2] &&
64  value1.bytes[ 3] == value2.bytes[ 3] &&
65  value1.bytes[ 4] == value2.bytes[ 4] &&
66  value1.bytes[ 5] == value2.bytes[ 5] &&
67  value1.bytes[ 6] == value2.bytes[ 6] &&
68  value1.bytes[ 7] == value2.bytes[ 7] &&
69  value1.bytes[ 8] == value2.bytes[ 8] &&
70  value1.bytes[ 9] == value2.bytes[ 9] &&
71  value1.bytes[10] == value2.bytes[10] &&
72  value1.bytes[11] == value2.bytes[11] &&
73  value1.bytes[12] == value2.bytes[12] &&
74  value1.bytes[13] == value2.bytes[13] &&
75  value1.bytes[14] == value2.bytes[14] &&
76  value1.bytes[15] == value2.bytes[15];
77 }
78