[libimdb-commit] CVS: libimdb/java/gen_STATIC JLog_swig.c,NONE,1.1 Parser_swig.c,NONE,1.1
Status: Pre-Alpha
Brought to you by:
jveldhuis
|
From: Jerry V. <jve...@us...> - 2003-08-21 23:32:49
|
Update of /cvsroot/libimdb/libimdb/java/gen_STATIC In directory sc8-pr-cvs1:/tmp/cvs-serv12625/gen_STATIC Added Files: JLog_swig.c Parser_swig.c Log Message: swig installation is option --- NEW FILE: JLog_swig.c --- /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.19 * * 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. * ----------------------------------------------------------------------------- */ #if defined(__GNUC__) typedef long long __int64; /*For gcc on Windows */ #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_JavaUnknownError } SWIG_JavaExceptionCodes; typedef struct { SWIG_JavaExceptionCodes code; const char *java_exception; } SWIG_JavaExceptions_t; #if defined(SWIG_NOINCLUDE) void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg); #else void 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_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); } #endif #define _USE_STDIO #define _USE_STDLIB #define _USE_STDARG #define _USE_TYPES #define _USE_STRINGS #define _USE_ASSERT #include "sysincludes.h" #include "jlog/jlog.h" #include "JLog_jni.h" #ifdef __cplusplus extern "C" { #endif JNIEXPORT jlong JNICALL Java_org_libimdb_swig_gen_JLogJNI_JLog_1create(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; JLog_t *result; (void)jenv; (void)jcls; result = (JLog_t *)JLog_create(); *(JLog_t **)&jresult = result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_JLogJNI_JLog_1destroy(JNIEnv *jenv, jclass jcls, jlong jarg1) { jint jresult = 0 ; JLog_t *arg1 = (JLog_t *) 0 ; int result; (void)jenv; (void)jcls; arg1 = *(JLog_t **)&jarg1; result = (int)JLog_destroy(arg1); jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_JLogJNI_get_1JLOG_1DEBUG(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; (void)jenv; (void)jcls; result = (int)JLOG_DEBUG; jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_JLogJNI_get_1JLOG_1ERROR(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; (void)jenv; (void)jcls; result = (int)JLOG_ERROR; jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_JLogJNI_get_1JLOG_1CRITICAL(JNIEnv *jenv, jclass jcls) { jint jresult = 0 ; int result; (void)jenv; (void)jcls; result = (int)JLOG_CRITICAL; jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_JLogJNI_JLog_1setNotificationLevel(JNIEnv *jenv, jclass jcls, jlong jarg1, jint jarg2) { jint jresult = 0 ; JLog_t *arg1 = (JLog_t *) 0 ; int arg2 ; int result; (void)jenv; (void)jcls; arg1 = *(JLog_t **)&jarg1; arg2 = (int)jarg2; result = (int)JLog_setNotificationLevel(arg1,(JLogReportLevel_e )arg2); jresult = (jint)result; return jresult; } #ifdef __cplusplus } #endif --- NEW FILE: Parser_swig.c --- /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.19 * * 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. * ----------------------------------------------------------------------------- */ #if defined(__GNUC__) typedef long long __int64; /*For gcc on Windows */ #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_JavaUnknownError } SWIG_JavaExceptionCodes; typedef struct { SWIG_JavaExceptionCodes code; const char *java_exception; } SWIG_JavaExceptions_t; #if defined(SWIG_NOINCLUDE) void SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg); #else void 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_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); } #endif #define _USE_STDIO #define _USE_STDLIB #define _USE_TYPES #define _USE_STRINGS #define _USE_ASSERT #include "sysincludes.h" #include "jlog/parerr.h" #include "libimdb/parser.h" #include "JLog_jni.h" #include "Parser_jni.h" #ifdef __cplusplus extern "C" { #endif JNIEXPORT jlong JNICALL Java_org_libimdb_swig_gen_ParserJNI_imdbParser_1create(JNIEnv *jenv, jclass jcls, /*jni*/jobject jarg2, jstring jarg3) { jlong jresult = 0 ; JNIEnv *arg1 = (JNIEnv *) 0 ; jobject arg2 ; char *arg3 ; imdbParser_t *result; (void)jenv; (void)jcls; arg1=jenv; arg2=jarg2; { arg3 = 0; if (jarg3) { arg3 = (char *)(*jenv)->GetStringUTFChars(jenv, jarg3, 0); if (!arg3) return 0; } } result = (imdbParser_t *)imdbParser_create(arg1,arg2,arg3); *(imdbParser_t **)&jresult = result; { if (arg3) (*jenv)->ReleaseStringUTFChars(jenv, jarg3, arg3); } return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_ParserJNI_imdbParser_1destroy(JNIEnv *jenv, jclass jcls, /*jni*/jobject jarg2, jobject jarg3) { jint jresult = 0 ; JNIEnv *arg1 = (JNIEnv *) 0 ; jobject arg2 ; jobject arg3 ; int result; (void)jenv; (void)jcls; arg1=jenv; arg2=jarg2; arg3 = jarg3; result = (int)imdbParser_destroy(arg1,arg2,arg3); jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_ParserJNI_imdbParser_1dumpMovies(JNIEnv *jenv, jclass jcls, /*jni*/jobject jarg2, /*jni*/jobject jarg3, /*jni*/jobject jarg4) { jint jresult = 0 ; JNIEnv *arg1 = (JNIEnv *) 0 ; jobject arg2 ; jobject arg3 ; jobject arg4 ; int result; (void)jenv; (void)jcls; arg1=jenv; arg2=jarg2; arg3=jarg3; arg4=jarg4; result = (int)imdbParser_dumpMovies(arg1,arg2,arg3,arg4); jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_ParserJNI_imdbParser_1dumpDirectors(JNIEnv *jenv, jclass jcls, /*jni*/jobject jarg2, /*jni*/jobject jarg3, /*jni*/jobject jarg4) { jint jresult = 0 ; JNIEnv *arg1 = (JNIEnv *) 0 ; jobject arg2 ; jobject arg3 ; jobject arg4 ; int result; (void)jenv; (void)jcls; arg1=jenv; arg2=jarg2; arg3=jarg3; arg4=jarg4; result = (int)imdbParser_dumpDirectors(arg1,arg2,arg3,arg4); jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_ParserJNI_imdbParser_1dumpActors(JNIEnv *jenv, jclass jcls, /*jni*/jobject jarg2, /*jni*/jobject jarg3, /*jni*/jobject jarg4) { jint jresult = 0 ; JNIEnv *arg1 = (JNIEnv *) 0 ; jobject arg2 ; jobject arg3 ; jobject arg4 ; int result; (void)jenv; (void)jcls; arg1=jenv; arg2=jarg2; arg3=jarg3; arg4=jarg4; result = (int)imdbParser_dumpActors(arg1,arg2,arg3,arg4); jresult = (jint)result; return jresult; } JNIEXPORT jint JNICALL Java_org_libimdb_swig_gen_ParserJNI_imdbParser_1dumpActresses(JNIEnv *jenv, jclass jcls, /*jni*/jobject jarg2, /*jni*/jobject jarg3, /*jni*/jobject jarg4) { jint jresult = 0 ; JNIEnv *arg1 = (JNIEnv *) 0 ; jobject arg2 ; jobject arg3 ; jobject arg4 ; int result; (void)jenv; (void)jcls; arg1=jenv; arg2=jarg2; arg3=jarg3; arg4=jarg4; result = (int)imdbParser_dumpActresses(arg1,arg2,arg3,arg4); jresult = (jint)result; return jresult; } #ifdef __cplusplus } #endif |