Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.11
- *
- * 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>
- #include <stdbool.h>
- /* Support for throwing Java exceptions */
- typedef enum {
- SWIG_JavaOutOfMemoryError = 1,
- SWIG_JavaIOException,
- SWIG_JavaRuntimeException,
- SWIG_JavaIndexOutOfBoundsException,
- SWIG_JavaArithmeticException,
- SWIG_JavaIllegalArgumentException,
- SWIG_JavaNullPointerException,
- SWIG_JavaDirectorPureVirtual,
- SWIG_JavaUnknownError
- } SWIG_JavaExceptionCodes;
- typedef struct {
- SWIG_JavaExceptionCodes code;
- const char *java_exception;
- } SWIG_JavaExceptions_t;
- static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) {
- jclass excep;
- static const SWIG_JavaExceptions_t java_exceptions[] = {
- { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" },
- { SWIG_JavaIOException, "java/io/IOException" },
- { SWIG_JavaRuntimeException, "java/lang/RuntimeException" },
- { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" },
- { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" },
- { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" },
- { SWIG_JavaNullPointerException, "java/lang/NullPointerException" },
- { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" },
- { SWIG_JavaUnknownError, "java/lang/UnknownError" },
- { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" }
- };
- const SWIG_JavaExceptions_t *except_ptr = java_exceptions;
- while (except_ptr->code != code && except_ptr->code)
- except_ptr++;
- (*jenv)->ExceptionClear(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
- /* Includes the header in the wrapper code */
- //#include "include/ngspice/sharedspice.h"
- #include "ngspice/sharedspice.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngcomplex_1cx_1real_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) {
- struct ngcomplex *arg1 = (struct ngcomplex *) 0 ;
- double arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct ngcomplex **)&jarg1;
- arg2 = (double)jarg2;
- if (arg1) (arg1)->cx_real = arg2;
- }
- SWIGEXPORT jdouble JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngcomplex_1cx_1real_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jdouble jresult = 0 ;
- struct ngcomplex *arg1 = (struct ngcomplex *) 0 ;
- double result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct ngcomplex **)&jarg1;
- result = (double) ((arg1)->cx_real);
- jresult = (jdouble)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngcomplex_1cx_1imag_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) {
- struct ngcomplex *arg1 = (struct ngcomplex *) 0 ;
- double arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct ngcomplex **)&jarg1;
- arg2 = (double)jarg2;
- if (arg1) (arg1)->cx_imag = arg2;
- }
- SWIGEXPORT jdouble JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngcomplex_1cx_1imag_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jdouble jresult = 0 ;
- struct ngcomplex *arg1 = (struct ngcomplex *) 0 ;
- double result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct ngcomplex **)&jarg1;
- result = (double) ((arg1)->cx_imag);
- jresult = (jdouble)result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_new_1ngcomplex(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- struct ngcomplex *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (struct ngcomplex *)calloc(1, sizeof(struct ngcomplex));
- *(struct ngcomplex **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_delete_1ngcomplex(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- struct ngcomplex *arg1 = (struct ngcomplex *) 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = *(struct ngcomplex **)&jarg1;
- free((char *) arg1);
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->v_name);
- if (arg2) {
- arg1->v_name = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->v_name, (const char *)arg2);
- } else {
- arg1->v_name = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- result = (char *) ((arg1)->v_name);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- int arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- arg2 = (int)jarg2;
- if (arg1) (arg1)->v_type = arg2;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- result = (int) ((arg1)->v_type);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1flags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- short arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- arg2 = (short)jarg2;
- if (arg1) (arg1)->v_flags = arg2;
- }
- SWIGEXPORT jshort JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1flags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jshort jresult = 0 ;
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- short result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- result = (short) ((arg1)->v_flags);
- jresult = (jshort)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1realdata_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- double *arg2 = (double *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- arg2 = *(double **)&jarg2;
- if (arg1) (arg1)->v_realdata = arg2;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1realdata_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jlong jresult = 0 ;
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- double *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- result = (double *) ((arg1)->v_realdata);
- *(double **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1compdata_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- ngcomplex_t *arg2 = (ngcomplex_t *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- (void)jarg2_;
- arg1 = *(struct vector_info **)&jarg1;
- arg2 = *(ngcomplex_t **)&jarg2;
- if (arg1) (arg1)->v_compdata = arg2;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1compdata_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jlong jresult = 0 ;
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- ngcomplex_t *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- result = (ngcomplex_t *) ((arg1)->v_compdata);
- *(ngcomplex_t **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1length_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- int arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- arg2 = (int)jarg2;
- if (arg1) (arg1)->v_length = arg2;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vector_1info_1v_1length_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vector_info **)&jarg1;
- result = (int) ((arg1)->v_length);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_new_1vector_1info(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- struct vector_info *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (struct vector_info *)calloc(1, sizeof(struct vector_info));
- *(struct vector_info **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_delete_1vector_1info(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- struct vector_info *arg1 = (struct vector_info *) 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = *(struct vector_info **)&jarg1;
- free((char *) arg1);
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->name);
- if (arg2) {
- arg1->name = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->name, (const char *)arg2);
- } else {
- arg1->name = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- result = (char *) ((arg1)->name);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1creal_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) {
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- double arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- arg2 = (double)jarg2;
- if (arg1) (arg1)->creal = arg2;
- }
- SWIGEXPORT jdouble JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1creal_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jdouble jresult = 0 ;
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- double result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- result = (double) ((arg1)->creal);
- jresult = (jdouble)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1cimag_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jdouble jarg2) {
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- double arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- arg2 = (double)jarg2;
- if (arg1) (arg1)->cimag = arg2;
- }
- SWIGEXPORT jdouble JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1cimag_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jdouble jresult = 0 ;
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- double result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- result = (double) ((arg1)->cimag);
- jresult = (jdouble)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1is_1scale_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- bool arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- arg2 = jarg2 ? true : false;
- if (arg1) (arg1)->is_scale = arg2;
- }
- SWIGEXPORT jboolean JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1is_1scale_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jboolean jresult = 0 ;
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- bool result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- result = (bool) ((arg1)->is_scale);
- jresult = (jboolean)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1is_1complex_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- bool arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- arg2 = jarg2 ? true : false;
- if (arg1) (arg1)->is_complex = arg2;
- }
- SWIGEXPORT jboolean JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvalues_1is_1complex_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jboolean jresult = 0 ;
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- bool result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvalues **)&jarg1;
- result = (bool) ((arg1)->is_complex);
- jresult = (jboolean)result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_new_1vecvalues(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- struct vecvalues *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (struct vecvalues *)calloc(1, sizeof(struct vecvalues));
- *(struct vecvalues **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_delete_1vecvalues(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- struct vecvalues *arg1 = (struct vecvalues *) 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = *(struct vecvalues **)&jarg1;
- free((char *) arg1);
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvaluesall_1veccount_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- int arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvaluesall **)&jarg1;
- arg2 = (int)jarg2;
- if (arg1) (arg1)->veccount = arg2;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvaluesall_1veccount_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvaluesall **)&jarg1;
- result = (int) ((arg1)->veccount);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvaluesall_1vecindex_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- int arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvaluesall **)&jarg1;
- arg2 = (int)jarg2;
- if (arg1) (arg1)->vecindex = arg2;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvaluesall_1vecindex_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvaluesall **)&jarg1;
- result = (int) ((arg1)->vecindex);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvaluesall_1vecsa_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- pvecvalues *arg2 = (pvecvalues *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvaluesall **)&jarg1;
- arg2 = *(pvecvalues **)&jarg2;
- if (arg1) (arg1)->vecsa = arg2;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecvaluesall_1vecsa_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jlong jresult = 0 ;
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- pvecvalues *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecvaluesall **)&jarg1;
- result = (pvecvalues *) ((arg1)->vecsa);
- *(pvecvalues **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_new_1vecvaluesall(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- struct vecvaluesall *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (struct vecvaluesall *)calloc(1, sizeof(struct vecvaluesall));
- *(struct vecvaluesall **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_delete_1vecvaluesall(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- struct vecvaluesall *arg1 = (struct vecvaluesall *) 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = *(struct vecvaluesall **)&jarg1;
- free((char *) arg1);
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1number_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- int arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- arg2 = (int)jarg2;
- if (arg1) (arg1)->number = arg2;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1number_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- result = (int) ((arg1)->number);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1vecname_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->vecname);
- if (arg2) {
- arg1->vecname = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->vecname, (const char *)arg2);
- } else {
- arg1->vecname = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1vecname_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- result = (char *) ((arg1)->vecname);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1is_1real_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- bool arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- arg2 = jarg2 ? true : false;
- if (arg1) (arg1)->is_real = arg2;
- }
- SWIGEXPORT jboolean JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1is_1real_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jboolean jresult = 0 ;
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- bool result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- result = (bool) ((arg1)->is_real);
- jresult = (jboolean)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1pdvec_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- void *arg2 = (void *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- arg2 = *(void **)&jarg2;
- if (arg1) (arg1)->pdvec = arg2;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1pdvec_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jlong jresult = 0 ;
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- void *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- result = (void *) ((arg1)->pdvec);
- *(void **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1pdvecscale_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- void *arg2 = (void *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- arg2 = *(void **)&jarg2;
- if (arg1) (arg1)->pdvecscale = arg2;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfo_1pdvecscale_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jlong jresult = 0 ;
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- void *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfo **)&jarg1;
- result = (void *) ((arg1)->pdvecscale);
- *(void **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_new_1vecinfo(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- struct vecinfo *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (struct vecinfo *)calloc(1, sizeof(struct vecinfo));
- *(struct vecinfo **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_delete_1vecinfo(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- struct vecinfo *arg1 = (struct vecinfo *) 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = *(struct vecinfo **)&jarg1;
- free((char *) arg1);
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1name_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->name);
- if (arg2) {
- arg1->name = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->name, (const char *)arg2);
- } else {
- arg1->name = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1name_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- result = (char *) ((arg1)->name);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1title_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->title);
- if (arg2) {
- arg1->title = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->title, (const char *)arg2);
- } else {
- arg1->title = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1title_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- result = (char *) ((arg1)->title);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1date_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->date);
- if (arg2) {
- arg1->date = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->date, (const char *)arg2);
- } else {
- arg1->date = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1date_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- result = (char *) ((arg1)->date);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *arg2 = (char *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- arg2 = 0;
- if (jarg2) {
- arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
- if (!arg2) return ;
- }
- {
- free(arg1->type);
- if (arg2) {
- arg1->type = (char *) malloc(strlen((const char *)arg2)+1);
- strcpy((char *)arg1->type, (const char *)arg2);
- } else {
- arg1->type = 0;
- }
- }
- if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jstring jresult = 0 ;
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- result = (char *) ((arg1)->type);
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1veccount_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- int arg2 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- arg2 = (int)jarg2;
- if (arg1) (arg1)->veccount = arg2;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1veccount_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jint jresult = 0 ;
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- result = (int) ((arg1)->veccount);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1vecs_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- pvecinfo *arg2 = (pvecinfo *) 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- arg2 = *(pvecinfo **)&jarg2;
- if (arg1) (arg1)->vecs = arg2;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_vecinfoall_1vecs_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
- jlong jresult = 0 ;
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- pvecinfo *result = 0 ;
- (void)jenv;
- (void)jcls;
- (void)jarg1_;
- arg1 = *(struct vecinfoall **)&jarg1;
- result = (pvecinfo *) ((arg1)->vecs);
- *(pvecinfo **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_new_1vecinfoall(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- struct vecinfoall *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (struct vecinfoall *)calloc(1, sizeof(struct vecinfoall));
- *(struct vecinfoall **)&jresult = result;
- return jresult;
- }
- SWIGEXPORT void JNICALL Java_com_testo_datte_NGSpiceModuleJNI_delete_1vecinfoall(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- struct vecinfoall *arg1 = (struct vecinfoall *) 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = *(struct vecinfoall **)&jarg1;
- free((char *) arg1);
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1Init(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5, jlong jarg6, jlong jarg7) {
- jint jresult = 0 ;
- SendChar *arg1 = (SendChar *) 0 ;
- SendStat *arg2 = (SendStat *) 0 ;
- ControlledExit *arg3 = (ControlledExit *) 0 ;
- SendData *arg4 = (SendData *) 0 ;
- SendInitData *arg5 = (SendInitData *) 0 ;
- BGThreadRunning *arg6 = (BGThreadRunning *) 0 ;
- void *arg7 = (void *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- arg1 = *(SendChar **)&jarg1;
- arg2 = *(SendStat **)&jarg2;
- arg3 = *(ControlledExit **)&jarg3;
- arg4 = *(SendData **)&jarg4;
- arg5 = *(SendInitData **)&jarg5;
- arg6 = *(BGThreadRunning **)&jarg6;
- arg7 = *(void **)&jarg7;
- result = (int)ngSpice_Init(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1Init_1Sync(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) {
- jint jresult = 0 ;
- GetVSRCData *arg1 = (GetVSRCData *) 0 ;
- GetISRCData *arg2 = (GetISRCData *) 0 ;
- GetSyncData *arg3 = (GetSyncData *) 0 ;
- int *arg4 = (int *) 0 ;
- void *arg5 = (void *) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- arg1 = *(GetVSRCData **)&jarg1;
- arg2 = *(GetISRCData **)&jarg2;
- arg3 = *(GetSyncData **)&jarg3;
- arg4 = *(int **)&jarg4;
- arg5 = *(void **)&jarg5;
- result = (int)ngSpice_Init_Sync(arg1,arg2,arg3,arg4,arg5);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1Command(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)ngSpice_Command(arg1);
- jresult = (jint)result;
- if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngGet_1Vec_1Info(JNIEnv *jenv, jclass jcls, jstring jarg1) {
- jlong jresult = 0 ;
- char *arg1 = (char *) 0 ;
- pvector_info result;
- (void)jenv;
- (void)jcls;
- arg1 = 0;
- if (jarg1) {
- arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
- if (!arg1) return 0;
- }
- result = (pvector_info)ngGet_Vec_Info(arg1);
- *(pvector_info *)&jresult = result;
- if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
- return jresult;
- }
- SWIGEXPORT jint JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1Circ(JNIEnv *jenv, jclass jcls, jlong jarg1) {
- jint jresult = 0 ;
- char **arg1 = (char **) 0 ;
- int result;
- (void)jenv;
- (void)jcls;
- arg1 = *(char ***)&jarg1;
- result = (int)ngSpice_Circ(arg1);
- jresult = (jint)result;
- return jresult;
- }
- SWIGEXPORT jstring JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1CurPlot(JNIEnv *jenv, jclass jcls) {
- jstring jresult = 0 ;
- char *result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (char *)ngSpice_CurPlot();
- if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1AllPlots(JNIEnv *jenv, jclass jcls) {
- jlong jresult = 0 ;
- char **result = 0 ;
- (void)jenv;
- (void)jcls;
- result = (char **)ngSpice_AllPlots();
- *(char ***)&jresult = result;
- return jresult;
- }
- SWIGEXPORT jlong JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1AllVecs(JNIEnv *jenv, jclass jcls, jstring jarg1) {
- jlong jresult = 0 ;
- char *arg1 = (char *) 0 ;
- char **result = 0 ;
- (void)jenv;
- (void)jcls;
- arg1 = 0;
- if (jarg1) {
- arg1 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg1, 0);
- if (!arg1) return 0;
- }
- result = (char **)ngSpice_AllVecs(arg1);
- *(char ***)&jresult = result;
- if (arg1) (*jenv)->ReleaseStringUTFChars(jenv, jarg1, (const char *)arg1);
- return jresult;
- }
- SWIGEXPORT jboolean JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1running(JNIEnv *jenv, jclass jcls) {
- jboolean jresult = 0 ;
- bool result;
- (void)jenv;
- (void)jcls;
- result = (bool)ngSpice_running();
- jresult = (jboolean)result;
- return jresult;
- }
- SWIGEXPORT jboolean JNICALL Java_com_testo_datte_NGSpiceModuleJNI_ngSpice_1SetBkpt(JNIEnv *jenv, jclass jcls, jdouble jarg1) {
- jboolean jresult = 0 ;
- double arg1 ;
- bool result;
- (void)jenv;
- (void)jcls;
- arg1 = (double)jarg1;
- result = (bool)ngSpice_SetBkpt(arg1);
- jresult = (jboolean)result;
- return jresult;
- }
- #ifdef __cplusplus
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement