|
@@ -293,9 +293,11 @@ UA_TYPE_PROTOTYPES(UA_InvalidType)
|
|
|
UA_Int32 UA_String_copycstring(char const *src, UA_String *dst);
|
|
|
UA_Int32 UA_String_copyprintf(char const *fmt, UA_String *dst, ...);
|
|
|
UA_Int32 UA_String_equal(const UA_String *string1, const UA_String *string2);
|
|
|
+#ifdef DEBUG
|
|
|
void UA_String_printf(char const *label, const UA_String *string);
|
|
|
void UA_String_printx(char const *label, const UA_String *string);
|
|
|
void UA_String_printx_hex(char const *label, const UA_String *string);
|
|
|
+#endif
|
|
|
|
|
|
/* DateTime */
|
|
|
UA_DateTime UA_DateTime_now();
|
|
@@ -319,13 +321,17 @@ UA_Int32 UA_Guid_equal(const UA_Guid *g1, const UA_Guid *g2);
|
|
|
/* ByteString */
|
|
|
UA_Int32 UA_ByteString_equal(const UA_ByteString *string1, const UA_ByteString *string2);
|
|
|
UA_Int32 UA_ByteString_newMembers(UA_ByteString *p, UA_Int32 length);
|
|
|
+#ifdef DEBUG
|
|
|
void UA_ByteString_printf(char *label, const UA_ByteString *string);
|
|
|
void UA_ByteString_printx(char *label, const UA_ByteString *string);
|
|
|
void UA_ByteString_printx_hex(char *label, const UA_ByteString *string);
|
|
|
+#endif
|
|
|
|
|
|
/* NodeId */
|
|
|
UA_Int32 UA_NodeId_equal(const UA_NodeId *n1, const UA_NodeId *n2);
|
|
|
+#ifdef DEBUG
|
|
|
void UA_NodeId_printf(char *label, const UA_NodeId *node);
|
|
|
+#endif
|
|
|
UA_Boolean UA_NodeId_isNull(const UA_NodeId *p);
|
|
|
UA_Boolean UA_NodeId_isBasicType(UA_NodeId const *id);
|
|
|
|
|
@@ -335,7 +341,9 @@ UA_Boolean UA_ExpandedNodeId_isNull(const UA_ExpandedNodeId *p);
|
|
|
/* QualifiedName */
|
|
|
#define UA_QUALIFIEDNAME_STATIC(STRING) \
|
|
|
(UA_QualifiedName){0, {sizeof(STRING)-1, (UA_Byte*)STRING}}
|
|
|
+#ifdef DEBUG
|
|
|
void UA_QualifiedName_printf(char const *label, const UA_QualifiedName *qn);
|
|
|
+#endif
|
|
|
|
|
|
/* LocalizedText */
|
|
|
#define UA_LOCALIZEDTEXT_STATIC(STRING) (UA_LocalizedText){{2, (UA_Byte*)"en"}, UA_STRING_STATIC(STRING)}
|
|
@@ -360,7 +368,9 @@ UA_Int32 UA_Array_delete(void *p, UA_Int32 noElements, UA_VTable_Entry *vt);
|
|
|
|
|
|
/* @brief The destination array is allocated according to noElements. */
|
|
|
UA_Int32 UA_Array_copy(const void *src, UA_Int32 noElements, UA_VTable_Entry *vt, void **dst);
|
|
|
+#ifdef DEBUG
|
|
|
void UA_Array_print(const void *p, UA_Int32 noElements, UA_VTable_Entry *vt, FILE *stream);
|
|
|
+#endif
|
|
|
|
|
|
/**********/
|
|
|
/* VTable */
|