6953 lines
191 KiB
C
6953 lines
191 KiB
C
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 4.0.0
|
|
*
|
|
* 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.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
#ifndef SWIGJAVA
|
|
#define SWIGJAVA
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC) && (__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 defined(__GNUC__)
|
|
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
# 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
|
|
|
|
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
|
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
|
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
|
#endif
|
|
|
|
/* Intel's compiler complains if a variable which was never initialised is
|
|
* cast to void, which is a common idiom which we use to indicate that we
|
|
* are aware a variable isn't used. So we just silence that warning.
|
|
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
|
*/
|
|
#ifdef __INTEL_COMPILER
|
|
# pragma warning disable 592
|
|
#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, 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
|
|
|
|
|
|
#include <stdint.h> // Use the C99 official header
|
|
|
|
|
|
#if defined(SWIG_NOINCLUDE) || defined(SWIG_NOARRAYS)
|
|
|
|
|
|
static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input);
|
|
static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input);
|
|
static jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input);
|
|
static void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input);
|
|
static jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input);
|
|
static void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input);
|
|
static jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input);
|
|
static void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input);
|
|
static jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input);
|
|
static void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input);
|
|
static jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input);
|
|
static void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input);
|
|
static jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input);
|
|
static void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input);
|
|
static jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input);
|
|
static void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input);
|
|
static jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, jlong **carr, jlongArray input);
|
|
static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, jlong *carr, jlongArray input);
|
|
static jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, jlong *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input);
|
|
static void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input);
|
|
static jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz);
|
|
|
|
|
|
static int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input);
|
|
static void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input);
|
|
static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz);
|
|
|
|
|
|
#else
|
|
|
|
|
|
/* signed char[] support */
|
|
static int SWIG_JavaArrayInSchar (JNIEnv *jenv, jbyte **jarr, signed char **carr, jbyteArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetByteArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (signed char*) malloc(sz * sizeof(signed char));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (signed char)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutSchar (JNIEnv *jenv, jbyte *jarr, signed char *carr, jbyteArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jbyte)carr[i];
|
|
(*jenv)->ReleaseByteArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jbyteArray SWIG_JavaArrayOutSchar (JNIEnv *jenv, signed char *result, jsize sz) {
|
|
jbyte *arr;
|
|
int i;
|
|
jbyteArray jresult = (*jenv)->NewByteArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetByteArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jbyte)result[i];
|
|
(*jenv)->ReleaseByteArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* unsigned char[] support */
|
|
static int SWIG_JavaArrayInUchar (JNIEnv *jenv, jshort **jarr, unsigned char **carr, jshortArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetShortArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (unsigned char*) malloc(sz * sizeof(unsigned char));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (unsigned char)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutUchar (JNIEnv *jenv, jshort *jarr, unsigned char *carr, jshortArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jshort)carr[i];
|
|
(*jenv)->ReleaseShortArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jshortArray SWIG_JavaArrayOutUchar (JNIEnv *jenv, unsigned char *result, jsize sz) {
|
|
jshort *arr;
|
|
int i;
|
|
jshortArray jresult = (*jenv)->NewShortArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetShortArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jshort)result[i];
|
|
(*jenv)->ReleaseShortArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* short[] support */
|
|
static int SWIG_JavaArrayInShort (JNIEnv *jenv, jshort **jarr, short **carr, jshortArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetShortArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (short*) malloc(sz * sizeof(short));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (short)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutShort (JNIEnv *jenv, jshort *jarr, short *carr, jshortArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jshort)carr[i];
|
|
(*jenv)->ReleaseShortArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jshortArray SWIG_JavaArrayOutShort (JNIEnv *jenv, short *result, jsize sz) {
|
|
jshort *arr;
|
|
int i;
|
|
jshortArray jresult = (*jenv)->NewShortArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetShortArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jshort)result[i];
|
|
(*jenv)->ReleaseShortArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* unsigned short[] support */
|
|
static int SWIG_JavaArrayInUshort (JNIEnv *jenv, jint **jarr, unsigned short **carr, jintArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetIntArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (unsigned short*) malloc(sz * sizeof(unsigned short));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (unsigned short)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutUshort (JNIEnv *jenv, jint *jarr, unsigned short *carr, jintArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jint)carr[i];
|
|
(*jenv)->ReleaseIntArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jintArray SWIG_JavaArrayOutUshort (JNIEnv *jenv, unsigned short *result, jsize sz) {
|
|
jint *arr;
|
|
int i;
|
|
jintArray jresult = (*jenv)->NewIntArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetIntArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jint)result[i];
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* int[] support */
|
|
static int SWIG_JavaArrayInInt (JNIEnv *jenv, jint **jarr, int **carr, jintArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetIntArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (int*) malloc(sz * sizeof(int));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (int)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutInt (JNIEnv *jenv, jint *jarr, int *carr, jintArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jint)carr[i];
|
|
(*jenv)->ReleaseIntArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jintArray SWIG_JavaArrayOutInt (JNIEnv *jenv, int *result, jsize sz) {
|
|
jint *arr;
|
|
int i;
|
|
jintArray jresult = (*jenv)->NewIntArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetIntArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jint)result[i];
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* unsigned int[] support */
|
|
static int SWIG_JavaArrayInUint (JNIEnv *jenv, jlong **jarr, unsigned int **carr, jlongArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetLongArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (unsigned int*) malloc(sz * sizeof(unsigned int));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (unsigned int)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutUint (JNIEnv *jenv, jlong *jarr, unsigned int *carr, jlongArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jlong)carr[i];
|
|
(*jenv)->ReleaseLongArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jlongArray SWIG_JavaArrayOutUint (JNIEnv *jenv, unsigned int *result, jsize sz) {
|
|
jlong *arr;
|
|
int i;
|
|
jlongArray jresult = (*jenv)->NewLongArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetLongArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jlong)result[i];
|
|
(*jenv)->ReleaseLongArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* long[] support */
|
|
static int SWIG_JavaArrayInLong (JNIEnv *jenv, jint **jarr, long **carr, jintArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetIntArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (long*) malloc(sz * sizeof(long));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (long)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutLong (JNIEnv *jenv, jint *jarr, long *carr, jintArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jint)carr[i];
|
|
(*jenv)->ReleaseIntArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jintArray SWIG_JavaArrayOutLong (JNIEnv *jenv, long *result, jsize sz) {
|
|
jint *arr;
|
|
int i;
|
|
jintArray jresult = (*jenv)->NewIntArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetIntArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jint)result[i];
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* unsigned long[] support */
|
|
static int SWIG_JavaArrayInUlong (JNIEnv *jenv, jlong **jarr, unsigned long **carr, jlongArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetLongArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (unsigned long*) malloc(sz * sizeof(unsigned long));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (unsigned long)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutUlong (JNIEnv *jenv, jlong *jarr, unsigned long *carr, jlongArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jlong)carr[i];
|
|
(*jenv)->ReleaseLongArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jlongArray SWIG_JavaArrayOutUlong (JNIEnv *jenv, unsigned long *result, jsize sz) {
|
|
jlong *arr;
|
|
int i;
|
|
jlongArray jresult = (*jenv)->NewLongArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetLongArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jlong)result[i];
|
|
(*jenv)->ReleaseLongArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* jlong[] support */
|
|
static int SWIG_JavaArrayInLonglong (JNIEnv *jenv, jlong **jarr, jlong **carr, jlongArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetLongArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (jlong*) malloc(sz * sizeof(jlong));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (jlong)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutLonglong (JNIEnv *jenv, jlong *jarr, jlong *carr, jlongArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jlong)carr[i];
|
|
(*jenv)->ReleaseLongArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jlongArray SWIG_JavaArrayOutLonglong (JNIEnv *jenv, jlong *result, jsize sz) {
|
|
jlong *arr;
|
|
int i;
|
|
jlongArray jresult = (*jenv)->NewLongArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetLongArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jlong)result[i];
|
|
(*jenv)->ReleaseLongArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* float[] support */
|
|
static int SWIG_JavaArrayInFloat (JNIEnv *jenv, jfloat **jarr, float **carr, jfloatArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetFloatArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (float*) malloc(sz * sizeof(float));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (float)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutFloat (JNIEnv *jenv, jfloat *jarr, float *carr, jfloatArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jfloat)carr[i];
|
|
(*jenv)->ReleaseFloatArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jfloatArray SWIG_JavaArrayOutFloat (JNIEnv *jenv, float *result, jsize sz) {
|
|
jfloat *arr;
|
|
int i;
|
|
jfloatArray jresult = (*jenv)->NewFloatArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetFloatArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jfloat)result[i];
|
|
(*jenv)->ReleaseFloatArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
/* double[] support */
|
|
static int SWIG_JavaArrayInDouble (JNIEnv *jenv, jdouble **jarr, double **carr, jdoubleArray input) {
|
|
int i;
|
|
jsize sz;
|
|
if (!input) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null array");
|
|
return 0;
|
|
}
|
|
sz = (*jenv)->GetArrayLength(jenv, input);
|
|
*jarr = (*jenv)->GetDoubleArrayElements(jenv, input, 0);
|
|
if (!*jarr)
|
|
return 0;
|
|
*carr = (double*) malloc(sz * sizeof(double));
|
|
if (!*carr) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaOutOfMemoryError, "array memory allocation failed");
|
|
return 0;
|
|
}
|
|
for (i=0; i<sz; i++)
|
|
(*carr)[i] = (double)(*jarr)[i];
|
|
return 1;
|
|
}
|
|
|
|
static void SWIG_JavaArrayArgoutDouble (JNIEnv *jenv, jdouble *jarr, double *carr, jdoubleArray input) {
|
|
int i;
|
|
jsize sz = (*jenv)->GetArrayLength(jenv, input);
|
|
for (i=0; i<sz; i++)
|
|
jarr[i] = (jdouble)carr[i];
|
|
(*jenv)->ReleaseDoubleArrayElements(jenv, input, jarr, 0);
|
|
}
|
|
|
|
static jdoubleArray SWIG_JavaArrayOutDouble (JNIEnv *jenv, double *result, jsize sz) {
|
|
jdouble *arr;
|
|
int i;
|
|
jdoubleArray jresult = (*jenv)->NewDoubleArray(jenv, sz);
|
|
if (!jresult)
|
|
return NULL;
|
|
arr = (*jenv)->GetDoubleArrayElements(jenv, jresult, 0);
|
|
if (!arr)
|
|
return NULL;
|
|
for (i=0; i<sz; i++)
|
|
arr[i] = (jdouble)result[i];
|
|
(*jenv)->ReleaseDoubleArrayElements(jenv, jresult, arr, 0);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#include "icsneo/icsneoc.h"
|
|
|
|
|
|
static neomessage_can_t* neomessage_can_t_cast(neomessage_t* msg) {
|
|
return (neomessage_can_t*) msg;
|
|
}
|
|
|
|
static neomessage_eth_t* neomessage_eth_t_cast(neomessage_t* msg) {
|
|
return (neomessage_eth_t*) msg;
|
|
}
|
|
|
|
static neomessage_t* from_can_neomessage_t_cast(neomessage_can_t* msg) {
|
|
return (neomessage_t*) msg;
|
|
}
|
|
|
|
static neomessage_t* from_eth_neomessage_t_cast(neomessage_eth_t* msg) {
|
|
return (neomessage_t*) msg;
|
|
}
|
|
|
|
|
|
static neodevice_t *new_neodevice_t_array(int nelements) {
|
|
return (neodevice_t *) calloc(nelements,sizeof(neodevice_t));
|
|
}
|
|
|
|
static void delete_neodevice_t_array(neodevice_t *ary) {
|
|
free(ary);
|
|
}
|
|
|
|
static neodevice_t neodevice_t_array_getitem(neodevice_t *ary, int index) {
|
|
return ary[index];
|
|
}
|
|
static void neodevice_t_array_setitem(neodevice_t *ary, int index, neodevice_t value) {
|
|
ary[index] = value;
|
|
}
|
|
|
|
|
|
static neoevent_t *new_neoevent_t_array(int nelements) {
|
|
return (neoevent_t *) calloc(nelements,sizeof(neoevent_t));
|
|
}
|
|
|
|
static void delete_neoevent_t_array(neoevent_t *ary) {
|
|
free(ary);
|
|
}
|
|
|
|
static neoevent_t neoevent_t_array_getitem(neoevent_t *ary, int index) {
|
|
return ary[index];
|
|
}
|
|
static void neoevent_t_array_setitem(neoevent_t *ary, int index, neoevent_t value) {
|
|
ary[index] = value;
|
|
}
|
|
|
|
|
|
static neomessage_t *new_neomessage_t_array(int nelements) {
|
|
return (neomessage_t *) calloc(nelements,sizeof(neomessage_t));
|
|
}
|
|
|
|
static void delete_neomessage_t_array(neomessage_t *ary) {
|
|
free(ary);
|
|
}
|
|
|
|
static neomessage_t neomessage_t_array_getitem(neomessage_t *ary, int index) {
|
|
return ary[index];
|
|
}
|
|
static void neomessage_t_array_setitem(neomessage_t *ary, int index, neomessage_t value) {
|
|
ary[index] = value;
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_icsneo_1findAllDevices(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jintArray jarg2) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
size_t *arg2 = (size_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
{
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return ;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg2) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return ;
|
|
}
|
|
arg2 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg2, 0);
|
|
}
|
|
icsneo_findAllDevices(arg1,arg2);
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg2, (jint *)arg2, 0);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_icsneo_1freeUnconnectedDevices(JNIEnv *jenv, jclass jcls) {
|
|
(void)jenv;
|
|
(void)jcls;
|
|
icsneo_freeUnconnectedDevices();
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1serialNumToString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jintArray jarg3) {
|
|
jboolean jresult = 0 ;
|
|
uint32_t arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (uint32_t)jarg1;
|
|
{
|
|
arg2 = NULL;
|
|
if(jarg2 != NULL) {
|
|
/* Get the String from the StringBuffer */
|
|
jmethodID setLengthID;
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID toStringID = (*jenv)->GetMethodID(jenv, strClass, "toString", "()Ljava/lang/String;");
|
|
jstring js = (jstring) (*jenv)->CallObjectMethod(jenv, jarg2, toStringID);
|
|
|
|
/* Convert the String to a C string */
|
|
const char *pCharStr = (*jenv)->GetStringUTFChars(jenv, js, 0);
|
|
|
|
/* Take a copy of the C string as the typemap is for a non const C string */
|
|
jmethodID capacityID = (*jenv)->GetMethodID(jenv, strClass, "capacity", "()I");
|
|
jint capacity = (*jenv)->CallIntMethod(jenv, jarg2, capacityID);
|
|
arg2 = (char *) malloc(capacity+1);
|
|
strcpy(arg2, pCharStr);
|
|
|
|
/* Release the UTF string we obtained with GetStringUTFChars */
|
|
(*jenv)->ReleaseStringUTFChars(jenv, js, pCharStr);
|
|
|
|
/* Zero the original StringBuffer, so we can replace it with the result */
|
|
setLengthID = (*jenv)->GetMethodID(jenv, strClass, "setLength", "(I)V");
|
|
(*jenv)->CallVoidMethod(jenv, jarg2, setLengthID, (jint) 0);
|
|
}
|
|
}
|
|
{
|
|
if (!jarg3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg3) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg3 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg3, 0);
|
|
}
|
|
result = (bool)icsneo_serialNumToString(arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
{
|
|
if(arg2 != NULL) {
|
|
/* Append the result to the empty StringBuffer */
|
|
jstring newString = (*jenv)->NewStringUTF(jenv, arg2);
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID appendStringID = (*jenv)->GetMethodID(jenv, strClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
|
|
(*jenv)->CallObjectMethod(jenv, jarg2, appendStringID, newString);
|
|
|
|
/* Clean up the string object, no longer needed */
|
|
free(arg2);
|
|
arg2 = NULL;
|
|
}
|
|
}
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg3, (jint *)arg3, 0);
|
|
}
|
|
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_icsneo_1serialStringToNum(JNIEnv *jenv, jclass jcls, jobject jarg1) {
|
|
jlong jresult = 0 ;
|
|
char *arg1 = (char *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
{
|
|
arg1 = NULL;
|
|
if(jarg1 != NULL) {
|
|
/* Get the String from the StringBuffer */
|
|
jmethodID setLengthID;
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg1);
|
|
jmethodID toStringID = (*jenv)->GetMethodID(jenv, strClass, "toString", "()Ljava/lang/String;");
|
|
jstring js = (jstring) (*jenv)->CallObjectMethod(jenv, jarg1, toStringID);
|
|
|
|
/* Convert the String to a C string */
|
|
const char *pCharStr = (*jenv)->GetStringUTFChars(jenv, js, 0);
|
|
|
|
/* Take a copy of the C string as the typemap is for a non const C string */
|
|
jmethodID capacityID = (*jenv)->GetMethodID(jenv, strClass, "capacity", "()I");
|
|
jint capacity = (*jenv)->CallIntMethod(jenv, jarg1, capacityID);
|
|
arg1 = (char *) malloc(capacity+1);
|
|
strcpy(arg1, pCharStr);
|
|
|
|
/* Release the UTF string we obtained with GetStringUTFChars */
|
|
(*jenv)->ReleaseStringUTFChars(jenv, js, pCharStr);
|
|
|
|
/* Zero the original StringBuffer, so we can replace it with the result */
|
|
setLengthID = (*jenv)->GetMethodID(jenv, strClass, "setLength", "(I)V");
|
|
(*jenv)->CallVoidMethod(jenv, jarg1, setLengthID, (jint) 0);
|
|
}
|
|
}
|
|
result = (uint32_t)icsneo_serialStringToNum((char const *)arg1);
|
|
jresult = (jlong)result;
|
|
{
|
|
if(arg1 != NULL) {
|
|
/* Append the result to the empty StringBuffer */
|
|
jstring newString = (*jenv)->NewStringUTF(jenv, arg1);
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg1);
|
|
jmethodID appendStringID = (*jenv)->GetMethodID(jenv, strClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
|
|
(*jenv)->CallObjectMethod(jenv, jarg1, appendStringID, newString);
|
|
|
|
/* Clean up the string object, no longer needed */
|
|
free(arg1);
|
|
arg1 = NULL;
|
|
}
|
|
}
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1isValidNeoDevice(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_isValidNeoDevice((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1openDevice(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_openDevice((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1closeDevice(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_closeDevice((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1isOpen(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_isOpen((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1goOnline(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_goOnline((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1goOffline(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_goOffline((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1isOnline(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_isOnline((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1enableMessagePolling(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_enableMessagePolling((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1disableMessagePolling(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_disableMessagePolling((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1isMessagePollingEnabled(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_isMessagePollingEnabled((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getMessages(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jintArray jarg3, jobject jarg4) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
neomessage_t *arg2 = (neomessage_t *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
uint64_t arg4 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(neomessage_t **)&jarg2;
|
|
{
|
|
if (!jarg3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg3) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg3 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg3, 0);
|
|
}
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg4) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return 0;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg4);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg4 = 0;
|
|
if (sz > 0) {
|
|
arg4 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg4 = (arg4 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
result = (bool)icsneo_getMessages((neodevice_t const *)arg1,arg2,arg3,arg4);
|
|
jresult = (jboolean)result;
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg3, (jint *)arg3, 0);
|
|
}
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_icsneo_1getPollingMessageLimit(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
size_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = icsneo_getPollingMessageLimit((neodevice_t const *)arg1);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1setPollingMessageLimit(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
size_t arg2 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (size_t)jarg2;
|
|
result = (bool)icsneo_setPollingMessageLimit((neodevice_t const *)arg1,arg2);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getProductName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jintArray jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
{
|
|
arg2 = NULL;
|
|
if(jarg2 != NULL) {
|
|
/* Get the String from the StringBuffer */
|
|
jmethodID setLengthID;
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID toStringID = (*jenv)->GetMethodID(jenv, strClass, "toString", "()Ljava/lang/String;");
|
|
jstring js = (jstring) (*jenv)->CallObjectMethod(jenv, jarg2, toStringID);
|
|
|
|
/* Convert the String to a C string */
|
|
const char *pCharStr = (*jenv)->GetStringUTFChars(jenv, js, 0);
|
|
|
|
/* Take a copy of the C string as the typemap is for a non const C string */
|
|
jmethodID capacityID = (*jenv)->GetMethodID(jenv, strClass, "capacity", "()I");
|
|
jint capacity = (*jenv)->CallIntMethod(jenv, jarg2, capacityID);
|
|
arg2 = (char *) malloc(capacity+1);
|
|
strcpy(arg2, pCharStr);
|
|
|
|
/* Release the UTF string we obtained with GetStringUTFChars */
|
|
(*jenv)->ReleaseStringUTFChars(jenv, js, pCharStr);
|
|
|
|
/* Zero the original StringBuffer, so we can replace it with the result */
|
|
setLengthID = (*jenv)->GetMethodID(jenv, strClass, "setLength", "(I)V");
|
|
(*jenv)->CallVoidMethod(jenv, jarg2, setLengthID, (jint) 0);
|
|
}
|
|
}
|
|
{
|
|
if (!jarg3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg3) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg3 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg3, 0);
|
|
}
|
|
result = (bool)icsneo_getProductName((neodevice_t const *)arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
{
|
|
if(arg2 != NULL) {
|
|
/* Append the result to the empty StringBuffer */
|
|
jstring newString = (*jenv)->NewStringUTF(jenv, arg2);
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID appendStringID = (*jenv)->GetMethodID(jenv, strClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
|
|
(*jenv)->CallObjectMethod(jenv, jarg2, appendStringID, newString);
|
|
|
|
/* Clean up the string object, no longer needed */
|
|
free(arg2);
|
|
arg2 = NULL;
|
|
}
|
|
}
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg3, (jint *)arg3, 0);
|
|
}
|
|
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getProductNameForType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jintArray jarg3) {
|
|
jboolean jresult = 0 ;
|
|
devicetype_t arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (devicetype_t)jarg1;
|
|
{
|
|
arg2 = NULL;
|
|
if(jarg2 != NULL) {
|
|
/* Get the String from the StringBuffer */
|
|
jmethodID setLengthID;
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID toStringID = (*jenv)->GetMethodID(jenv, strClass, "toString", "()Ljava/lang/String;");
|
|
jstring js = (jstring) (*jenv)->CallObjectMethod(jenv, jarg2, toStringID);
|
|
|
|
/* Convert the String to a C string */
|
|
const char *pCharStr = (*jenv)->GetStringUTFChars(jenv, js, 0);
|
|
|
|
/* Take a copy of the C string as the typemap is for a non const C string */
|
|
jmethodID capacityID = (*jenv)->GetMethodID(jenv, strClass, "capacity", "()I");
|
|
jint capacity = (*jenv)->CallIntMethod(jenv, jarg2, capacityID);
|
|
arg2 = (char *) malloc(capacity+1);
|
|
strcpy(arg2, pCharStr);
|
|
|
|
/* Release the UTF string we obtained with GetStringUTFChars */
|
|
(*jenv)->ReleaseStringUTFChars(jenv, js, pCharStr);
|
|
|
|
/* Zero the original StringBuffer, so we can replace it with the result */
|
|
setLengthID = (*jenv)->GetMethodID(jenv, strClass, "setLength", "(I)V");
|
|
(*jenv)->CallVoidMethod(jenv, jarg2, setLengthID, (jint) 0);
|
|
}
|
|
}
|
|
{
|
|
if (!jarg3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg3) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg3 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg3, 0);
|
|
}
|
|
result = (bool)icsneo_getProductNameForType(arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
{
|
|
if(arg2 != NULL) {
|
|
/* Append the result to the empty StringBuffer */
|
|
jstring newString = (*jenv)->NewStringUTF(jenv, arg2);
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID appendStringID = (*jenv)->GetMethodID(jenv, strClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
|
|
(*jenv)->CallObjectMethod(jenv, jarg2, appendStringID, newString);
|
|
|
|
/* Clean up the string object, no longer needed */
|
|
free(arg2);
|
|
arg2 = NULL;
|
|
}
|
|
}
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg3, (jint *)arg3, 0);
|
|
}
|
|
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsRefresh(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_settingsRefresh((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsApply(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_settingsApply((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsApplyTemporary(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_settingsApplyTemporary((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsApplyDefaults(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_settingsApplyDefaults((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsApplyDefaultsTemporary(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (bool)icsneo_settingsApplyDefaultsTemporary((neodevice_t const *)arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_icsneo_1settingsReadStructure(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
|
|
jint jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
size_t arg3 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(void **)&jarg2;
|
|
arg3 = (size_t)jarg3;
|
|
result = (int)icsneo_settingsReadStructure((neodevice_t const *)arg1,arg2,arg3);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsApplyStructure(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
size_t arg3 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(void **)&jarg2;
|
|
arg3 = (size_t)jarg3;
|
|
result = (bool)icsneo_settingsApplyStructure((neodevice_t const *)arg1,(void const *)arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1settingsApplyStructureTemporary(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
size_t arg3 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(void **)&jarg2;
|
|
arg3 = (size_t)jarg3;
|
|
result = (bool)icsneo_settingsApplyStructureTemporary((neodevice_t const *)arg1,(void const *)arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_icsneo_1getBaudrate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
int64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
result = (int64_t)icsneo_getBaudrate((neodevice_t const *)arg1,arg2);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1setBaudrate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
int64_t arg3 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
arg3 = (int64_t)jarg3;
|
|
result = (bool)icsneo_setBaudrate((neodevice_t const *)arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_icsneo_1getFDBaudrate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
int64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
result = (int64_t)icsneo_getFDBaudrate((neodevice_t const *)arg1,arg2);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1setFDBaudrate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
int64_t arg3 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
arg3 = (int64_t)jarg3;
|
|
result = (bool)icsneo_setFDBaudrate((neodevice_t const *)arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1transmit(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
neomessage_t *arg2 = (neomessage_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(neomessage_t **)&jarg2;
|
|
result = (bool)icsneo_transmit((neodevice_t const *)arg1,(neomessage_t const *)arg2);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1transmitMessages(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
neomessage_t *arg2 = (neomessage_t *) 0 ;
|
|
size_t arg3 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(neomessage_t **)&jarg2;
|
|
arg3 = (size_t)jarg3;
|
|
result = (bool)icsneo_transmitMessages((neodevice_t const *)arg1,(neomessage_t const *)arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_icsneo_1setWriteBlocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
bool arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = jarg2 ? true : false;
|
|
icsneo_setWriteBlocks((neodevice_t const *)arg1,arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1describeDevice(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jintArray jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
{
|
|
arg2 = NULL;
|
|
if(jarg2 != NULL) {
|
|
/* Get the String from the StringBuffer */
|
|
jmethodID setLengthID;
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID toStringID = (*jenv)->GetMethodID(jenv, strClass, "toString", "()Ljava/lang/String;");
|
|
jstring js = (jstring) (*jenv)->CallObjectMethod(jenv, jarg2, toStringID);
|
|
|
|
/* Convert the String to a C string */
|
|
const char *pCharStr = (*jenv)->GetStringUTFChars(jenv, js, 0);
|
|
|
|
/* Take a copy of the C string as the typemap is for a non const C string */
|
|
jmethodID capacityID = (*jenv)->GetMethodID(jenv, strClass, "capacity", "()I");
|
|
jint capacity = (*jenv)->CallIntMethod(jenv, jarg2, capacityID);
|
|
arg2 = (char *) malloc(capacity+1);
|
|
strcpy(arg2, pCharStr);
|
|
|
|
/* Release the UTF string we obtained with GetStringUTFChars */
|
|
(*jenv)->ReleaseStringUTFChars(jenv, js, pCharStr);
|
|
|
|
/* Zero the original StringBuffer, so we can replace it with the result */
|
|
setLengthID = (*jenv)->GetMethodID(jenv, strClass, "setLength", "(I)V");
|
|
(*jenv)->CallVoidMethod(jenv, jarg2, setLengthID, (jint) 0);
|
|
}
|
|
}
|
|
{
|
|
if (!jarg3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg3) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg3 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg3, 0);
|
|
}
|
|
result = (bool)icsneo_describeDevice((neodevice_t const *)arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
{
|
|
if(arg2 != NULL) {
|
|
/* Append the result to the empty StringBuffer */
|
|
jstring newString = (*jenv)->NewStringUTF(jenv, arg2);
|
|
jclass strClass = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
jmethodID appendStringID = (*jenv)->GetMethodID(jenv, strClass, "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
|
|
(*jenv)->CallObjectMethod(jenv, jarg2, appendStringID, newString);
|
|
|
|
/* Clean up the string object, no longer needed */
|
|
free(arg2);
|
|
arg2 = NULL;
|
|
}
|
|
}
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg3, (jint *)arg3, 0);
|
|
}
|
|
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_icsneo_1getVersion(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neoversion_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = icsneo_getVersion();
|
|
{
|
|
neoversion_t * resultptr = (neoversion_t *) malloc(sizeof(neoversion_t));
|
|
memmove(resultptr, &result, sizeof(neoversion_t));
|
|
*(neoversion_t **)&jresult = resultptr;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getEvents(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jintArray jarg2) {
|
|
jboolean jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
size_t *arg2 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
{
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg2) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg2 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg2, 0);
|
|
}
|
|
result = (bool)icsneo_getEvents(arg1,arg2);
|
|
jresult = (jboolean)result;
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg2, (jint *)arg2, 0);
|
|
}
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getDeviceEvents(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jintArray jarg3) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
neoevent_t *arg2 = (neoevent_t *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(neoevent_t **)&jarg2;
|
|
{
|
|
if (!jarg3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg3) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg3 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg3, 0);
|
|
}
|
|
result = (bool)icsneo_getDeviceEvents((neodevice_t const *)arg1,arg2,arg3);
|
|
jresult = (jboolean)result;
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg3, (jint *)arg3, 0);
|
|
}
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getLastError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jboolean jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = (bool)icsneo_getLastError(arg1);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_icsneo_1discardAllEvents(JNIEnv *jenv, jclass jcls) {
|
|
(void)jenv;
|
|
(void)jcls;
|
|
icsneo_discardAllEvents();
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_icsneo_1discardDeviceEvents(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
icsneo_discardDeviceEvents((neodevice_t const *)arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_icsneo_1setEventLimit(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
size_t arg1 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (size_t)jarg1;
|
|
icsneo_setEventLimit(arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_icsneo_1getEventLimit(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
size_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = icsneo_getEventLimit();
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getSupportedDevices(JNIEnv *jenv, jclass jcls, jlong jarg1, jintArray jarg2) {
|
|
jboolean jresult = 0 ;
|
|
devicetype_t *arg1 = (devicetype_t *) 0 ;
|
|
size_t *arg2 = (size_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(devicetype_t **)&jarg1;
|
|
{
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null");
|
|
return 0;
|
|
}
|
|
if ((*jenv)->GetArrayLength(jenv, jarg2) == 0) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element");
|
|
return 0;
|
|
}
|
|
arg2 = (size_t *) (*jenv)->GetIntArrayElements(jenv, jarg2, 0);
|
|
}
|
|
result = (bool)icsneo_getSupportedDevices(arg1,arg2);
|
|
jresult = (jboolean)result;
|
|
{
|
|
(*jenv)->ReleaseIntArrayElements(jenv, jarg2, (jint *)arg2, 0);
|
|
}
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jboolean JNICALL Java_icsneojavaJNI_icsneo_1getTimestampResolution(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
jboolean jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
uint16_t *arg2 = (uint16_t *) 0 ;
|
|
bool result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(uint16_t **)&jarg2;
|
|
result = (bool)icsneo_getTimestampResolution((neodevice_t const *)arg1,arg2);
|
|
jresult = (jboolean)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neodevice_1t_1device_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
devicehandle_t arg2 = (devicehandle_t) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = *(devicehandle_t *)&jarg2;
|
|
if (arg1) (arg1)->device = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neodevice_1t_1device_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
devicehandle_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (devicehandle_t) ((arg1)->device);
|
|
*(devicehandle_t *)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neodevice_1t_1handle_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
neodevice_handle_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (neodevice_handle_t)jarg2;
|
|
if (arg1) (arg1)->handle = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neodevice_1t_1handle_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
neodevice_handle_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (neodevice_handle_t) ((arg1)->handle);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neodevice_1t_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
devicetype_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (devicetype_t)jarg2;
|
|
if (arg1) (arg1)->type = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neodevice_1t_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
devicetype_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (devicetype_t) ((arg1)->type);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neodevice_1t_1serial_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
char *arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if(arg2) {
|
|
strncpy((char*)arg1->serial, (const char *)arg2, 7-1);
|
|
arg1->serial[7-1] = 0;
|
|
} else {
|
|
arg1->serial[0] = 0;
|
|
}
|
|
}
|
|
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neodevice_1t_1serial_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
result = (char *)(char *) ((arg1)->serial);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neodevice_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neodevice_t *)calloc(1, sizeof(neodevice_t));
|
|
*(neodevice_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neodevice_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1globalError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->globalError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1globalError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->globalError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1transmitMessage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->transmitMessage = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1transmitMessage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->transmitMessage);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1extendedFrame_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->extendedFrame = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1extendedFrame_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->extendedFrame);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1remoteFrame_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->remoteFrame = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1remoteFrame_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->remoteFrame);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1crcError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->crcError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1crcError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->crcError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canErrorPassive_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canErrorPassive = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canErrorPassive_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canErrorPassive);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1incompleteFrame_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->incompleteFrame = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1incompleteFrame_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->incompleteFrame);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1lostArbitration_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->lostArbitration = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1lostArbitration_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->lostArbitration);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1undefinedError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->undefinedError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1undefinedError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->undefinedError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canBusOff_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canBusOff = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canBusOff_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canBusOff);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canErrorWarning_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canErrorWarning = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canErrorWarning_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canErrorWarning);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canBusShortedPlus_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canBusShortedPlus = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canBusShortedPlus_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canBusShortedPlus);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canBusShortedGround_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canBusShortedGround = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canBusShortedGround_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canBusShortedGround);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1checksumError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->checksumError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1checksumError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->checksumError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1badMessageBitTimeError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->badMessageBitTimeError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1badMessageBitTimeError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->badMessageBitTimeError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1ifrData_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->ifrData = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1ifrData_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->ifrData);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1hardwareCommError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->hardwareCommError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1hardwareCommError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->hardwareCommError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1expectedLengthError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->expectedLengthError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1expectedLengthError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->expectedLengthError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1incomingNoMatch_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->incomingNoMatch = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1incomingNoMatch_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->incomingNoMatch);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1statusBreak_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->statusBreak = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1statusBreak_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->statusBreak);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1avsiRecOverflow_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->avsiRecOverflow = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1avsiRecOverflow_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->avsiRecOverflow);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1testTrigger_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->testTrigger = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1testTrigger_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->testTrigger);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1audioComment_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->audioComment = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1audioComment_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->audioComment);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1gpsData_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->gpsData = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1gpsData_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->gpsData);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1analogDigitalInput_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->analogDigitalInput = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1analogDigitalInput_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->analogDigitalInput);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1textComment_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->textComment = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1textComment_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->textComment);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1networkMessageType_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->networkMessageType = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1networkMessageType_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->networkMessageType);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1vsiTXUnderrun_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->vsiTXUnderrun = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1vsiTXUnderrun_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->vsiTXUnderrun);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1vsiIFRCRCBit_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->vsiIFRCRCBit = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1vsiIFRCRCBit_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->vsiIFRCRCBit);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1initMessage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->initMessage = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1initMessage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->initMessage);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1flexraySecondStartupFrame_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->flexraySecondStartupFrame = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1flexraySecondStartupFrame_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->flexraySecondStartupFrame);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1extended_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->extended = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1extended_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->extended);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1hasValue_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->hasValue = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1hasValue_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->hasValue);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1valueIsBoolean_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->valueIsBoolean = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1valueIsBoolean_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->valueIsBoolean);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1highVoltage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->highVoltage = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1highVoltage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->highVoltage);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1longMessage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->longMessage = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1longMessage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->longMessage);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1globalChange_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->globalChange = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1globalChange_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->globalChange);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1errorFrame_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->errorFrame = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1errorFrame_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->errorFrame);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1endOfLongMessage_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->endOfLongMessage = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1endOfLongMessage_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->endOfLongMessage);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXBreakNotZero_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linErrorRXBreakNotZero = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXBreakNotZero_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linErrorRXBreakNotZero);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXBreakTooShort_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linErrorRXBreakTooShort = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXBreakTooShort_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linErrorRXBreakTooShort);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXSyncNot55_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linErrorRXSyncNot55 = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXSyncNot55_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linErrorRXSyncNot55);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXDataGreaterEight_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linErrorRXDataGreaterEight = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorRXDataGreaterEight_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linErrorRXDataGreaterEight);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorTXRXMismatch_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linErrorTXRXMismatch = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorTXRXMismatch_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linErrorTXRXMismatch);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorMessageIDParity_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linErrorMessageIDParity = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linErrorMessageIDParity_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linErrorMessageIDParity);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linSyncFrameError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linSyncFrameError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linSyncFrameError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linSyncFrameError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linIDFrameError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linIDFrameError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linIDFrameError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linIDFrameError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linSlaveByteError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linSlaveByteError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linSlaveByteError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linSlaveByteError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1rxTimeoutError_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->rxTimeoutError = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1rxTimeoutError_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->rxTimeoutError);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linNoSlaveData_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->linNoSlaveData = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1linNoSlaveData_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->linNoSlaveData);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdESI_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canfdESI = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdESI_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canfdESI);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdIDE_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canfdIDE = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdIDE_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canfdIDE);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdRTR_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canfdRTR = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdRTR_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canfdRTR);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdFDF_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canfdFDF = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdFDF_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canfdFDF);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdBRS_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->canfdBRS = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1canfdBRS_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->canfdBRS);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1statusBitfield_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlongArray jarg2) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t *arg2 ;
|
|
jlong *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 4) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUint(jenv, &jarr2, (unsigned int **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint32_t *b = (uint32_t *) arg1->statusBitfield;
|
|
for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((uint32_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUint(jenv, jarr2, (unsigned int *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlongArray JNICALL Java_icsneojavaJNI_neomessage_1statusbitfield_1t_1statusBitfield_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlongArray jresult = 0 ;
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
uint32_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
result = (uint32_t *)(uint32_t *) ((arg1)->statusBitfield);
|
|
jresult = SWIG_JavaArrayOutUint(jenv, (unsigned int *)result, 4);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neomessage_1statusbitfield_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neomessage_statusbitfield_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neomessage_statusbitfield_t *)calloc(1, sizeof(neomessage_statusbitfield_t));
|
|
*(neomessage_statusbitfield_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neomessage_1statusbitfield_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neomessage_statusbitfield_t *arg1 = (neomessage_statusbitfield_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neomessage_statusbitfield_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1status_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
neomessage_statusbitfield_t *arg2 = (neomessage_statusbitfield_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
arg2 = *(neomessage_statusbitfield_t **)&jarg2;
|
|
if (arg1) (arg1)->status = *arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1t_1status_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
neomessage_statusbitfield_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (neomessage_statusbitfield_t *)& ((arg1)->status);
|
|
*(neomessage_statusbitfield_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1timestamp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint64_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return ;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg2 = 0;
|
|
if (sz > 0) {
|
|
arg2 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
if (arg1) (arg1)->timestamp = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jobject JNICALL Java_icsneojavaJNI_neomessage_1t_1timestamp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jobject jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint64_t) ((arg1)->timestamp);
|
|
{
|
|
jbyteArray ba = (*jenv)->NewByteArray(jenv, 9);
|
|
jbyte* bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
jclass clazz = (*jenv)->FindClass(jenv, "java/math/BigInteger");
|
|
jmethodID mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "([B)V");
|
|
jobject bigint;
|
|
int i;
|
|
|
|
bae[0] = 0;
|
|
for(i=1; i<9; i++ ) {
|
|
bae[i] = (jbyte)(result>>8*(8-i));
|
|
}
|
|
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
bigint = (*jenv)->NewObject(jenv, clazz, mid, ba);
|
|
(*jenv)->DeleteLocalRef(jenv, ba);
|
|
jresult = bigint;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1timestampReserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint64_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return ;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg2 = 0;
|
|
if (sz > 0) {
|
|
arg2 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
if (arg1) (arg1)->timestampReserved = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jobject JNICALL Java_icsneojavaJNI_neomessage_1t_1timestampReserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jobject jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint64_t) ((arg1)->timestampReserved);
|
|
{
|
|
jbyteArray ba = (*jenv)->NewByteArray(jenv, 9);
|
|
jbyte* bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
jclass clazz = (*jenv)->FindClass(jenv, "java/math/BigInteger");
|
|
jmethodID mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "([B)V");
|
|
jobject bigint;
|
|
int i;
|
|
|
|
bae[0] = 0;
|
|
for(i=1; i<9; i++ ) {
|
|
bae[i] = (jbyte)(result>>8*(8-i));
|
|
}
|
|
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
bigint = (*jenv)->NewObject(jenv, clazz, mid, ba);
|
|
(*jenv)->DeleteLocalRef(jenv, ba);
|
|
jresult = bigint;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1data_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t *arg2 = (uint8_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
|
|
bool isCopy;
|
|
arg2 = (*jenv)->GetByteArrayElements(jenv, jarg2, &isCopy);
|
|
|
|
if (arg1) (arg1)->data = (uint8_t const *)arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jbyteArray JNICALL Java_icsneojavaJNI_neomessage_1t_1data_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jbyteArray jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint8_t *) ((arg1)->data);
|
|
|
|
jresult = (*jenv)->NewByteArray(jenv, (int) arg1->length);
|
|
(*jenv)->SetByteArrayRegion(jenv, jresult, 0, (int) arg1->length, result);
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1length_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
size_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
arg2 = (size_t)jarg2;
|
|
if (arg1) (arg1)->length = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1t_1length_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
size_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = ((arg1)->length);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1header_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshortArray jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t *arg2 ;
|
|
jshort *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 4) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUchar(jenv, &jarr2, (unsigned char **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint8_t *b = (uint8_t *) arg1->header;
|
|
for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((uint8_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUchar(jenv, jarr2, (unsigned char *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshortArray JNICALL Java_icsneojavaJNI_neomessage_1t_1header_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshortArray jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint8_t *)(uint8_t *) ((arg1)->header);
|
|
jresult = SWIG_JavaArrayOutUchar(jenv, (unsigned char *)result, 4);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1netid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
if (arg1) (arg1)->netid = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neomessage_1t_1netid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint16_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint16_t) ((arg1)->netid);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
arg2 = (uint8_t)jarg2;
|
|
if (arg1) (arg1)->type = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshort JNICALL Java_icsneojavaJNI_neomessage_1t_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshort jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint8_t) ((arg1)->type);
|
|
jresult = (jshort)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1reserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshortArray jarg2) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t *arg2 ;
|
|
jshort *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 17) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUchar(jenv, &jarr2, (unsigned char **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint8_t *b = (uint8_t *) arg1->reserved;
|
|
for (ii = 0; ii < (size_t)17; ii++) b[ii] = *((uint8_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUchar(jenv, jarr2, (unsigned char *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshortArray JNICALL Java_icsneojavaJNI_neomessage_1t_1reserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshortArray jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (uint8_t *)(uint8_t *) ((arg1)->reserved);
|
|
jresult = SWIG_JavaArrayOutUchar(jenv, (unsigned char *)result, 17);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neomessage_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neomessage_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neomessage_t *)calloc(1, sizeof(neomessage_t));
|
|
*(neomessage_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neomessage_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1status_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
neomessage_statusbitfield_t *arg2 = (neomessage_statusbitfield_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
arg2 = *(neomessage_statusbitfield_t **)&jarg2;
|
|
if (arg1) (arg1)->status = *arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1status_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
neomessage_statusbitfield_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (neomessage_statusbitfield_t *)& ((arg1)->status);
|
|
*(neomessage_statusbitfield_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1timestamp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint64_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return ;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg2 = 0;
|
|
if (sz > 0) {
|
|
arg2 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
if (arg1) (arg1)->timestamp = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jobject JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1timestamp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jobject jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint64_t) ((arg1)->timestamp);
|
|
{
|
|
jbyteArray ba = (*jenv)->NewByteArray(jenv, 9);
|
|
jbyte* bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
jclass clazz = (*jenv)->FindClass(jenv, "java/math/BigInteger");
|
|
jmethodID mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "([B)V");
|
|
jobject bigint;
|
|
int i;
|
|
|
|
bae[0] = 0;
|
|
for(i=1; i<9; i++ ) {
|
|
bae[i] = (jbyte)(result>>8*(8-i));
|
|
}
|
|
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
bigint = (*jenv)->NewObject(jenv, clazz, mid, ba);
|
|
(*jenv)->DeleteLocalRef(jenv, ba);
|
|
jresult = bigint;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1timestampReserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint64_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return ;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg2 = 0;
|
|
if (sz > 0) {
|
|
arg2 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
if (arg1) (arg1)->timestampReserved = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jobject JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1timestampReserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jobject jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint64_t) ((arg1)->timestampReserved);
|
|
{
|
|
jbyteArray ba = (*jenv)->NewByteArray(jenv, 9);
|
|
jbyte* bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
jclass clazz = (*jenv)->FindClass(jenv, "java/math/BigInteger");
|
|
jmethodID mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "([B)V");
|
|
jobject bigint;
|
|
int i;
|
|
|
|
bae[0] = 0;
|
|
for(i=1; i<9; i++ ) {
|
|
bae[i] = (jbyte)(result>>8*(8-i));
|
|
}
|
|
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
bigint = (*jenv)->NewObject(jenv, clazz, mid, ba);
|
|
(*jenv)->DeleteLocalRef(jenv, ba);
|
|
jresult = bigint;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1data_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t *arg2 = (uint8_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
|
|
bool isCopy;
|
|
arg2 = (*jenv)->GetByteArrayElements(jenv, jarg2, &isCopy);
|
|
|
|
if (arg1) (arg1)->data = (uint8_t const *)arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jbyteArray JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1data_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jbyteArray jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint8_t *) ((arg1)->data);
|
|
|
|
jresult = (*jenv)->NewByteArray(jenv, (int) arg1->length);
|
|
(*jenv)->SetByteArrayRegion(jenv, jresult, 0, (int) arg1->length, result);
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1length_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
size_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
arg2 = (size_t)jarg2;
|
|
if (arg1) (arg1)->length = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1length_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
size_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = ((arg1)->length);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1arbid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->arbid = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1arbid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->arbid);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1netid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
if (arg1) (arg1)->netid = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1netid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint16_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint16_t) ((arg1)->netid);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
arg2 = (uint8_t)jarg2;
|
|
if (arg1) (arg1)->type = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshort JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshort jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint8_t) ((arg1)->type);
|
|
jresult = (jshort)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1dlcOnWire_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
arg2 = (uint8_t)jarg2;
|
|
if (arg1) (arg1)->dlcOnWire = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshort JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1dlcOnWire_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshort jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint8_t) ((arg1)->dlcOnWire);
|
|
jresult = (jshort)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1reserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshortArray jarg2) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t *arg2 ;
|
|
jshort *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 16) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUchar(jenv, &jarr2, (unsigned char **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint8_t *b = (uint8_t *) arg1->reserved;
|
|
for (ii = 0; ii < (size_t)16; ii++) b[ii] = *((uint8_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUchar(jenv, jarr2, (unsigned char *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshortArray JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1reserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshortArray jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (uint8_t *)(uint8_t *) ((arg1)->reserved);
|
|
jresult = SWIG_JavaArrayOutUchar(jenv, (unsigned char *)result, 16);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neomessage_1can_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neomessage_can_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neomessage_can_t *)calloc(1, sizeof(neomessage_can_t));
|
|
*(neomessage_can_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neomessage_1can_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1status_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
neomessage_statusbitfield_t *arg2 = (neomessage_statusbitfield_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg2_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
arg2 = *(neomessage_statusbitfield_t **)&jarg2;
|
|
if (arg1) (arg1)->status = *arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1status_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
neomessage_statusbitfield_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (neomessage_statusbitfield_t *)& ((arg1)->status);
|
|
*(neomessage_statusbitfield_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1timestamp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint64_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return ;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg2 = 0;
|
|
if (sz > 0) {
|
|
arg2 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
if (arg1) (arg1)->timestamp = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jobject JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1timestamp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jobject jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint64_t) ((arg1)->timestamp);
|
|
{
|
|
jbyteArray ba = (*jenv)->NewByteArray(jenv, 9);
|
|
jbyte* bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
jclass clazz = (*jenv)->FindClass(jenv, "java/math/BigInteger");
|
|
jmethodID mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "([B)V");
|
|
jobject bigint;
|
|
int i;
|
|
|
|
bae[0] = 0;
|
|
for(i=1; i<9; i++ ) {
|
|
bae[i] = (jbyte)(result>>8*(8-i));
|
|
}
|
|
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
bigint = (*jenv)->NewObject(jenv, clazz, mid, ba);
|
|
(*jenv)->DeleteLocalRef(jenv, ba);
|
|
jresult = bigint;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1timestampReserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint64_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
{
|
|
jclass clazz;
|
|
jmethodID mid;
|
|
jbyteArray ba;
|
|
jbyte* bae;
|
|
jsize sz;
|
|
int i;
|
|
|
|
if (!jarg2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null");
|
|
return ;
|
|
}
|
|
clazz = (*jenv)->GetObjectClass(jenv, jarg2);
|
|
mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B");
|
|
ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid);
|
|
bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
sz = (*jenv)->GetArrayLength(jenv, ba);
|
|
arg2 = 0;
|
|
if (sz > 0) {
|
|
arg2 = (uint64_t)(signed char)bae[0];
|
|
for(i=1; i<sz; i++) {
|
|
arg2 = (arg2 << 8) | (uint64_t)(unsigned char)bae[i];
|
|
}
|
|
}
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
}
|
|
if (arg1) (arg1)->timestampReserved = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jobject JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1timestampReserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jobject jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint64_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint64_t) ((arg1)->timestampReserved);
|
|
{
|
|
jbyteArray ba = (*jenv)->NewByteArray(jenv, 9);
|
|
jbyte* bae = (*jenv)->GetByteArrayElements(jenv, ba, 0);
|
|
jclass clazz = (*jenv)->FindClass(jenv, "java/math/BigInteger");
|
|
jmethodID mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "([B)V");
|
|
jobject bigint;
|
|
int i;
|
|
|
|
bae[0] = 0;
|
|
for(i=1; i<9; i++ ) {
|
|
bae[i] = (jbyte)(result>>8*(8-i));
|
|
}
|
|
|
|
(*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0);
|
|
bigint = (*jenv)->NewObject(jenv, clazz, mid, ba);
|
|
(*jenv)->DeleteLocalRef(jenv, ba);
|
|
jresult = bigint;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1data_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t *arg2 = (uint8_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
|
|
bool isCopy;
|
|
arg2 = (*jenv)->GetByteArrayElements(jenv, jarg2, &isCopy);
|
|
|
|
if (arg1) (arg1)->data = (uint8_t const *)arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jbyteArray JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1data_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jbyteArray jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint8_t *) ((arg1)->data);
|
|
|
|
jresult = (*jenv)->NewByteArray(jenv, (int) arg1->length);
|
|
(*jenv)->SetByteArrayRegion(jenv, jresult, 0, (int) arg1->length, result);
|
|
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1length_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
size_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
arg2 = (size_t)jarg2;
|
|
if (arg1) (arg1)->length = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1length_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
size_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = ((arg1)->length);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1preemptionFlags_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
arg2 = (uint8_t)jarg2;
|
|
if (arg1) (arg1)->preemptionFlags = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshort JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1preemptionFlags_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshort jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint8_t) ((arg1)->preemptionFlags);
|
|
jresult = (jshort)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1reservedHeader_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshortArray jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t *arg2 ;
|
|
jshort *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUchar(jenv, &jarr2, (unsigned char **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint8_t *b = (uint8_t *) arg1->reservedHeader;
|
|
for (ii = 0; ii < (size_t)3; ii++) b[ii] = *((uint8_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUchar(jenv, jarr2, (unsigned char *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshortArray JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1reservedHeader_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshortArray jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint8_t *)(uint8_t *) ((arg1)->reservedHeader);
|
|
jresult = SWIG_JavaArrayOutUchar(jenv, (unsigned char *)result, 3);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1netid_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
if (arg1) (arg1)->netid = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1netid_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint16_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint16_t) ((arg1)->netid);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1type_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
arg2 = (uint8_t)jarg2;
|
|
if (arg1) (arg1)->type = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshort JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1type_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshort jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint8_t) ((arg1)->type);
|
|
jresult = (jshort)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1reserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshortArray jarg2) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t *arg2 ;
|
|
jshort *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 17) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUchar(jenv, &jarr2, (unsigned char **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint8_t *b = (uint8_t *) arg1->reserved;
|
|
for (ii = 0; ii < (size_t)17; ii++) b[ii] = *((uint8_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUchar(jenv, jarr2, (unsigned char *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshortArray JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1reserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshortArray jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (uint8_t *)(uint8_t *) ((arg1)->reserved);
|
|
jresult = SWIG_JavaArrayOutUchar(jenv, (unsigned char *)result, 17);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neomessage_1eth_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neomessage_eth_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neomessage_eth_t *)calloc(1, sizeof(neomessage_eth_t));
|
|
*(neomessage_eth_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neomessage_1eth_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1DEVICETYPE_1LONGEST_1NAME_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)((35+1));
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1DEVICETYPE_1LONGEST_1DESCRIPTION_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(((35+1) +7));
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1major_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
if (arg1) (arg1)->major = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neoversion_1t_1major_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
uint16_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (uint16_t) ((arg1)->major);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1minor_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
if (arg1) (arg1)->minor = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neoversion_1t_1minor_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
uint16_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (uint16_t) ((arg1)->minor);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1patch_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
uint16_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = (uint16_t)jarg2;
|
|
if (arg1) (arg1)->patch = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_neoversion_1t_1patch_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jint jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
uint16_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (uint16_t) ((arg1)->patch);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1metadata_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if (arg2) {
|
|
arg1->metadata = (char const *) malloc(strlen((const char *)arg2)+1);
|
|
strcpy((char *)arg1->metadata, (const char *)arg2);
|
|
} else {
|
|
arg1->metadata = 0;
|
|
}
|
|
}
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neoversion_1t_1metadata_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (char *) ((arg1)->metadata);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1buildBranch_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if (arg2) {
|
|
arg1->buildBranch = (char const *) malloc(strlen((const char *)arg2)+1);
|
|
strcpy((char *)arg1->buildBranch, (const char *)arg2);
|
|
} else {
|
|
arg1->buildBranch = 0;
|
|
}
|
|
}
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neoversion_1t_1buildBranch_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (char *) ((arg1)->buildBranch);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1buildTag_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if (arg2) {
|
|
arg1->buildTag = (char const *) malloc(strlen((const char *)arg2)+1);
|
|
strcpy((char *)arg1->buildTag, (const char *)arg2);
|
|
} else {
|
|
arg1->buildTag = 0;
|
|
}
|
|
}
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neoversion_1t_1buildTag_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (char *) ((arg1)->buildTag);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoversion_1t_1reserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if(arg2) {
|
|
strncpy((char*)arg1->reserved, (const char *)arg2, 32-1);
|
|
arg1->reserved[32-1] = 0;
|
|
} else {
|
|
arg1->reserved[0] = 0;
|
|
}
|
|
}
|
|
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neoversion_1t_1reserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
result = (char *)(char *) ((arg1)->reserved);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neoversion_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neoversion_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neoversion_t *)calloc(1, sizeof(neoversion_t));
|
|
*(neoversion_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neoversion_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neoversion_t *arg1 = (neoversion_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neoversion_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1description_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if (arg2) {
|
|
arg1->description = (char const *) malloc(strlen((const char *)arg2)+1);
|
|
strcpy((char *)arg1->description, (const char *)arg2);
|
|
} else {
|
|
arg1->description = 0;
|
|
}
|
|
}
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neoevent_1t_1description_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = (char *) ((arg1)->description);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1timestamp_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
time_t arg2 ;
|
|
time_t *argp2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
argp2 = *(time_t **)&jarg2;
|
|
if (!argp2) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null time_t");
|
|
return ;
|
|
}
|
|
arg2 = *argp2;
|
|
if (arg1) (arg1)->timestamp = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neoevent_1t_1timestamp_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
time_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = ((arg1)->timestamp);
|
|
{
|
|
time_t * resultptr = (time_t *) malloc(sizeof(time_t));
|
|
memmove(resultptr, &result, sizeof(time_t));
|
|
*(time_t **)&jresult = resultptr;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1eventNumber_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
uint32_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
arg2 = (uint32_t)jarg2;
|
|
if (arg1) (arg1)->eventNumber = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neoevent_1t_1eventNumber_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
uint32_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = (uint32_t) ((arg1)->eventNumber);
|
|
jresult = (jlong)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1severity_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
uint8_t arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
arg2 = (uint8_t)jarg2;
|
|
if (arg1) (arg1)->severity = arg2;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshort JNICALL Java_icsneojavaJNI_neoevent_1t_1severity_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshort jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
uint8_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = (uint8_t) ((arg1)->severity);
|
|
jresult = (jshort)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1serial_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
char *arg2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
arg2 = 0;
|
|
if (jarg2) {
|
|
arg2 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg2, 0);
|
|
if (!arg2) return ;
|
|
}
|
|
{
|
|
if(arg2) {
|
|
strncpy((char*)arg1->serial, (const char *)arg2, 7-1);
|
|
arg1->serial[7-1] = 0;
|
|
} else {
|
|
arg1->serial[0] = 0;
|
|
}
|
|
}
|
|
|
|
if (arg2) (*jenv)->ReleaseStringUTFChars(jenv, jarg2, (const char *)arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jstring JNICALL Java_icsneojavaJNI_neoevent_1t_1serial_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jstring jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
char *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = (char *)(char *) ((arg1)->serial);
|
|
if (result) jresult = (*jenv)->NewStringUTF(jenv, (const char *)result);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1reserved_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshortArray jarg2) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
uint8_t *arg2 ;
|
|
jshort *jarr2 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
if (jarg2 && (*jenv)->GetArrayLength(jenv, jarg2) != 16) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "incorrect array size");
|
|
return ;
|
|
}
|
|
if (!SWIG_JavaArrayInUchar(jenv, &jarr2, (unsigned char **)&arg2, jarg2)) return ;
|
|
{
|
|
size_t ii;
|
|
uint8_t *b = (uint8_t *) arg1->reserved;
|
|
for (ii = 0; ii < (size_t)16; ii++) b[ii] = *((uint8_t *) arg2 + ii);
|
|
}
|
|
SWIG_JavaArrayArgoutUchar(jenv, jarr2, (unsigned char *)arg2, jarg2);
|
|
free(arg2);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jshortArray JNICALL Java_icsneojavaJNI_neoevent_1t_1reserved_1get(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jshortArray jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
uint8_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
result = (uint8_t *)(uint8_t *) ((arg1)->reserved);
|
|
jresult = SWIG_JavaArrayOutUchar(jenv, (unsigned char *)result, 16);
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neoevent_1t(JNIEnv *jenv, jclass jcls) {
|
|
jlong jresult = 0 ;
|
|
neoevent_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (neoevent_t *)calloc(1, sizeof(neoevent_t));
|
|
*(neoevent_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neoevent_1t(JNIEnv *jenv, jclass jcls, jlong jarg1) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
free((char *) arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1DEVICE_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_icsneojavaJNI_ICSNEO_1NETID_1HSCAN_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_icsneojavaJNI_ICSNEO_1NETID_1MSCAN_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_icsneojavaJNI_ICSNEO_1NETID_1SWCAN_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_icsneojavaJNI_ICSNEO_1NETID_1LSFTCAN_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_icsneojavaJNI_ICSNEO_1NETID_1FORDSCP_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_icsneojavaJNI_ICSNEO_1NETID_1J1708_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_icsneojavaJNI_ICSNEO_1NETID_1AUX_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_icsneojavaJNI_ICSNEO_1NETID_1J1850VPW_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_icsneojavaJNI_ICSNEO_1NETID_1ISO_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_icsneojavaJNI_ICSNEO_1NETID_1ISOPIC_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(10);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1MAIN51_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(11);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(12);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1SCI_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(13);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ISO2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(14);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ISO14230_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(15);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LIN_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_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET1_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(17);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(18);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET3_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(19);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1EXT_1MEMORYREAD_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(20);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1INT_1MEMORYREAD_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(21);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1DFLASH_1READ_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(22);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1SDCARD_1READ_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(23);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1CAN_1ERRBITS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(24);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1DFLASH_1WRITE_1DONE_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(25);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1CAN1_1LOGICAL_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(26);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1CAN2_1LOGICAL_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(27);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1LIN1_1LOGICAL_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(28);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1LIN2_1LOGICAL_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(29);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1LIN1_1ANALOG_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(30);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1LIN2_1ANALOG_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(31);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1MISC_1ANALOG_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(32);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1WAVE_1MISCDIO2_1LOGICAL_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(33);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1NETWORK_1COM_1ENABLE_1EX_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(34);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1NEOVI_1NETWORK_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(35);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1READ_1BAUD_1SETTINGS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(36);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1OLDFORMAT_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(37);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1SCOPE_1CAPTURE_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(38);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1HARDWARE_1EXCEP_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(39);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1GET_1RTC_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(40);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ISO3_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(41);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HSCAN2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(42);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HSCAN3_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(44);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET4_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(45);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET5_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(46);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ISO4_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(47);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LIN2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(48);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LIN3_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(49);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LIN4_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(50);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1APP_1ERROR_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(52);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1CGI_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(53);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RESET_1STATUS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(54);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FB_1STATUS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(55);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1APP_1SIGNAL_1STATUS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(56);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1READ_1DATALINK_1CM_1TX_1MSG_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(57);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1READ_1DATALINK_1CM_1RX_1MSG_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(58);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LOGGING_1OVERFLOW_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(59);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1READ_1SETTINGS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(60);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HSCAN4_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(61);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HSCAN5_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(62);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RS232_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(63);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1UART_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(64);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1UART2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(65);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1UART3_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(66);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1UART4_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(67);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1SWCAN2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(68);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ETHERNET_1DAQ_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(69);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1DATA_1TO_1HOST_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(70);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1TEXTAPI_1TO_1HOST_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(71);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET6_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(73);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1RED_1VBAT_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(74);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET7_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(75);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET8_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(76);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET9_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(77);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET10_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(78);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET11_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(79);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FLEXRAY1A_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(80);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FLEXRAY1B_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(81);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FLEXRAY2A_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(82);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FLEXRAY2B_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(83);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LIN5_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(84);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FLEXRAY_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(85);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1FLEXRAY2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(86);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1OP_1ETHERNET12_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(87);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1MOST25_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(90);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1MOST50_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(91);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1MOST150_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(92);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ETHERNET_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(93);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1GMFSA_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(94);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1TCP_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(95);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HSCAN6_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(96);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HSCAN7_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(97);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LIN6_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(98);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1LSFTCAN2_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(99);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1HW_1COM_1LATENCY_1TEST_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(512);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1DEVICE_1STATUS_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(513);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1ANY_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(0xfffe);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETID_1INVALID_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(0xffff);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1INVALID_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1INTERNAL_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1CAN_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1LIN_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1FLEXRAY_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1MOST_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1ETHERNET_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_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1ANY_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(0xFE);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jint JNICALL Java_icsneojavaJNI_ICSNEO_1NETWORK_1TYPE_1OTHER_1get(JNIEnv *jenv, jclass jcls) {
|
|
jint jresult = 0 ;
|
|
int result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
result = (int)(0xFF);
|
|
jresult = (jint)result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1can_1t_1cast(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
neomessage_can_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (neomessage_can_t *)neomessage_can_t_cast(arg1);
|
|
*(neomessage_can_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1eth_1t_1cast(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
neomessage_eth_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
result = (neomessage_eth_t *)neomessage_eth_t_cast(arg1);
|
|
*(neomessage_eth_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_from_1can_1neomessage_1t_1cast(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_can_t *arg1 = (neomessage_can_t *) 0 ;
|
|
neomessage_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_can_t **)&jarg1;
|
|
result = (neomessage_t *)from_can_neomessage_t_cast(arg1);
|
|
*(neomessage_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_from_1eth_1neomessage_1t_1cast(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
jlong jresult = 0 ;
|
|
neomessage_eth_t *arg1 = (neomessage_eth_t *) 0 ;
|
|
neomessage_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_eth_t **)&jarg1;
|
|
result = (neomessage_t *)from_eth_neomessage_t_cast(arg1);
|
|
*(neomessage_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neodevice_1t_1array(JNIEnv *jenv, jclass jcls, jint jarg1) {
|
|
jlong jresult = 0 ;
|
|
int arg1 ;
|
|
neodevice_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (int)jarg1;
|
|
result = (neodevice_t *)new_neodevice_t_array(arg1);
|
|
*(neodevice_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neodevice_1t_1array(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
delete_neodevice_t_array(arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neodevice_1t_1array_1getitem(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
jlong jresult = 0 ;
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
int arg2 ;
|
|
neodevice_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
result = neodevice_t_array_getitem(arg1,arg2);
|
|
{
|
|
neodevice_t * resultptr = (neodevice_t *) malloc(sizeof(neodevice_t));
|
|
memmove(resultptr, &result, sizeof(neodevice_t));
|
|
*(neodevice_t **)&jresult = resultptr;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neodevice_1t_1array_1setitem(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
|
|
neodevice_t *arg1 = (neodevice_t *) 0 ;
|
|
int arg2 ;
|
|
neodevice_t arg3 ;
|
|
neodevice_t *argp3 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg3_;
|
|
arg1 = *(neodevice_t **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
argp3 = *(neodevice_t **)&jarg3;
|
|
if (!argp3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null neodevice_t");
|
|
return ;
|
|
}
|
|
arg3 = *argp3;
|
|
neodevice_t_array_setitem(arg1,arg2,arg3);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neoevent_1t_1array(JNIEnv *jenv, jclass jcls, jint jarg1) {
|
|
jlong jresult = 0 ;
|
|
int arg1 ;
|
|
neoevent_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (int)jarg1;
|
|
result = (neoevent_t *)new_neoevent_t_array(arg1);
|
|
*(neoevent_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neoevent_1t_1array(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
delete_neoevent_t_array(arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neoevent_1t_1array_1getitem(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
jlong jresult = 0 ;
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
int arg2 ;
|
|
neoevent_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
result = neoevent_t_array_getitem(arg1,arg2);
|
|
{
|
|
neoevent_t * resultptr = (neoevent_t *) malloc(sizeof(neoevent_t));
|
|
memmove(resultptr, &result, sizeof(neoevent_t));
|
|
*(neoevent_t **)&jresult = resultptr;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neoevent_1t_1array_1setitem(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
|
|
neoevent_t *arg1 = (neoevent_t *) 0 ;
|
|
int arg2 ;
|
|
neoevent_t arg3 ;
|
|
neoevent_t *argp3 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg3_;
|
|
arg1 = *(neoevent_t **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
argp3 = *(neoevent_t **)&jarg3;
|
|
if (!argp3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null neoevent_t");
|
|
return ;
|
|
}
|
|
arg3 = *argp3;
|
|
neoevent_t_array_setitem(arg1,arg2,arg3);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_new_1neomessage_1t_1array(JNIEnv *jenv, jclass jcls, jint jarg1) {
|
|
jlong jresult = 0 ;
|
|
int arg1 ;
|
|
neomessage_t *result = 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
arg1 = (int)jarg1;
|
|
result = (neomessage_t *)new_neomessage_t_array(arg1);
|
|
*(neomessage_t **)&jresult = result;
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_delete_1neomessage_1t_1array(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
delete_neomessage_t_array(arg1);
|
|
}
|
|
|
|
|
|
SWIGEXPORT jlong JNICALL Java_icsneojavaJNI_neomessage_1t_1array_1getitem(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) {
|
|
jlong jresult = 0 ;
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
int arg2 ;
|
|
neomessage_t result;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
result = neomessage_t_array_getitem(arg1,arg2);
|
|
{
|
|
neomessage_t * resultptr = (neomessage_t *) malloc(sizeof(neomessage_t));
|
|
memmove(resultptr, &result, sizeof(neomessage_t));
|
|
*(neomessage_t **)&jresult = resultptr;
|
|
}
|
|
return jresult;
|
|
}
|
|
|
|
|
|
SWIGEXPORT void JNICALL Java_icsneojavaJNI_neomessage_1t_1array_1setitem(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jlong jarg3, jobject jarg3_) {
|
|
neomessage_t *arg1 = (neomessage_t *) 0 ;
|
|
int arg2 ;
|
|
neomessage_t arg3 ;
|
|
neomessage_t *argp3 ;
|
|
|
|
(void)jenv;
|
|
(void)jcls;
|
|
(void)jarg1_;
|
|
(void)jarg3_;
|
|
arg1 = *(neomessage_t **)&jarg1;
|
|
arg2 = (int)jarg2;
|
|
argp3 = *(neomessage_t **)&jarg3;
|
|
if (!argp3) {
|
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null neomessage_t");
|
|
return ;
|
|
}
|
|
arg3 = *argp3;
|
|
neomessage_t_array_setitem(arg1,arg2,arg3);
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|