+++ /dev/null
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.31
- *
- * This file is not intended to be easily readable and contains a number of
- * coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
- * ----------------------------------------------------------------------------- */
-
-
-#ifdef __cplusplus
-template<class T> class SwigValueWrapper {
- T *tt;
-public:
- SwigValueWrapper() : tt(0) { }
- SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
- SwigValueWrapper(const T& t) : tt(new T(t)) { }
- ~SwigValueWrapper() { delete tt; }
- SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
- operator T&() const { return *tt; }
- T *operator&() { return tt; }
-private:
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
-};
-#endif
-
-/* -----------------------------------------------------------------------------
- * This section contains generic SWIG labels for method/variable
- * declarations/attributes, and other compiler dependent labels.
- * ----------------------------------------------------------------------------- */
-
-/* template workaround for compilers that cannot correctly implement the C++ standard */
-#ifndef SWIGTEMPLATEDISAMBIGUATOR
-# if defined(__SUNPRO_CC)
-# if (__SUNPRO_CC <= 0x560)
-# define SWIGTEMPLATEDISAMBIGUATOR template
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-# else
-# define SWIGTEMPLATEDISAMBIGUATOR
-# endif
-#endif
-
-/* inline attribute */
-#ifndef SWIGINLINE
-# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
-# define SWIGINLINE inline
-# else
-# define SWIGINLINE
-# endif
-#endif
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-#ifndef SWIGUNUSEDPARM
-# ifdef __cplusplus
-# define SWIGUNUSEDPARM(p)
-# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-/* internal inline SWIG method */
-#ifndef SWIGINTERNINLINE
-# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
-#endif
-
-/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
-# endif
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-/* calling conventions for Windows */
-#ifndef SWIGSTDCALL
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# define SWIGSTDCALL __stdcall
-# else
-# define SWIGSTDCALL
-# endif
-#endif
-
-/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
-#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
-# define _CRT_SECURE_NO_DEPRECATE
-#endif
-
-
-/* Fix for jlong on some versions of gcc on Windows */
-#if defined(__GNUC__) && !defined(__INTELC__)
- typedef long long __int64;
-#endif
-
-/* Fix for jlong on 64-bit x86 Solaris */
-#if defined(__x86_64)
-# ifdef _LP64
-# undef _LP64
-# endif
-#endif
-
-#include <jni.h>
-#include <stdlib.h>
-#include <string.h>
-
-
-/* Support for throwing Java exceptions */
-typedef enum {
- SWIG_JavaOutOfMemoryError = 1,
- SWIG_JavaIOException,
- SWIG_JavaRuntimeException,
- SWIG_JavaIndexOutOfBoundsException,
- SWIG_JavaArithmeticException,
- SWIG_JavaIllegalArgumentException,
- SWIG_JavaNullPointerException,
- SWIG_JavaDirectorPureVirtual,
- SWIG_JavaUnknownError
-} SWIG_JavaExceptionCodes;
-
-typedef struct {
- SWIG_JavaExceptionCodes code;
- const char *java_exception;
-} SWIG_JavaExceptions_t;
-
-
-static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
- jclass excep;
- static const SWIG_JavaExceptions_t java_exceptions[] = {
- { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
- { SWIG_JavaIOException, "java/io/IOException" },
- { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
- { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
- { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
- { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
- { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
- { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
- { SWIG_JavaUnknownError, "java/lang/UnknownError" },
- { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } };
- const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
-
- while (except_ptr->code != code && except_ptr->code)
- except_ptr++;
-
- jenv->ExceptionClear();
- excep = jenv->FindClass(except_ptr->java_exception);
- if (excep)
- jenv->ThrowNew(excep, msg);
-}
-
-
-/* Contract support */
-
-#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
-
-
- #include "zoom-extra.h"
- #include <zoom.h>
-
-
-#if defined(SWIG_NOINCLUDE) || defined(SWIG_NOARRAYS)
-
-
-int SWIG_JavaArrayInBool (JNIEnv *jenv, jboolean **jarr, bool **carr, jbooleanArray input);
-void SWIG_JavaArrayArgoutBool (JNIEnv *jenv, jboolean *jarr, bool *carr, jbooleanArray input);
-jbooleanArray SWIG_JavaArrayOutBool (JNIEnv *jenv, bool *result, jsize sz);
-
-
-int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input);
-void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input);
-jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz);
-
-
-int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input);
-void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input);
-jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz);
-
-
-int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input);
-void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input);
-jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz);
-
-
-int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input);
-void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input);
-jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz);
-
-
-int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input);
-void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input);
-jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz);
-
-
-int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input);
-void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input);
-jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz);
-
-
-int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input);
-void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input);
-jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz);
-
-
-int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input);
-void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input);
-jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz);
-
-
-int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, jlong **carr, jlongArray input);
-void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, jlong *carr, jlongArray input);
-jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, jlong *result, jsize sz);
-
-
-int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input);
-void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input);
-jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz);
-
-
-int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input);
-void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input);
-jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz);
-
-
-#else
-
-
-/* bool[] support */
-int SWIG_JavaArrayInBool (JNIEnv *jenv, jboolean **jarr, bool **carr, jbooleanArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetBooleanArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new bool[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = ((*jarr)[i] != 0);
- return 1;
-}
-
-void SWIG_JavaArrayArgoutBool (JNIEnv *jenv, jboolean *jarr, bool *carr, jbooleanArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jboolean)carr[i];
- jenv->ReleaseBooleanArrayElements(input, jarr, 0);
-}
-
-jbooleanArray SWIG_JavaArrayOutBool (JNIEnv *jenv, bool *result, jsize sz) {
- jboolean *arr;
- int i;
- jbooleanArray jresult = jenv->NewBooleanArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetBooleanArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jboolean)result[i];
- jenv->ReleaseBooleanArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* signed char[] support */
-int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetByteArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new signed char[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (signed char)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jbyte)carr[i];
- jenv->ReleaseByteArrayElements(input, jarr, 0);
-}
-
-jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz) {
- jbyte *arr;
- int i;
- jbyteArray jresult = jenv->NewByteArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetByteArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jbyte)result[i];
- jenv->ReleaseByteArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* unsigned char[] support */
-int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetShortArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new unsigned char[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (unsigned char)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jshort)carr[i];
- jenv->ReleaseShortArrayElements(input, jarr, 0);
-}
-
-jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz) {
- jshort *arr;
- int i;
- jshortArray jresult = jenv->NewShortArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetShortArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jshort)result[i];
- jenv->ReleaseShortArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* short[] support */
-int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetShortArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new short[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (short)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jshort)carr[i];
- jenv->ReleaseShortArrayElements(input, jarr, 0);
-}
-
-jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz) {
- jshort *arr;
- int i;
- jshortArray jresult = jenv->NewShortArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetShortArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jshort)result[i];
- jenv->ReleaseShortArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* unsigned short[] support */
-int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetIntArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new unsigned short[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (unsigned short)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jint)carr[i];
- jenv->ReleaseIntArrayElements(input, jarr, 0);
-}
-
-jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz) {
- jint *arr;
- int i;
- jintArray jresult = jenv->NewIntArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetIntArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jint)result[i];
- jenv->ReleaseIntArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* int[] support */
-int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetIntArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new int[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (int)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jint)carr[i];
- jenv->ReleaseIntArrayElements(input, jarr, 0);
-}
-
-jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz) {
- jint *arr;
- int i;
- jintArray jresult = jenv->NewIntArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetIntArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jint)result[i];
- jenv->ReleaseIntArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* unsigned int[] support */
-int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetLongArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new unsigned int[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (unsigned int)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jlong)carr[i];
- jenv->ReleaseLongArrayElements(input, jarr, 0);
-}
-
-jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz) {
- jlong *arr;
- int i;
- jlongArray jresult = jenv->NewLongArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetLongArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jlong)result[i];
- jenv->ReleaseLongArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* long[] support */
-int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetIntArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new long[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (long)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jint)carr[i];
- jenv->ReleaseIntArrayElements(input, jarr, 0);
-}
-
-jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz) {
- jint *arr;
- int i;
- jintArray jresult = jenv->NewIntArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetIntArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jint)result[i];
- jenv->ReleaseIntArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* unsigned long[] support */
-int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetLongArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new unsigned long[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (unsigned long)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jlong)carr[i];
- jenv->ReleaseLongArrayElements(input, jarr, 0);
-}
-
-jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz) {
- jlong *arr;
- int i;
- jlongArray jresult = jenv->NewLongArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetLongArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jlong)result[i];
- jenv->ReleaseLongArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* jlong[] support */
-int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, jlong **carr, jlongArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetLongArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new jlong[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (jlong)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, jlong *carr, jlongArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jlong)carr[i];
- jenv->ReleaseLongArrayElements(input, jarr, 0);
-}
-
-jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, jlong *result, jsize sz) {
- jlong *arr;
- int i;
- jlongArray jresult = jenv->NewLongArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetLongArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jlong)result[i];
- jenv->ReleaseLongArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* float[] support */
-int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetFloatArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new float[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (float)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jfloat)carr[i];
- jenv->ReleaseFloatArrayElements(input, jarr, 0);
-}
-
-jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz) {
- jfloat *arr;
- int i;
- jfloatArray jresult = jenv->NewFloatArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetFloatArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jfloat)result[i];
- jenv->ReleaseFloatArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-/* double[] support */
-int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input) {
- int i;
- jsize sz;
- if (!input) {
- SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
- return 0;
- }
- sz = jenv->GetArrayLength(input);
- *jarr = jenv->GetDoubleArrayElements(input, 0);
- if (!*jarr)
- return 0;
- *carr = new double[sz];
- if (!*carr) {
- SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
- return 0;
- }
- for (i=0; i<sz; i++)
- (*carr)[i] = (double)(*jarr)[i];
- return 1;
-}
-
-void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input) {
- int i;
- jsize sz = jenv->GetArrayLength(input);
- for (i=0; i<sz; i++)
- jarr[i] = (jdouble)carr[i];
- jenv->ReleaseDoubleArrayElements(input, jarr, 0);
-}
-
-jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz) {
- jdouble *arr;
- int i;
- jdoubleArray jresult = jenv->NewDoubleArray(sz);
- if (!jresult)
- return NULL;
- arr = jenv->GetDoubleArrayElements(jresult, 0);
- if (!arr)
- return NULL;
- for (i=0; i<sz; i++)
- arr[i] = (jdouble)result[i];
- jenv->ReleaseDoubleArrayElements(jresult, arr, 0);
- return jresult;
-}
-
-
-#endif
-
-
-static int *new_intp() {
- return new int();
-}
-
-static int *copy_intp(int value) {
- return new int(value);
-}
-
-static void delete_intp(int *self) {
- if (self) delete self;
-}
-
-static void intp_assign(int *self, int value) {
- *self = value;
-}
-
-static int intp_value(int *self) {
- return *self;
-}
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_new_1intp(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- int *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- result = (int *)new_intp();
- *(int **)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_copy_1intp(JNIEnv *jenv, jclass jcls, jint jarg1) {
- jlong jresult = 0 ;
- int arg1 ;
- int *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = (int)jarg1;
- result = (int *)copy_intp(arg1);
- *(int **)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_delete_1intp(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- int *arg1 = (int *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(int **)&jarg1;
- delete_intp(arg1);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_intp_1assign(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
- int *arg1 = (int *) 0 ;
- int arg2 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(int **)&jarg1;
- arg2 = (int)jarg2;
- intp_assign(arg1,arg2);
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_intp_1value(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jint jresult = 0 ;
- int *arg1 = (int *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(int **)&jarg1;
- result = (int)intp_value(arg1);
- jresult = (jint)result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_CharStarByteArray_1data_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- CharStarByteArray *arg1 = (CharStarByteArray *) 0 ;
- char *arg2 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(CharStarByteArray **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- {
- if (arg1->data) delete [] arg1->data;
- if (arg2) {
- arg1->data = (char *) (new char[strlen((const char *)arg2)+1]);
- strcpy((char *)arg1->data, (const char *)arg2);
- } else {
- arg1->data = 0;
- }
- }
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_CharStarByteArray_1data_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- CharStarByteArray *arg1 = (CharStarByteArray *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(CharStarByteArray **)&jarg1;
- result = (char *) ((arg1)->data);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_CharStarByteArray_1length_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- CharStarByteArray *arg1 = (CharStarByteArray *) 0 ;
- long arg2 ;
-
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(CharStarByteArray **)&jarg1;
- arg2 = (long)jarg2;
- if (arg1) (arg1)->length = arg2;
-
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_CharStarByteArray_1length_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- CharStarByteArray *arg1 = (CharStarByteArray *) 0 ;
- long result;
-
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(CharStarByteArray **)&jarg1;
- result = (long) ((arg1)->length);
- jresult = (jint)result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_new_1CharStarByteArray(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- CharStarByteArray *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- result = (CharStarByteArray *)new CharStarByteArray();
- *(CharStarByteArray **)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_delete_1CharStarByteArray(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- CharStarByteArray *arg1 = (CharStarByteArray *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(CharStarByteArray **)&jarg1;
- delete arg1;
-
-}
-
-
-SWIGEXPORT jbyteArray JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1record_1get_1bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
- jbyteArray jresult = 0 ;
- ZOOM_record arg1 = (ZOOM_record) 0 ;
- char *arg2 = (char *) 0 ;
- int *arg3 = (int *) 0 ;
- CharStarByteArray result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_record *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = *(int **)&jarg3;
- result = ZOOM_record_get_bytes(arg1,(char const *)arg2,arg3);
- {
- jresult = SWIG_JavaArrayOutSchar(jenv, (signed char*) (&result)->data, (&result)->length);
- free((void*)(&result)->data);
- }
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1new(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
- jlong jresult = 0 ;
- char *arg1 = (char *) 0 ;
- int arg2 ;
- ZOOM_connection result;
-
- (void)jenv;
- (void)jcls;
- arg1 = 0;
- if (jarg1) {
- arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0);
- if (!arg1) return 0;
- }
- arg2 = (int)jarg2;
- result = (ZOOM_connection)ZOOM_connection_new((char const *)arg1,arg2);
- *(ZOOM_connection *)&jresult = result;
- if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1);
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1create(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jlong jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- ZOOM_connection result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- result = (ZOOM_connection)ZOOM_connection_create(arg1);
- *(ZOOM_connection *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1connect(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) {
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = (int)jarg3;
- ZOOM_connection_connect(arg1,(char const *)arg2,arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- ZOOM_connection_destroy(arg1);
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1option_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jstring jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (char *)ZOOM_connection_option_get(arg1,(char const *)arg2);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1option_1getl(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
- jstring jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- int *arg3 = (int *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = *(int **)&jarg3;
- result = (char *)ZOOM_connection_option_getl(arg1,(char const *)arg2,arg3);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1option_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- ZOOM_connection_option_set(arg1,(char const *)arg2,(char const *)arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1option_1setl(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4) {
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- int arg4 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- arg4 = (int)jarg4;
- ZOOM_connection_option_setl(arg1,(char const *)arg2,(char const *)arg3,arg4);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1error(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
- jint jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char **arg2 = (char **) 0 ;
- char **arg3 = (char **) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = *(char ***)&jarg2;
- arg3 = *(char ***)&jarg3;
- result = (int)ZOOM_connection_error(arg1,(char const **)arg2,(char const **)arg3);
- jresult = (jint)result;
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1error_1x(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) {
- jint jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char **arg2 = (char **) 0 ;
- char **arg3 = (char **) 0 ;
- char **arg4 = (char **) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = *(char ***)&jarg2;
- arg3 = *(char ***)&jarg3;
- arg4 = *(char ***)&jarg4;
- result = (int)ZOOM_connection_error_x(arg1,(char const **)arg2,(char const **)arg3,(char const **)arg4);
- jresult = (jint)result;
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1errcode(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jint jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- result = (int)ZOOM_connection_errcode(arg1);
- jresult = (jint)result;
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1errmsg(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jstring jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- result = (char *)ZOOM_connection_errmsg(arg1);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1addinfo(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jstring jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- result = (char *)ZOOM_connection_addinfo(arg1);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1diagset(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jstring jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- result = (char *)ZOOM_connection_diagset(arg1);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1diag_1str(JNIEnv *jenv, jclass jcls, jint jarg1) {
- jstring jresult = 0 ;
- int arg1 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = (int)jarg1;
- result = (char *)ZOOM_diag_str(arg1);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1last_1event(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jint jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- result = (int)ZOOM_connection_last_event(arg1);
- jresult = (jint)result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1search(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
- jlong jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- ZOOM_query arg2 = (ZOOM_query) 0 ;
- ZOOM_resultset result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = *(ZOOM_query *)&jarg2;
- result = (ZOOM_resultset)ZOOM_connection_search(arg1,arg2);
- *(ZOOM_resultset *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1search_1pqf(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jlong jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- ZOOM_resultset result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (ZOOM_resultset)ZOOM_connection_search_pqf(arg1,(char const *)arg2);
- *(ZOOM_resultset *)&jresult = result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- ZOOM_resultset_destroy(arg1);
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1option_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jstring jresult = 0 ;
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- char *arg2 = (char *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (char *)ZOOM_resultset_option_get(arg1,(char const *)arg2);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1option_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- ZOOM_resultset_option_set(arg1,(char const *)arg2,(char const *)arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1size(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jlong jresult = 0 ;
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- size_t result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- result = ZOOM_resultset_size(arg1);
- jresult = (jlong)result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1records(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) {
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- ZOOM_record *arg2 = (ZOOM_record *) 0 ;
- size_t arg3 ;
- size_t arg4 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = *(ZOOM_record **)&jarg2;
- arg3 = (size_t)jarg3;
- arg4 = (size_t)jarg4;
- ZOOM_resultset_records(arg1,arg2,arg3,arg4);
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1record(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
- jlong jresult = 0 ;
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- size_t arg2 ;
- ZOOM_record result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = (size_t)jarg2;
- result = (ZOOM_record)ZOOM_resultset_record(arg1,arg2);
- *(ZOOM_record *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1record_1immediate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
- jlong jresult = 0 ;
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- size_t arg2 ;
- ZOOM_record result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = (size_t)jarg2;
- result = (ZOOM_record)ZOOM_resultset_record_immediate(arg1,arg2);
- *(ZOOM_record *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1cache_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- ZOOM_resultset_cache_reset(arg1);
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1record_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
- jstring jresult = 0 ;
- ZOOM_record arg1 = (ZOOM_record) 0 ;
- char *arg2 = (char *) 0 ;
- int *arg3 = (int *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_record *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = *(int **)&jarg3;
- result = (char *)ZOOM_record_get(arg1,(char const *)arg2,arg3);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1record_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_record arg1 = (ZOOM_record) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_record *)&jarg1;
- ZOOM_record_destroy(arg1);
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1record_1clone(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jlong jresult = 0 ;
- ZOOM_record arg1 = (ZOOM_record) 0 ;
- ZOOM_record result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_record *)&jarg1;
- result = (ZOOM_record)ZOOM_record_clone(arg1);
- *(ZOOM_record *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1create(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- ZOOM_query result;
-
- (void)jenv;
- (void)jcls;
- result = (ZOOM_query)ZOOM_query_create();
- *(ZOOM_query *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_query arg1 = (ZOOM_query) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_query *)&jarg1;
- ZOOM_query_destroy(arg1);
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1cql(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jint jresult = 0 ;
- ZOOM_query arg1 = (ZOOM_query) 0 ;
- char *arg2 = (char *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_query *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (int)ZOOM_query_cql(arg1,(char const *)arg2);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1cql2rpn(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
- jint jresult = 0 ;
- ZOOM_query arg1 = (ZOOM_query) 0 ;
- char *arg2 = (char *) 0 ;
- ZOOM_connection arg3 = (ZOOM_connection) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_query *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = *(ZOOM_connection *)&jarg3;
- result = (int)ZOOM_query_cql2rpn(arg1,(char const *)arg2,arg3);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1ccl2rpn(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jlong jarg4, jlong jarg5, jlong jarg6) {
- jint jresult = 0 ;
- ZOOM_query arg1 = (ZOOM_query) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- int *arg4 = (int *) 0 ;
- char **arg5 = (char **) 0 ;
- int *arg6 = (int *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_query *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return 0;
- }
- arg4 = *(int **)&jarg4;
- arg5 = *(char ***)&jarg5;
- arg6 = *(int **)&jarg6;
- result = (int)ZOOM_query_ccl2rpn(arg1,(char const *)arg2,(char const *)arg3,arg4,(char const **)arg5,arg6);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1prefix(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jint jresult = 0 ;
- ZOOM_query arg1 = (ZOOM_query) 0 ;
- char *arg2 = (char *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_query *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (int)ZOOM_query_prefix(arg1,(char const *)arg2);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1query_1sortby(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jint jresult = 0 ;
- ZOOM_query arg1 = (ZOOM_query) 0 ;
- char *arg2 = (char *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_query *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (int)ZOOM_query_sortby(arg1,(char const *)arg2);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1scan(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jlong jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- char *arg2 = (char *) 0 ;
- ZOOM_scanset result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (ZOOM_scanset)ZOOM_connection_scan(arg1,(char const *)arg2);
- *(ZOOM_scanset *)&jresult = result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1scan1(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
- jlong jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- ZOOM_query arg2 = (ZOOM_query) 0 ;
- ZOOM_scanset result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = *(ZOOM_query *)&jarg2;
- result = (ZOOM_scanset)ZOOM_connection_scan1(arg1,arg2);
- *(ZOOM_scanset *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1scanset_1term(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) {
- jstring jresult = 0 ;
- ZOOM_scanset arg1 = (ZOOM_scanset) 0 ;
- size_t arg2 ;
- int *arg3 = (int *) 0 ;
- int *arg4 = (int *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_scanset *)&jarg1;
- arg2 = (size_t)jarg2;
- arg3 = *(int **)&jarg3;
- arg4 = *(int **)&jarg4;
- result = (char *)ZOOM_scanset_term(arg1,arg2,arg3,arg4);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1scanset_1display_1term(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) {
- jstring jresult = 0 ;
- ZOOM_scanset arg1 = (ZOOM_scanset) 0 ;
- size_t arg2 ;
- int *arg3 = (int *) 0 ;
- int *arg4 = (int *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_scanset *)&jarg1;
- arg2 = (size_t)jarg2;
- arg3 = *(int **)&jarg3;
- arg4 = *(int **)&jarg4;
- result = (char *)ZOOM_scanset_display_term(arg1,arg2,arg3,arg4);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1scanset_1size(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jlong jresult = 0 ;
- ZOOM_scanset arg1 = (ZOOM_scanset) 0 ;
- size_t result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_scanset *)&jarg1;
- result = ZOOM_scanset_size(arg1);
- jresult = (jlong)result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1scanset_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_scanset arg1 = (ZOOM_scanset) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_scanset *)&jarg1;
- ZOOM_scanset_destroy(arg1);
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1scanset_1option_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jstring jresult = 0 ;
- ZOOM_scanset arg1 = (ZOOM_scanset) 0 ;
- char *arg2 = (char *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_scanset *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (char *)ZOOM_scanset_option_get(arg1,(char const *)arg2);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1scanset_1option_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- ZOOM_scanset arg1 = (ZOOM_scanset) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_scanset *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- ZOOM_scanset_option_set(arg1,(char const *)arg2,(char const *)arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1connection_1package(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
- jlong jresult = 0 ;
- ZOOM_connection arg1 = (ZOOM_connection) 0 ;
- ZOOM_options arg2 = (ZOOM_options) 0 ;
- ZOOM_package result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_connection *)&jarg1;
- arg2 = *(ZOOM_options *)&jarg2;
- result = (ZOOM_package)ZOOM_connection_package(arg1,arg2);
- *(ZOOM_package *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1package_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_package arg1 = (ZOOM_package) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_package *)&jarg1;
- ZOOM_package_destroy(arg1);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1package_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- ZOOM_package arg1 = (ZOOM_package) 0 ;
- char *arg2 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_package *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- ZOOM_package_send(arg1,(char const *)arg2);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1package_1option_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jstring jresult = 0 ;
- ZOOM_package arg1 = (ZOOM_package) 0 ;
- char *arg2 = (char *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_package *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (char *)ZOOM_package_option_get(arg1,(char const *)arg2);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1package_1option_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- ZOOM_package arg1 = (ZOOM_package) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_package *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- ZOOM_package_option_set(arg1,(char const *)arg2,(char const *)arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1sort(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- ZOOM_resultset_sort(arg1,(char const *)arg2,(char const *)arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1resultset_1sort1(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- jint jresult = 0 ;
- ZOOM_resultset arg1 = (ZOOM_resultset) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_resultset *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return 0;
- }
- result = (int)ZOOM_resultset_sort1(arg1,(char const *)arg2,(char const *)arg3);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1set_1callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
- jlong jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- ZOOM_options_callback arg2 = (ZOOM_options_callback) 0 ;
- void *arg3 = (void *) 0 ;
- ZOOM_options_callback result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = *(ZOOM_options_callback *)&jarg2;
- arg3 = *(void **)&jarg3;
- result = (ZOOM_options_callback)ZOOM_options_set_callback(arg1,(char const *(*)(void *,char const *))arg2,arg3);
- *(ZOOM_options_callback *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1create(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- ZOOM_options result;
-
- (void)jenv;
- (void)jcls;
- result = (ZOOM_options)ZOOM_options_create();
- *(ZOOM_options *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1create_1with_1parent(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jlong jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- ZOOM_options result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- result = (ZOOM_options)ZOOM_options_create_with_parent(arg1);
- *(ZOOM_options *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jlong JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1create_1with_1parent2(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
- jlong jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- ZOOM_options arg2 = (ZOOM_options) 0 ;
- ZOOM_options result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = *(ZOOM_options *)&jarg2;
- result = (ZOOM_options)ZOOM_options_create_with_parent2(arg1,arg2);
- *(ZOOM_options *)&jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
- jstring jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- result = (char *)ZOOM_options_get(arg1,(char const *)arg2);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jstring JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1getl(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
- jstring jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- int *arg3 = (int *) 0 ;
- char *result = 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = *(int **)&jarg3;
- result = (char *)ZOOM_options_getl(arg1,(char const *)arg2,arg3);
- if(result) jresult = jenv->NewStringUTF((const char *)result);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- ZOOM_options_set(arg1,(char const *)arg2,(char const *)arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1setl(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4) {
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- char *arg3 = (char *) 0 ;
- int arg4 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = 0;
- if (jarg3) {
- arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0);
- if (!arg3) return ;
- }
- arg4 = (int)jarg4;
- ZOOM_options_setl(arg1,(char const *)arg2,(char const *)arg3,arg4);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3);
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- ZOOM_options arg1 = (ZOOM_options) 0 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- ZOOM_options_destroy(arg1);
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1get_1bool(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) {
- jint jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = (int)jarg3;
- result = (int)ZOOM_options_get_bool(arg1,(char const *)arg2,arg3);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1get_1int(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) {
- jint jresult = 0 ;
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return 0;
- }
- arg3 = (int)jarg3;
- result = (int)ZOOM_options_get_int(arg1,(char const *)arg2,arg3);
- jresult = (jint)result;
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
- return jresult;
-}
-
-
-SWIGEXPORT void JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1options_1set_1int(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) {
- ZOOM_options arg1 = (ZOOM_options) 0 ;
- char *arg2 = (char *) 0 ;
- int arg3 ;
-
- (void)jenv;
- (void)jcls;
- arg1 = *(ZOOM_options *)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0);
- if (!arg2) return ;
- }
- arg3 = (int)jarg3;
- ZOOM_options_set_int(arg1,(char const *)arg2,arg3);
- if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2);
-}
-
-
-SWIGEXPORT jint JNICALL Java_org_yaz4j_jni_yaz4jlibJNI_ZOOM_1event(JNIEnv *jenv, jclass jcls, jint jarg1, jlong jarg2) {
- jint jresult = 0 ;
- int arg1 ;
- ZOOM_connection *arg2 = (ZOOM_connection *) 0 ;
- int result;
-
- (void)jenv;
- (void)jcls;
- arg1 = (int)jarg1;
- arg2 = *(ZOOM_connection **)&jarg2;
- result = (int)ZOOM_event(arg1,arg2);
- jresult = (jint)result;
- return jresult;
-}
-
-
-#ifdef __cplusplus
-}
-#endif
-
+++ /dev/null
-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.31
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package org.yaz4j.jni;
-
-public class yaz4jlib implements yaz4jlibConstants {
- public static SWIGTYPE_p_int new_intp() {
- long cPtr = yaz4jlibJNI.new_intp();
- return (cPtr == 0) ? null : new SWIGTYPE_p_int(cPtr, false);
- }
-
- public static SWIGTYPE_p_int copy_intp(int value) {
- long cPtr = yaz4jlibJNI.copy_intp(value);
- return (cPtr == 0) ? null : new SWIGTYPE_p_int(cPtr, false);
- }
-
- public static void delete_intp(SWIGTYPE_p_int self) {
- yaz4jlibJNI.delete_intp(SWIGTYPE_p_int.getCPtr(self));
- }
-
- public static void intp_assign(SWIGTYPE_p_int self, int value) {
- yaz4jlibJNI.intp_assign(SWIGTYPE_p_int.getCPtr(self), value);
- }
-
- public static int intp_value(SWIGTYPE_p_int self) {
- return yaz4jlibJNI.intp_value(SWIGTYPE_p_int.getCPtr(self));
- }
-
- public static byte[] ZOOM_record_get_bytes(SWIGTYPE_p_ZOOM_record_p rec, String type, SWIGTYPE_p_int len) { return yaz4jlibJNI.ZOOM_record_get_bytes(SWIGTYPE_p_ZOOM_record_p.getCPtr(rec), type, SWIGTYPE_p_int.getCPtr(len)); }
-
- public static SWIGTYPE_p_ZOOM_connection_p ZOOM_connection_new(String host, int portnum) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_new(host, portnum);
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_connection_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_connection_p ZOOM_connection_create(SWIGTYPE_p_ZOOM_options_p options) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_create(SWIGTYPE_p_ZOOM_options_p.getCPtr(options));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_connection_p(cPtr, false);
- }
-
- public static void ZOOM_connection_connect(SWIGTYPE_p_ZOOM_connection_p c, String host, int portnum) {
- yaz4jlibJNI.ZOOM_connection_connect(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), host, portnum);
- }
-
- public static void ZOOM_connection_destroy(SWIGTYPE_p_ZOOM_connection_p c) {
- yaz4jlibJNI.ZOOM_connection_destroy(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c));
- }
-
- public static String ZOOM_connection_option_get(SWIGTYPE_p_ZOOM_connection_p c, String key) {
- return yaz4jlibJNI.ZOOM_connection_option_get(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), key);
- }
-
- public static String ZOOM_connection_option_getl(SWIGTYPE_p_ZOOM_connection_p c, String key, SWIGTYPE_p_int lenp) {
- return yaz4jlibJNI.ZOOM_connection_option_getl(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), key, SWIGTYPE_p_int.getCPtr(lenp));
- }
-
- public static void ZOOM_connection_option_set(SWIGTYPE_p_ZOOM_connection_p c, String key, String val) {
- yaz4jlibJNI.ZOOM_connection_option_set(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), key, val);
- }
-
- public static void ZOOM_connection_option_setl(SWIGTYPE_p_ZOOM_connection_p c, String key, String val, int len) {
- yaz4jlibJNI.ZOOM_connection_option_setl(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), key, val, len);
- }
-
- public static int ZOOM_connection_error(SWIGTYPE_p_ZOOM_connection_p c, SWIGTYPE_p_p_char cp, SWIGTYPE_p_p_char addinfo) {
- return yaz4jlibJNI.ZOOM_connection_error(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), SWIGTYPE_p_p_char.getCPtr(cp), SWIGTYPE_p_p_char.getCPtr(addinfo));
- }
-
- public static int ZOOM_connection_error_x(SWIGTYPE_p_ZOOM_connection_p c, SWIGTYPE_p_p_char cp, SWIGTYPE_p_p_char addinfo, SWIGTYPE_p_p_char diagset) {
- return yaz4jlibJNI.ZOOM_connection_error_x(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), SWIGTYPE_p_p_char.getCPtr(cp), SWIGTYPE_p_p_char.getCPtr(addinfo), SWIGTYPE_p_p_char.getCPtr(diagset));
- }
-
- public static int ZOOM_connection_errcode(SWIGTYPE_p_ZOOM_connection_p c) {
- return yaz4jlibJNI.ZOOM_connection_errcode(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c));
- }
-
- public static String ZOOM_connection_errmsg(SWIGTYPE_p_ZOOM_connection_p c) {
- return yaz4jlibJNI.ZOOM_connection_errmsg(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c));
- }
-
- public static String ZOOM_connection_addinfo(SWIGTYPE_p_ZOOM_connection_p c) {
- return yaz4jlibJNI.ZOOM_connection_addinfo(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c));
- }
-
- public static String ZOOM_connection_diagset(SWIGTYPE_p_ZOOM_connection_p c) {
- return yaz4jlibJNI.ZOOM_connection_diagset(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c));
- }
-
- public static String ZOOM_diag_str(int error) {
- return yaz4jlibJNI.ZOOM_diag_str(error);
- }
-
- public static int ZOOM_connection_last_event(SWIGTYPE_p_ZOOM_connection_p cs) {
- return yaz4jlibJNI.ZOOM_connection_last_event(SWIGTYPE_p_ZOOM_connection_p.getCPtr(cs));
- }
-
- public static SWIGTYPE_p_ZOOM_resultset_p ZOOM_connection_search(SWIGTYPE_p_ZOOM_connection_p arg0, SWIGTYPE_p_ZOOM_query_p q) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_search(SWIGTYPE_p_ZOOM_connection_p.getCPtr(arg0), SWIGTYPE_p_ZOOM_query_p.getCPtr(q));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_resultset_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_resultset_p ZOOM_connection_search_pqf(SWIGTYPE_p_ZOOM_connection_p c, String q) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_search_pqf(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), q);
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_resultset_p(cPtr, false);
- }
-
- public static void ZOOM_resultset_destroy(SWIGTYPE_p_ZOOM_resultset_p r) {
- yaz4jlibJNI.ZOOM_resultset_destroy(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r));
- }
-
- public static String ZOOM_resultset_option_get(SWIGTYPE_p_ZOOM_resultset_p r, String key) {
- return yaz4jlibJNI.ZOOM_resultset_option_get(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r), key);
- }
-
- public static void ZOOM_resultset_option_set(SWIGTYPE_p_ZOOM_resultset_p r, String key, String val) {
- yaz4jlibJNI.ZOOM_resultset_option_set(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r), key, val);
- }
-
- public static long ZOOM_resultset_size(SWIGTYPE_p_ZOOM_resultset_p r) {
- return yaz4jlibJNI.ZOOM_resultset_size(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r));
- }
-
- public static void ZOOM_resultset_records(SWIGTYPE_p_ZOOM_resultset_p r, SWIGTYPE_p_p_ZOOM_record_p recs, long start, long count) {
- yaz4jlibJNI.ZOOM_resultset_records(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r), SWIGTYPE_p_p_ZOOM_record_p.getCPtr(recs), start, count);
- }
-
- public static SWIGTYPE_p_ZOOM_record_p ZOOM_resultset_record(SWIGTYPE_p_ZOOM_resultset_p s, long pos) {
- long cPtr = yaz4jlibJNI.ZOOM_resultset_record(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(s), pos);
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_record_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_record_p ZOOM_resultset_record_immediate(SWIGTYPE_p_ZOOM_resultset_p s, long pos) {
- long cPtr = yaz4jlibJNI.ZOOM_resultset_record_immediate(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(s), pos);
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_record_p(cPtr, false);
- }
-
- public static void ZOOM_resultset_cache_reset(SWIGTYPE_p_ZOOM_resultset_p r) {
- yaz4jlibJNI.ZOOM_resultset_cache_reset(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r));
- }
-
- public static String ZOOM_record_get(SWIGTYPE_p_ZOOM_record_p rec, String type, SWIGTYPE_p_int len) {
- return yaz4jlibJNI.ZOOM_record_get(SWIGTYPE_p_ZOOM_record_p.getCPtr(rec), type, SWIGTYPE_p_int.getCPtr(len));
- }
-
- public static void ZOOM_record_destroy(SWIGTYPE_p_ZOOM_record_p rec) {
- yaz4jlibJNI.ZOOM_record_destroy(SWIGTYPE_p_ZOOM_record_p.getCPtr(rec));
- }
-
- public static SWIGTYPE_p_ZOOM_record_p ZOOM_record_clone(SWIGTYPE_p_ZOOM_record_p srec) {
- long cPtr = yaz4jlibJNI.ZOOM_record_clone(SWIGTYPE_p_ZOOM_record_p.getCPtr(srec));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_record_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_query_p ZOOM_query_create() {
- long cPtr = yaz4jlibJNI.ZOOM_query_create();
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_query_p(cPtr, false);
- }
-
- public static void ZOOM_query_destroy(SWIGTYPE_p_ZOOM_query_p s) {
- yaz4jlibJNI.ZOOM_query_destroy(SWIGTYPE_p_ZOOM_query_p.getCPtr(s));
- }
-
- public static int ZOOM_query_cql(SWIGTYPE_p_ZOOM_query_p s, String str) {
- return yaz4jlibJNI.ZOOM_query_cql(SWIGTYPE_p_ZOOM_query_p.getCPtr(s), str);
- }
-
- public static int ZOOM_query_cql2rpn(SWIGTYPE_p_ZOOM_query_p s, String str, SWIGTYPE_p_ZOOM_connection_p conn) {
- return yaz4jlibJNI.ZOOM_query_cql2rpn(SWIGTYPE_p_ZOOM_query_p.getCPtr(s), str, SWIGTYPE_p_ZOOM_connection_p.getCPtr(conn));
- }
-
- public static int ZOOM_query_ccl2rpn(SWIGTYPE_p_ZOOM_query_p s, String query_str, String config, SWIGTYPE_p_int ccl_error, SWIGTYPE_p_p_char error_string, SWIGTYPE_p_int error_pos) {
- return yaz4jlibJNI.ZOOM_query_ccl2rpn(SWIGTYPE_p_ZOOM_query_p.getCPtr(s), query_str, config, SWIGTYPE_p_int.getCPtr(ccl_error), SWIGTYPE_p_p_char.getCPtr(error_string), SWIGTYPE_p_int.getCPtr(error_pos));
- }
-
- public static int ZOOM_query_prefix(SWIGTYPE_p_ZOOM_query_p s, String str) {
- return yaz4jlibJNI.ZOOM_query_prefix(SWIGTYPE_p_ZOOM_query_p.getCPtr(s), str);
- }
-
- public static int ZOOM_query_sortby(SWIGTYPE_p_ZOOM_query_p s, String criteria) {
- return yaz4jlibJNI.ZOOM_query_sortby(SWIGTYPE_p_ZOOM_query_p.getCPtr(s), criteria);
- }
-
- public static SWIGTYPE_p_ZOOM_scanset_p ZOOM_connection_scan(SWIGTYPE_p_ZOOM_connection_p c, String startterm) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_scan(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), startterm);
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_scanset_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_scanset_p ZOOM_connection_scan1(SWIGTYPE_p_ZOOM_connection_p c, SWIGTYPE_p_ZOOM_query_p startterm) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_scan1(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), SWIGTYPE_p_ZOOM_query_p.getCPtr(startterm));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_scanset_p(cPtr, false);
- }
-
- public static String ZOOM_scanset_term(SWIGTYPE_p_ZOOM_scanset_p scan, long pos, SWIGTYPE_p_int occ, SWIGTYPE_p_int len) {
- return yaz4jlibJNI.ZOOM_scanset_term(SWIGTYPE_p_ZOOM_scanset_p.getCPtr(scan), pos, SWIGTYPE_p_int.getCPtr(occ), SWIGTYPE_p_int.getCPtr(len));
- }
-
- public static String ZOOM_scanset_display_term(SWIGTYPE_p_ZOOM_scanset_p scan, long pos, SWIGTYPE_p_int occ, SWIGTYPE_p_int len) {
- return yaz4jlibJNI.ZOOM_scanset_display_term(SWIGTYPE_p_ZOOM_scanset_p.getCPtr(scan), pos, SWIGTYPE_p_int.getCPtr(occ), SWIGTYPE_p_int.getCPtr(len));
- }
-
- public static long ZOOM_scanset_size(SWIGTYPE_p_ZOOM_scanset_p scan) {
- return yaz4jlibJNI.ZOOM_scanset_size(SWIGTYPE_p_ZOOM_scanset_p.getCPtr(scan));
- }
-
- public static void ZOOM_scanset_destroy(SWIGTYPE_p_ZOOM_scanset_p scan) {
- yaz4jlibJNI.ZOOM_scanset_destroy(SWIGTYPE_p_ZOOM_scanset_p.getCPtr(scan));
- }
-
- public static String ZOOM_scanset_option_get(SWIGTYPE_p_ZOOM_scanset_p scan, String key) {
- return yaz4jlibJNI.ZOOM_scanset_option_get(SWIGTYPE_p_ZOOM_scanset_p.getCPtr(scan), key);
- }
-
- public static void ZOOM_scanset_option_set(SWIGTYPE_p_ZOOM_scanset_p scan, String key, String val) {
- yaz4jlibJNI.ZOOM_scanset_option_set(SWIGTYPE_p_ZOOM_scanset_p.getCPtr(scan), key, val);
- }
-
- public static SWIGTYPE_p_ZOOM_package_p ZOOM_connection_package(SWIGTYPE_p_ZOOM_connection_p c, SWIGTYPE_p_ZOOM_options_p options) {
- long cPtr = yaz4jlibJNI.ZOOM_connection_package(SWIGTYPE_p_ZOOM_connection_p.getCPtr(c), SWIGTYPE_p_ZOOM_options_p.getCPtr(options));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_package_p(cPtr, false);
- }
-
- public static void ZOOM_package_destroy(SWIGTYPE_p_ZOOM_package_p p) {
- yaz4jlibJNI.ZOOM_package_destroy(SWIGTYPE_p_ZOOM_package_p.getCPtr(p));
- }
-
- public static void ZOOM_package_send(SWIGTYPE_p_ZOOM_package_p p, String type) {
- yaz4jlibJNI.ZOOM_package_send(SWIGTYPE_p_ZOOM_package_p.getCPtr(p), type);
- }
-
- public static String ZOOM_package_option_get(SWIGTYPE_p_ZOOM_package_p p, String key) {
- return yaz4jlibJNI.ZOOM_package_option_get(SWIGTYPE_p_ZOOM_package_p.getCPtr(p), key);
- }
-
- public static void ZOOM_package_option_set(SWIGTYPE_p_ZOOM_package_p p, String key, String val) {
- yaz4jlibJNI.ZOOM_package_option_set(SWIGTYPE_p_ZOOM_package_p.getCPtr(p), key, val);
- }
-
- public static void ZOOM_resultset_sort(SWIGTYPE_p_ZOOM_resultset_p r, String sort_type, String sort_spec) {
- yaz4jlibJNI.ZOOM_resultset_sort(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r), sort_type, sort_spec);
- }
-
- public static int ZOOM_resultset_sort1(SWIGTYPE_p_ZOOM_resultset_p r, String sort_type, String sort_spec) {
- return yaz4jlibJNI.ZOOM_resultset_sort1(SWIGTYPE_p_ZOOM_resultset_p.getCPtr(r), sort_type, sort_spec);
- }
-
- public static SWIGTYPE_p_f_p_void_p_q_const__char__p_char ZOOM_options_set_callback(SWIGTYPE_p_ZOOM_options_p opt, SWIGTYPE_p_f_p_void_p_q_const__char__p_char c, SWIGTYPE_p_void handle) {
- long cPtr = yaz4jlibJNI.ZOOM_options_set_callback(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), SWIGTYPE_p_f_p_void_p_q_const__char__p_char.getCPtr(c), SWIGTYPE_p_void.getCPtr(handle));
- return (cPtr == 0) ? null : new SWIGTYPE_p_f_p_void_p_q_const__char__p_char(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_options_p ZOOM_options_create() {
- long cPtr = yaz4jlibJNI.ZOOM_options_create();
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_options_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_options_p ZOOM_options_create_with_parent(SWIGTYPE_p_ZOOM_options_p parent) {
- long cPtr = yaz4jlibJNI.ZOOM_options_create_with_parent(SWIGTYPE_p_ZOOM_options_p.getCPtr(parent));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_options_p(cPtr, false);
- }
-
- public static SWIGTYPE_p_ZOOM_options_p ZOOM_options_create_with_parent2(SWIGTYPE_p_ZOOM_options_p parent1, SWIGTYPE_p_ZOOM_options_p parent2) {
- long cPtr = yaz4jlibJNI.ZOOM_options_create_with_parent2(SWIGTYPE_p_ZOOM_options_p.getCPtr(parent1), SWIGTYPE_p_ZOOM_options_p.getCPtr(parent2));
- return (cPtr == 0) ? null : new SWIGTYPE_p_ZOOM_options_p(cPtr, false);
- }
-
- public static String ZOOM_options_get(SWIGTYPE_p_ZOOM_options_p opt, String name) {
- return yaz4jlibJNI.ZOOM_options_get(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name);
- }
-
- public static String ZOOM_options_getl(SWIGTYPE_p_ZOOM_options_p opt, String name, SWIGTYPE_p_int lenp) {
- return yaz4jlibJNI.ZOOM_options_getl(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name, SWIGTYPE_p_int.getCPtr(lenp));
- }
-
- public static void ZOOM_options_set(SWIGTYPE_p_ZOOM_options_p opt, String name, String v) {
- yaz4jlibJNI.ZOOM_options_set(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name, v);
- }
-
- public static void ZOOM_options_setl(SWIGTYPE_p_ZOOM_options_p opt, String name, String value, int len) {
- yaz4jlibJNI.ZOOM_options_setl(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name, value, len);
- }
-
- public static void ZOOM_options_destroy(SWIGTYPE_p_ZOOM_options_p opt) {
- yaz4jlibJNI.ZOOM_options_destroy(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt));
- }
-
- public static int ZOOM_options_get_bool(SWIGTYPE_p_ZOOM_options_p opt, String name, int defa) {
- return yaz4jlibJNI.ZOOM_options_get_bool(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name, defa);
- }
-
- public static int ZOOM_options_get_int(SWIGTYPE_p_ZOOM_options_p opt, String name, int defa) {
- return yaz4jlibJNI.ZOOM_options_get_int(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name, defa);
- }
-
- public static void ZOOM_options_set_int(SWIGTYPE_p_ZOOM_options_p opt, String name, int value) {
- yaz4jlibJNI.ZOOM_options_set_int(SWIGTYPE_p_ZOOM_options_p.getCPtr(opt), name, value);
- }
-
- public static int ZOOM_event(int no, SWIGTYPE_p_p_ZOOM_connection_p cs) {
- return yaz4jlibJNI.ZOOM_event(no, SWIGTYPE_p_p_ZOOM_connection_p.getCPtr(cs));
- }
-
-}