[zeromq-dev] Wrapping a C API in JNI?

Trevor Bernard trevor.bernard at gmail.com
Mon Nov 18 19:59:49 CET 2013

On Mon, Nov 18, 2013 at 2:45 PM, shancat <shannenlaptop at gmail.com> wrote:
> struct drops_t {
>     void *pipe;
>     zctx_t *ctx;
> };
> drops_t * drops_new (const char *directory);
> void drops_destroy (drops_t **self_p);
> The main problem is that I don't know the proper way to manage the drops_t
> struct

If you want to access it from Java, I would coerce the pointer to Java
long. Here is a simple project I wrote that might help you with JNI.


More information about the zeromq-dev mailing list