open62541.i 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. %module open62541
  2. %{
  3. #include "ua_types.h"
  4. #include "ua_server.h"
  5. %}
  6. %define UA_TYPE_HANDLING_FUNCTIONS_SWIG(TYPE)
  7. TYPE * TYPE##_new(void);
  8. void TYPE##_init(TYPE * p);
  9. void TYPE##_delete(TYPE * p);
  10. void TYPE##_deleteMembers(TYPE * p);
  11. UA_StatusCode TYPE##_copy(const TYPE *src, TYPE *dst);
  12. %enddef
  13. %define UA_EXPORT
  14. %enddef
  15. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Boolean)
  16. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_SByte)
  17. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Byte)
  18. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Int16)
  19. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_UInt16)
  20. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Int32)
  21. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_UInt32)
  22. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Int64)
  23. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_UInt64)
  24. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Float)
  25. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Double)
  26. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_String)
  27. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_DateTime)
  28. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Guid)
  29. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_ByteString)
  30. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_XmlElement)
  31. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_NodeId)
  32. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_ExpandedNodeId)
  33. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_StatusCode)
  34. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_QualifiedName)
  35. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_LocalizedText)
  36. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_ExtensionObject)
  37. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_DataValue)
  38. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_Variant)
  39. UA_TYPE_HANDLING_FUNCTIONS_SWIG(UA_DiagnosticInfo)
  40. %include "ua_types.h"
  41. %include "ua_server.h"