[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/LIBOPEN62541 PATCH v2 4/4] Add definition of UA_TYPES and UA_TRANSPORT arrays.



Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx>
---
 glue.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 glue.c

diff --git a/glue.c b/glue.c
new file mode 100644
index 0000000..439538f
--- /dev/null
+++ b/glue.c
@@ -0,0 +1,15 @@
+#include <open62541/types.h>
+#define UA_TYPES_COUNT 186
+#define UA_TRANSPORT_COUNT 12
+
+#ifdef __cplusplus
+UA_EXPORT UA_DataType UA_TYPES[UA_TYPES_COUNT];
+UA_EXPORT UA_DataType UA_TRANSPORT[UA_TRANSPORT_COUNT];
+#else
+UA_EXPORT const UA_DataType UA_TYPES[UA_TYPES_COUNT];
+UA_EXPORT const UA_DataType UA_TRANSPORT[UA_TRANSPORT_COUNT];
+#endif
+
+int __attribute__((weak)) gLowOPCUASend(void *data, unsigned char *buf, int 
size) {
+  return 0;
+}
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.