a tool to call java code from c/c++ all it really needs to generate all the jni-wrappers is a simple xml file which indicates the class name and the member functions .. some thing as simple as ...
<package name="example2">
<object name="MyObjectWithArray">
<method name="getMyString" returnType="String[]">
</method>
<method name="getMyInts" returnType="int[]">
</method>
<method name="doNothingPleaseButDisplay" returnType="void">
<param type="int[]" name="plop" />
<param type="short[]" name="plop2" />
</method>
<method name="setMyStrings" returnType="void">
<param type="String[]" name="plop" />
</method>
<method name="dealingWithBooleans" returnType="boolean[]">
<param type="boolean[]" name="plop" />
</method>
</object>
</package>
given clojure's power of macros .. it should be possible to automate the creation of this xml for every clojure-structure and function by redefining the defstruct and defn and other similar macros .. I would like to give it a shot .. I am kind of new to all these things .. so would like to hear what the clojure community has to say about this...
Sunil.