How to wrap callbacks in Java with SWIG
<p>Following up from this thread:
<a href="https://stackoverflow.com/questions/12210129/how-should-i-write-the-i-file-to-wrap-callbacks-in-java-or-c-sharp">How should I write the .i file to wrap callbacks in Java or C#</a></p>

<p>I realize that my question is similar but the answer to that question was tailored specific to <code>void*</code> user data argument, while my callback takes an enum and a <code>char*</code>.</p>

<p>This is how my callback is defined and used in my header file</p>

<pre><code>typedef void (*Callback_t)(const Log SomeLog, const char *Text);

virtual void SetCallback(const Callback_t SomeCallback, const Log SomeLog) = 0;
</code></pre>

<p>where <code>Log</code> is an enum.</p>

<p>I'm rather new to JNI and SWIG, so would need a specific guide on how to wrap this, similar to the one presented in the thread I mentioned above.</p>

<p>Thanks in advance.</p>