Przeglądaj źródła

add UA_GUID_NULL

Julius Pfrommer 8 lat temu
rodzic
commit
cbe1851000
2 zmienionych plików z 3 dodań i 0 usunięć
  1. 2 0
      include/ua_types.h
  2. 1 0
      src/ua_types.c

+ 2 - 0
include/ua_types.h

@@ -274,6 +274,8 @@ typedef struct {
 
 UA_Boolean UA_EXPORT UA_Guid_equal(const UA_Guid *g1, const UA_Guid *g2);
 
+UA_EXPORT extern const UA_Guid UA_GUID_NULL;
+
 /**
  * ByteString
  * ^^^^^^^^^^

+ 1 - 0
src/ua_types.c

@@ -8,6 +8,7 @@
 /* static variables */
 UA_EXPORT const UA_String UA_STRING_NULL = {.length = 0, .data = NULL };
 UA_EXPORT const UA_ByteString UA_BYTESTRING_NULL = {.length = 0, .data = NULL };
+UA_EXPORT const UA_Guid UA_GUID_NULL = {.data1 = 0, .data2 = 0, .data3 = 0, .data4 = {0,0,0,0,0,0,0,0}};
 UA_EXPORT const UA_NodeId UA_NODEID_NULL = {0, UA_NODEIDTYPE_NUMERIC, {0}};
 UA_EXPORT const UA_ExpandedNodeId UA_EXPANDEDNODEID_NULL = {
     .nodeId = { .namespaceIndex = 0, .identifierType = UA_NODEIDTYPE_NUMERIC, .identifier.numeric = 0 },