Removed a lot of generated files.
[yaz4j-moved-to-github.git] / libyaz4j / libyaz4j.i.orig
1 %javaconst(1);
2 %module yaz4jlib
3         %{
4                 #include <zoom.h>
5                 #include "zoom-extra.h"
6         %}
7         %include <zoom.h>
8         %include "cpointer.i"
9         %include "typemaps.i"
10         %include "arrays_java.i"
11         
12         %typemap(jni) struct ByteArrayStruct "jbyteArray"
13         %typemap(jtype) struct ByteArrayStruct "byte[]"
14         %typemap(jstype) struct ByteArrayStruct "byte[]"
15         %typemap(out) struct ByteArrayStruct {
16                 $result = SWIG_JavaArrayOutSChar(jenv, $1.data, $1.length);
17                 free((void*)$1.data);
18         }
19         %typemap(javaout) struct ByteArrayStruct { return $jnicall; }
20         
21         %include "zoom-extra.h"
22         %pointer_functions(int, intp);