https://github.com/boly38/pocswig
Swig proof of concept
https://github.com/boly38/pocswig
c java structure swig
Last synced: 2 months ago
JSON representation
Swig proof of concept
- Host: GitHub
- URL: https://github.com/boly38/pocswig
- Owner: boly38
- License: mit
- Created: 2017-02-17T14:18:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T14:26:05.000Z (over 8 years ago)
- Last Synced: 2025-02-02T00:27:20.726Z (4 months ago)
- Topics: c, java, structure, swig
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pocswig
Swig proof of conceptYou would like to map a C code from your Java application and you have heard about Swig: this poc is for you!
This poc is a really simple example to understand how to manage (from Java application) a C array of complex structure.
proof of concept sample includes 4 functions:
* a function sumitems that accept an array of integer as parameter to calculate a sum (part of Swig3 documentation)
* a function populateSampleItem that just write on a given simple structure
* a function populateItems that update an existing array of struct
* a function buildItems that create from scratch a result array of structDetails: cf. http://curiositedevie.blogspot.fr/2017/02/howto-swig-c-to-java-functions-that.html