open62541.i 642 B

123456789101112131415161718192021222324
  1. /*
  2. swig -python -I../src -I../examples/src open62541.i
  3. gcc -c open62541_wrap.c -I/usr/include/python2.7 -I../examples/src -I../src -fPIC
  4. ld -shared open62541_wrap.o ../lib/libopen62541.so ../examples/src/networklayer.so -o _open62541.so
  5. */
  6. %module open62541
  7. %{
  8. /* Includes the header in the wrapper code */
  9. #include "networklayer.h"
  10. #include "ua_application.h"
  11. %}
  12. /* Parse the header file to generate wrappers */
  13. typedef int UA_Int32;
  14. //%include "stdint.i"
  15. //%include "ua_types.h"
  16. %include "networklayer.h"
  17. %include "ua_application.h"
  18. extern NL_Description NL_Description_TcpBinary;
  19. extern Application appMockup;
  20. void appMockup_init();