11#include "jni_h/jvlcconfig_LcConfig.h"
12#include "LibLcConfig_private_jv.h"
19#define defClass(v,n) jclass v;
20#define defOAtr(v,c,n,s) jfieldID v;
21#define defSAtr(v,c,n,s) jfieldID v;
22#define defOMth(v,c,n,s) jmethodID v;
23#define defSMth(v,c,n,s) jmethodID v;
46#define LcCleanupTmpl()
50JNI_OnLoad(JavaVM *jvm,
void *reserved)
54 JavaErrorCheck0 ((*jvm)->GetEnv(jvm, (
void*) &env, JNI_VERSION_1_6));
60 JavaErrorCheck0 ((*env)->EnsureLocalCapacity(env, 50));
63 #define check(v,c) if ((v=(c))==NULL) return JNI_ERR
64#define defClass(v,n) check(cls, (*env)->FindClass(env, n));\
66 check(v, (*env)->NewGlobalRef(env, cls)); \
68#define defOAtr(v,c,n,s) check(v, (*env)->GetFieldID(env,c,n,s)); \
70#define defSAtr(v,c,n,s) check(v, (*env)->GetStaticFieldID(env,c,n,s)); \
72#define defOMth(v,c,n,s) check(v, (*env)->GetMethodID(env,c,n,s)); \
74#define defSMth(v,c,n,s) check(v, (*env)->GetStaticMethodID(env,c,n,s)); \
90 return JNI_VERSION_1_6;
96JNI_OnUnload(JavaVM *jvm,
void *reserved)
100 if ((*jvm)->GetEnv(jvm, &val, JNI_VERSION_1_6)) {
110#define defClass(v,n) (*env)->DeleteGlobalRef(env, v);
111#define defOAtr(v,c,n,s)
112#define defSAtr(v,c,n,s)
113#define defOMth(v,c,n,s)
114#define defSMth(v,c,n,s)
145 MkErrorC_Check(NULL, errVal)
146 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcConfigFormatE),
"Ljvlcconfig/LcConfigFormatE;",
LcConfigFormatE_ToString(value_out));
157 MkErrorC_Check(NULL, errVal)
158 jobject __retVal__S = MK(pGetEnumFlagFromInt)(env,LC(Class_LcConfigOptionsEF),value_out);
169 MkErrorC_Check(NULL, errVal)
170 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcConfigTypeE),
"Ljvlcconfig/LcConfigTypeE;",
LcConfigTypeE_ToString(value_out));
181 MkErrorC_Check(NULL, errVal)
182 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcErrorE),
"Ljvlcconfig/LcErrorE;",
LcErrorE_ToString(value_out));
193 MkErrorC_Check(NULL, errVal)
194 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcErrorTypeE),
"Ljvlcconfig/LcErrorTypeE;",
LcErrorTypeE_ToString(value_out));
205 enum LcConfigFormatE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigFormatE), value);
208 jint __retVal__S = __retVal__L;
217 enum LcConfigFormatE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigFormatE), value);
220 jstring __retVal__S = JC2O(env,__retVal__L);
229 enum LcConfigOptionsEF value_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigOptionsEF), value);
232 jint __retVal__S = __retVal__L;
241 enum LcConfigOptionsEF value_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigOptionsEF), value);
244 jstring __retVal__S = JC2O(env,__retVal__L);
253 enum LcConfigTypeE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), value);
256 jint __retVal__S = __retVal__L;
265 enum LcConfigTypeE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), value);
268 jstring __retVal__S = JC2O(env,__retVal__L);
277 enum LcErrorE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcErrorE), value);
280 jint __retVal__S = __retVal__L;
289 enum LcErrorE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcErrorE), value);
292 jstring __retVal__S = JC2O(env,__retVal__L);
301 enum LcErrorTypeE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcErrorTypeE), value);
304 jint __retVal__S = __retVal__L;
313 enum LcErrorTypeE value_e = MK(pGetEnumFromObj)(env, NS(Class_LcErrorTypeE), value);
316 jstring __retVal__S = JC2O(env,__retVal__L);
338JNIEXPORT
void JNICALL
Setup (JNIEnv *env, jclass
class) {
static struct MkRuntimeCallbackS sLcRuntimeCallback
static MK_I32 LcConfigTypeE_ToInt(enum LcConfigTypeE value)
return the LcConfigTypeE as integer …
MK_STRN LcErrorE_ToString(enum LcErrorE value)
return the LcErrorE as string …
static MK_I32 LcErrorE_ToInt(enum LcErrorE value)
return the LcErrorE as integer …
LcErrorE
Signals an error and is used as the return value of a function …
static MK_I32 LcErrorTypeE_ToInt(enum LcErrorTypeE value)
return the LcErrorTypeE as integer …
enum MkErrorE LcConfigFormatE_FromInt(MK_I32 const value, enum LcConfigFormatE *value_out)
return the LcConfigFormatE from integer …
static MK_I32 LcConfigOptionsEF_ToInt(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as integer …
LcConfigFormatE
set the format of a LcSettingC …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
static MK_I32 LcConfigFormatE_ToInt(enum LcConfigFormatE value)
return the LcConfigFormatE as integer …
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …
enum MkErrorE LcErrorTypeE_FromInt(MK_I32 const value, enum LcErrorTypeE *value_out)
return the LcErrorTypeE from integer …
MK_STRN LcErrorTypeE_ToString(enum LcErrorTypeE value)
return the LcErrorTypeE as string …
MK_STRN LcConfigOptionsEF_ToString(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as string …
LcConfigTypeE
define the data-type of a LcSettingC …
enum MkErrorE LcConfigOptionsEF_FromInt(MK_I32 const value, enum LcConfigOptionsEF *value_out)
return the LcConfigOptionsEF from integer …
enum MkErrorE LcErrorE_FromInt(MK_I32 const value, enum LcErrorE *value_out)
return the LcErrorE from integer …
enum MkErrorE LcConfigTypeE_FromInt(MK_I32 const value, enum LcConfigTypeE *value_out)
return the LcConfigTypeE from integer …
MK_STRN LcConfigFormatE_ToString(enum LcConfigFormatE value)
return the LcConfigFormatE as string …
JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfig_ConfigTypeE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int ConfigTypeE_ToInt(LcConfigTypeE value) → C-API return the LcConfigTypeE as in...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfig_ConfigOptionsEF_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String ConfigOptionsEF_ToString(LcConfigOptionsEF value) → C-API return the LcCon...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfig_ErrorTypeE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] LcErrorTypeE ErrorTypeE_FromInt(int value) → C-API return the LcErrorTypeE from i...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfig_ErrorE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String ErrorE_ToString(LcErrorE value) → C-API return the LcErrorE as string …
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfig_ErrorE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] LcErrorE ErrorE_FromInt(int value) → C-API return the LcErrorE from integer …
JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfig_ConfigFormatE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int ConfigFormatE_ToInt(LcConfigFormatE value) → C-API return the LcConfigFormatE...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfig_ConfigFormatE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String ConfigFormatE_ToString(LcConfigFormatE value) → C-API return the LcConfigF...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfig_ConfigFormatE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] LcConfigFormatE ConfigFormatE_FromInt(int value) → C-API return the LcConfigForma...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfig_ErrorTypeE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String ErrorTypeE_ToString(LcErrorTypeE value) → C-API return the LcErrorTypeE as...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfig_ConfigTypeE_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] LcConfigTypeE ConfigTypeE_FromInt(int value) → C-API return the LcConfigTypeE fro...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfig_ErrorE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int ErrorE_ToInt(LcErrorE value) → C-API return the LcErrorE as integer …
JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfig_ConfigOptionsEF_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int ConfigOptionsEF_ToInt(LcConfigOptionsEF value) → C-API return the LcConfigOpt...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcConfig_ConfigTypeE_1ToString(JNIEnv *env, jclass class, jobject value)
Java: [static] String ConfigTypeE_ToString(LcConfigTypeE value) → C-API return the LcConfigTypeE...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcConfig_ConfigOptionsEF_1FromInt(JNIEnv *env, jclass class, jint value)
Java: [static] LcConfigOptionsEF ConfigOptionsEF_FromInt(int value) → C-API return the LcConfigO...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcConfig_ErrorTypeE_1ToInt(JNIEnv *env, jclass class, jobject value)
Java: [static] int ErrorTypeE_ToInt(LcErrorTypeE value) → C-API return the LcErrorTypeE as integ...
void LcSetup(void)
setup jvlcconfig internal memory …
void LcCleanup(void)
cleanup jvlcconfig internal memory …
JNIEXPORT void JNICALL Java_jvlcconfig_LcConfig_Cleanup(JNIEnv *env, jclass class)
Java: [static] Cleanup() → C-API cleanup jvlcconfig internal memory …
JNIEXPORT void JNICALL Setup(JNIEnv *env, jclass class)
Java: [static] Setup() → C-API setup jvlcconfig internal memory …
size_t MkRuntimeCallbackAdd(MK_RT mkrt, MkRuntimeCallbackS *cbdata, MkRuntimeInitF rt_callback, MK_STRN ident)
void MkRuntimeCallbackDel(MK_RT mkrt, MkRuntimeCallbackS *cbdata)