ua_basictypes.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. #ifndef OPCUA_BASICTYPES_H_
  2. #define OPCUA_BASICTYPES_H_
  3. #include <stdint.h>
  4. #define DBG_VERBOSE(expression) // omit debug code
  5. #define DBG_ERR(expression) // omit debug code
  6. #define DBG(expression) // omit debug code
  7. #if defined(DEBUG) // --enable-debug=(yes|verbose)
  8. # undef DBG
  9. # define DBG(expression) expression
  10. # undef DBG_ERR
  11. # define DBG_ERR(expression) expression
  12. # if defined(VERBOSE) // --enable-debug=verbose
  13. # undef DBG_VERBOSE
  14. # define DBG_VERBOSE(expression) expression
  15. # endif
  16. #endif
  17. /* Basic types */
  18. typedef _Bool UA_Boolean;
  19. typedef uint8_t UA_Byte;
  20. typedef int8_t UA_SByte;
  21. typedef int16_t UA_Int16;
  22. typedef uint16_t UA_UInt16;
  23. typedef int32_t UA_Int32;
  24. typedef uint32_t UA_UInt32;
  25. typedef int64_t UA_Int64;
  26. typedef uint64_t UA_UInt64;
  27. typedef float UA_Float;
  28. typedef double UA_Double;
  29. /* ByteString - Part: 6, Chapter: 5.2.2.7, Page: 17 */
  30. typedef struct UA_ByteString {
  31. UA_Int32 length;
  32. UA_Byte* data;
  33. } UA_ByteString;
  34. /* Function return values */
  35. #define UA_SUCCESS 0
  36. #define UA_NO_ERROR UA_SUCCESS
  37. #define UA_ERROR (0x01 << 31)
  38. #define UA_ERR_INCONSISTENT (UA_ERROR | (0x01 << 1))
  39. #define UA_ERR_INVALID_VALUE (UA_ERROR | (0x01 << 2))
  40. #define UA_ERR_NO_MEMORY (UA_ERROR | (0x01 << 3))
  41. #define UA_ERR_NOT_IMPLEMENTED (UA_ERROR | (0x01 << 4))
  42. /* Boolean values and null */
  43. #define UA_TRUE (42==42)
  44. #define TRUE UA_TRUE
  45. #define UA_FALSE (!UA_TRUE)
  46. #define FALSE UA_FALSE
  47. /* Compare values */
  48. #define UA_EQUAL 0
  49. #define UA_NOT_EQUAL (!UA_EQUAL)
  50. /* heap memory functions */
  51. #define UA_NULL ((void*)0)
  52. extern void const * UA_alloc_lastptr;
  53. #define UA_free(ptr) _UA_free(ptr,#ptr,__FILE__,__LINE__)
  54. UA_Int32 _UA_free(void * ptr,char*,char*,int);
  55. UA_Int32 UA_memcpy(void *dst, void const *src, int size);
  56. #define UA_alloc(ptr,size) _UA_alloc(ptr,size,#ptr,#size,__FILE__,__LINE__)
  57. UA_Int32 _UA_alloc(void ** dst, int size,char*,char*,char*,int);
  58. /* Stop decoding at the first failure. Free members that were already allocated.
  59. It is assumed that retval is already defined. */
  60. #define CHECKED_DECODE(DECODE, CLEAN_UP) do { \
  61. retval |= DECODE; \
  62. if(retval != UA_SUCCESS) { \
  63. CLEAN_UP; \
  64. return retval; \
  65. } } while(0) \
  66. /* Array operations */
  67. UA_Int32 UA_Array_calcSize(UA_Int32 noElements, UA_Int32 type, void const * const * ptr);
  68. UA_Int32 UA_Array_encodeBinary(void const * const *src, UA_Int32 noElements, UA_Int32 type, UA_Int32* pos, UA_ByteString * dst);
  69. UA_Int32 UA_Array_decodeBinary(UA_ByteString const * src,UA_Int32 noElements, UA_Int32 type, UA_Int32* pos, void *** dst);
  70. UA_Int32 UA_Array_delete(void ***p,UA_Int32 noElements, UA_Int32 type);
  71. UA_Int32 UA_Array_init(void **p,UA_Int32 noElements, UA_Int32 type);
  72. UA_Int32 UA_Array_new(void ***p,UA_Int32 noElements, UA_Int32 type);
  73. UA_Int32 UA_Array_copy(void const * const *src,UA_Int32 noElements, UA_Int32 type, void ***dst);
  74. #define UA_TYPE_METHOD_PROTOTYPES(TYPE) \
  75. UA_Int32 TYPE##_calcSize(TYPE const * ptr); \
  76. UA_Int32 TYPE##_encodeBinary(TYPE const * src, UA_Int32* pos, UA_ByteString * dst); \
  77. UA_Int32 TYPE##_decodeBinary(UA_ByteString const * src, UA_Int32* pos, TYPE * dst); \
  78. UA_Int32 TYPE##_delete(TYPE * p); \
  79. UA_Int32 TYPE##_deleteMembers(TYPE * p); \
  80. UA_Int32 TYPE##_init(TYPE * p); \
  81. UA_Int32 TYPE##_new(TYPE ** p); \
  82. UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst);
  83. #define UA_TYPE_METHOD_CALCSIZE_SIZEOF(TYPE) \
  84. UA_Int32 TYPE##_calcSize(TYPE const * p) { return sizeof(TYPE); }
  85. #define UA_TYPE_METHOD_CALCSIZE_AS(TYPE, TYPE_AS) \
  86. UA_Int32 TYPE##_calcSize(TYPE const * p) { return TYPE_AS##_calcSize((TYPE_AS*) p); }
  87. #define UA_TYPE_METHOD_DELETE_FREE(TYPE) \
  88. UA_Int32 TYPE##_delete(TYPE * p) { return UA_free(p); }
  89. #define UA_TYPE_METHOD_DELETE_AS(TYPE, TYPE_AS) \
  90. UA_Int32 TYPE##_delete(TYPE * p) { return TYPE_AS##_delete((TYPE_AS*) p);}
  91. #define UA_TYPE_METHOD_DELETE_STRUCT(TYPE) \
  92. UA_Int32 TYPE##_delete(TYPE *p) { \
  93. UA_Int32 retval = UA_SUCCESS; \
  94. retval |= TYPE##_deleteMembers(p); \
  95. retval |= UA_free(p); \
  96. return retval; \
  97. }
  98. #define UA_TYPE_METHOD_COPY(TYPE) \
  99. UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst) { \
  100. UA_Int32 retval = UA_SUCCESS; \
  101. retval |= UA_memcpy(dst, src, TYPE##_calcSize(UA_NULL)); \
  102. return retval; \
  103. }
  104. #define UA_TYPE_METHOD_DELETEMEMBERS_NOACTION(TYPE) \
  105. UA_Int32 TYPE##_deleteMembers(TYPE * p) { return UA_SUCCESS; }
  106. #define UA_TYPE_METHOD_DELETEMEMBERS_AS(TYPE, TYPE_AS) \
  107. UA_Int32 TYPE##_deleteMembers(TYPE * p) { return TYPE_AS##_deleteMembers((TYPE_AS*) p);}
  108. #define UA_TYPE_METHOD_DECODEBINARY_AS(TYPE,TYPE_AS) \
  109. UA_Int32 TYPE##_decodeBinary(UA_ByteString const * src, UA_Int32* pos, TYPE *dst) { \
  110. return TYPE_AS##_decodeBinary(src,pos,(TYPE_AS*) dst); \
  111. }
  112. #define UA_TYPE_METHOD_ENCODEBINARY_AS(TYPE,TYPE_AS) \
  113. UA_Int32 TYPE##_encodeBinary(TYPE const * src, UA_Int32* pos, UA_ByteString *dst) { \
  114. return TYPE_AS##_encodeBinary((TYPE_AS*) src,pos,dst); \
  115. }
  116. #define UA_TYPE_METHOD_INIT_AS(TYPE, TYPE_AS) \
  117. UA_Int32 TYPE##_init(TYPE * p) { \
  118. return TYPE_AS##_init((TYPE_AS*)p); \
  119. }
  120. #define UA_TYPE_METHOD_COPY_AS(TYPE, TYPE_AS) \
  121. UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst) {return TYPE_AS##_copy((TYPE_AS*) src,(TYPE_AS*)dst); \
  122. }
  123. #define UA_TYPE_METHOD_PROTOTYPES_AS(TYPE, TYPE_AS) \
  124. UA_TYPE_METHOD_CALCSIZE_AS(TYPE, TYPE_AS) \
  125. UA_TYPE_METHOD_ENCODEBINARY_AS(TYPE, TYPE_AS) \
  126. UA_TYPE_METHOD_DECODEBINARY_AS(TYPE, TYPE_AS) \
  127. UA_TYPE_METHOD_DELETE_AS(TYPE, TYPE_AS) \
  128. UA_TYPE_METHOD_DELETEMEMBERS_AS(TYPE, TYPE_AS) \
  129. UA_TYPE_METHOD_INIT_AS(TYPE, TYPE_AS) \
  130. UA_TYPE_METHOD_COPY_AS(TYPE, TYPE_AS)
  131. #define UA_TYPE_METHOD_NEW_DEFAULT(TYPE) \
  132. UA_Int32 TYPE##_new(TYPE ** p) { \
  133. UA_Int32 retval = UA_SUCCESS;\
  134. retval |= UA_alloc((void**)p, TYPE##_calcSize(UA_NULL));\
  135. retval |= TYPE##_init(*p);\
  136. return retval;\
  137. }
  138. #define UA_TYPE_METHOD_INIT_DEFAULT(TYPE) \
  139. UA_Int32 TYPE##_init(TYPE * p) { \
  140. if(p==UA_NULL)return UA_ERROR;\
  141. *p = (TYPE)0;\
  142. return UA_SUCCESS;\
  143. }
  144. //#define UA_TYPE_COPY_METHOD_PROTOTYPE(TYPE) \ UA_Int32 TYPE##_copy(TYPE const *src, TYPE *dst);
  145. /*** Prototypes for basic types **/
  146. UA_TYPE_METHOD_PROTOTYPES (UA_Boolean)
  147. UA_TYPE_METHOD_PROTOTYPES (UA_Byte)
  148. UA_TYPE_METHOD_PROTOTYPES (UA_SByte)
  149. UA_TYPE_METHOD_PROTOTYPES (UA_Int16)
  150. UA_TYPE_METHOD_PROTOTYPES (UA_UInt16)
  151. UA_TYPE_METHOD_PROTOTYPES (UA_Int32)
  152. UA_TYPE_METHOD_PROTOTYPES (UA_UInt32)
  153. UA_TYPE_METHOD_PROTOTYPES (UA_Int64)
  154. UA_TYPE_METHOD_PROTOTYPES (UA_UInt64)
  155. UA_TYPE_METHOD_PROTOTYPES (UA_Float)
  156. UA_TYPE_METHOD_PROTOTYPES (UA_Double)
  157. /**
  158. * StatusCodeBinaryEncoding
  159. * Part: 6
  160. * Chapter: 5.2.2.11
  161. * Page: 20
  162. *
  163. * StatusCodes aren't an enum (=int), since 32 unsigned bits are needed.
  164. * See also ua_statuscodes.h
  165. */
  166. typedef UA_UInt32 UA_StatusCode;
  167. UA_TYPE_METHOD_PROTOTYPES (UA_StatusCode)
  168. /** IntegerId - Part: 4, Chapter: 7.13, Page: 118 */
  169. typedef float UA_IntegerId;
  170. UA_TYPE_METHOD_PROTOTYPES (UA_IntegerId)
  171. typedef struct UA_VTable {
  172. UA_UInt32 ns0Id;
  173. UA_Int32 (*calcSize)(void const * ptr);
  174. UA_Int32 (*decodeBinary)(UA_ByteString const * src, UA_Int32* pos, void* dst);
  175. UA_Int32 (*encodeBinary)(void const * src, UA_Int32* pos, UA_ByteString* dst);
  176. UA_Int32 (*init)(void * p);
  177. UA_Int32 (*new)(void ** p);
  178. UA_Int32 (*copy)(void const *src,void *dst);
  179. UA_Int32 (*delete)(void * p);
  180. UA_UInt32 memSize; // size of the struct only in memory (no dynamic components)
  181. UA_Byte* name;
  182. } UA_VTable;
  183. /* VariantBinaryEncoding - Part: 6, Chapter: 5.2.2.16, Page: 22 */
  184. enum UA_VARIANT_ENCODINGMASKTYPE_enum {
  185. UA_VARIANT_ENCODINGMASKTYPE_TYPEID_MASK = 0x3F, // bits 0:5
  186. UA_VARIANT_ENCODINGMASKTYPE_DIMENSIONS = (0x01 << 6), // bit 6
  187. UA_VARIANT_ENCODINGMASKTYPE_ARRAY = ( 0x01 << 7) // bit 7
  188. };
  189. typedef struct UA_Variant {
  190. UA_VTable* vt; // internal entry into vTable
  191. UA_Byte encodingMask; // Type of UA_Variant_EncodingMaskType_enum
  192. UA_Int32 arrayLength; // total number of elements
  193. UA_Int32 arrayDimensionsLength;
  194. UA_Int32 **arrayDimensions;
  195. void** data;
  196. } UA_Variant;
  197. UA_TYPE_METHOD_PROTOTYPES (UA_Variant)
  198. UA_Int32 UA_Variant_copySetValue(UA_Variant *v, UA_Int32 type, const void* data);
  199. UA_Int32 UA_Variant_copySetArray(UA_Variant *v, UA_Int32 type_id, UA_Int32 arrayLength, UA_UInt32 elementSize, const void* array);
  200. /**
  201. @brief Functions UA_Variant_borrowSetValue and ..Array allow to define
  202. variants whose payload will not be deleted. This is achieved by a second
  203. vtable. The functionality can be used e.g. when UA_VariableNodes point into a
  204. "father" structured object that is stored in an UA_VariableNode itself. */
  205. UA_Int32 UA_Variant_borrowSetValue(UA_Variant *v, UA_Int32 type, const void* data); // Take care not to free the data before the variant.
  206. UA_Int32 UA_Variant_borrowSetArray(UA_Variant *v, UA_Int32 type, UA_Int32 arrayLength, const void* data); // Take care not to free the data before the variant.
  207. /* String - Part: 6, Chapter: 5.2.2.4, Page: 16 */
  208. typedef struct UA_String {
  209. UA_Int32 length;
  210. UA_Byte* data;
  211. } UA_String;
  212. UA_TYPE_METHOD_PROTOTYPES (UA_String)
  213. //UA_Int32 UA_String_copy(UA_String const * src, UA_String* dst);
  214. UA_Int32 UA_String_copycstring(char const * src, UA_String* dst);
  215. UA_Int32 UA_String_copyprintf(char const * fmt, UA_String* dst, ...);
  216. UA_Int32 UA_String_compare(const UA_String *string1, const UA_String *string2);
  217. void UA_String_printf(char const * label, const UA_String* string);
  218. void UA_String_printx(char const * label, const UA_String* string);
  219. void UA_String_printx_hex(char const * label, const UA_String* string);
  220. /* ByteString - Part: 6, Chapter: 5.2.2.7, Page: 17 */
  221. UA_TYPE_METHOD_PROTOTYPES (UA_ByteString)
  222. UA_Int32 UA_ByteString_compare(const UA_ByteString *string1, const UA_ByteString *string2);
  223. //UA_Int32 UA_ByteString_copy(UA_ByteString const * src, UA_ByteString* dst);
  224. UA_Int32 UA_ByteString_newMembers(UA_ByteString* p, UA_Int32 length);
  225. extern UA_ByteString UA_ByteString_securityPoliceNone;
  226. /* LocalizedTextBinaryEncoding - Part: 6, Chapter: 5.2.2.14, Page: 21 */
  227. enum UA_LOCALIZEDTEXT_ENCODINGMASKTYPE_enum {
  228. UA_LOCALIZEDTEXT_ENCODINGMASKTYPE_LOCALE = 0x01,
  229. UA_LOCALIZEDTEXT_ENCODINGMASKTYPE_TEXT = 0x02
  230. };
  231. typedef struct UA_LocalizedText {
  232. UA_Byte encodingMask;
  233. UA_String locale;
  234. UA_String text;
  235. } UA_LocalizedText;
  236. UA_TYPE_METHOD_PROTOTYPES (UA_LocalizedText)
  237. UA_Int32 UA_LocalizedText_copycstring(char const * src, UA_LocalizedText* dst);
  238. void UA_ByteString_printf(char* label, const UA_ByteString* string);
  239. void UA_ByteString_printx(char* label, const UA_ByteString* string);
  240. void UA_ByteString_printx_hex(char* label, const UA_ByteString* string);
  241. /* GuidType - Part: 6, Chapter: 5.2.2.6 Page: 17 */
  242. typedef struct UA_Guid {
  243. UA_UInt32 data1;
  244. UA_UInt16 data2;
  245. UA_UInt16 data3;
  246. UA_Byte data4[8];
  247. } UA_Guid;
  248. UA_TYPE_METHOD_PROTOTYPES (UA_Guid)
  249. UA_Int32 UA_Guid_compare(const UA_Guid *g1, const UA_Guid *g2);
  250. /* DateTime - Part: 6, Chapter: 5.2.2.5, Page: 16 */
  251. typedef UA_Int64 UA_DateTime; //100 nanosecond resolution
  252. UA_TYPE_METHOD_PROTOTYPES (UA_DateTime)
  253. UA_DateTime UA_DateTime_now();
  254. typedef struct UA_DateTimeStruct {
  255. UA_Int16 nanoSec;
  256. UA_Int16 microSec;
  257. UA_Int16 milliSec;
  258. UA_Int16 sec;
  259. UA_Int16 min;
  260. UA_Int16 hour;
  261. UA_Int16 day;
  262. UA_Int16 mounth;
  263. UA_Int16 year;
  264. } UA_DateTimeStruct;
  265. UA_DateTimeStruct UA_DateTime_toStruct(UA_DateTime time);
  266. UA_Int32 UA_DateTime_toString(UA_DateTime time, UA_String* timeString);
  267. typedef struct UA_NodeId {
  268. UA_Byte encodingByte; //enum BID_NodeIdEncodingValuesType
  269. UA_UInt16 namespace;
  270. union {
  271. UA_UInt32 numeric;
  272. UA_String string;
  273. UA_Guid guid;
  274. UA_ByteString byteString;
  275. } identifier;
  276. } UA_NodeId;
  277. UA_TYPE_METHOD_PROTOTYPES (UA_NodeId)
  278. UA_Int32 UA_NodeId_compare(const UA_NodeId *n1, const UA_NodeId *n2);
  279. void UA_NodeId_printf(char* label, const UA_NodeId* node);
  280. UA_Boolean UA_NodeId_isNull(const UA_NodeId* p);
  281. /* XmlElement - Part: 6, Chapter: 5.2.2.8, Page: 17 */
  282. typedef struct UA_XmlElement {
  283. //TODO Überlegung ob man es direkt als ByteString speichert oder als String
  284. UA_ByteString data;
  285. } UA_XmlElement;
  286. UA_TYPE_METHOD_PROTOTYPES (UA_XmlElement)
  287. /* ExpandedNodeId - Part: 6, Chapter: 5.2.2.10, Page: 19 */
  288. // 62541-6 Chapter 5.2.2.9, Table 5
  289. #define UA_NODEIDTYPE_NAMESPACE_URI_FLAG 0x80
  290. #define UA_NODEIDTYPE_SERVERINDEX_FLAG 0x40
  291. #define UA_NODEIDTYPE_MASK (~(UA_NODEIDTYPE_NAMESPACE_URI_FLAG | UA_NODEIDTYPE_SERVERINDEX_FLAG))
  292. typedef struct UA_ExpandedNodeId {
  293. UA_NodeId nodeId;
  294. UA_String namespaceUri;
  295. UA_UInt32 serverIndex;
  296. } UA_ExpandedNodeId;
  297. UA_TYPE_METHOD_PROTOTYPES(UA_ExpandedNodeId)
  298. UA_Boolean UA_ExpandedNodeId_isNull(const UA_ExpandedNodeId* p);
  299. /* IdentifierType */
  300. typedef UA_Int32 UA_IdentifierType;
  301. UA_TYPE_METHOD_PROTOTYPES(UA_IdentifierType)
  302. /* ExtensionObjectBinaryEncoding - Part: 6, Chapter: 5.2.2.15, Page: 21 */
  303. typedef struct UA_ExtensionObject {
  304. UA_NodeId typeId;
  305. UA_Byte encoding; //Type of the enum UA_ExtensionObjectEncodingMaskType
  306. UA_ByteString body;
  307. } UA_ExtensionObject;
  308. UA_TYPE_METHOD_PROTOTYPES(UA_ExtensionObject)
  309. enum UA_ExtensionObject_EncodingMaskType_enum {
  310. UA_EXTENSIONOBJECT_ENCODINGMASK_NOBODYISENCODED = 0x00,
  311. UA_EXTENSIONOBJECT_ENCODINGMASK_BODYISBYTESTRING = 0x01,
  312. UA_EXTENSIONOBJECT_ENCODINGMASK_BODYISXML = 0x02
  313. };
  314. /* QualifiedNameBinaryEncoding - Part: 6, Chapter: 5.2.2.13, Page: 20 */
  315. typedef struct UA_QualifiedName {
  316. UA_UInt16 namespaceIndex;
  317. /*UA_UInt16 reserved; removed by Sten since unclear origin*/
  318. UA_String name;
  319. } UA_QualifiedName;
  320. UA_TYPE_METHOD_PROTOTYPES(UA_QualifiedName)
  321. /* DataValue - Part: 6, Chapter: 5.2.2.17, Page: 23 */
  322. typedef struct UA_DataValue {
  323. UA_Byte encodingMask;
  324. UA_Variant value;
  325. UA_StatusCode status;
  326. UA_DateTime sourceTimestamp;
  327. UA_Int16 sourcePicoseconds;
  328. UA_DateTime serverTimestamp;
  329. UA_Int16 serverPicoseconds;
  330. } UA_DataValue;
  331. UA_TYPE_METHOD_PROTOTYPES(UA_DataValue)
  332. /** 62541-6, §5.2.2.17, Table 15 */
  333. enum UA_DATAVALUE_ENCODINGMASKTYPE_enum {
  334. UA_DATAVALUE_ENCODINGMASK_VARIANT = 0x01,
  335. UA_DATAVALUE_ENCODINGMASK_STATUSCODE = 0x02,
  336. UA_DATAVALUE_ENCODINGMASK_SOURCETIMESTAMP = 0x04,
  337. UA_DATAVALUE_ENCODINGMASK_SERVERTIMESTAMP = 0x08,
  338. UA_DATAVALUE_ENCODINGMASK_SOURCEPICOSECONDS = 0x10,
  339. UA_DATAVALUE_ENCODINGMASK_SERVERPICOSECONDS = 0x20
  340. };
  341. /* DiagnosticInfo - Part: 6, Chapter: 5.2.2.12, Page: 20 */
  342. typedef struct UA_DiagnosticInfo {
  343. UA_Byte encodingMask; //Type of the Enum UA_DIAGNOSTICINFO_ENCODINGMASKTYPE
  344. UA_Int32 symbolicId;
  345. UA_Int32 namespaceUri;
  346. UA_Int32 localizedText;
  347. UA_Int32 locale;
  348. UA_String additionalInfo;
  349. UA_StatusCode innerStatusCode;
  350. struct UA_DiagnosticInfo* innerDiagnosticInfo;
  351. } UA_DiagnosticInfo;
  352. UA_TYPE_METHOD_PROTOTYPES(UA_DiagnosticInfo)
  353. enum UA_DIAGNOSTICINFO_ENCODINGMASKTYPE_enum {
  354. UA_DIAGNOSTICINFO_ENCODINGMASK_SYMBOLICID = 0x01,
  355. UA_DIAGNOSTICINFO_ENCODINGMASK_NAMESPACE = 0x02,
  356. UA_DIAGNOSTICINFO_ENCODINGMASK_LOCALIZEDTEXT = 0x04,
  357. UA_DIAGNOSTICINFO_ENCODINGMASK_LOCALE = 0x08,
  358. UA_DIAGNOSTICINFO_ENCODINGMASK_ADDITIONALINFO = 0x10,
  359. UA_DIAGNOSTICINFO_ENCODINGMASK_INNERSTATUSCODE = 0x20,
  360. UA_DIAGNOSTICINFO_ENCODINGMASK_INNERDIAGNOSTICINFO = 0x40
  361. };
  362. typedef void UA_InvalidType;
  363. UA_TYPE_METHOD_PROTOTYPES (UA_InvalidType)
  364. #endif /* OPCUA_BASICTYPES_H_ */