/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.40
 * 
 * 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. 
 * ----------------------------------------------------------------------------- */

#define SWIGJAVA

/* -----------------------------------------------------------------------------
 *  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) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# 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 SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# 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

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif



/* Fix for jlong on some versions of gcc on Windows */
#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
  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,  char *msg) {
  jclass excep;
  static  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" }
  };
   SWIG_JavaExceptions_t *except_ptr = java_exceptions;

  while (except_ptr->code != code && except_ptr->code)
    except_ptr++;

  (*jenv)->ExceptionClear(jenv);
  excep = (*jenv)->FindClass(jenv, except_ptr->java_exception);
  if (excep)
    (*jenv)->ThrowNew(jenv, excep, msg);
}


/* Contract support */

#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else



#include "platform.h"
#include "errmac.h"
#include "zx.h"
#include "zxid.h"
#include "saml2.h"

#include "c/zx-const.h"
#include "c/zx-data.h"
#include "c/zx-ns.h"
#include "c/zxidvers.h"



#ifdef __cplusplus
extern "C" {
#endif

SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1ptmut_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  pthread_mutex_t arg2 ;
  pthread_mutex_t *argp2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  argp2 = *(pthread_mutex_t **)&jarg2; 
  if (!argp2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null pthread_mutex_t");
    return ;
  }
  arg2 = *argp2; 
  if (arg1) (arg1)->ptmut = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1ptmut_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  pthread_mutex_t result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  result =  ((arg1)->ptmut);
  {
    pthread_mutex_t * resultptr = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t));
    memmove(resultptr, &result, sizeof(pthread_mutex_t));
    *(pthread_mutex_t **)&jresult = resultptr;
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1func_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->func = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->func, ( char *)arg2);
    } else {
      arg1->func = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1func_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  result = (char *) ((arg1)->func);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1line_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->line = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1line_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  result = (int) ((arg1)->line);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1thr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  pthread_t arg2 ;
  pthread_t *argp2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  argp2 = *(pthread_t **)&jarg2; 
  if (!argp2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null pthread_t");
    return ;
  }
  arg2 = *argp2; 
  if (arg1) (arg1)->thr = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1lock_1thr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  pthread_t result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  result =  ((arg1)->thr);
  {
    pthread_t * resultptr = (pthread_t *) malloc(sizeof(pthread_t));
    memmove(resultptr, &result, sizeof(pthread_t));
    *(pthread_t **)&jresult = resultptr;
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1lock(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_lock *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_lock *)calloc(1, sizeof(struct zx_lock));
  *(struct zx_lock **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1lock(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_lock *arg1 = (struct zx_lock *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_lock **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->url, ( char *)arg2);
    } else {
      arg1->url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (char *) ((arg1)->url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1url_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->url_len = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1url_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (int) ((arg1)->url_len);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1prefix_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->prefix_len = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1prefix_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (int) ((arg1)->prefix_len);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1prefix_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->prefix = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->prefix, ( char *)arg2);
    } else {
      arg1->prefix = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1prefix_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (char *) ((arg1)->prefix);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->n);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1master_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->master = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1master_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->master);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->seen = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->seen);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->seen_n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->seen_n);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1p_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->seen_p = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1p_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->seen_p);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1pop_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->seen_pop = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1seen_1pop_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->seen_pop);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1inc_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->inc_n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1s_1inc_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->inc_n);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1ns_1s(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_ns_s *)calloc(1, sizeof(struct zx_ns_s));
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1ns_1s(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1bas_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->bas = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->bas, ( char *)arg2);
    } else {
      arg1->bas = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1bas_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char *) ((arg1)->bas);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1p_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->p = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->p, ( char *)arg2);
    } else {
      arg1->p = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1p_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char *) ((arg1)->p);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1lim_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->lim = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->lim, ( char *)arg2);
    } else {
      arg1->lim = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1lim_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char *) ((arg1)->lim);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1ns_1tab_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->ns_tab = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1ns_1tab_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->ns_tab);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1n_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->n_ns = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1n_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (int) ((arg1)->n_ns);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1unknown_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->unknown_ns = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1unknown_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->unknown_ns);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1guard_1seen_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->guard_seen_n = *arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1guard_1seen_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *)& ((arg1)->guard_seen_n);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1guard_1seen_1p_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->guard_seen_p = *arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1guard_1seen_1p_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *)& ((arg1)->guard_seen_p);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1exclude_1sig_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *arg2 = (void *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(void **)&jarg2; 
  if (arg1) (arg1)->exclude_sig = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1exclude_1sig_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (void *) ((arg1)->exclude_sig);
  *(void **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1inc_1ns_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->inc_ns_len = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1inc_1ns_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->inc_ns_len);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1inc_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->inc_ns = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1inc_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->inc_ns);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1malloc_1func_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*arg2)(size_t) = (void *(*)(size_t)) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(void *(**)(size_t))&jarg2; 
  if (arg1) (arg1)->malloc_func = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1malloc_1func_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*result)(size_t) = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (void *(*)(size_t)) ((arg1)->malloc_func);
  *(void *(**)(size_t))&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1realloc_1func_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*arg2)(void *,size_t) = (void *(*)(void *,size_t)) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(void *(**)(void *,size_t))&jarg2; 
  if (arg1) (arg1)->realloc_func = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1realloc_1func_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*result)(void *,size_t) = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (void *(*)(void *,size_t)) ((arg1)->realloc_func);
  *(void *(**)(void *,size_t))&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1free_1func_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void (*arg2)(void *) = (void (*)(void *)) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(void (**)(void *))&jarg2; 
  if (arg1) (arg1)->free_func = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1free_1func_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void (*result)(void *) = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (void (*)(void *)) ((arg1)->free_func);
  *(void (**)(void *))&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1canon_1inopt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->canon_inopt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1canon_1inopt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char) ((arg1)->canon_inopt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1enc_1tail_1opt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->enc_tail_opt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1enc_1tail_1opt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char) ((arg1)->enc_tail_opt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1top1_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->top1 = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1top1_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char) ((arg1)->top1);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1pad3_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pad3 = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1pad3_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (char) ((arg1)->pad3);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1zx_1errno_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->zx_errno = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1ctx_1zx_1errno_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (int) ((arg1)->zx_errno);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1ctx(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_ctx *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_ctx *)calloc(1, sizeof(struct zx_ctx));
  *(struct zx_ctx **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1ctx(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1n_1set(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1n_1get(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jstring jresult = 0 ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  result = (struct zx_str *) ((arg1)->n);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1tok_1set(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->tok = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1tok_1get(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jint jresult = 0 ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  result = (int) ((arg1)->tok);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1len_1set(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->len = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1len_1get(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jint jresult = 0 ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  result = (int) ((arg1)->len);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1s_1set(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->s = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->s, ( char *)arg2);
    } else {
      arg1->s = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1s_1get(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jstring jresult = 0 ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  result = (char *) ((arg1)->s);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1str(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_str *)calloc(1, sizeof(struct zx_str));
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1str(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1g_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->g = *arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1g_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  result = (struct zx_str *)& ((arg1)->g);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->ns = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->ns);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1name_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->name_len = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1name_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  result = (int) ((arg1)->name_len);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->name, ( char *)arg2);
    } else {
      arg1->name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1attr_1s_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  result = (char *) ((arg1)->name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1attr_1s(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_attr_s *)calloc(1, sizeof(struct zx_attr_s));
  *(struct zx_attr_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1attr_1s(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_attr_s *arg1 = (struct zx_attr_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_attr_s **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1g_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->g = *arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1g_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  result = (struct zx_str *)& ((arg1)->g);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1kids_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  if (arg1) (arg1)->kids = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1kids_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  result = (struct zx_elem_s *) ((arg1)->kids);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1attr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_attr_s *arg2 = (struct zx_attr_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_attr_s **)&jarg2; 
  if (arg1) (arg1)->attr = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1attr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  result = (struct zx_attr_s *) ((arg1)->attr);
  *(struct zx_attr_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->ns = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->ns);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1xmlns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->xmlns = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1elem_1s_1xmlns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->xmlns);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1elem_1s(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_elem_s *)calloc(1, sizeof(struct zx_elem_s));
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1elem_1s(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1new_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  result = (struct zx_elem_s *)zx_new_elem(arg1,arg2,arg3);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1new_1str_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  result = (struct zx_elem_s *)zx_new_str_elem(arg1,arg2,arg3,arg4);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ref_1len_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jint jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg4 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg4);
  arg5 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg4, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  result = (struct zx_elem_s *)zx_ref_len_elem(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_elem_s **)&jresult = result; 
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg4, arg5);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ref_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_elem_s *)zx_ref_elem(arg1,arg2,arg3,arg4);
  *(struct zx_elem_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1len_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jint jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg4 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg4);
  arg5 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg4, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  result = (struct zx_elem_s *)zx_dup_len_elem(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_elem_s **)&jresult = result; 
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg4, arg5);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_elem_s *)zx_dup_elem(arg1,arg2,arg3,arg4);
  *(struct zx_elem_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ref_1len_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jint jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg4 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg4);
  arg5 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg4, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  result = (struct zx_attr_s *)zx_ref_len_attr(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_attr_s **)&jresult = result; 
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg4, arg5);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ref_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_attr_s *)zx_ref_attr(arg1,arg2,arg3,arg4);
  *(struct zx_attr_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1new_1len_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jint jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  int arg4 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = (int)jarg4; 
  result = (struct zx_attr_s *)zx_new_len_attr(arg1,arg2,arg3,arg4);
  *(struct zx_attr_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1len_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jint jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg4 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg4);
  arg5 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg4, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  result = (struct zx_attr_s *)zx_dup_len_attr(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_attr_s **)&jresult = result; 
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg4, arg5);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_attr_s *)zx_dup_attr(arg1,arg2,arg3,arg4);
  *(struct zx_attr_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1attrf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_attr_s *)zx_attrf(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_attr_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ref_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (struct zx_str *)zx_ref_str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ref_1len_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg2 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg2);
  arg3 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg2, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  result = (struct zx_str *)zx_ref_len_str(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg2, arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1new_1len_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  result = (struct zx_str *)zx_new_len_str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1len_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg2 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg2);
  arg3 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg2, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  result = (struct zx_str *)zx_dup_len_str(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg2, arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (struct zx_str *)zx_dup_str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1zx_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (struct zx_str *)zx_dup_zx_str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1strf(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  void *arg3 = 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (struct zx_str *)zx_strf(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1alloc_1sprintf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int *arg2 = (int *) 0 ;
  char *arg3 = (char *) 0 ;
  void *arg4 = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(int **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zx_alloc_sprintf(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1free(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  zx_str_free(arg1,arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1to_1c(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (char *)zx_str_to_c(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1conv(JNIEnv *jenv, jclass jcls, jstring jarg1, jlong jarg2, jlong jarg3) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int *arg2 = (int *) 0 ;
  char **arg3 = (char **) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = *(int **)&jarg2; 
  arg3 = *(char ***)&jarg3; 
  zx_str_conv(arg1,arg2,arg3);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1cmp(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) {
  jint jresult = 0 ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (int)zx_str_cmp(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1str_1ends_1in(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2, jstring jarg3) {
  jint jresult = 0 ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_str **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (int)zx_str_ends_in(arg1,arg2,arg3);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1memmem(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2, jstring jarg3, jint jarg4) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  result = (char *)zx_memmem(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1alloc(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  void *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  result = (void *)zx_alloc(arg1,arg2);
  *(void **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1zalloc(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  void *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  result = (void *)zx_zalloc(arg1,arg2);
  *(void **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1free(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *arg2 = (void *) 0 ;
  void *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(void **)&jarg2; 
  result = (void *)zx_free(arg1,arg2);
  *(void **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1cstr(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (char *)zx_dup_cstr(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1dup_1len_1cstr(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zx_dup_len_cstr(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1reset_1ns_1ctx(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  zx_reset_ns_ctx(arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1reset_1ctx(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  zx_reset_ctx(arg1);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1init_1ctx(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_ctx *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_ctx *)zx_init_ctx();
  *(struct zx_ctx **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1free_1ctx(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  zx_free_ctx(arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1NO_1ATTR_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (-7);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1ATTR_1ERR_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (-6);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1XMLNS_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (-4);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1DATA_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x0000fffd;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1ATTR_1NOT_1FOUND_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x0000fffe;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1TOK_1NOT_1FOUND_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x0000ffff;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1NS_1NOT_1FOUND_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x00ff0000;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1NOT_1FOUND_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x00ffffff;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1TOK_1MASK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x0000ffff;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1NS_1MASK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x00ff0000;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1NS_1SHIFT_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 16;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1TOK_1FLAGS_1MASK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0xff000000;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1at_1tok_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_at_tok *arg1 = (struct zx_at_tok *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_at_tok **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->name, ( char *)arg2);
    } else {
      arg1->name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1at_1tok_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_at_tok *arg1 = (struct zx_at_tok *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_at_tok **)&jarg1; 
  result = (char *) ((arg1)->name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1at_1tok(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_at_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_at_tok *)calloc(1, sizeof(struct zx_at_tok));
  *(struct zx_at_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1at_1tok(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_at_tok *arg1 = (struct zx_at_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_at_tok **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  struct zx_el_desc *arg2 = (struct zx_el_desc *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  arg2 = *(struct zx_el_desc **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  struct zx_el_desc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  result = (struct zx_el_desc *) ((arg1)->n);
  *(struct zx_el_desc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1tok_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->tok = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1tok_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  result = (int) ((arg1)->tok);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1siz_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->siz = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1siz_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  result = (int) ((arg1)->siz);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1at_1dec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int (*arg2)(struct zx_ctx *,struct zx_elem_s *) = (int (*)(struct zx_ctx *,struct zx_elem_s *)) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  arg2 = *(int (**)(struct zx_ctx *,struct zx_elem_s *))&jarg2; 
  if (arg1) (arg1)->at_dec = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1at_1dec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int (*result)(struct zx_ctx *,struct zx_elem_s *) = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  result = (int (*)(struct zx_ctx *,struct zx_elem_s *)) ((arg1)->at_dec);
  *(int (**)(struct zx_ctx *,struct zx_elem_s *))&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1el_1dec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int (*arg2)(struct zx_ctx *,struct zx_elem_s *) = (int (*)(struct zx_ctx *,struct zx_elem_s *)) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  arg2 = *(int (**)(struct zx_ctx *,struct zx_elem_s *))&jarg2; 
  if (arg1) (arg1)->el_dec = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1el_1dec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int (*result)(struct zx_ctx *,struct zx_elem_s *) = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  result = (int (*)(struct zx_ctx *,struct zx_elem_s *)) ((arg1)->el_dec);
  *(int (**)(struct zx_ctx *,struct zx_elem_s *))&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1el_1order_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  int *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  result = (int *)(int *) ((arg1)->el_order);
  *(int **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1el_1desc(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_el_desc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_el_desc *)calloc(1, sizeof(struct zx_el_desc));
  *(struct zx_el_desc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1el_1desc(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_el_desc *arg1 = (struct zx_el_desc *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_desc **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1tok_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zx_el_tok *arg1 = (struct zx_el_tok *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_tok **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->name, ( char *)arg2);
    } else {
      arg1->name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1tok_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zx_el_tok *arg1 = (struct zx_el_tok *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_tok **)&jarg1; 
  result = (char *) ((arg1)->name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1tok_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_el_tok *arg1 = (struct zx_el_tok *) 0 ;
  struct zx_el_desc *arg2 = (struct zx_el_desc *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_tok **)&jarg1; 
  arg2 = *(struct zx_el_desc **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1tok_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_el_tok *arg1 = (struct zx_el_tok *) 0 ;
  struct zx_el_desc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_tok **)&jarg1; 
  result = (struct zx_el_desc *) ((arg1)->n);
  *(struct zx_el_desc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zx_1el_1tok(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_el_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_el_tok *)calloc(1, sizeof(struct zx_el_tok));
  *(struct zx_el_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zx_1el_1tok(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_el_tok *arg1 = (struct zx_el_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_el_tok **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1date_1time_1to_1secs(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jint jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  result = (int)zx_date_time_to_secs(arg1);
  jresult = (jint)result; 
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_write2_1or_1append_1lock_1c_1path(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2, jstring jarg3, jint jarg4, jstring jarg5, jstring jarg6, jint jarg7, jint jarg8) {
  jint jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  int arg8 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = (int)jarg7; 
  arg8 = (int)jarg8; 
  result = (int)write2_or_append_lock_c_path(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  jresult = (jint)result; 
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1report_1openssl_1err(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jint jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  result = (int)zx_report_openssl_err(arg1);
  jresult = (jint)result; 
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1dump_1ns_1tab(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  result = (int)zx_dump_ns_tab(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1prefix_1seen(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (struct zx_ns_s *)zx_prefix_seen(arg1,arg2,arg3);
  *(struct zx_ns_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1prefix_1seen_1whine(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jstring jarg4, jint jarg5) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  result = (struct zx_ns_s *)zx_prefix_seen_whine(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_ns_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1scan_1xmlns(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  result = (struct zx_ns_s *)zx_scan_xmlns(arg1);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1see_1elem_1ns(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s **arg2 = (struct zx_ns_s **) 0 ;
  struct zx_elem_s *arg3 = (struct zx_elem_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s ***)&jarg2; 
  arg3 = *(struct zx_elem_s **)&jarg3; 
  zx_see_elem_ns(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1pop_1seen(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  zx_pop_seen(arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1format_1parse_1error(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jstring jarg4) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (int)zx_format_parse_error(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZX_1SYMKEY_1LEN_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 20;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1hmac_1sha256(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jstring jarg5, jstring jarg6, jlong jarg7) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int *arg7 = (int *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = *(int **)&jarg7; 
  result = (char *)zx_hmac_sha256(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1raw_1digest2(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4, jint jarg6, jstring jarg7) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg4 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg4);
  arg5 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg4, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  arg6 = (int)jarg6; 
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  result = (char *)zx_raw_digest2(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg4, arg5);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1raw_1cipher(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jstring jarg4, jint jarg5, jint jarg7, jstring jarg8) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  int arg5 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  char *arg8 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  
  // The following jstring casts could probably be avoided with proper use of typemaps
  arg5 = (*jenv)->GetStringUTFLength(jenv, (jstring)jarg5);
  arg6 = (char*)(*jenv)->GetStringUTFChars(jenv, (jstring)jarg5, 0);
  // *** Whether we can free, or not, the obtained string depends
  //     on whether the zxid API will take reference to the const string.
  
  arg7 = (int)jarg7; 
  arg8 = 0;
  if (jarg8) {
    arg8 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg8, 0);
    if (!arg8) return 0;
  }
  result = (struct zx_str *)zx_raw_cipher(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  (*jenv)->ReleaseStringUTFChars(jenv, (jstring)jarg5, arg6);
  if (arg8) (*jenv)->ReleaseStringUTFChars(jenv, jarg8, ( char *)arg8);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1rsa_1pub_1enc(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void *arg3 = (void *) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(void **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (struct zx_str *)zx_rsa_pub_enc(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1rsa_1pub_1dec(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void *arg3 = (void *) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(void **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (struct zx_str *)zx_rsa_pub_dec(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1rsa_1priv_1dec(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void *arg3 = (void *) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(void **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (struct zx_str *)zx_rsa_priv_dec(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1rsa_1priv_1enc(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void *arg3 = (void *) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(void **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (struct zx_str *)zx_rsa_priv_enc(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1get_1rsa_1pub_1from_1cert(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  void *arg1 = (void *) 0 ;
  char *arg2 = (char *) 0 ;
  void *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(void **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (void *)zx_get_rsa_pub_from_cert(arg1,arg2);
  *(void **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1rand(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return ;
  }
  arg2 = (int)jarg2; 
  zx_rand(arg1,arg2);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1md5_1crypt(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zx_md5_crypt(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1add_1kid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_elem_s *)zx_add_kid(arg1,arg2);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1add_1kid_1before(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  int arg2 ;
  struct zx_elem_s *arg3 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = *(struct zx_elem_s **)&jarg3; 
  result = (struct zx_elem_s *)zx_add_kid_before(arg1,arg2,arg3);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1add_1kid_1after_1sa_1Issuer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_elem_s *)zx_add_kid_after_sa_Issuer(arg1,arg2);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1replace_1kid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_elem_s *)zx_replace_kid(arg1,arg2);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1add_1content(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  zx_add_content(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ord_1ins_1at(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_attr_s *arg2 = (struct zx_attr_s *) 0 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  arg2 = *(struct zx_attr_s **)&jarg2; 
  result = (struct zx_attr_s *)zx_ord_ins_at(arg1,arg2);
  *(struct zx_attr_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1reverse_1elem_1lists(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  zx_reverse_elem_lists(arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1len_1xmlns_1if_1not_1seen(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s **arg3 = (struct zx_ns_s **) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  arg3 = *(struct zx_ns_s ***)&jarg3; 
  result = (int)zx_len_xmlns_if_not_seen(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1add_1xmlns_1if_1not_1seen(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s **arg3 = (struct zx_ns_s **) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  arg3 = *(struct zx_ns_s ***)&jarg3; 
  zx_add_xmlns_if_not_seen(arg1,arg2,arg3);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1enc_1seen(JNIEnv *jenv, jclass jcls, jstring jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = *(struct zx_ns_s **)&jarg2; 
  result = (char *)zx_enc_seen(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1LEN_1WO_1any_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (int)zx_LEN_WO_any_elem(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1ENC_1WO_1any_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zx_ENC_WO_any_elem(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1EASY_1ENC_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_str *)zx_EASY_ENC_elem(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1free_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_attr_s *arg2 = (struct zx_attr_s *) 0 ;
  int arg3 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_attr_s **)&jarg2; 
  arg3 = (int)jarg3; 
  zx_free_attr(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1free_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  zx_free_elem(arg1,arg2,arg3);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1xml_1parse_1err(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2, jstring jarg3, jstring jarg4) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (char)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return ;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return ;
  }
  zx_xml_parse_err(arg1,arg2,arg3,arg4);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1xml_1parse_1dbg(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2, jstring jarg3, jstring jarg4) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (char)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return ;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return ;
  }
  zx_xml_parse_dbg(arg1,arg2,arg3,arg4);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1detected(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (struct zx_ns_s *)zx_xmlns_detected(arg1,arg2,arg3);
  *(struct zx_ns_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1in_1inc_1ns(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  result = (int)zx_in_inc_ns(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1get_1el_1tok(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_el_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_elem_s **)&jarg1; 
  result = (struct zx_el_tok *)zx_get_el_tok(arg1);
  *(struct zx_el_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1prepare_1dec_1ctx(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4, jstring jarg5) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return ;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return ;
  }
  zx_prepare_dec_ctx(arg1,arg2,arg3,arg4,arg5);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1dec_1zx_1root(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_root_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_root_s *)zx_dec_zx_root(arg1,arg2,arg3,arg4);
  *(struct zx_root_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1DEC_1elem(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  zx_DEC_elem(arg1,arg2);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1el_1desc_1lookup(JNIEnv *jenv, jclass jcls, jint jarg1) {
  jlong jresult = 0 ;
  int arg1 ;
  struct zx_el_desc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1; 
  result = (struct zx_el_desc *)zx_el_desc_lookup(arg1);
  *(struct zx_el_desc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SIG_1ALGO_1RSA_1SHA1_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SIG_1ALGO_1DSA_1SHA1_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SIG_1ALGO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_DIGEST_1ALGO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2000/09/xmldsig#sha1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_CANON_1ALGO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/10/xml-exc-c14n#";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENVELOPED_1ALGO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ALGO_1TRIPLEDES_1CBC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ALGO_1AES128_1CBC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#aes128-cbc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ALGO_1AES192_1CBC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#aes192-cbc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ALGO_1AES256_1CBC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#aes256-cbc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ALGO_1AES256_1GFC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#aes256-gfc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ALGO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#aes256-gfc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1KEYTRAN_1RSA_11_15_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#rsa-1_5";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1KEYTRAN_1RSA_1OAEP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1KEYTRAN_1ALGO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1ENCKEY_1METH_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#EncryptedKey";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1TYPE_1ELEMENT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#Element";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ENC_1TYPE_1CONTENT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#Content";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1PATH_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/var/zxid/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CONF_1FILE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "zxid.conf";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CONF_1PATH_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/var/zxid/zxid.conf";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1PATH_1OPT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "ZXPATH";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1ENV_1PREFIX_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "ZXID_";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CONF_1MAGIC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x900dc07f;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CGI_1MAGIC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x900d0c91;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SES_1MAGIC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x900d05e5;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zxid_entity_s *arg2 = (struct zxid_entity_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = *(struct zxid_entity_s **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zxid_entity_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (struct zxid_entity_s *) ((arg1)->n);
  *(struct zxid_entity_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1n_1cdc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zxid_entity_s *arg2 = (struct zxid_entity_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = *(struct zxid_entity_s **)&jarg2; 
  if (arg1) (arg1)->n_cdc = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1n_1cdc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zxid_entity_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (struct zxid_entity_s *) ((arg1)->n_cdc);
  *(struct zxid_entity_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1eid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->eid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->eid, ( char *)arg2);
    } else {
      arg1->eid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1eid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (char *) ((arg1)->eid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1dpy_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->dpy_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->dpy_name, ( char *)arg2);
    } else {
      arg1->dpy_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1dpy_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (char *) ((arg1)->dpy_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1button_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->button_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->button_url, ( char *)arg2);
    } else {
      arg1->button_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1button_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (char *) ((arg1)->button_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1sha1_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if(arg2) {
      strncpy((char*)arg1->sha1_name, ( char *)arg2, 28-1);
      arg1->sha1_name[28-1] = 0;
    } else {
      arg1->sha1_name[0] = 0;
    }
  }
  
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1sha1_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (char *)(char *) ((arg1)->sha1_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1ed_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zx_md_EntityDescriptor_s *arg2 = (struct zx_md_EntityDescriptor_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = *(struct zx_md_EntityDescriptor_s **)&jarg2; 
  if (arg1) (arg1)->ed = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1ed_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zx_md_EntityDescriptor_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (struct zx_md_EntityDescriptor_s *) ((arg1)->ed);
  *(struct zx_md_EntityDescriptor_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1aamap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->aamap = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1entity_1s_1aamap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->aamap);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1entity_1s(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_entity_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_entity_s *)calloc(1, sizeof(struct zxid_entity_s));
  *(struct zxid_entity_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1entity_1s(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_entity_s *arg1 = (struct zxid_entity_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_entity_s **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1magic_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  unsigned int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (unsigned int)jarg2; 
  if (arg1) (arg1)->magic = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1magic_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  unsigned int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (unsigned int) ((arg1)->magic);
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ctx_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_ctx *arg2 = (struct zx_ctx *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zx_ctx **)&jarg2; 
  if (arg1) (arg1)->ctx = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ctx_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_ctx *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zx_ctx *) ((arg1)->ctx);
  *(struct zx_ctx **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cot_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  zxid_entity *arg2 = (zxid_entity *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(zxid_entity **)&jarg2; 
  if (arg1) (arg1)->cot = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cot_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (zxid_entity *) ((arg1)->cot);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpath_1supplied_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->cpath_supplied = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpath_1supplied_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->cpath_supplied);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpath_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->cpath_len = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpath_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->cpath_len);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpath_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->cpath = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->cpath, ( char *)arg2);
    } else {
      arg1->cpath = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpath_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->cpath);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1burl_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->burl = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->burl, ( char *)arg2);
    } else {
      arg1->burl = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1burl_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->burl);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1non_1standard_1entityid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->non_standard_entityid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->non_standard_entityid, ( char *)arg2);
    } else {
      arg1->non_standard_entityid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1non_1standard_1entityid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->non_standard_entityid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redirect_1hack_1imposed_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->redirect_hack_imposed_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->redirect_hack_imposed_url, ( char *)arg2);
    } else {
      arg1->redirect_hack_imposed_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redirect_1hack_1imposed_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->redirect_hack_imposed_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redirect_1hack_1zxid_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->redirect_hack_zxid_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->redirect_hack_zxid_url, ( char *)arg2);
    } else {
      arg1->redirect_hack_zxid_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redirect_1hack_1zxid_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->redirect_hack_zxid_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redirect_1hack_1zxid_1qs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->redirect_hack_zxid_qs = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->redirect_hack_zxid_qs, ( char *)arg2);
    } else {
      arg1->redirect_hack_zxid_qs = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redirect_1hack_1zxid_1qs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->redirect_hack_zxid_qs);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cdc_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->cdc_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->cdc_url, ( char *)arg2);
    } else {
      arg1->cdc_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cdc_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->cdc_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1authority_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->md_authority = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->md_authority, ( char *)arg2);
    } else {
      arg1->md_authority = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1authority_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->md_authority);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cdc_1choice_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->cdc_choice = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cdc_1choice_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->cdc_choice);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1fetch_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->md_fetch = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1fetch_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->md_fetch);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1populate_1cache_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->md_populate_cache = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1populate_1cache_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->md_populate_cache);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1cache_1first_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->md_cache_first = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1cache_1first_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->md_cache_first);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1cache_1last_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->md_cache_last = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1cache_1last_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->md_cache_last);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1auto_1cert_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->auto_cert = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1auto_1cert_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->auto_cert);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->idp_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->idp_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1imps_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->imps_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1imps_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->imps_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1as_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->as_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1as_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->as_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pdp_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pdp_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pdp_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->pdp_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1authn_1req_1sign_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->authn_req_sign = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1authn_1req_1sign_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->authn_req_sign);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1want_1authn_1req_1signed_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->want_authn_req_signed = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1want_1authn_1req_1signed_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->want_authn_req_signed);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1want_1sso_1a7n_1signed_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->want_sso_a7n_signed = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1want_1sso_1a7n_1signed_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->want_sso_a7n_signed);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1soap_1sign_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->sso_soap_sign = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1soap_1sign_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->sso_soap_sign);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1soap_1resp_1sign_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->sso_soap_resp_sign = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1soap_1resp_1sign_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->sso_soap_resp_sign);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1sign_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->sso_sign = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1sign_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->sso_sign);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1sign_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->wsc_sign = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1sign_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->wsc_sign);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1sign_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->wsp_sign = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1sign_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->wsp_sign);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1nameid_1enc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->nameid_enc = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1nameid_1enc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->nameid_enc);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1post_1a7n_1enc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->post_a7n_enc = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1post_1a7n_1enc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->post_a7n_enc);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1di_1allow_1create_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->di_allow_create = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1di_1allow_1create_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->di_allow_create);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1di_1nid_1fmt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->di_nid_fmt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1di_1nid_1fmt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->di_nid_fmt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1di_1a7n_1enc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->di_a7n_enc = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1di_1a7n_1enc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->di_a7n_enc);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1show_1conf_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->show_conf = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1show_1conf_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->show_conf);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sig_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->sig_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sig_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->sig_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1nosig_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->nosig_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1nosig_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->nosig_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1msg_1sig_1ok_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->msg_sig_ok = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1msg_1sig_1ok_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->msg_sig_ok);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1timeout_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->timeout_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1timeout_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->timeout_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1audience_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->audience_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1audience_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->audience_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1dup_1a7n_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->dup_a7n_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1dup_1a7n_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->dup_a7n_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1dup_1msg_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->dup_msg_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1dup_1msg_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->dup_msg_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1relto_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->relto_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1relto_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->relto_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1nosig_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->wsp_nosig_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1nosig_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->wsp_nosig_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1notimestamp_1fatal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->notimestamp_fatal = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1notimestamp_1fatal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->notimestamp_fatal);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1canon_1inopt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->canon_inopt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1canon_1inopt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->canon_inopt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1enc_1tail_1opt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->enc_tail_opt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1enc_1tail_1opt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->enc_tail_opt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1enckey_1opt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->enckey_opt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1enckey_1opt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->enckey_opt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idpatopt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->idpatopt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idpatopt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->idpatopt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1list_1meth_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->idp_list_meth = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1list_1meth_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->idp_list_meth);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpn_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->cpn_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1cpn_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->cpn_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1affiliation_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->affiliation = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->affiliation, ( char *)arg2);
    } else {
      arg1->affiliation = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1affiliation_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->affiliation);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1nice_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->nice_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->nice_name, ( char *)arg2);
    } else {
      arg1->nice_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1nice_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->nice_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1button_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->button_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->button_url, ( char *)arg2);
    } else {
      arg1->button_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1button_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->button_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pref_1button_1size_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->pref_button_size = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->pref_button_size, ( char *)arg2);
    } else {
      arg1->pref_button_size = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pref_1button_1size_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->pref_button_size);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1org_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->org_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->org_name, ( char *)arg2);
    } else {
      arg1->org_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1org_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->org_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1locality_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->locality = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->locality, ( char *)arg2);
    } else {
      arg1->locality = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1locality_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->locality);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->state = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->state, ( char *)arg2);
    } else {
      arg1->state = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->state);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1country_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->country = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->country, ( char *)arg2);
    } else {
      arg1->country = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1country_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->country);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1org_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->contact_org = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->contact_org, ( char *)arg2);
    } else {
      arg1->contact_org = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1org_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->contact_org);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->contact_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->contact_name, ( char *)arg2);
    } else {
      arg1->contact_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->contact_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1email_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->contact_email = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->contact_email, ( char *)arg2);
    } else {
      arg1->contact_email = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1email_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->contact_email);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1tel_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->contact_tel = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->contact_tel, ( char *)arg2);
    } else {
      arg1->contact_tel = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1contact_1tel_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->contact_tel);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1fedusername_1suffix_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->fedusername_suffix = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->fedusername_suffix, ( char *)arg2);
    } else {
      arg1->fedusername_suffix = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1fedusername_1suffix_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->fedusername_suffix);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ses_1arch_1dir_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ses_arch_dir = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ses_arch_dir, ( char *)arg2);
    } else {
      arg1->ses_arch_dir = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ses_1arch_1dir_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->ses_arch_dir);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ses_1cookie_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ses_cookie_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ses_cookie_name, ( char *)arg2);
    } else {
      arg1->ses_cookie_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ses_1cookie_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->ses_cookie_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ptm_1cookie_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ptm_cookie_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ptm_cookie_name, ( char *)arg2);
    } else {
      arg1->ptm_cookie_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ptm_1cookie_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->ptm_cookie_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ipport_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ipport = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ipport, ( char *)arg2);
    } else {
      arg1->ipport = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1ipport_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->ipport);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1load_1cot_1cache_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->load_cot_cache = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->load_cot_cache, ( char *)arg2);
    } else {
      arg1->load_cot_cache = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1load_1cot_1cache_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->load_cot_cache);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wspcgicmd_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wspcgicmd = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wspcgicmd, ( char *)arg2);
    } else {
      arg1->wspcgicmd = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wspcgicmd_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wspcgicmd);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1anon_1ok_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->anon_ok = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->anon_ok, ( char *)arg2);
    } else {
      arg1->anon_ok = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1anon_1ok_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->anon_ok);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1optional_1login_1pat_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->optional_login_pat = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->optional_login_pat, ( char *)arg2);
    } else {
      arg1->optional_login_pat = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1optional_1login_1pat_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->optional_login_pat);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1required_1authnctx_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char **arg2 = (char **) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(char ***)&jarg2; 
  if (arg1) (arg1)->required_authnctx = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1required_1authnctx_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char **result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char **) ((arg1)->required_authnctx);
  *(char ***)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1issue_1authnctx_1pw_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->issue_authnctx_pw = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->issue_authnctx_pw, ( char *)arg2);
    } else {
      arg1->issue_authnctx_pw = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1issue_1authnctx_1pw_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->issue_authnctx_pw);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1pref_1acs_1binding_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_pref_acs_binding = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_pref_acs_binding, ( char *)arg2);
    } else {
      arg1->idp_pref_acs_binding = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1pref_1acs_1binding_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_pref_acs_binding);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mandatory_1attr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mandatory_attr = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mandatory_attr, ( char *)arg2);
    } else {
      arg1->mandatory_attr = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mandatory_1attr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mandatory_attr);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1before_1slop_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->before_slop = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1before_1slop_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->before_slop);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1after_1slop_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->after_slop = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1after_1slop_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->after_slop);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1timeskew_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->timeskew = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1timeskew_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->timeskew);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1a7nttl_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->a7nttl = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1a7nttl_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->a7nttl);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pdp_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->pdp_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->pdp_url, ( char *)arg2);
    } else {
      arg1->pdp_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pdp_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->pdp_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pdp_1call_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->pdp_call_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->pdp_call_url, ( char *)arg2);
    } else {
      arg1->pdp_call_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pdp_1call_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->pdp_call_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1xasp_1vers_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->xasp_vers = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->xasp_vers, ( char *)arg2);
    } else {
      arg1->xasp_vers = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1xasp_1vers_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->xasp_vers);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1trustpdp_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->trustpdp_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->trustpdp_url, ( char *)arg2);
    } else {
      arg1->trustpdp_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1trustpdp_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->trustpdp_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1defaultqs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->defaultqs = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->defaultqs, ( char *)arg2);
    } else {
      arg1->defaultqs = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1defaultqs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->defaultqs);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1pat_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsp_pat = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsp_pat, ( char *)arg2);
    } else {
      arg1->wsp_pat = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1pat_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsp_pat);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1uma_1pat_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->uma_pat = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->uma_pat, ( char *)arg2);
    } else {
      arg1->uma_pat = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1uma_1pat_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->uma_pat);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1pat_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sso_pat = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sso_pat, ( char *)arg2);
    } else {
      arg1->sso_pat = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1sso_1pat_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->sso_pat);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mod_1saml_1attr_1prefix_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mod_saml_attr_prefix = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mod_saml_attr_prefix, ( char *)arg2);
    } else {
      arg1->mod_saml_attr_prefix = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mod_1saml_1attr_1prefix_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mod_saml_attr_prefix);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1to_1hdr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsc_to_hdr = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsc_to_hdr, ( char *)arg2);
    } else {
      arg1->wsc_to_hdr = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1to_1hdr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsc_to_hdr);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1replyto_1hdr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsc_replyto_hdr = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsc_replyto_hdr, ( char *)arg2);
    } else {
      arg1->wsc_replyto_hdr = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1replyto_1hdr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsc_replyto_hdr);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1action_1hdr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsc_action_hdr = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsc_action_hdr, ( char *)arg2);
    } else {
      arg1->wsc_action_hdr = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1action_1hdr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsc_action_hdr);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1soap_1action_1hdr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->soap_action_hdr = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->soap_action_hdr, ( char *)arg2);
    } else {
      arg1->soap_action_hdr = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1soap_1action_1hdr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->soap_action_hdr);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1soap_1content_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsc_soap_content_type = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsc_soap_content_type, ( char *)arg2);
    } else {
      arg1->wsc_soap_content_type = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1soap_1content_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsc_soap_content_type);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1need_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_need **)&jarg2; 
  if (arg1) (arg1)->need = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1need_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_need *) ((arg1)->need);
  *(struct zxid_need **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1want_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_need **)&jarg2; 
  if (arg1) (arg1)->want = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1want_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_need *) ((arg1)->want);
  *(struct zxid_need **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1attrsrc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_atsrc *arg2 = (struct zxid_atsrc *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_atsrc **)&jarg2; 
  if (arg1) (arg1)->attrsrc = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1attrsrc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_atsrc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_atsrc *) ((arg1)->attrsrc);
  *(struct zxid_atsrc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1aamap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->aamap = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1aamap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->aamap);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1inmap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->inmap = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1inmap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->inmap);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1outmap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->outmap = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1outmap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->outmap);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->pepmap = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->pepmap);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rqout_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->pepmap_rqout = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rqout_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->pepmap_rqout);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rqin_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->pepmap_rqin = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rqin_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->pepmap_rqin);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rsout_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->pepmap_rsout = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rsout_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->pepmap_rsout);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rsin_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->pepmap_rsin = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1pepmap_1rsin_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->pepmap_rsin);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1role_1permit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_cstr_list **)&jarg2; 
  if (arg1) (arg1)->localpdp_role_permit = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1role_1permit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_role_permit);
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1role_1deny_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_cstr_list **)&jarg2; 
  if (arg1) (arg1)->localpdp_role_deny = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1role_1deny_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_role_deny);
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1idpnid_1permit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_cstr_list **)&jarg2; 
  if (arg1) (arg1)->localpdp_idpnid_permit = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1idpnid_1permit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_idpnid_permit);
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1idpnid_1deny_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_cstr_list **)&jarg2; 
  if (arg1) (arg1)->localpdp_idpnid_deny = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1localpdp_1idpnid_1deny_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_idpnid_deny);
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1localpdp_1obl_1pledge_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsc_localpdp_obl_pledge = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsc_localpdp_obl_pledge, ( char *)arg2);
    } else {
      arg1->wsc_localpdp_obl_pledge = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1localpdp_1obl_1pledge_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsc_localpdp_obl_pledge);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1localpdp_1obl_1req_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_obl_list *arg2 = (struct zxid_obl_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_obl_list **)&jarg2; 
  if (arg1) (arg1)->wsp_localpdp_obl_req = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1localpdp_1obl_1req_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_obl_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_obl_list *) ((arg1)->wsp_localpdp_obl_req);
  *(struct zxid_obl_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1localpdp_1obl_1emit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsp_localpdp_obl_emit = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsp_localpdp_obl_emit, ( char *)arg2);
    } else {
      arg1->wsp_localpdp_obl_emit = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsp_1localpdp_1obl_1emit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wsp_localpdp_obl_emit);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1localpdp_1obl_1accept_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_obl_list *arg2 = (struct zxid_obl_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_obl_list **)&jarg2; 
  if (arg1) (arg1)->wsc_localpdp_obl_accept = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wsc_1localpdp_1obl_1accept_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_obl_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_obl_list *) ((arg1)->wsc_localpdp_obl_accept);
  *(struct zxid_obl_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bootstrap_1level_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->bootstrap_level = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bootstrap_1level_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->bootstrap_level);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1max_1soap_1retry_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->max_soap_retry = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1max_1soap_1retry_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (int) ((arg1)->max_soap_retry);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1start_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_start = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_start, ( char *)arg2);
    } else {
      arg1->idp_sel_start = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1start_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_start);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1new_1idp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_new_idp = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_new_idp, ( char *)arg2);
    } else {
      arg1->idp_sel_new_idp = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1new_1idp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_new_idp);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1our_1eid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_our_eid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_our_eid, ( char *)arg2);
    } else {
      arg1->idp_sel_our_eid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1our_1eid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_our_eid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1tech_1user_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_tech_user = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_tech_user, ( char *)arg2);
    } else {
      arg1->idp_sel_tech_user = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1tech_1user_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_tech_user);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1tech_1site_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_tech_site = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_tech_site, ( char *)arg2);
    } else {
      arg1->idp_sel_tech_site = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1tech_1site_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_tech_site);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1footer_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_footer = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_footer, ( char *)arg2);
    } else {
      arg1->idp_sel_footer = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1footer_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_footer);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1end_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_end = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_end, ( char *)arg2);
    } else {
      arg1->idp_sel_end = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1end_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_end);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1page_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_page = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_page, ( char *)arg2);
    } else {
      arg1->idp_sel_page = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1page_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_page);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1templ_1file_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_templ_file = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_templ_file, ( char *)arg2);
    } else {
      arg1->idp_sel_templ_file = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1templ_1file_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_templ_file);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1templ_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idp_sel_templ = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idp_sel_templ, ( char *)arg2);
    } else {
      arg1->idp_sel_templ = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1sel_1templ_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->idp_sel_templ);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1an_1page_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->an_page = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->an_page, ( char *)arg2);
    } else {
      arg1->an_page = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1an_1page_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->an_page);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1an_1templ_1file_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->an_templ_file = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->an_templ_file, ( char *)arg2);
    } else {
      arg1->an_templ_file = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1an_1templ_1file_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->an_templ_file);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1an_1templ_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->an_templ = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->an_templ, ( char *)arg2);
    } else {
      arg1->an_templ = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1an_1templ_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->an_templ);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1post_1templ_1file_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->post_templ_file = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->post_templ_file, ( char *)arg2);
    } else {
      arg1->post_templ_file = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1post_1templ_1file_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->post_templ_file);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1post_1templ_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->post_templ = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->post_templ, ( char *)arg2);
    } else {
      arg1->post_templ = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1post_1templ_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->post_templ);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1err_1page_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->err_page = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->err_page, ( char *)arg2);
    } else {
      arg1->err_page = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1err_1page_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->err_page);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1err_1templ_1file_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->err_templ_file = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->err_templ_file, ( char *)arg2);
    } else {
      arg1->err_templ_file = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1err_1templ_1file_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->err_templ_file);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1err_1templ_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->err_templ = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->err_templ, ( char *)arg2);
    } else {
      arg1->err_templ = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1err_1templ_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->err_templ);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1new_1user_1page_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->new_user_page = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->new_user_page, ( char *)arg2);
    } else {
      arg1->new_user_page = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1new_1user_1page_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->new_user_page);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1recover_1passwd_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->recover_passwd = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->recover_passwd, ( char *)arg2);
    } else {
      arg1->recover_passwd = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1recover_1passwd_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->recover_passwd);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1atsel_1page_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->atsel_page = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->atsel_page, ( char *)arg2);
    } else {
      arg1->atsel_page = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1atsel_1page_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->atsel_page);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1start_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mgmt_start = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mgmt_start, ( char *)arg2);
    } else {
      arg1->mgmt_start = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1start_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mgmt_start);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1logout_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mgmt_logout = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mgmt_logout, ( char *)arg2);
    } else {
      arg1->mgmt_logout = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1logout_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mgmt_logout);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1defed_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mgmt_defed = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mgmt_defed, ( char *)arg2);
    } else {
      arg1->mgmt_defed = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1defed_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mgmt_defed);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1footer_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mgmt_footer = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mgmt_footer, ( char *)arg2);
    } else {
      arg1->mgmt_footer = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1footer_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mgmt_footer);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1end_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->mgmt_end = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->mgmt_end, ( char *)arg2);
    } else {
      arg1->mgmt_end = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1mgmt_1end_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->mgmt_end);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1dbg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->dbg = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->dbg, ( char *)arg2);
    } else {
      arg1->dbg = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1dbg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->dbg);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wd_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wd = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wd, ( char *)arg2);
    } else {
      arg1->wd = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1wd_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->wd);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bus_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  if (arg1) (arg1)->bus_url = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bus_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_bus_url *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (struct zxid_bus_url *) ((arg1)->bus_url);
  *(struct zxid_bus_url **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bus_1pw_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->bus_pw = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->bus_pw, ( char *)arg2);
    } else {
      arg1->bus_pw = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bus_1pw_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char *) ((arg1)->bus_pw);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1err_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_err = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1err_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_err);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1act_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_act = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1act_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_act);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1issue_1a7n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_issue_a7n = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1issue_1a7n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_issue_a7n);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1issue_1msg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_issue_msg = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1issue_1msg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_issue_msg);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1rely_1a7n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_rely_a7n = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1rely_1a7n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_rely_a7n);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1rely_1msg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_rely_msg = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1rely_1msg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_rely_msg);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1err_1in_1act_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_err_in_act = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1err_1in_1act_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_err_in_act);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1act_1in_1err_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_act_in_err = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1act_1in_1err_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_act_in_err);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1sigfail_1is_1err_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_sigfail_is_err = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1sigfail_1is_1err_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_sigfail_is_err);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1level_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->log_level = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1log_1level_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->log_level);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1user_1local_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->user_local = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1user_1local_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->user_local);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redir_1to_1content_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->redir_to_content = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1redir_1to_1content_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->redir_to_content);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1remote_1user_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->remote_user_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1remote_1user_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->remote_user_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1show_1tech_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->show_tech = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1show_1tech_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->show_tech);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bare_1url_1entityid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->bare_url_entityid = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bare_1url_1entityid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->bare_url_entityid);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1loguser_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->loguser = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1loguser_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->loguser);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1az_1opt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->az_opt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1az_1opt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->az_opt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1valid_1opt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->valid_opt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1valid_1opt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->valid_opt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1pxy_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->idp_pxy_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1idp_1pxy_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->idp_pxy_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1oaz_1jwt_1sigenc_1alg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->oaz_jwt_sigenc_alg = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1oaz_1jwt_1sigenc_1alg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->oaz_jwt_sigenc_alg);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bus_1rcpt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->bus_rcpt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1bus_1rcpt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->bus_rcpt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1az_1fail_1mode_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->az_fail_mode = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1az_1fail_1mode_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->az_fail_mode);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1authority_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->md_authority_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1md_1authority_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->md_authority_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1backwards_1compat_1ena_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->backwards_compat_ena = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1backwards_1compat_1ena_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  result = (char) ((arg1)->backwards_compat_ena);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1conf(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_conf *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_conf *)calloc(1, sizeof(struct zxid_conf));
  *(struct zxid_conf **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1conf(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_conf **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1magic_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  unsigned int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (unsigned int)jarg2; 
  if (arg1) (arg1)->magic = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1magic_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  unsigned int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (unsigned int) ((arg1)->magic);
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1op_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->op = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1op_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->op);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pr_1ix_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pr_ix = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pr_1ix_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->pr_ix);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1allow_1create_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->allow_create = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1allow_1create_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->allow_create);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1ispassive_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->ispassive = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1ispassive_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->ispassive);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1force_1authn_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->force_authn = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1force_1authn_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->force_authn);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1enc_1hint_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->enc_hint = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1enc_1hint_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->enc_hint);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1atselafter_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->atselafter = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1atselafter_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->atselafter);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pad7_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pad7 = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pad7_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char) ((arg1)->pad7);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sid, ( char *)arg2);
    } else {
      arg1->sid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1nid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->nid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->nid, ( char *)arg2);
    } else {
      arg1->nid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1nid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->nid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1uid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->uid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->uid, ( char *)arg2);
    } else {
      arg1->uid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1uid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->uid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pw_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->pw = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->pw, ( char *)arg2);
    } else {
      arg1->pw = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pw_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->pw);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1ssoreq_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ssoreq = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ssoreq, ( char *)arg2);
    } else {
      arg1->ssoreq = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1ssoreq_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->ssoreq);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1cdc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->cdc = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->cdc, ( char *)arg2);
    } else {
      arg1->cdc = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1cdc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->cdc);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1eid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->eid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->eid, ( char *)arg2);
    } else {
      arg1->eid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1eid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->eid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1nid_1fmt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->nid_fmt = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->nid_fmt, ( char *)arg2);
    } else {
      arg1->nid_fmt = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1nid_1fmt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->nid_fmt);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1affil_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->affil = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->affil, ( char *)arg2);
    } else {
      arg1->affil = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1affil_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->affil);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1consent_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->consent = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->consent, ( char *)arg2);
    } else {
      arg1->consent = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1consent_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->consent);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1matching_1rule_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->matching_rule = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->matching_rule, ( char *)arg2);
    } else {
      arg1->matching_rule = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1matching_1rule_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->matching_rule);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1authn_1ctx_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->authn_ctx = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->authn_ctx, ( char *)arg2);
    } else {
      arg1->authn_ctx = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1authn_1ctx_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->authn_ctx);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pxy_1count_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->pxy_count = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->pxy_count, ( char *)arg2);
    } else {
      arg1->pxy_count = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1pxy_1count_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->pxy_count);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1get_1complete_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->get_complete = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->get_complete, ( char *)arg2);
    } else {
      arg1->get_complete = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1get_1complete_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->get_complete);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1idppxylist_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->idppxylist = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->idppxylist, ( char *)arg2);
    } else {
      arg1->idppxylist = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1idppxylist_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->idppxylist);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1rs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->rs = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->rs, ( char *)arg2);
    } else {
      arg1->rs = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1rs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->rs);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1newnym_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->newnym = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->newnym, ( char *)arg2);
    } else {
      arg1->newnym = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1newnym_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->newnym);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1saml_1art_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->saml_art = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->saml_art, ( char *)arg2);
    } else {
      arg1->saml_art = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1saml_1art_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->saml_art);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1saml_1resp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->saml_resp = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->saml_resp, ( char *)arg2);
    } else {
      arg1->saml_resp = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1saml_1resp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->saml_resp);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1saml_1req_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->saml_req = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->saml_req, ( char *)arg2);
    } else {
      arg1->saml_req = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1saml_1req_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->saml_req);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sigalg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sigalg = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sigalg, ( char *)arg2);
    } else {
      arg1->sigalg = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sigalg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sigalg);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sig_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sig = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sig, ( char *)arg2);
    } else {
      arg1->sig = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sig_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sig);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sigval_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sigval = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sigval, ( char *)arg2);
    } else {
      arg1->sigval = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sigval_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sigval);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sigmsg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sigmsg = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sigmsg, ( char *)arg2);
    } else {
      arg1->sigmsg = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sigmsg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sigmsg);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1err_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->err = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->err, ( char *)arg2);
    } else {
      arg1->err = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1err_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->err);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1msg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->msg = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->msg, ( char *)arg2);
    } else {
      arg1->msg = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1msg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->msg);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1dbg_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->dbg = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->dbg, ( char *)arg2);
    } else {
      arg1->dbg = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1dbg_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->dbg);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1zxapp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->zxapp = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->zxapp, ( char *)arg2);
    } else {
      arg1->zxapp = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1zxapp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->zxapp);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1zxrfr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->zxrfr = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->zxrfr, ( char *)arg2);
    } else {
      arg1->zxrfr = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1zxrfr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->zxrfr);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1redirafter_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->redirafter = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->redirafter, ( char *)arg2);
    } else {
      arg1->redirafter = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1redirafter_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->redirafter);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1ok_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ok = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ok, ( char *)arg2);
    } else {
      arg1->ok = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1ok_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->ok);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1templ_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->templ = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->templ, ( char *)arg2);
    } else {
      arg1->templ = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1templ_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->templ);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sp_1eid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sp_eid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sp_eid, ( char *)arg2);
    } else {
      arg1->sp_eid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sp_1eid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sp_eid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sp_1dpy_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sp_dpy_name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sp_dpy_name, ( char *)arg2);
    } else {
      arg1->sp_dpy_name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sp_1dpy_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sp_dpy_name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sp_1button_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sp_button_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sp_button_url, ( char *)arg2);
    } else {
      arg1->sp_button_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1sp_1button_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->sp_button_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1rest_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->rest = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->rest, ( char *)arg2);
    } else {
      arg1->rest = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1rest_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->rest);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1response_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->response_type = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->response_type, ( char *)arg2);
    } else {
      arg1->response_type = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1response_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->response_type);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1client_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->client_id = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->client_id, ( char *)arg2);
    } else {
      arg1->client_id = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1client_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->client_id);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1scope_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->scope = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->scope, ( char *)arg2);
    } else {
      arg1->scope = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1scope_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->scope);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1redirect_1uri_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->redirect_uri = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->redirect_uri, ( char *)arg2);
    } else {
      arg1->redirect_uri = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1redirect_1uri_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->redirect_uri);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1nonce_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->nonce = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->nonce, ( char *)arg2);
    } else {
      arg1->nonce = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1nonce_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->nonce);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1state_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->state = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->state, ( char *)arg2);
    } else {
      arg1->state = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1state_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->state);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1display_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->display = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->display, ( char *)arg2);
    } else {
      arg1->display = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1display_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->display);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1prompt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->prompt = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->prompt, ( char *)arg2);
    } else {
      arg1->prompt = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1prompt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->prompt);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1access_1token_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->access_token = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->access_token, ( char *)arg2);
    } else {
      arg1->access_token = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1access_1token_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->access_token);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1refresh_1token_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->refresh_token = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->refresh_token, ( char *)arg2);
    } else {
      arg1->refresh_token = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1refresh_1token_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->refresh_token);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1token_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->token_type = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->token_type, ( char *)arg2);
    } else {
      arg1->token_type = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1token_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->token_type);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1grant_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->grant_type = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->grant_type, ( char *)arg2);
    } else {
      arg1->grant_type = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1grant_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->grant_type);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1code_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->code = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->code, ( char *)arg2);
    } else {
      arg1->code = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1code_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->code);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1id_1token_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->id_token = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->id_token, ( char *)arg2);
    } else {
      arg1->id_token = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1id_1token_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->id_token);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1expires_1in_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->expires_in = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1expires_1in_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (int) ((arg1)->expires_in);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1iss_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->iss = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->iss, ( char *)arg2);
    } else {
      arg1->iss = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1iss_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->iss);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1user_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->user_id = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->user_id, ( char *)arg2);
    } else {
      arg1->user_id = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1user_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->user_id);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1aud_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->aud = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->aud, ( char *)arg2);
    } else {
      arg1->aud = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1aud_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->aud);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1exp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->exp = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->exp, ( char *)arg2);
    } else {
      arg1->exp = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1exp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->exp);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1iso29115_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->iso29115 = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->iso29115, ( char *)arg2);
    } else {
      arg1->iso29115 = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1iso29115_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->iso29115);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1schema_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->schema = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->schema, ( char *)arg2);
    } else {
      arg1->schema = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1schema_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->schema);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->id = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->id, ( char *)arg2);
    } else {
      arg1->id = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->id);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1inv_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->inv = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->inv, ( char *)arg2);
    } else {
      arg1->inv = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1inv_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->inv);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1skin_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->skin = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->skin, ( char *)arg2);
    } else {
      arg1->skin = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1skin_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->skin);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1action_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->action_url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->action_url, ( char *)arg2);
    } else {
      arg1->action_url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1action_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->action_url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1uri_1path_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->uri_path = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->uri_path, ( char *)arg2);
    } else {
      arg1->uri_path = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1uri_1path_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->uri_path);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1qs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->qs = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->qs, ( char *)arg2);
    } else {
      arg1->qs = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1qs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->qs);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1post_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->post = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->post, ( char *)arg2);
    } else {
      arg1->post = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1post_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (char *) ((arg1)->post);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1idp_1list_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  zxid_entity *arg2 = (zxid_entity *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  arg2 = *(zxid_entity **)&jarg2; 
  if (arg1) (arg1)->idp_list = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1cgi_1idp_1list_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  result = (zxid_entity *) ((arg1)->idp_list);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1cgi(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_cgi *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_cgi *)calloc(1, sizeof(struct zxid_cgi));
  *(struct zxid_cgi **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1cgi(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cgi **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1magic_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  unsigned int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (unsigned int)jarg2; 
  if (arg1) (arg1)->magic = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1magic_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  unsigned int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (unsigned int) ((arg1)->magic);
  jresult = (jlong)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sid, ( char *)arg2);
    } else {
      arg1->sid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->sid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1uid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->uid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->uid, ( char *)arg2);
    } else {
      arg1->uid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1uid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->uid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1nid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->nid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->nid, ( char *)arg2);
    } else {
      arg1->nid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1nid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->nid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->tgt = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->tgt, ( char *)arg2);
    } else {
      arg1->tgt = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->tgt);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sesix_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sesix = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sesix, ( char *)arg2);
    } else {
      arg1->sesix = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sesix_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->sesix);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1ipport_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ipport = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ipport, ( char *)arg2);
    } else {
      arg1->ipport = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1ipport_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->ipport);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1wsc_1msgid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->wsc_msgid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->wsc_msgid, ( char *)arg2);
    } else {
      arg1->wsc_msgid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1wsc_1msgid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->wsc_msgid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1wsp_1msgid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->wsp_msgid = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1wsp_1msgid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zx_str *) ((arg1)->wsp_msgid);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1an_1ctx_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->an_ctx = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->an_ctx, ( char *)arg2);
    } else {
      arg1->an_ctx = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1an_1ctx_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->an_ctx);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1nidfmt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->nidfmt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1nidfmt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char) ((arg1)->nidfmt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgtfmt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->tgtfmt = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgtfmt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char) ((arg1)->tgtfmt);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sigres_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->sigres = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sigres_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char) ((arg1)->sigres);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1ssores_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->ssores = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1ssores_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char) ((arg1)->ssores);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sso_1a7n_1path_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sso_a7n_path = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sso_a7n_path, ( char *)arg2);
    } else {
      arg1->sso_a7n_path = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sso_1a7n_1path_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->sso_a7n_path);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgt_1a7n_1path_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->tgt_a7n_path = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->tgt_a7n_path, ( char *)arg2);
    } else {
      arg1->tgt_a7n_path = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgt_1a7n_1path_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->tgt_a7n_path);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1setcookie_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->setcookie = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->setcookie, ( char *)arg2);
    } else {
      arg1->setcookie = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1setcookie_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->setcookie);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1setptmcookie_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->setptmcookie = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->setptmcookie, ( char *)arg2);
    } else {
      arg1->setptmcookie = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1setptmcookie_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->setptmcookie);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1cookie_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->cookie = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->cookie, ( char *)arg2);
    } else {
      arg1->cookie = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1cookie_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->cookie);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1rs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->rs = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->rs, ( char *)arg2);
    } else {
      arg1->rs = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1rs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->rs);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1rcvd_1usagedir_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->rcvd_usagedir = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->rcvd_usagedir, ( char *)arg2);
    } else {
      arg1->rcvd_usagedir = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1rcvd_1usagedir_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->rcvd_usagedir);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1an_1instant_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  long arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (long)jarg2; 
  if (arg1) (arg1)->an_instant = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1an_1instant_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  long result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (long) ((arg1)->an_instant);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1nameid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_nid *arg2 = (zxid_nid *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_nid **)&jarg2; 
  if (arg1) (arg1)->nameid = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1nameid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_nid *) ((arg1)->nameid);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgtnameid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_nid *arg2 = (zxid_nid *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_nid **)&jarg2; 
  if (arg1) (arg1)->tgtnameid = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgtnameid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_nid *) ((arg1)->tgtnameid);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1a7n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_a7n *arg2 = (zxid_a7n *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_a7n **)&jarg2; 
  if (arg1) (arg1)->a7n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1a7n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_a7n *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_a7n *) ((arg1)->a7n);
  *(zxid_a7n **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgta7n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_a7n *arg2 = (zxid_a7n *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_a7n **)&jarg2; 
  if (arg1) (arg1)->tgta7n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgta7n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_a7n *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_a7n *) ((arg1)->tgta7n);
  *(zxid_a7n **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1jwt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->jwt = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->jwt, ( char *)arg2);
    } else {
      arg1->jwt = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1jwt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->jwt);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgtjwt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->tgtjwt = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->tgtjwt, ( char *)arg2);
    } else {
      arg1->tgtjwt = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgtjwt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->tgtjwt);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1a7n11_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa11_Assertion_s *arg2 = (struct zx_sa11_Assertion_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zx_sa11_Assertion_s **)&jarg2; 
  if (arg1) (arg1)->a7n11 = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1a7n11_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa11_Assertion_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zx_sa11_Assertion_s *) ((arg1)->a7n11);
  *(struct zx_sa11_Assertion_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgta7n11_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa11_Assertion_s *arg2 = (struct zx_sa11_Assertion_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zx_sa11_Assertion_s **)&jarg2; 
  if (arg1) (arg1)->tgta7n11 = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgta7n11_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa11_Assertion_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zx_sa11_Assertion_s *) ((arg1)->tgta7n11);
  *(struct zx_sa11_Assertion_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1a7n12_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_ff12_Assertion_s *arg2 = (struct zx_ff12_Assertion_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zx_ff12_Assertion_s **)&jarg2; 
  if (arg1) (arg1)->a7n12 = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1a7n12_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_ff12_Assertion_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zx_ff12_Assertion_s *) ((arg1)->a7n12);
  *(struct zx_ff12_Assertion_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgta7n12_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_ff12_Assertion_s *arg2 = (struct zx_ff12_Assertion_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zx_ff12_Assertion_s **)&jarg2; 
  if (arg1) (arg1)->tgta7n12 = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1tgta7n12_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_ff12_Assertion_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zx_ff12_Assertion_s *) ((arg1)->tgta7n12);
  *(struct zx_ff12_Assertion_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1call_1invoktok_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_tok *arg2 = (zxid_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_tok **)&jarg2; 
  if (arg1) (arg1)->call_invoktok = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1call_1invoktok_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_tok *) ((arg1)->call_invoktok);
  *(zxid_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1call_1tgttok_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_tok *arg2 = (zxid_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_tok **)&jarg2; 
  if (arg1) (arg1)->call_tgttok = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1call_1tgttok_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_tok *) ((arg1)->call_tgttok);
  *(zxid_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1deleg_1di_1epr_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  if (arg1) (arg1)->deleg_di_epr = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1deleg_1di_1epr_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_epr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_epr *) ((arg1)->deleg_di_epr);
  *(zxid_epr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1curflt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  if (arg1) (arg1)->curflt = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1curflt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_fault *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_fault *) ((arg1)->curflt);
  *(zxid_fault **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1curstatus_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_tas3_status *arg2 = (zxid_tas3_status *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(zxid_tas3_status **)&jarg2; 
  if (arg1) (arg1)->curstatus = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1curstatus_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  zxid_tas3_status *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (zxid_tas3_status *) ((arg1)->curstatus);
  *(zxid_tas3_status **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1issuer_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->issuer = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1issuer_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zx_str *) ((arg1)->issuer);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1srcts_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct timeval arg2 ;
  struct timeval *argp2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  argp2 = *(struct timeval **)&jarg2; 
  if (!argp2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null struct timeval");
    return ;
  }
  arg2 = *argp2; 
  if (arg1) (arg1)->srcts = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1srcts_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct timeval result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result =  ((arg1)->srcts);
  {
    struct timeval * resultptr = (struct timeval *) malloc(sizeof(struct timeval));
    memmove(resultptr, &result, sizeof(struct timeval));
    *(struct timeval **)&jresult = resultptr;
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sesbuf_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sesbuf = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sesbuf, ( char *)arg2);
    } else {
      arg1->sesbuf = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sesbuf_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->sesbuf);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sso_1a7n_1buf_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->sso_a7n_buf = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->sso_a7n_buf, ( char *)arg2);
    } else {
      arg1->sso_a7n_buf = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1sso_1a7n_1buf_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->sso_a7n_buf);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1at_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = *(struct zxid_attr **)&jarg2; 
  if (arg1) (arg1)->at = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1at_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zxid_attr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (struct zxid_attr *) ((arg1)->at);
  *(struct zxid_attr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1access_1token_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->access_token = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->access_token, ( char *)arg2);
    } else {
      arg1->access_token = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1access_1token_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->access_token);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1refresh_1token_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->refresh_token = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->refresh_token, ( char *)arg2);
    } else {
      arg1->refresh_token = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1refresh_1token_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->refresh_token);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1token_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->token_type = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->token_type, ( char *)arg2);
    } else {
      arg1->token_type = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1token_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->token_type);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1id_1token_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->id_token = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->id_token, ( char *)arg2);
    } else {
      arg1->id_token = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1id_1token_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->id_token);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1expires_1in_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->expires_in = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1expires_1in_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (int) ((arg1)->expires_in);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1client_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->client_id = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->client_id, ( char *)arg2);
    } else {
      arg1->client_id = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1client_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->client_id);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1client_1secret_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->client_secret = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->client_secret, ( char *)arg2);
    } else {
      arg1->client_secret = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1client_1secret_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->client_secret);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1rpt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->rpt = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->rpt, ( char *)arg2);
    } else {
      arg1->rpt = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1rpt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  result = (char *) ((arg1)->rpt);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1ses(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_ses *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_ses *)calloc(1, sizeof(struct zxid_ses));
  *(struct zxid_ses **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_ses **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = *(struct zxid_attr **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (struct zxid_attr *) ((arg1)->n);
  *(struct zxid_attr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1nv_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = *(struct zxid_attr **)&jarg2; 
  if (arg1) (arg1)->nv = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1nv_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (struct zxid_attr *) ((arg1)->nv);
  *(struct zxid_attr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->name, ( char *)arg2);
    } else {
      arg1->name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (char *) ((arg1)->name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1val_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->val = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->val, ( char *)arg2);
    } else {
      arg1->val = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1val_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (char *) ((arg1)->val);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1map_1val_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->map_val = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1map_1val_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (struct zx_str *) ((arg1)->map_val);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1orig_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_sa_Attribute_s *arg2 = (struct zx_sa_Attribute_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = *(struct zx_sa_Attribute_s **)&jarg2; 
  if (arg1) (arg1)->orig = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1orig_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_sa_Attribute_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (struct zx_sa_Attribute_s *) ((arg1)->orig);
  *(struct zx_sa_Attribute_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1issuer_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->issuer = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1attr_1issuer_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  result = (struct zx_str *) ((arg1)->issuer);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1attr(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_attr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_attr *)calloc(1, sizeof(struct zxid_attr));
  *(struct zxid_attr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_attr **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  arg2 = *(struct zxid_need **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_need *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  result = (struct zxid_need *) ((arg1)->n);
  *(struct zxid_need **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1at_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  arg2 = *(struct zxid_attr **)&jarg2; 
  if (arg1) (arg1)->at = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1at_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_attr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  result = (struct zxid_attr *) ((arg1)->at);
  *(struct zxid_attr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1usage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->usage = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->usage, ( char *)arg2);
    } else {
      arg1->usage = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1usage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  result = (char *) ((arg1)->usage);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1retent_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->retent = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->retent, ( char *)arg2);
    } else {
      arg1->retent = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1retent_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  result = (char *) ((arg1)->retent);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1oblig_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->oblig = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->oblig, ( char *)arg2);
    } else {
      arg1->oblig = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1oblig_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  result = (char *) ((arg1)->oblig);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1ext_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ext = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ext, ( char *)arg2);
    } else {
      arg1->ext = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1need_1ext_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  result = (char *) ((arg1)->ext);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1need(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_need *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_need *)calloc(1, sizeof(struct zxid_need));
  *(struct zxid_need **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1need(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_need **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  arg2 = *(struct zxid_map **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  result = (struct zxid_map *) ((arg1)->n);
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1rule_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->rule = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1rule_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  result = (int) ((arg1)->rule);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ns = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ns, ( char *)arg2);
    } else {
      arg1->ns = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  result = (char *) ((arg1)->ns);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1src_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->src = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->src, ( char *)arg2);
    } else {
      arg1->src = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1src_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  result = (char *) ((arg1)->src);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1dst_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->dst = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->dst, ( char *)arg2);
    } else {
      arg1->dst = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1dst_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  result = (char *) ((arg1)->dst);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1ext_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ext = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ext, ( char *)arg2);
    } else {
      arg1->ext = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1ext_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  result = (char *) ((arg1)->ext);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1map(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_map *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_map *)calloc(1, sizeof(struct zxid_map));
  *(struct zxid_map **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1map(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_map **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cstr_1list_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cstr_list **)&jarg1; 
  arg2 = *(struct zxid_cstr_list **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1cstr_1list_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cstr_list **)&jarg1; 
  result = (struct zxid_cstr_list *) ((arg1)->n);
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1cstr_1list_1s_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cstr_list **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->s = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->s, ( char *)arg2);
    } else {
      arg1->s = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1cstr_1list_1s_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cstr_list **)&jarg1; 
  result = (char *) ((arg1)->s);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1cstr_1list(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_cstr_list *)calloc(1, sizeof(struct zxid_cstr_list));
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1cstr_1list(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_cstr_list **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1obl_1list_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  struct zxid_obl_list *arg2 = (struct zxid_obl_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  arg2 = *(struct zxid_obl_list **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1obl_1list_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  struct zxid_obl_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  result = (struct zxid_obl_list *) ((arg1)->n);
  *(struct zxid_obl_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1obl_1list_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->name = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->name, ( char *)arg2);
    } else {
      arg1->name = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1obl_1list_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  result = (char *) ((arg1)->name);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1obl_1list_1vals_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  arg2 = *(struct zxid_cstr_list **)&jarg2; 
  if (arg1) (arg1)->vals = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1obl_1list_1vals_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  result = (struct zxid_cstr_list *) ((arg1)->vals);
  *(struct zxid_cstr_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1obl_1list(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_obl_list *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_obl_list *)calloc(1, sizeof(struct zxid_obl_list));
  *(struct zxid_obl_list **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1obl_1list(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_obl_list *arg1 = (struct zxid_obl_list *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_obl_list **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1RENAME_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x00;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1DEL_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x01;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1RESET_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x02;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1FEIDEDEC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x03;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1FEIDEENC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x04;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1UNSB64_1INF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x05;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1DEF_1SB64_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x06;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1UNSB64_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x07;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1SB64_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x08;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1ENC_1MASK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x0f;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1WRAP_1A7N_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x10;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1WRAP_1X509_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x20;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1WRAP_1FILE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x30;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAP_1RULE_1WRAP_1MASK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x30;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1len_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->len = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1len_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (int) ((arg1)->len);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1body_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->body = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->body, ( char *)arg2);
    } else {
      arg1->body = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1body_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->body);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1host_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->host = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->host, ( char *)arg2);
    } else {
      arg1->host = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1host_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->host);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1vers_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->vers = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->vers, ( char *)arg2);
    } else {
      arg1->vers = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1vers_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->vers);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1login_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->login = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->login, ( char *)arg2);
    } else {
      arg1->login = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1login_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->login);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1pw_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->pw = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->pw, ( char *)arg2);
    } else {
      arg1->pw = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1pw_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->pw);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1dest_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->dest = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->dest, ( char *)arg2);
    } else {
      arg1->dest = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1dest_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->dest);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1end_1of_1pdu_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->end_of_pdu = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->end_of_pdu, ( char *)arg2);
    } else {
      arg1->end_of_pdu = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_stomp_1hdr_1end_1of_1pdu_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  result = (char *) ((arg1)->end_of_pdu);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1stomp_1hdr(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct stomp_hdr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct stomp_hdr *)calloc(1, sizeof(struct stomp_hdr));
  *(struct stomp_hdr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1stomp_1hdr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct stomp_hdr *arg1 = (struct stomp_hdr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct stomp_hdr **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  struct zxid_bus_url *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (struct zxid_bus_url *) ((arg1)->n);
  *(struct zxid_bus_url **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1s_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->s = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->s, ( char *)arg2);
    } else {
      arg1->s = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1s_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char *) ((arg1)->s);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1eid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->eid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->eid, ( char *)arg2);
    } else {
      arg1->eid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1eid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char *) ((arg1)->eid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1fd_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->fd = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1fd_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (int) ((arg1)->fd);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1m_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->m = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->m, ( char *)arg2);
    } else {
      arg1->m = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1m_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char *) ((arg1)->m);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1ap_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ap = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ap, ( char *)arg2);
    } else {
      arg1->ap = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1ap_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char *) ((arg1)->ap);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1cur_1rcpt_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->cur_rcpt = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1cur_1rcpt_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (int) ((arg1)->cur_rcpt);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1scalingpart_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->scalingpart = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1scalingpart_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char) ((arg1)->scalingpart);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1pad1_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pad1 = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1pad1_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char) ((arg1)->pad1);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1pad2_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pad2 = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1pad2_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char) ((arg1)->pad2);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1pad3_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jchar jarg2) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  arg2 = (char)jarg2; 
  if (arg1) (arg1)->pad3 = arg2;
}


SWIGEXPORT jchar JNICALL Java_zxidjava_zxidjniJNI_zxid_1bus_1url_1pad3_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jchar jresult = 0 ;
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  char result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  result = (char) ((arg1)->pad3);
  jresult = (jchar)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1bus_1url(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_bus_url *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_bus_url *)calloc(1, sizeof(struct zxid_bus_url));
  *(struct zxid_bus_url **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1bus_1url(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_bus_url *arg1 = (struct zxid_bus_url *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_bus_url **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_atsrc *arg2 = (struct zxid_atsrc *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = *(struct zxid_atsrc **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_atsrc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (struct zxid_atsrc *) ((arg1)->n);
  *(struct zxid_atsrc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1at_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = *(struct zxid_attr **)&jarg2; 
  if (arg1) (arg1)->at = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1at_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_attr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (struct zxid_attr *) ((arg1)->at);
  *(struct zxid_attr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1ns_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ns = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ns, ( char *)arg2);
    } else {
      arg1->ns = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1ns_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (char *) ((arg1)->ns);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1weight_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->weight = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->weight, ( char *)arg2);
    } else {
      arg1->weight = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1weight_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (char *) ((arg1)->weight);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->url = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->url, ( char *)arg2);
    } else {
      arg1->url = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1url_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (char *) ((arg1)->url);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1aapml_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->aapml = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->aapml, ( char *)arg2);
    } else {
      arg1->aapml = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1aapml_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (char *) ((arg1)->aapml);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1otherlim_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->otherlim = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->otherlim, ( char *)arg2);
    } else {
      arg1->otherlim = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1otherlim_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (char *) ((arg1)->otherlim);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1ext_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->ext = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->ext, ( char *)arg2);
    } else {
      arg1->ext = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1atsrc_1ext_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  result = (char *) ((arg1)->ext);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1atsrc(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_atsrc *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_atsrc *)calloc(1, sizeof(struct zxid_atsrc));
  *(struct zxid_atsrc **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1atsrc(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_atsrc **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1perm_1n_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  struct zxid_perm *arg2 = (struct zxid_perm *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  arg2 = *(struct zxid_perm **)&jarg2; 
  if (arg1) (arg1)->n = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1perm_1n_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  struct zxid_perm *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  result = (struct zxid_perm *) ((arg1)->n);
  *(struct zxid_perm **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1perm_1eid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->eid = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1perm_1eid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  result = (struct zx_str *) ((arg1)->eid);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1perm_1qs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->qs = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1perm_1qs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  result = (struct zx_str *) ((arg1)->qs);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1perm(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_perm *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_perm *)calloc(1, sizeof(struct zxid_perm));
  *(struct zxid_perm **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1perm(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_perm *arg1 = (struct zxid_perm *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_perm **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1psobj_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->psobj = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1psobj_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zx_str *) ((arg1)->psobj);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1uid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->uid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->uid, ( char *)arg2);
    } else {
      arg1->uid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1uid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (char *) ((arg1)->uid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1idpnid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->idpnid = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1idpnid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zx_str *) ((arg1)->idpnid);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1dispname_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->dispname = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1dispname_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zx_str *) ((arg1)->dispname);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1tags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->tags = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1tags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zx_str *) ((arg1)->tags);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1invids_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->invids = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1invids_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zx_str *) ((arg1)->invids);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1perms_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zxid_perm *arg2 = (struct zxid_perm *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zxid_perm **)&jarg2; 
  if (arg1) (arg1)->perms = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1perms_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zxid_perm *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zxid_perm *) ((arg1)->perms);
  *(struct zxid_perm **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1child_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zxid_psobj *arg2 = (struct zxid_psobj *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = *(struct zxid_psobj **)&jarg2; 
  if (arg1) (arg1)->child = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1child_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  struct zxid_psobj *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (struct zxid_psobj *) ((arg1)->child);
  *(struct zxid_psobj **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1nodetype_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->nodetype = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1nodetype_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (int) ((arg1)->nodetype);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1create_1secs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->create_secs = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1create_1secs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (int) ((arg1)->create_secs);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1mod_1secs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->mod_secs = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1psobj_1mod_1secs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  result = (int) ((arg1)->mod_secs);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1psobj(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_psobj *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_psobj *)calloc(1, sizeof(struct zxid_psobj));
  *(struct zxid_psobj **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1psobj(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_psobj *arg1 = (struct zxid_psobj *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_psobj **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1PSOBJ_1BUDDY_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1PSOBJ_1COLLECTION_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1invid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->invid = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1invid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (struct zx_str *) ((arg1)->invid);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1uid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  {
    if (arg2) {
      arg1->uid = (char *) malloc(strlen(( char *)arg2)+1);
      strcpy((char *)arg1->uid, ( char *)arg2);
    } else {
      arg1->uid = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1uid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (char *) ((arg1)->uid);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1desc_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->desc = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1desc_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (struct zx_str *) ((arg1)->desc);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1psobj_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->psobj = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1psobj_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (struct zx_str *) ((arg1)->psobj);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1ps2spredir_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->ps2spredir = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1ps2spredir_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (struct zx_str *) ((arg1)->ps2spredir);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1obj_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zxid_psobj *arg2 = (struct zxid_psobj *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = *(struct zxid_psobj **)&jarg2; 
  if (arg1) (arg1)->obj = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1obj_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zxid_psobj *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (struct zxid_psobj *) ((arg1)->obj);
  *(struct zxid_psobj **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1perms_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zxid_perm *arg2 = (struct zxid_perm *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = *(struct zxid_perm **)&jarg2; 
  if (arg1) (arg1)->perms = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1perms_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  struct zxid_perm *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (struct zxid_perm *) ((arg1)->perms);
  *(struct zxid_perm **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1maxusage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->maxusage = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1maxusage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (int) ((arg1)->maxusage);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1usage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->usage = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1usage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (int) ((arg1)->usage);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1starts_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->starts = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1starts_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (int) ((arg1)->starts);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1expires_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int arg2 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  arg2 = (int)jarg2; 
  if (arg1) (arg1)->expires = arg2;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1invite_1expires_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jint jresult = 0 ;
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  result = (int) ((arg1)->expires);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxid_1invite(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxid_invite *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxid_invite *)calloc(1, sizeof(struct zxid_invite));
  *(struct zxid_invite **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxid_1invite(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxid_invite *arg1 = (struct zxid_invite *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxid_invite **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SES_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "ses/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1USER_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "user/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1UID_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "uid/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1NID_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "nid/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1PEM_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "pem/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1COT_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "cot/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1DIMD_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "dimd/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1INV_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "inv/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1LOG_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "log/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1DCR_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "dcr/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1RSR_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "rsr/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAX_1USER_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (256);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1INIT_1MD_1BUF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (8*1024-1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1INIT_1SOAP_1BUF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (8*1024-1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAX_1CURL_1BUF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (10*1024*1024-1);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAX_1EID_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (1024);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAX_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (4*1024);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MAX_1SP_1NAME_1BUF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) (1024);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1EXIT_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x01;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1REDIR_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x02;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1SOAPC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x04;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1SOAPH_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x08;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1METAC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x10;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1METAH_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x20;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1LOGINC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x40;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1LOGINH_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x80;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1MGMTC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x100;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1MGMTH_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x200;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1FORMF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x400;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1FORMT_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x800;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1ALL_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0xfff;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1DEBUG_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x1000;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1FMTQ_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x2000;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1AUTO_1FMTJ_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x4000;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jint jarg3) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  result = (char *)zxid_simple(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1list(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = (int)jarg2; 
  result = (char *)zxid_idp_list(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1select(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = (int)jarg2; 
  result = (char *)zxid_idp_select(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1fed_1mgmt(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jint jarg3) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  result = (char *)zxid_fed_mgmt(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1new_1conf_1to_1cf(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jlong jresult = 0 ;
  char *arg1 = (char *) 0 ;
  zxid_conf *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  result = (zxid_conf *)zxid_new_conf_to_cf(arg1);
  *(zxid_conf **)&jresult = result; 
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jlong jarg4, jint jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = *(int **)&jarg4; 
  arg5 = (int)jarg5; 
  result = (char *)zxid_simple_cf(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1list_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int *arg2 = (int *) 0 ;
  int arg3 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(int **)&jarg2; 
  arg3 = (int)jarg3; 
  result = (char *)zxid_idp_list_cf(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1select_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int *arg2 = (int *) 0 ;
  int arg3 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(int **)&jarg2; 
  arg3 = (int)jarg3; 
  result = (char *)zxid_idp_select_cf(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1fed_1mgmt_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4, jint jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int *arg2 = (int *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(int **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  result = (char *)zxid_fed_mgmt_cf(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1conf_1to_1cf_1len(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (int)zxid_conf_to_cf_len(arg1,arg2,arg3);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1len(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jint jarg3, jstring jarg4, jlong jarg5, jint jarg6) {
  jstring jresult = 0 ;
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int *arg5 = (int *) 0 ;
  int arg6 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = *(int **)&jarg5; 
  arg6 = (int)jarg6; 
  result = (char *)zxid_simple_len(arg1,arg2,arg3,arg4,arg5,arg6);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1show_1idp_1sel(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(int **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (char *)zxid_simple_show_idp_sel(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1list_1len(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(int **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (char *)zxid_idp_list_len(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1list_1cf_1cgi(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(int **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (char *)zxid_idp_list_cf_cgi(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1select_1len(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(int **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (char *)zxid_idp_select_len(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1fed_1mgmt_1len(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jlong jarg3, jstring jarg4, jint jarg5) {
  jstring jresult = 0 ;
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = (int)jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(int **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  result = (char *)zxid_fed_mgmt_len(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1select_1zxstr_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  result = (struct zx_str *)zxid_idp_select_zxstr_cf(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1show_1err(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jint jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(int **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (char *)zxid_simple_show_err(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1ses_1active_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jint jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(int **)&jarg4; 
  arg5 = (int)jarg5; 
  result = (char *)zxid_simple_ses_active_cf(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1no_1ses_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jint jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(int **)&jarg4; 
  arg5 = (int)jarg5; 
  result = (char *)zxid_simple_no_ses_cf(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1simple_1cf_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jlong jarg4, jlong jarg5, jint jarg6) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  zxid_ses *arg4 = (zxid_ses *) 0 ;
  int *arg5 = (int *) 0 ;
  int arg6 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = *(zxid_ses **)&jarg4; 
  arg5 = *(int **)&jarg5; 
  arg6 = (int)jarg6; 
  result = (char *)zxid_simple_cf_ses(arg1,arg2,arg3,arg4,arg5,arg6);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1template_1page_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jint jarg5, jint jarg6) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  int arg6 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  arg6 = (int)jarg6; 
  result = (struct zx_str *)zxid_template_page_cf(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SSO_1SIGN_1A7N_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x01;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SSO_1SIGN_1RESP_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x02;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SSO_1SIGN_1A7N_1SIMPLE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x04;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SIGN_1HDR_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x01;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SIGN_1BDY_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x02;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1sref_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_ds_Reference_s *arg2 = (struct zx_ds_Reference_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  arg2 = *(struct zx_ds_Reference_s **)&jarg2; 
  if (arg1) (arg1)->sref = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1sref_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_ds_Reference_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  result = (struct zx_ds_Reference_s *) ((arg1)->sref);
  *(struct zx_ds_Reference_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1blob_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  if (arg1) (arg1)->blob = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1blob_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_elem_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  result = (struct zx_elem_s *) ((arg1)->blob);
  *(struct zx_elem_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1id_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->id = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1id_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  result = (struct zx_str *) ((arg1)->id);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1canon_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  if (arg1) (arg1)->canon = arg2;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1canon_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  result = (struct zx_str *) ((arg1)->canon);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1pop_1seen_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  arg2 = *(struct zx_ns_s **)&jarg2; 
  if (arg1) (arg1)->pop_seen = arg2;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxsig_1ref_1pop_1seen_1get(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  result = (struct zx_ns_s *) ((arg1)->pop_seen);
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_new_1zxsig_1ref(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zxsig_ref *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zxsig_ref *)calloc(1, sizeof(struct zxsig_ref));
  *(struct zxsig_ref **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_delete_1zxsig_1ref(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zxsig_ref **)&jarg1; 
  free((char *) arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1OK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1BAD_1DALGO_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1DIGEST_1LEN_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1BAD_1DIGEST_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 3;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1BAD_1SALGO_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 4;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1BAD_1CERT_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 5;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1VFY_1FAIL_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 6;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1NO_1SIG_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 7;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1TIMEOUT_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 8;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXSIG_1AUDIENCE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 9;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxenc_1privkey_1dec(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_xenc_EncryptedData_s *arg2 = (struct zx_xenc_EncryptedData_s *) 0 ;
  struct zx_xenc_EncryptedKey_s *arg3 = (struct zx_xenc_EncryptedKey_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_xenc_EncryptedData_s **)&jarg2; 
  arg3 = *(struct zx_xenc_EncryptedKey_s **)&jarg3; 
  result = (struct zx_str *)zxenc_privkey_dec(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxenc_1symkey_1enc(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jlong jarg5) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_xenc_EncryptedKey_s *arg5 = (struct zx_xenc_EncryptedKey_s *) 0 ;
  struct zx_xenc_EncryptedData_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  arg5 = *(struct zx_xenc_EncryptedKey_s **)&jarg5; 
  result = (struct zx_xenc_EncryptedData_s *)zxenc_symkey_enc(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_xenc_EncryptedData_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxenc_1symkey_1dec(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_xenc_EncryptedData_s *arg2 = (struct zx_xenc_EncryptedData_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_xenc_EncryptedData_s **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  result = (struct zx_str *)zxenc_symkey_dec(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXBUS_1CH_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "ch/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1RELY_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "rely/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1ISSUE_1DIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "issue/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1A7N_1KIND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/a7n/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1JWT_1KIND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/jwt/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1AZC_1KIND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/azc/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1MSG_1KIND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/msg/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXLOG_1WIR_1KIND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "/wir/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxlog_1write_1line(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jint jarg4, jstring jarg5) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  arg3 = (int)jarg3; 
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return ;
  }
  zxlog_write_line(arg1,arg2,arg3,arg4,arg5);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxlog_1dup_1check(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *arg3 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (int)zxlog_dup_check(arg1,arg2,arg3);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxlog_1blob(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  char *arg5 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (int)zxlog_blob(arg1,arg2,arg3,arg4,arg5);
  jresult = (jint)result; 
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxlog(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jstring jarg11, jstring jarg12, jstring jarg13) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct timeval *arg2 = (struct timeval *) 0 ;
  struct timeval *arg3 = (struct timeval *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_str *arg7 = (struct zx_str *) 0 ;
  struct zx_str *arg8 = (struct zx_str *) 0 ;
  char *arg9 = (char *) 0 ;
  char *arg10 = (char *) 0 ;
  char *arg11 = (char *) 0 ;
  char *arg12 = (char *) 0 ;
  char *arg13 = (char *) 0 ;
  void *arg14 = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct timeval **)&jarg2; 
  arg3 = *(struct timeval **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = *(struct zx_str **)&jarg5; 
  arg6 = *(struct zx_str **)&jarg6; 
  arg7 = *(struct zx_str **)&jarg7; 
  arg8 = *(struct zx_str **)&jarg8; 
  arg9 = 0;
  if (jarg9) {
    arg9 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg9, 0);
    if (!arg9) return 0;
  }
  arg10 = 0;
  if (jarg10) {
    arg10 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg10, 0);
    if (!arg10) return 0;
  }
  arg11 = 0;
  if (jarg11) {
    arg11 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg11, 0);
    if (!arg11) return 0;
  }
  arg12 = 0;
  if (jarg12) {
    arg12 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg12, 0);
    if (!arg12) return 0;
  }
  arg13 = 0;
  if (jarg13) {
    arg13 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg13, 0);
    if (!arg13) return 0;
  }
  result = (int)zxlog(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
  jresult = (jint)result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg9) (*jenv)->ReleaseStringUTFChars(jenv, jarg9, ( char *)arg9);
  if (arg10) (*jenv)->ReleaseStringUTFChars(jenv, jarg10, ( char *)arg10);
  if (arg11) (*jenv)->ReleaseStringUTFChars(jenv, jarg11, ( char *)arg11);
  if (arg12) (*jenv)->ReleaseStringUTFChars(jenv, jarg12, ( char *)arg12);
  if (arg13) (*jenv)->ReleaseStringUTFChars(jenv, jarg13, ( char *)arg13);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxlogwsp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  void *arg7 = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  result = (int)zxlogwsp(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxlogusr(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jlong jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9, jstring jarg10, jstring jarg11, jstring jarg12, jstring jarg13, jstring jarg14) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct timeval *arg3 = (struct timeval *) 0 ;
  struct timeval *arg4 = (struct timeval *) 0 ;
  char *arg5 = (char *) 0 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_str *arg7 = (struct zx_str *) 0 ;
  struct zx_str *arg8 = (struct zx_str *) 0 ;
  struct zx_str *arg9 = (struct zx_str *) 0 ;
  char *arg10 = (char *) 0 ;
  char *arg11 = (char *) 0 ;
  char *arg12 = (char *) 0 ;
  char *arg13 = (char *) 0 ;
  char *arg14 = (char *) 0 ;
  void *arg15 = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(struct timeval **)&jarg3; 
  arg4 = *(struct timeval **)&jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = *(struct zx_str **)&jarg6; 
  arg7 = *(struct zx_str **)&jarg7; 
  arg8 = *(struct zx_str **)&jarg8; 
  arg9 = *(struct zx_str **)&jarg9; 
  arg10 = 0;
  if (jarg10) {
    arg10 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg10, 0);
    if (!arg10) return 0;
  }
  arg11 = 0;
  if (jarg11) {
    arg11 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg11, 0);
    if (!arg11) return 0;
  }
  arg12 = 0;
  if (jarg12) {
    arg12 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg12, 0);
    if (!arg12) return 0;
  }
  arg13 = 0;
  if (jarg13) {
    arg13 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg13, 0);
    if (!arg13) return 0;
  }
  arg14 = 0;
  if (jarg14) {
    arg14 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg14, 0);
    if (!arg14) return 0;
  }
  result = (int)zxlogusr(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg10) (*jenv)->ReleaseStringUTFChars(jenv, jarg10, ( char *)arg10);
  if (arg11) (*jenv)->ReleaseStringUTFChars(jenv, jarg11, ( char *)arg11);
  if (arg12) (*jenv)->ReleaseStringUTFChars(jenv, jarg12, ( char *)arg12);
  if (arg13) (*jenv)->ReleaseStringUTFChars(jenv, jarg13, ( char *)arg13);
  if (arg14) (*jenv)->ReleaseStringUTFChars(jenv, jarg14, ( char *)arg14);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_errmac_1debug_1xml_1blob(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jstring jarg4, jstring jarg5, jint jarg6, jstring jarg7) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return ;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return ;
  }
  arg6 = (int)jarg6; 
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return ;
  }
  errmac_debug_xml_blob(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxbus_1mint_1receipt(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jstring jarg5, jint jarg6, jstring jarg7, jint jarg8, jstring jarg9, jint jarg10, jstring jarg11) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  int arg8 ;
  char *arg9 = (char *) 0 ;
  int arg10 ;
  char *arg11 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = (int)jarg6; 
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  arg8 = (int)jarg8; 
  arg9 = 0;
  if (jarg9) {
    arg9 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg9, 0);
    if (!arg9) return 0;
  }
  arg10 = (int)jarg10; 
  arg11 = 0;
  if (jarg11) {
    arg11 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg11, 0);
    if (!arg11) return 0;
  }
  result = (char *)zxbus_mint_receipt(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  if (arg9) (*jenv)->ReleaseStringUTFChars(jenv, jarg9, ( char *)arg9);
  if (arg11) (*jenv)->ReleaseStringUTFChars(jenv, jarg11, ( char *)arg11);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1verify_1receipt(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jstring jarg4, jint jarg5, jstring jarg6, jint jarg7, jstring jarg8, jint jarg9, jstring jarg10, jint jarg11, jstring jarg12) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  char *arg8 = (char *) 0 ;
  int arg9 ;
  char *arg10 = (char *) 0 ;
  int arg11 ;
  char *arg12 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = (int)jarg7; 
  arg8 = 0;
  if (jarg8) {
    arg8 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg8, 0);
    if (!arg8) return 0;
  }
  arg9 = (int)jarg9; 
  arg10 = 0;
  if (jarg10) {
    arg10 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg10, 0);
    if (!arg10) return 0;
  }
  arg11 = (int)jarg11; 
  arg12 = 0;
  if (jarg12) {
    arg12 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg12, 0);
    if (!arg12) return 0;
  }
  result = (int)zxbus_verify_receipt(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg8) (*jenv)->ReleaseStringUTFChars(jenv, jarg8, ( char *)arg8);
  if (arg10) (*jenv)->ReleaseStringUTFChars(jenv, jarg10, ( char *)arg10);
  if (arg12) (*jenv)->ReleaseStringUTFChars(jenv, jarg12, ( char *)arg12);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1persist_1msg(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jstring jarg5, jint jarg6, jstring jarg7) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = (int)jarg6; 
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  result = (int)zxbus_persist_msg(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1open_1bus_1url(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  result = (int)zxbus_open_bus_url(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1close(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  result = (int)zxbus_close(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxbus_1close_1all(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  zxbus_close_all(arg1);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1send_1cmdf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4, jstring jarg5) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  void *arg6 = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (int)zxbus_send_cmdf(arg1,arg2,arg3,arg4,arg5,arg6);
  jresult = (jint)result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1send_1cmd(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4, jstring jarg5) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (int)zxbus_send_cmd(arg1,arg2,arg3,arg4,arg5);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1send(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3, jstring jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (int)zxbus_send(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1read_1stomp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  struct stomp_hdr *arg3 = (struct stomp_hdr *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  arg3 = *(struct stomp_hdr **)&jarg3; 
  result = (int)zxbus_read_stomp(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxbus_1ack_1msg(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  struct stomp_hdr *arg3 = (struct stomp_hdr *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  arg3 = *(struct stomp_hdr **)&jarg3; 
  result = (int)zxbus_ack_msg(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxbus_1listen_1msg(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zxid_bus_url *arg2 = (struct zxid_bus_url *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zxid_bus_url **)&jarg2; 
  result = (char *)zxbus_listen_msg(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ent_1file(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (zxid_entity *)zxid_get_ent_file(arg1,arg2,arg3);
  *(zxid_entity **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ent_1cache(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (zxid_entity *)zxid_get_ent_cache(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1write_1ent_1to_1cache(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_entity *arg2 = (zxid_entity *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_entity **)&jarg2; 
  result = (int)zxid_write_ent_to_cache(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1parse_1meta(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char **arg2 = (char **) 0 ;
  char *arg3 = (char *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(char ***)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (zxid_entity *)zxid_parse_meta(arg1,arg2,arg3);
  *(zxid_entity **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1meta_1ss(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (zxid_entity *)zxid_get_meta_ss(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1meta(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_entity *)zxid_get_meta(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ent_1ss(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (zxid_entity *)zxid_get_ent_ss(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ent(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_entity *)zxid_get_ent(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ent_1by_1succinct_1id(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_entity *)zxid_get_ent_by_succinct_id(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ent_1by_1sha1_1name(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_entity *)zxid_get_ent_by_sha1_name(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1load_1cot_1cache(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (zxid_entity *)zxid_load_cot_cache(arg1);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1meta(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  result = (struct zx_str *)zxid_sp_meta(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1send_1sp_1meta(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  result = (int)zxid_send_sp_meta(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1carml(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (struct zx_str *)zxid_sp_carml(arg1);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1my_1ent_1id(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (struct zx_str *)zxid_my_ent_id(arg1);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1my_1ent_1id_1cstr(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (char *)zxid_my_ent_id_cstr(arg1);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1my_1ent_1id_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  result = (struct zx_attr_s *)zxid_my_ent_id_attr(arg1,arg2,arg3);
  *(struct zx_attr_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1my_1cdc_1url(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (struct zx_str *)zxid_my_cdc_url(arg1);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1my_1issuer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_sa_Issuer_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_sa_Issuer_s *)zxid_my_issuer(arg1,arg2);
  *(struct zx_sa_Issuer_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1issuer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_sa_Issuer_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_sa_Issuer_s *)zxid_issuer(arg1,arg2,arg3,arg4);
  *(struct zx_sa_Issuer_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1opt(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jint jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  int arg3 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = (int)jarg3; 
  result = (int)zxid_set_opt(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1opt_1cstr(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_set_opt_cstr(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1url_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return ;
  }
  zxid_url_set(arg1,arg2);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1init_1conf(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (int)zxid_init_conf(arg1,arg2);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1free_1conf(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  zxid_free_conf(arg1);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1init_1conf_1ctx(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_conf *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_conf *)zxid_init_conf_ctx(arg1,arg2);
  *(zxid_conf **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1new_1conf(JNIEnv *jenv, jclass jcls, jstring jarg1) {
  jlong jresult = 0 ;
  char *arg1 = (char *) 0 ;
  zxid_conf *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  result = (zxid_conf *)zxid_new_conf(arg1);
  *(zxid_conf **)&jresult = result; 
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1parse_1conf_1raw(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (int)zxid_parse_conf_raw(arg1,arg2,arg3);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1parse_1conf(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (int)zxid_parse_conf(arg1,arg2);
  jresult = (jint)result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1self_1sig_1cert(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (int)zxid_mk_self_sig_cert(arg1,arg2,arg3,arg4,arg5);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1at_1cert(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jstring jarg4, jlong jarg5, jstring jarg6, jstring jarg7) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  zxid_nid *arg5 = (zxid_nid *) 0 ;
  char *arg6 = (char *) 0 ;
  struct zx_str *arg7 = (struct zx_str *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = *(zxid_nid **)&jarg5; 
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = *(struct zx_str **)&jarg7; 
  result = (int)zxid_mk_at_cert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1show_1conf(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (struct zx_str *)zxid_show_conf(arg1);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1parse_1cgi(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  char *arg3 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (int)zxid_parse_cgi(arg1,arg2,arg3);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1new_1cgi(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_cgi *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_cgi *)zxid_new_cgi(arg1,arg2);
  *(zxid_cgi **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1sid_1from_1cookie(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  char *arg3 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return ;
  }
  zxid_get_sid_from_cookie(arg1,arg2,arg3);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1alloc_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (zxid_ses *)zxid_alloc_ses(arg1);
  *(zxid_ses **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1fetch_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_ses *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (zxid_ses *)zxid_fetch_ses(arg1,arg2);
  *(zxid_ses **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (int)zxid_get_ses(arg1,arg2,arg3);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1put_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (int)zxid_put_ses(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1del_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (int)zxid_del_ses(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ses_1sso_1a7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (int)zxid_get_ses_sso_a7n(arg1,arg2);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1ses_1idp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_entity *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_entity *)zxid_get_ses_idp(arg1,arg2);
  *(zxid_entity **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1find_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  result = (int)zxid_find_ses(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1to_1ldif(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (struct zx_str *)zxid_ses_to_ldif(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1to_1json(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (struct zx_str *)zxid_ses_to_json(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1to_1qs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (struct zx_str *)zxid_ses_to_qs(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1ses_1to_1pool(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  zxid_ses_to_pool(arg1,arg2);
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1add_1attr_1to_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return ;
  }
  arg4 = *(struct zx_str **)&jarg4; 
  zxid_add_attr_to_ses(arg1,arg2,arg3,arg4);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1add_1qs2ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  result = (int)zxid_add_qs2ses(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1user_1sha1_1name(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return ;
  }
  zxid_user_sha1_name(arg1,arg2,arg3,arg4);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1put_1user(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  char *arg6 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  arg5 = *(struct zx_str **)&jarg5; 
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  result = (int)zxid_put_user(arg1,arg2,arg3,arg4,arg5,arg6);
  jresult = (jint)result; 
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1user_1nameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_nid *arg2 = (zxid_nid *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_nid **)&jarg2; 
  result = (zxid_nid *)zxid_get_user_nameid(arg1,arg2);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1user_1change_1nameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_nid *arg2 = (zxid_nid *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_nid **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  zxid_user_change_nameid(arg1,arg2,arg3);
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1pw_1authn(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  result = (int)zxid_pw_authn(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1http_1cli(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jint jarg8) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  int arg8 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  arg8 = (int)jarg8; 
  result = (struct zx_str *)zxid_http_cli(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1soap_1call_1raw(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jlong jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_e_Envelope_s *arg3 = (struct zx_e_Envelope_s *) 0 ;
  char **arg4 = (char **) 0 ;
  struct zx_root_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_e_Envelope_s **)&jarg3; 
  arg4 = *(char ***)&jarg4; 
  result = (struct zx_root_s *)zxid_soap_call_raw(arg1,arg2,arg3,arg4);
  *(struct zx_root_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1soap_1call_1hdr_1body(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3, jlong jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_e_Header_s *arg3 = (struct zx_e_Header_s *) 0 ;
  struct zx_e_Body_s *arg4 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_e_Header_s **)&jarg3; 
  arg4 = *(struct zx_e_Body_s **)&jarg4; 
  result = (struct zx_root_s *)zxid_soap_call_hdr_body(arg1,arg2,arg3,arg4);
  *(struct zx_root_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1soap_1cgi_1resp_1body(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  struct zx_e_Body_s *arg3 = (struct zx_e_Body_s *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(struct zx_e_Body_s **)&jarg3; 
  result = (int)zxid_soap_cgi_resp_body(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1last_1content_1type(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (char *)zxid_get_last_content_type(arg1);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1version(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int)zxid_version();
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1version_1str(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *)zxid_version_str();
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1easy_1enc_1elem_1opt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_str *)zx_easy_enc_elem_opt(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1easy_1enc_1elem_1sig(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_str *)zx_easy_enc_elem_sig(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1date_1time(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  time_t arg2 ;
  time_t *argp2 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  argp2 = *(time_t **)&jarg2; 
  if (!argp2) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null time_t");
    return 0;
  }
  arg2 = *argp2; 
  result = (struct zx_str *)zxid_date_time(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1id(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jint jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = (int)jarg3; 
  result = (struct zx_str *)zxid_mk_id(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1date_1time_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jlong jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  time_t arg4 ;
  time_t *argp4 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  argp4 = *(time_t **)&jarg4; 
  if (!argp4) {
    SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null time_t");
    return 0;
  }
  arg4 = *argp4; 
  result = (struct zx_attr_s *)zxid_date_time_attr(arg1,arg2,arg3,arg4);
  *(struct zx_attr_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1id_1attr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jint jarg3, jstring jarg4, jint jarg5) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  struct zx_attr_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = (int)jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  result = (struct zx_attr_s *)zxid_mk_id_attr(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_attr_s **)&jresult = result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1saml2_1post_1enc(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jint jarg5, jstring jarg6) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = (int)jarg5; 
  arg6 = *(struct zx_str **)&jarg6; 
  result = (struct zx_str *)zxid_saml2_post_enc(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1saml2_1redir_1enc(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_saml2_redir_enc(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1saml2_1redir_1url(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_saml2_redir_url(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1saml2_1redir(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_saml2_redir(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1saml2_1resp_1redir(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_saml2_resp_redir(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1saml_1ok(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  struct zx_sp_Status_s *arg3 = (struct zx_sp_Status_s *) 0 ;
  char *arg4 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(struct zx_sp_Status_s **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (int)zxid_saml_ok(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1decrypt_1nameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_nid *arg2 = (zxid_nid *) 0 ;
  struct zx_sa_EncryptedID_s *arg3 = (struct zx_sa_EncryptedID_s *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_nid **)&jarg2; 
  arg3 = *(struct zx_sa_EncryptedID_s **)&jarg3; 
  result = (zxid_nid *)zxid_decrypt_nameid(arg1,arg2,arg3);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1decrypt_1newnym(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_sp_NewEncryptedID_s *arg3 = (struct zx_sp_NewEncryptedID_s *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  arg3 = *(struct zx_sp_NewEncryptedID_s **)&jarg3; 
  result = (struct zx_str *)zxid_decrypt_newnym(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1extract_1body(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  result = (char *)zxid_extract_body(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1get_1symkey(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zx_get_symkey(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1idp_1soap(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jint jarg5, jlong jarg6) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  zxid_entity *arg4 = (zxid_entity *) 0 ;
  int arg5 ;
  struct zx_e_Body_s *arg6 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(zxid_entity **)&jarg4; 
  arg5 = (int)jarg5; 
  arg6 = *(struct zx_e_Body_s **)&jarg6; 
  result = (struct zx_root_s *)zxid_idp_soap(arg1,arg2,arg3,arg4,arg5,arg6);
  *(struct zx_root_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1soap(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jint jarg5, jlong jarg6) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  zxid_entity *arg4 = (zxid_entity *) 0 ;
  int arg5 ;
  struct zx_e_Body_s *arg6 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(zxid_entity **)&jarg4; 
  arg5 = (int)jarg5; 
  arg6 = *(struct zx_e_Body_s **)&jarg6; 
  result = (struct zx_root_s *)zxid_sp_soap(arg1,arg2,arg3,arg4,arg5,arg6);
  *(struct zx_root_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1extract_1issuer(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  struct zx_root_s *arg4 = (struct zx_root_s *) 0 ;
  struct zx_sa_Issuer_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(struct zx_root_s **)&jarg4; 
  result = (struct zx_sa_Issuer_s *)zxid_extract_issuer(arg1,arg2,arg3,arg4);
  *(struct zx_sa_Issuer_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1decode_1redir_1or_1post(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jint jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int arg4 ;
  struct zx_root_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = (int)jarg4; 
  result = (struct zx_root_s *)zxid_decode_redir_or_post(arg1,arg2,arg3,arg4);
  *(struct zx_root_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1dec_1a7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_a7n *arg2 = (zxid_a7n *) 0 ;
  struct zx_sa_EncryptedAssertion_s *arg3 = (struct zx_sa_EncryptedAssertion_s *) 0 ;
  zxid_a7n *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_a7n **)&jarg2; 
  arg3 = *(struct zx_sa_EncryptedAssertion_s **)&jarg3; 
  result = (zxid_a7n *)zxid_dec_a7n(arg1,arg2,arg3);
  *(zxid_a7n **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1deref_1art(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  result = (int)zxid_sp_deref_art(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1as_1call_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_entity *arg2 = (zxid_entity *) 0 ;
  zxid_cgi *arg3 = (zxid_cgi *) 0 ;
  zxid_ses *arg4 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_entity **)&jarg2; 
  arg3 = *(zxid_cgi **)&jarg3; 
  arg4 = *(zxid_ses **)&jarg4; 
  result = (int)zxid_as_call_ses(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1as_1call(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_entity *arg2 = (zxid_entity *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  zxid_ses *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_entity **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (zxid_ses *)zxid_as_call(arg1,arg2,arg3,arg4);
  *(zxid_ses **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1slo_1soap(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  result = (int)zxid_sp_slo_soap(arg1,arg2,arg3);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1slo_1redir(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  result = (struct zx_str *)zxid_sp_slo_redir(arg1,arg2,arg3);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1mni_1soap(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  result = (int)zxid_sp_mni_soap(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1sp_1mni_1redir(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  result = (struct zx_str *)zxid_sp_mni_redir(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1az_1cf_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(zxid_ses **)&jarg3; 
  result = (char *)zxid_az_cf_ses(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1az_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_az_cf(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1az(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_az(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1az_1base_1cf_1ses(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jlong jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = *(zxid_ses **)&jarg3; 
  result = (char *)zxid_az_base_cf_ses(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1az_1base_1cf(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_az_base_cf(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1az_1base(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_az_base(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1find_1attribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jint jarg4, jstring jarg5, jint jarg6, jstring jarg7, jint jarg8) {
  jlong jresult = 0 ;
  zxid_a7n *arg1 = (zxid_a7n *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  int arg8 ;
  struct zx_sa_Attribute_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_a7n **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = (int)jarg6; 
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  arg8 = (int)jarg8; 
  result = (struct zx_sa_Attribute_s *)zxid_find_attribute(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  *(struct zx_sa_Attribute_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1Status(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  struct zx_sp_Status_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (struct zx_sp_Status_s *)zxid_mk_Status(arg1,arg2,arg3,arg4,arg5);
  *(struct zx_sp_Status_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1OK(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_sp_Status_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  result = (struct zx_sp_Status_s *)zxid_OK(arg1,arg2);
  *(struct zx_sp_Status_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1oauth_1az_1req(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_mk_oauth_az_req(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1jwks(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (char *)zxid_mk_jwks(arg1);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1oauth2_1dyn_1cli_1reg_1req(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  result = (char *)zxid_mk_oauth2_dyn_cli_reg_req(arg1);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1oauth2_1dyn_1cli_1reg_1res(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  result = (char *)zxid_mk_oauth2_dyn_cli_reg_res(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1oauth2_1rsrc_1reg_1req(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (char *)zxid_mk_oauth2_rsrc_reg_req(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1oauth2_1rsrc_1reg_1res(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_mk_oauth2_rsrc_reg_res(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1oauth_1get_1well_1known_1item(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)zxid_oauth_get_well_known_item(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1oauth_1dynclireg_1client(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_oauth_dynclireg_client(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1oauth_1rsrcreg_1client(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  char *arg8 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return ;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return ;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return ;
  }
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return ;
  }
  arg8 = 0;
  if (jarg8) {
    arg8 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg8, 0);
    if (!arg8) return ;
  }
  zxid_oauth_rsrcreg_client(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  if (arg8) (*jenv)->ReleaseStringUTFChars(jenv, jarg8, ( char *)arg8);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1oauth_1call_1rpt_1endpoint(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (char *)zxid_oauth_call_rpt_endpoint(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1oauth_1call_1az_1endpoint(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (char *)zxid_oauth_call_az_endpoint(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1oidc_1as_1call(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_entity *arg3 = (zxid_entity *) 0 ;
  char *arg4 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_entity **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (int)zxid_oidc_as_call(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1lu_1Status(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  struct zx_lu_Status_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  result = (struct zx_lu_Status_s *)zxid_mk_lu_Status(arg1,arg2,arg3,arg4,arg5,arg6);
  *(struct zx_lu_Status_s **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1tas3_1status(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  zxid_tas3_status *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  result = (zxid_tas3_status *)zxid_mk_tas3_status(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  *(zxid_tas3_status **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1fault(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7, jstring jarg8, jstring jarg9) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  char *arg8 = (char *) 0 ;
  char *arg9 = (char *) 0 ;
  zxid_fault *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  arg8 = 0;
  if (jarg8) {
    arg8 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg8, 0);
    if (!arg8) return 0;
  }
  arg9 = 0;
  if (jarg9) {
    arg9 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg9, 0);
    if (!arg9) return 0;
  }
  result = (zxid_fault *)zxid_mk_fault(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  *(zxid_fault **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  if (arg8) (*jenv)->ReleaseStringUTFChars(jenv, jarg8, ( char *)arg8);
  if (arg9) (*jenv)->ReleaseStringUTFChars(jenv, jarg9, ( char *)arg9);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1mk_1fault_1zx_1str(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  zxid_fault *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_elem_s **)&jarg2; 
  arg3 = *(struct zx_str **)&jarg3; 
  arg4 = *(struct zx_str **)&jarg4; 
  arg5 = *(struct zx_str **)&jarg5; 
  result = (zxid_fault *)zxid_mk_fault_zx_str(arg1,arg2,arg3,arg4,arg5);
  *(zxid_fault **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1fault(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_fault *arg3 = (zxid_fault *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_fault **)&jarg3; 
  zxid_set_fault(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1fault(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_fault *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_fault *)zxid_get_fault(arg1,arg2);
  *(zxid_fault **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1fault_1sc1(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  result = (char *)zxid_get_tas3_fault_sc1(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1fault_1sc2(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  result = (char *)zxid_get_tas3_fault_sc2(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1fault_1comment(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  result = (char *)zxid_get_tas3_fault_comment(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1fault_1ref(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  result = (char *)zxid_get_tas3_fault_ref(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1fault_1actor(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  result = (char *)zxid_get_tas3_fault_actor(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1fault_1status(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_fault *arg2 = (zxid_fault *) 0 ;
  zxid_tas3_status *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_fault **)&jarg2; 
  result = (zxid_tas3_status *)zxid_get_fault_status(arg1,arg2);
  *(zxid_tas3_status **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1tas3_1status(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_tas3_status *arg3 = (zxid_tas3_status *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_tas3_status **)&jarg3; 
  zxid_set_tas3_status(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1status(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_tas3_status *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_tas3_status *)zxid_get_tas3_status(arg1,arg2);
  *(zxid_tas3_status **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1status_1sc1(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_tas3_status *arg2 = (zxid_tas3_status *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_tas3_status **)&jarg2; 
  result = (char *)zxid_get_tas3_status_sc1(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1status_1sc2(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_tas3_status *arg2 = (zxid_tas3_status *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_tas3_status **)&jarg2; 
  result = (char *)zxid_get_tas3_status_sc2(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1status_1comment(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_tas3_status *arg2 = (zxid_tas3_status *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_tas3_status **)&jarg2; 
  result = (char *)zxid_get_tas3_status_comment(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1status_1ref(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_tas3_status *arg2 = (zxid_tas3_status *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_tas3_status **)&jarg2; 
  result = (char *)zxid_get_tas3_status_ref(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tas3_1status_1ctlpt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_tas3_status *arg2 = (zxid_tas3_status *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_tas3_status **)&jarg2; 
  result = (char *)zxid_get_tas3_status_ctlpt(arg1,arg2);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsp_1validate_1env(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jlong jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_e_Envelope_s *arg4 = (struct zx_e_Envelope_s *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = *(struct zx_e_Envelope_s **)&jarg4; 
  result = (char *)zxid_wsp_validate_env(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsp_1validate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (char *)zxid_wsp_validate(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsp_1decorate(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_wsp_decorate(arg1,arg2,arg3,arg4);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsp_1decoratef(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (struct zx_str *)zxid_wsp_decoratef(arg1,arg2,arg3,arg4,arg5);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsf_1decor(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jint jarg4, jlong jarg5) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  struct zx_e_Envelope_s *arg3 = (struct zx_e_Envelope_s *) 0 ;
  int arg4 ;
  zxid_epr *arg5 = (zxid_epr *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(struct zx_e_Envelope_s **)&jarg3; 
  arg4 = (int)jarg4; 
  arg5 = *(zxid_epr **)&jarg5; 
  result = (int)zxid_wsf_decor(arg1,arg2,arg3,arg4,arg5);
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1call(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  result = (struct zx_str *)zxid_call(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1callf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jstring jarg7) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  void *arg8 = 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = 0;
  if (jarg7) {
    arg7 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg7, 0);
    if (!arg7) return 0;
  }
  result = (struct zx_str *)zxid_callf(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  if (arg7) (*jenv)->ReleaseStringUTFChars(jenv, jarg7, ( char *)arg7);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1call_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4, jstring jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_epr *arg3 = (zxid_epr *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_epr **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (struct zx_str *)zxid_call_epr(arg1,arg2,arg3,arg4,arg5);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1callf_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4, jstring jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_epr *arg3 = (zxid_epr *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  void *arg6 = 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_epr **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (struct zx_str *)zxid_callf_epr(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsc_1prepare_1call(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4, jstring jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_epr *arg3 = (zxid_epr *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_epr **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (struct zx_str *)zxid_wsc_prepare_call(arg1,arg2,arg3,arg4,arg5);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsc_1prepare_1callf(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jstring jarg4, jstring jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_epr *arg3 = (zxid_epr *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  void *arg6 = 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_epr **)&jarg3; 
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (struct zx_str *)zxid_wsc_prepare_callf(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zxid_1wsc_1valid_1resp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4) {
  jint jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  result = (int)zxid_wsc_valid_resp(arg1,arg2,arg3,arg4);
  jresult = (jint)result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jint jarg7) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  zxid_epr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = (int)jarg7; 
  result = (zxid_epr *)zxid_get_epr(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  *(zxid_epr **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1find_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jstring jarg6, jint jarg7) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  zxid_epr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  arg6 = 0;
  if (jarg6) {
    arg6 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg6, 0);
    if (!arg6) return 0;
  }
  arg7 = (int)jarg7; 
  result = (zxid_epr *)zxid_find_epr(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  *(zxid_epr **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  if (arg6) (*jenv)->ReleaseStringUTFChars(jenv, jarg6, ( char *)arg6);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr_1address(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (struct zx_str *)zxid_get_epr_address(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr_1entid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (struct zx_str *)zxid_get_epr_entid(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr_1desc(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (struct zx_str *)zxid_get_epr_desc(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr_1tas3_1trust(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (struct zx_str *)zxid_get_epr_tas3_trust(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr_1secmech(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (struct zx_str *)zxid_get_epr_secmech(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1epr_1secmech(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  char *arg3 = (char *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return ;
  }
  zxid_set_epr_secmech(arg1,arg2,arg3);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1epr_1token(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (zxid_tok *)zxid_get_epr_token(arg1,arg2);
  *(zxid_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1epr_1token(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  zxid_tok *arg3 = (zxid_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  arg3 = *(zxid_tok **)&jarg3; 
  zxid_set_epr_token(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1new_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  zxid_epr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = 0;
  if (jarg4) {
    arg4 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg4, 0);
    if (!arg4) return 0;
  }
  arg5 = 0;
  if (jarg5) {
    arg5 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg5, 0);
    if (!arg5) return 0;
  }
  result = (zxid_epr *)zxid_new_epr(arg1,arg2,arg3,arg4,arg5);
  *(zxid_epr **)&jresult = result; 
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  if (arg4) (*jenv)->ReleaseStringUTFChars(jenv, jarg4, ( char *)arg4);
  if (arg5) (*jenv)->ReleaseStringUTFChars(jenv, jarg5, ( char *)arg5);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1delegated_1discovery_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_epr *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_epr *)zxid_get_delegated_discovery_epr(arg1,arg2);
  *(zxid_epr **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1delegated_1discovery_1epr(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_epr *arg3 = (zxid_epr *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_epr **)&jarg3; 
  zxid_set_delegated_discovery_epr(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1call_1invoktok(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_tok *)zxid_get_call_invoktok(arg1,arg2);
  *(zxid_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1call_1invoktok(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_tok *arg3 = (zxid_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_tok **)&jarg3; 
  zxid_set_call_invoktok(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1call_1tgttok(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_tok *)zxid_get_call_tgttok(arg1,arg2);
  *(zxid_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1call_1tgttok(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_tok *arg3 = (zxid_tok *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_tok **)&jarg3; 
  zxid_set_call_tgttok(arg1,arg2,arg3);
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1epr2str(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_epr *arg2 = (zxid_epr *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_epr **)&jarg2; 
  result = (struct zx_str *)zxid_epr2str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1token2str(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_tok *arg2 = (zxid_tok *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_tok **)&jarg2; 
  result = (struct zx_str *)zxid_token2str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1str2token(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (zxid_tok *)zxid_str2token(arg1,arg2);
  *(zxid_tok **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1a7n2str(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_a7n *arg2 = (zxid_a7n *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_a7n **)&jarg2; 
  result = (struct zx_str *)zxid_a7n2str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1str2a7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zxid_a7n *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (zxid_a7n *)zxid_str2a7n(arg1,arg2);
  *(zxid_a7n **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1nid2str(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_nid *arg2 = (zxid_nid *) 0 ;
  struct zx_str *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_nid **)&jarg2; 
  result = (struct zx_str *)zxid_nid2str(arg1,arg2);
  {
    // Unfortunately Java does not provide NewStringUTF() that would explicitly
    // take length field - they insist on nul termination instead. Sigh.
    if (result && result->s) {
      char* tmp = malloc(result->len + 1);
      if (!tmp) {
        ERR("Out of memory len=%d", result->len); return 0; 
      }
      memcpy(tmp, result->s, result->len);
      tmp[result->len] = 0;
      jresult = (*jenv)->NewStringUTF(jenv, tmp);
      free(tmp);
      // Do not free underlying zx_str because they are usually returned by reference.
    } else {
      jresult = 0;
    }
  }
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1str2nid(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(struct zx_str **)&jarg2; 
  result = (zxid_nid *)zxid_str2nid(arg1,arg2);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1nameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_nid *)zxid_get_nameid(arg1,arg2);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1nameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_nid *arg3 = (zxid_nid *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_nid **)&jarg3; 
  zxid_set_nameid(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tgtnameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_nid *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_nid *)zxid_get_tgtnameid(arg1,arg2);
  *(zxid_nid **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1tgtnameid(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_nid *arg3 = (zxid_nid *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_nid **)&jarg3; 
  zxid_set_tgtnameid(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1a7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_a7n *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_a7n *)zxid_get_a7n(arg1,arg2);
  *(zxid_a7n **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1a7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_a7n *arg3 = (zxid_a7n *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_a7n **)&jarg3; 
  zxid_set_a7n(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1tgta7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_a7n *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  result = (zxid_a7n *)zxid_get_tgta7n(arg1,arg2);
  *(zxid_a7n **)&jresult = result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zxid_1set_1tgta7n(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) {
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  zxid_a7n *arg3 = (zxid_a7n *) 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = *(zxid_a7n **)&jarg3; 
  zxid_set_tgta7n(arg1,arg2,arg3);
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1map_1identity_1token(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  result = (zxid_tok *)zxid_map_identity_token(arg1,arg2,arg3,arg4);
  *(zxid_tok **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zxid_1nidmap_1identity_1token(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jstring jarg3, jint jarg4) {
  jlong jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_ses *arg2 = (zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  zxid_tok *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_ses **)&jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  result = (zxid_tok *)zxid_nidmap_identity_token(arg1,arg2,arg3,arg4);
  *(zxid_tok **)&jresult = result; 
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ps_1accept_1invite(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jint jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(int **)&jarg4; 
  arg5 = (int)jarg5; 
  result = (char *)zxid_ps_accept_invite(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1ps_1finalize_1invite(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jint jarg5) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  zxid_cgi *arg2 = (zxid_cgi *) 0 ;
  zxid_ses *arg3 = (zxid_ses *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = *(zxid_cgi **)&jarg2; 
  arg3 = *(zxid_ses **)&jarg3; 
  arg4 = *(int **)&jarg4; 
  arg5 = (int)jarg5; 
  result = (char *)zxid_ps_finalize_invite(arg1,arg2,arg3,arg4,arg5);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zxid_1get_1idpnid_1at_1eid(JNIEnv *jenv, jclass jcls, jlong jarg1, jstring jarg2, jstring jarg3, jint jarg4) {
  jstring jresult = 0 ;
  zxid_conf *arg1 = (zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(zxid_conf **)&jarg1; 
  arg2 = 0;
  if (jarg2) {
    arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
    if (!arg2) return 0;
  }
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = (int)jarg4; 
  result = (char *)zxid_get_idpnid_at_eid(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, ( char *)arg2);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1DAP_1SCOPE_1BASE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1DAP_1SCOPE_1SINGLE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1DAP_1SCOPE_1SUBTREE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CDC_1CHOICE_1ALWAYS_1FIRST_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CDC_1CHOICE_1ALWAYS_1LAST_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CDC_1CHOICE_1ALWAYS_1ONLY_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 3;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CDC_1CHOICE_1UI_1PREF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 4;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CDC_1CHOICE_1UI_1NOPREF_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 5;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1CDC_1CHOICE_1UI_1ONLY_1CDC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 6;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1DEFAULT_1PR_1IX_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1ART_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1POST_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1SOAP_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 3;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1PAOS_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 4;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1POST_1SIMPLE_1SIGN_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 5;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1REDIR_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 6;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SAML2_1URI_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 7;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1OIDC1_1CODE_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 8;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1OIDC1_1ID_1TOK_1TOK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 9;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SLO_1SVC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1MNI_1SVC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1ACS_1SVC_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 3;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SEC_1MECH_1NULL_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SEC_1MECH_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SEC_1MECH_1SAML_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 3;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SEC_1MECH_1X509_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 4;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SEC_1MECH_1PEERS_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 5;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1FAIL_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1OK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 1;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1REDIR_1OK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 2;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1SSO_1OK_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 3;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1IDP_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 4;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_sha1_1safe_1base64(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2, jstring jarg3) {
  jstring jresult = 0 ;
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = 0;
  if (jarg1) {
    arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
    if (!arg1) return 0;
  }
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  result = (char *)sha1_safe_base64(arg1,arg2,arg3);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, ( char *)arg1);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1url_1encode(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2, jstring jarg3, jlong jarg4) {
  jstring jresult = 0 ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ctx **)&jarg1; 
  arg2 = (int)jarg2; 
  arg3 = 0;
  if (jarg3) {
    arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0);
    if (!arg3) return 0;
  }
  arg4 = *(int **)&jarg4; 
  result = (char *)zx_url_encode(arg1,arg2,arg3,arg4);
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, ( char *)arg3);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1PROTO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:protocol";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1VERSION_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "2.0";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1SUCCESS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:Success";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1REQUESTER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:Requester";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1RESPONDER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:Responder";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1VERSION_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:VersionMismatch";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1AUTHNFAIL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:AuthnFailed";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1INVATTRNV_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:InvalidAttrnameOrValue";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1INVNIDPOL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1NOAUTNCTX_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1NOAVALIDP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:NoAvailableIDP";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1NOPASSIVE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:NoPassive";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1NOSUPPIDP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:NoSupportedIDP";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1PARLOGOUT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:PartialLogout";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1PROXYCEXC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:ProxyCountExceeded";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1REQDENIED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:RequestDenied";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1REQUNSUPP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:RequestUnsupported";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1REQVERDEP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:RequestVersionDeprecated";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1REQVERHIG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooHigh";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1REQVERLOW_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooLow";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1RESONRECG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:ResourceNotRecognized";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1TOOMNYRES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:TooManyResponses";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1UNKATTPRO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:UnknownAttributeProfile";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1UNKPRNCPL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SC_1UNSUPPBIN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:status:UnsupportedBinding";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML_1AUTHCTX_1PASSWORDPROTECTED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML_1AUTHCTX_1PASSWORD_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:ac:classes:Password";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML_1AUTHCTX_1SSL_1TLS_1CERT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML_1AUTHCTX_1PREVSESS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:ac:classes:PreviousSession";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML_1AUTHCTX_1UNSPCFD_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML_1AUTHCTX_1INPROT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:ac:classes:InternetProtocol";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1UNSPECIFIED_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1EMAILADDR_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1X509_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1WINDOMAINQN_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1KERBEROS_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1ENTITY_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:nameid-format:entity";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1PERSISTENT_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1TRANSIENT_1NID_1FMT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:nameid-format:transient";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SSO_1BRWS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:browser";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SSO_1ECP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SLO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:logout";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1NIREG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:nameid-mgmt";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1NIMAP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:nameidmapping";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1ARTIFACT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:artifact";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1QUERY_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:query";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1PAOS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:PAOS";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SOAP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:SOAP";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1REDIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1ART_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1POST_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1POST_1SIMPLE_1SIGN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1URI_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:bindings:URI";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OAUTH2_1REDIR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:zxid:OAUTH:2.0:bindings:HTTP-Redirect";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1AP_1BASIC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:attribute:basic";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1AP_1X500_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:attribute:X500";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1AP_1UUID_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:attribute:UUID";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1AP_1DCE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:attribute:DCE";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1AP_1XACML_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:attribute:XACML";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ATTRNAME_1UNSPECIFIED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ATTRNAME_1BASIC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:attrname-format:basic";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SOAP_1ACTOR_1NEXT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://schemas.xmlsoap.org/soap/actor/next";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:cm:bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1SOAP_1ACTION_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.oasis-open.org/committees/security";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACTION_1RW_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.0:action:rwedc";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACTION_1RWN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.0:action:rwedc-negation";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACTION_1GHPP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.0:action:ghpp";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACTION_1UNIX_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.0:action:unix";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PAOS_1CONTENT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "application/vnd.paos+xml";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1SA_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1IMS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ims:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1LIB_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:iff:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SASL_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:2006-08:SASLRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SASL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:2006-08:SASLResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PWTRUNCATE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:pw:truncate";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PWLOWERCASE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:pw:lowercase";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PWUPPERCASE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:pw:uppercase";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PWSELECT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:pw:select";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1SUBS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ssos:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1SUBSREF_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ssos:2006-08:ref";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SUBS_1OPT_1NOSUBSCIB_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:subs:noSubscribe";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SUBS_1OPT_1NOQUESUBS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:subs:noQuerySubscriptions";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SUBS_1END_1EXPIRED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dst:endreason:expired";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SUBS_1END_1DELETED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dst:endreason:resourcedeleted";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1DI_1RO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "DiscoveryResourceOffering";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1DI_1RO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:DiscoveryEPR";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1EPR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:epr";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PTM_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ptm:2012";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_IMPLIED_1RSC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:isf:implied-resource";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1DISCO_11_11_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1DISCO_1EXT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2004-04";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1DISCO_12_10_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1SBF_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1QUE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:Query";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1QUE_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:QueryResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1ASSO_1QUE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDAssociationQuery";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1ASSO_1QUE_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDAssociationQueryResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1ASSO_1ADD_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDAssociationAdd";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1ASSO_1ADD_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDAssociationAddResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1ASSO_1DEL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDAssociationDelete";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1ASSO_1DEL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDAssociationDeleteResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1QUE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDQuery";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1QUE_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDQueryResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1REG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDRegister";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1REG_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDRegisterResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1REP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDReplace";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1REP_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDReplaceResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1DEL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDDelete";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1SVCMD_1DEL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08:SvcMDDeleteResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1GL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:2005-07";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1SHAPE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:shape";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1SPEED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:speed";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1DIRECTION_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:direction";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1HEADING_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:heading";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1ALT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:alt";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1CIVIL_1DATA_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:civil-data";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1AC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:areacomparison";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1AC_1ONLY_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:onlyareacomparison";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1ACC_1HIGH_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:accuracy:high";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1ACC_1MEDIUM_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:accuracy:medium";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_GL_1OPT_1ACC_1LOW_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:accuracy:low";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1IS11_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:is:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1IS20_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:is:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1IREQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:is:2006-08:InteractionRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1IRES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:is:2006-08:InteractionResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1PP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1PP_1INAME_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:informalName";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1PP_1CN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:cn";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1PP_1LEG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:legal";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1PP_1ADD_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:address";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPTC_1PP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:can";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPTC_1PP_1INAME_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:can:informalName";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPTC_1PP_1CN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:can:cn";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPTC_1PP_1LEG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:can:legal";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPTC_1PP_1ADD_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:can:address";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1MULT_1QI_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dst:multipleQueryItems";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_OPT_1MULT_1MI_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dst:multipleModification";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1PP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-pp:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PS_1COL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:collection";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PS_1ENT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:entity";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1PS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDENT_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddEntityRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDENT_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddEntityResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDKENT_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddKnownEntityRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDKENT_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddKnownEntityResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1REMENT_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:RemoveEntityRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1REMENT_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:RemoveEntityResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDCOL_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddCollectionRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDCOL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddCollectionResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1REMCOL_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:RemoveCollectionRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1REMCOL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:RemoveCollectionResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDTOCOL_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddToCollectionRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1ADDTOCOL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AddToCollectionResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1REMFROMCOL_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:RemoveFromCollectionRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1REMFROMCOL_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:RemoveFromCollectionResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1LISTMEM_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:ListMembersRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1LISTMEM_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:ListMembersResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1GETOBJ_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:GetObjectInfoRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1GETOBJ_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:GetObjectInfoResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1SETOBJ_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:SetObjectInfoRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1SETOBJ_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:SetObjectInfoResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1QUEOBJ_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:QueryObjectsRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1QUEOBJ_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:AueryObjectsResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1TESTMEM_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:TestMembershipRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1TESTMEM_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:TestMembershipResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1RSLVID_1REQ_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:ResolveIdentifierRequest";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1RSLVID_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:ResolveIdentifierResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1NOTIFY_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:Notify";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ACT_1PS_1NOTIFY_1RES_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08:NotifyResponse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1SEC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TOKNUSG_1SEC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:tokenusage:2006-08:SecurityToken";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TOKNUSG_1TID_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:tokenusage:2006-08:TargetIdentity";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TOKNUSG_1IID_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:tokenusage:2006-08:InvocationIdentity";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF10_1SEC_1MECH_1NULL_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2004-04:null:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF10_1SEC_1MECH_1TLS_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2004-04:TLS:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1NULL_1NULL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2003-08:null:null";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1TLS_1NULL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2003-08:TLS:null";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1CLTLS_1NULL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2003-08:ClientTLS:null";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1NULL_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:null:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1TLS_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:TLS:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1CLTLS_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:ClientTLS:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1NULL_1X509_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:null:X509";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1TLS_1X509_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:TLS:X509";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1CLTLS_1X509_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:ClientTLS:X509";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1NULL_1SAML_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:null:SAML";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1TLS_1SAML_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:TLS:SAML";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF11_1SEC_1MECH_1CLTLS_1SAML_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:ClientTLS:SAML";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1NULL_1NULL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:null:null";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1TLS_1NULL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:TLS:null";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1NULL_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:null:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1TLS_1BEARER_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2005-02:TLS:Bearer";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1NULL_1SAML2_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2006-08:null:SAMLV2";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1TLS_1SAML2_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2006-08:TLS:SAMLV2";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1CLTLS_1SAML2_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2006-08:ClientTLS:SAMLV2";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSF20_1SEC_1MECH_1CLTLS_1PEERS2_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2006-08:ClientTLS:peerSAMLV2";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAML2_1TOK_1PROFILE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SAMLID_1TOK_1PROFILE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLID";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_WSS_1X509_1TOKEN_1PROFILE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SB_1EPUPD_1COMP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb:2006-08:EndpointUpdate:Complete";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SB_1EPUPD_1PART_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb:2006-08:EndpointUpdate:Partial";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_SB_1EPUPD_1NOCH_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb:2006-08:EndpointUpdate:NoChange";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_A_1ANON_12005_103_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2005/03/addressing/role/anonymous";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_A_1ANON_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2005/08/addressing/anonymous";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1CSM_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-csm:2006-02";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1LU_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:util:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1HLO_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-hlo:2006-08:dst-2.1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_DST_1ACC_1CHALLENGE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dst:acc:challenge";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1CXP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-cxp:2005-10:dst-2.1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1LIB_1MD_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:metadata:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1AC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ac:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_LIBERTY_1NAMEID_1FMT_1FED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:iff:nameid:federated";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_LIBERTY_1NAMEID_1FMT_1ONE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:iff:nameid:one-time";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_LIBERTY_1NAMEID_1FMT_1ENC_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:iff:nameid:encrypted";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_LIBERTY_1NAMEID_1FMT_1ENT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:iff:nameid:entityID";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1PAOS_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:paos:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_PAOS_1HDR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "ver=\"urn:liberty:paos:2003-08\"; \"urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp\"";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_LIBERTY_1ENA_1HDR_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "LIBV=urn:liberty:iff:2003-08 http://projectliberty.org/specs/v1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_LIBERTY_1CONSENT_1OBTAINED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:consent:obtained";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_XMLNS_1DAP_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-dap:2006-02:dst-2.1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1WSC_1RQ_1OUT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:wsc:rq:out";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PEP_1RQ_1OUT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:pep:rq:out";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PEP_1RQ_1IN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:pep:rq:in";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PEP_1RS_1PARSE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:pep:rs:parse";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PEP_1RS_1VAL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:pep:rs:val";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PEP_1RS_1OUT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:pep:rs:out";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PEP_1RS_1IN_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:ctlpt:pep:rs:in";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1OK_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "OK";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1PERMIT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:permit";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1DENY_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:deny";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1NOSIG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:nosig";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1BADSIG_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:badsig";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1BADCOND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:badcond";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1REPLAY_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:replay";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1BADXML_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:badxml";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1FAULT_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:fault";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1EXPIRED_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:expired";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1STATUS_1EPR_1NOT_1FOUND_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:status:epr-not-found";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1SOL1_1ENGINE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:sol1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1PLEDGE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:sol1:pledge";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_TAS3_1REQUIRE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:tas3:sol1:require";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_ZXID_1VERSION_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 0x000130;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1REL_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "1.30";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1COMPILE_1DATE_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "1415563915";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_ZXID_1REV_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "$Id: 1.30-12-g7c0efae 20141030-212442 sampo@ $";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jint JNICALL Java_zxidjava_zxidjniJNI_zx_1N_1NS_1get(JNIEnv *jenv, jclass jcls) {
  jint jresult = 0 ;
  int result;
  
  (void)jenv;
  (void)jcls;
  result = (int) 61;
  jresult = (jint)result; 
  return jresult;
}


SWIGEXPORT void JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1tab_1set(JNIEnv *jenv, jclass jcls, jlong jarg1) {
  struct zx_ns_s *arg1 ;
  
  (void)jenv;
  (void)jcls;
  arg1 = *(struct zx_ns_s **)&jarg1; 
  {
    size_t ii;
    struct zx_ns_s *b = (struct zx_ns_s *) zx_ns_tab;
    for (ii = 0; ii < (size_t)zx__NS_MAX; ii++) b[ii] = *((struct zx_ns_s *) arg1 + ii);
  }
  
}


SWIGEXPORT jlong JNICALL Java_zxidjava_zxidjniJNI_zx_1ns_1tab_1get(JNIEnv *jenv, jclass jcls) {
  jlong jresult = 0 ;
  struct zx_ns_s *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (struct zx_ns_s *)(struct zx_ns_s *)zx_ns_tab;
  *(struct zx_ns_s **)&jresult = result; 
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1ds_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2000/09/xmldsig#";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xenc_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/04/xmlenc#";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1exca_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/10/xml-exc-c14n#";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1e_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://schemas.xmlsoap.org/soap/envelope/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sa_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:assertion";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sp_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:protocol";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1ecp_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1paos_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:paos:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1md_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:2.0:metadata";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1shibmd_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:mace:shibboleth:metadata:1.0";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1idpdisc_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xac_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:xacml:2.0:context:schema:os";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xa_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:xacml:2.0:policy:schema:os";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xasa_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:xacml:2.0:saml:assertion:schema:os";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xasp_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:xacml:2.0:saml:protocol:schema:os";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xaspcd1_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:protocol:cd-01";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xasacd1_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:xacml:2.0:profile:saml2.0:v2:schema:assertion:cd-01";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1a_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2005/08/addressing";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1wsse_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1wsu_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sbf_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1b_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sec_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:security:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1di_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1is_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:is:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1lu_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:util:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1dap_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-dap:2006-08:dst-2.1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1subs_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ssos:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1dst_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dst:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1im_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ims:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1ps_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ps:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1as_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sa:2006-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xml_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/XML/1998/namespace";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xsi_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/XMLSchema-instance";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1xs_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.w3.org/2001/XMLSchema";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1mm7_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1cb_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-cb:2004-10";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1cdm_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:cb:conceptual-data-model:2004-10";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1gl_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:id-sis-gl:2005-07";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1dp_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:dp:2006-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1idp_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:idp:2006-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1pmm_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:pmm:2006-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1prov_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:prov:2006-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1shps_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:shps:2006-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1hrxml_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://ns.hr-xml.org/2007-04-15";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1idhrxml_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:id-sis-idhrxml:2007-06:dst-2.1";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1demomed_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:x-demo:me:2006-01";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sp11_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.0:protocol";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sa11_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:oasis:names:tc:SAML:1.0:assertion";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1ff12_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:iff:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1ac_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:ac:2004-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1m20_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:metadata:2004-12";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1b12_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sb:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1sec12_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:sec:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1di12_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:disco:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1is12_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "urn:liberty:is:2003-08";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1wst_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/ws-sx/ws-trust/200512/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1wsp_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://schemas.xmlsoap.org/ws/2004/09/policy";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1wsc_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1tas3_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://tas3.eu/tas3/200911/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


SWIGEXPORT jstring JNICALL Java_zxidjava_zxidjniJNI_zx_1xmlns_1tas3sol_1get(JNIEnv *jenv, jclass jcls) {
  jstring jresult = 0 ;
  char *result = 0 ;
  
  (void)jenv;
  (void)jcls;
  result = (char *) "http://tas3.eu/tas3sol/200911/";
  if (result) jresult = (*jenv)->NewStringUTF(jenv, ( char *)result);
  return jresult;
}


#ifdef __cplusplus
}
#endif

