Vuo  2.4.0
VuoUuid.h
Go to the documentation of this file.
1
10#pragma once
11struct json_object;
12
14typedef void * VuoList_VuoUuid;
15#define VuoList_VuoUuid_TYPE_DEFINED
17
31typedef struct
32{
33 // can't return unsigned char[16] from VuoUuid_makeFromJson, so store in a struct.
34 unsigned char bytes[16];
35} VuoUuid;
36
38struct json_object * VuoUuid_getJson(const VuoUuid value);
39char * VuoUuid_getSummary(const VuoUuid value);
40
42
44
48char * VuoUuid_getString(const VuoUuid value);
52
58static inline bool VuoUuid_areEqual(const VuoUuid value1, const VuoUuid value2) __attribute__((optnone)) // https://b33p.net/kosada/vuo/vuo/-/issues/9141
59{
60 return value1.bytes[ 0] == value2.bytes[ 0] &&
61 value1.bytes[ 1] == value2.bytes[ 1] &&
62 value1.bytes[ 2] == value2.bytes[ 2] &&
63 value1.bytes[ 3] == value2.bytes[ 3] &&
64 value1.bytes[ 4] == value2.bytes[ 4] &&
65 value1.bytes[ 5] == value2.bytes[ 5] &&
66 value1.bytes[ 6] == value2.bytes[ 6] &&
67 value1.bytes[ 7] == value2.bytes[ 7] &&
68 value1.bytes[ 8] == value2.bytes[ 8] &&
69 value1.bytes[ 9] == value2.bytes[ 9] &&
70 value1.bytes[10] == value2.bytes[10] &&
71 value1.bytes[11] == value2.bytes[11] &&
72 value1.bytes[12] == value2.bytes[12] &&
73 value1.bytes[13] == value2.bytes[13] &&
74 value1.bytes[14] == value2.bytes[14] &&
75 value1.bytes[15] == value2.bytes[15];
76}
77