theConfig 10.0
Loading...
Searching...
No Matches
LcSettingC_jv.c
Go to the documentation of this file.
1
9/* LABEL-START */
10#define META_FILE_NAME "LcSettingC_jv.c"
11
12#include "jni_h/jvlcconfig_LcSettingC.h"
13#include "LibLcConfig_private_jv.h"
14
15
16jobject NS(LcSettingC_ObjNew) (MK_RT_ARGS JNIEnv *env, LC_CFS hdl) {
17 static MkThreadLocal jobject NS_NULL = NULL;
18 return (hdl ? MK(AtomObjNew)(MK_RT_CALL env, LcSettingC_X2obj(hdl)) : MK_GET__NS_NULL(LcSettingC));
19}
20
22static jobject NS(LcSettingC_ObjCreate) (MK_RT_ARGS JNIEnv *env, LC_CFS hdl) {
23 return MK(AtomObjCreate)(MK_RT_CALL env, LcSettingC_X2obj(hdl));
24}
25
26static MK_PTR NS(LcSettingC_selfCreate) (MK_RT_ARGS MK_OBJ obj, MK_PTR envP) {
27 JNIEnv *env = (JNIEnv*) envP;
28 return (*env)->NewObject(env, NS(Class_LcSettingC), NS(MID_LcSettingC_INIT), (jlong) obj, JNI_TRUE);
29}
30
31#define ClassInit \
32
33// printTxt("init: LcSettingC");
34
35/* LABEL-END */
36
37
38// BEGIN-LcSettingC - created by 'jv_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
39
43
44// doc-key: LcSettingC,LcSettingC-Class-Export,sc_
45
47JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_HandleResolve (JNIEnv *env, jclass class, jint netHdl) {
49 LC_CFS __retVal__L = LcSettingHandleResolve(netHdl);
50 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
51 return __retVal__S;
52}
53
54// doc-key: LcSettingC,LcSettingC-Class-Export,om_
55
56// skip class-overload: HandleGet = LcSettingHandleGet → MkObjectHandleGet
57
59// LcSettingC_Class_JV_API
60
64
65// doc-key: LcSettingC,LcSettingC-Class-Introspection,oc_
66
68JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Next (JNIEnv *env, jobject self) {
69 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
70 JavaErrorCheck;
71 MkRtSetup_X(hdl);
72 LC_CFS __retVal__L = LcSettingNext(hdl);
73 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
74 return __retVal__S;
75error:
76 return 0;
77}
78
80JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Prev (JNIEnv *env, jobject self) {
81 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
82 JavaErrorCheck;
83 MkRtSetup_X(hdl);
84 LC_CFS __retVal__L = LcSettingPrev(hdl);
85 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
86 return __retVal__S;
87error:
88 return 0;
89}
90
91// doc-key: LcSettingC,LcSettingC-Class-Introspection,sc_
92
94JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Instances (JNIEnv *env, jclass class) {
96 LC_CFS __retVal__L = LcSettingInstances();
97 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
98 return __retVal__S;
99}
100
102// LcSettingC_Class_JV_API
103
107
108// doc-key: LcSettingC,LcSettingC-Class-Misc,sc_
109
111JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetNull (JNIEnv *env, jclass class) {
113 LC_CFS __retVal__L = LcSettingGetNull();
114 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
115 return __retVal__S;
116}
117
119// LcSettingC_Class_JV_API
120
124
125// doc-key: LcSettingC,LcSettingC-Get,oc_
126
128JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetElem (JNIEnv *env, jobject self, jint idx) {
129 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
130 JavaErrorCheck;
131 MkRtSetup_X(hdl);
132 LC_CFS __retVal__L = LcSettingGetElem(hdl, idx);
133 if (__retVal__L == NULL) {
134 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.GetElem");
135 goto error;
136 }
137 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
138 return __retVal__S;
139error:
140 return 0;
141}
142
144JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetMember (JNIEnv *env, jobject self, jstring name) {
145 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
146 JavaErrorCheck;
147 MkRtSetup_X(hdl);
148 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
149 JavaErrorCheck;
150 LC_CFS __retVal__L = LcSettingGetMember(hdl, name_ptr);
151 if (__retVal__L == NULL) {
152 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.GetMember");
153 goto error;
154 }
155 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
156 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
157 return __retVal__S;
158error:
159 return 0;
160}
161
162// doc-key: LcSettingC,LcSettingC-Get,om_
163
165JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_GetBool (JNIEnv *env, jobject self) {
166 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
167 JavaErrorCheck;
168 MkRtSetup_X(hdl);
169 MK_BOOL __retVal__L = LcSettingGetBool(hdl);
170 jboolean __retVal__S = __retVal__L;
171 return __retVal__S;
172error:
173 return 0;
174}
175
177JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_GetBoolElem (JNIEnv *env, jobject self, jint idx) {
178 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
179 JavaErrorCheck;
180 MkRtSetup_X(hdl);
181 MK_BOOL __retVal__L = LcSettingGetBoolElem(hdl, idx);
182 jboolean __retVal__S = __retVal__L;
183 return __retVal__S;
184error:
185 return 0;
186}
187
189JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_GetFloat (JNIEnv *env, jobject self) {
190 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
191 JavaErrorCheck;
192 MkRtSetup_X(hdl);
193 MK_DBL __retVal__L = LcSettingGetFloat(hdl);
194 jdouble __retVal__S = __retVal__L;
195 return __retVal__S;
196error:
197 return 0;
198}
199
201JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_GetFloatElem (JNIEnv *env, jobject self, jint idx) {
202 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
203 JavaErrorCheck;
204 MkRtSetup_X(hdl);
205 MK_DBL __retVal__L = LcSettingGetFloatElem(hdl, idx);
206 jdouble __retVal__S = __retVal__L;
207 return __retVal__S;
208error:
209 return 0;
210}
211
213JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetFormat (JNIEnv *env, jobject self) {
214 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
215 JavaErrorCheck;
216 MkRtSetup_X(hdl);
217 enum LcConfigFormatE __retVal__L = LcSettingGetFormat(hdl);
218 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcConfigFormatE),"Ljvlcconfig/LcConfigFormatE;",LcConfigFormatE_ToString(__retVal__L));
219 return __retVal__S;
220error:
221 return 0;
222}
223
225JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_GetInt (JNIEnv *env, jobject self) {
226 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
227 JavaErrorCheck;
228 MkRtSetup_X(hdl);
229 MK_I32 __retVal__L = LcSettingGetInt(hdl);
230 jint __retVal__S = __retVal__L;
231 return __retVal__S;
232error:
233 return 0;
234}
235
237JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_GetInt64 (JNIEnv *env, jobject self) {
238 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
239 JavaErrorCheck;
240 MkRtSetup_X(hdl);
241 MK_I64 __retVal__L = LcSettingGetInt64(hdl);
242 jlong __retVal__S = __retVal__L;
243 return __retVal__S;
244error:
245 return 0;
246}
247
249JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_GetInt64Elem (JNIEnv *env, jobject self, jint idx) {
250 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
251 JavaErrorCheck;
252 MkRtSetup_X(hdl);
253 MK_I64 __retVal__L = LcSettingGetInt64Elem(hdl, idx);
254 jlong __retVal__S = __retVal__L;
255 return __retVal__S;
256error:
257 return 0;
258}
259
261JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_GetIntElem (JNIEnv *env, jobject self, jint idx) {
262 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
263 JavaErrorCheck;
264 MkRtSetup_X(hdl);
265 MK_I32 __retVal__L = LcSettingGetIntElem(hdl, idx);
266 jint __retVal__S = __retVal__L;
267 return __retVal__S;
268error:
269 return 0;
270}
271
273JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_GetString (JNIEnv *env, jobject self) {
274 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
275 JavaErrorCheck;
276 MkRtSetup_X(hdl);
277 MK_STRN __retVal__L = LcSettingGetString(hdl);
278 jstring __retVal__S = JC2O(env,__retVal__L);
279 return __retVal__S;
280error:
281 return 0;
282}
283
285JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_GetStringElem (JNIEnv *env, jobject self, jint idx) {
286 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
287 JavaErrorCheck;
288 MkRtSetup_X(hdl);
289 MK_STRN __retVal__L = LcSettingGetStringElem(hdl, idx);
290 jstring __retVal__S = JC2O(env,__retVal__L);
291 return __retVal__S;
292error:
293 return 0;
294}
295
297// LcSettingC_Get_JV_API
298
302
303// doc-key: LcSettingC,LcSettingC-Is,om_
304
306JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsAggregate (JNIEnv *env, jobject self) {
307 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
308 JavaErrorCheck;
309 MkRtSetup_X(hdl);
310 MK_BOOL __retVal__L = LcSettingIsAggregate(hdl);
311 jboolean __retVal__S = __retVal__L;
312 return __retVal__S;
313error:
314 return 0;
315}
316
318JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsArray (JNIEnv *env, jobject self) {
319 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
320 JavaErrorCheck;
321 MkRtSetup_X(hdl);
322 MK_BOOL __retVal__L = LcSettingIsArray(hdl);
323 jboolean __retVal__S = __retVal__L;
324 return __retVal__S;
325error:
326 return 0;
327}
328
330JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsGroup (JNIEnv *env, jobject self) {
331 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
332 JavaErrorCheck;
333 MkRtSetup_X(hdl);
334 MK_BOOL __retVal__L = LcSettingIsGroup(hdl);
335 jboolean __retVal__S = __retVal__L;
336 return __retVal__S;
337error:
338 return 0;
339}
340
342JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsList (JNIEnv *env, jobject self) {
343 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
344 JavaErrorCheck;
345 MkRtSetup_X(hdl);
346 MK_BOOL __retVal__L = LcSettingIsList(hdl);
347 jboolean __retVal__S = __retVal__L;
348 return __retVal__S;
349error:
350 return 0;
351}
352
354JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsNumber (JNIEnv *env, jobject self) {
355 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
356 JavaErrorCheck;
357 MkRtSetup_X(hdl);
358 MK_BOOL __retVal__L = LcSettingIsNumber(hdl);
359 jboolean __retVal__S = __retVal__L;
360 return __retVal__S;
361error:
362 return 0;
363}
364
366JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsRoot (JNIEnv *env, jobject self) {
367 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
368 JavaErrorCheck;
369 MkRtSetup_X(hdl);
370 MK_BOOL __retVal__L = LcSettingIsRoot(hdl);
371 jboolean __retVal__S = __retVal__L;
372 return __retVal__S;
373error:
374 return 0;
375}
376
378JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsScalar (JNIEnv *env, jobject self) {
379 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
380 JavaErrorCheck;
381 MkRtSetup_X(hdl);
382 MK_BOOL __retVal__L = LcSettingIsScalar(hdl);
383 jboolean __retVal__S = __retVal__L;
384 return __retVal__S;
385error:
386 return 0;
387}
388
390// LcSettingC_Is_JV_API
391
395
396// doc-key: LcSettingC,LcSettingC-Lookup,oc_
397
399JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Lookup (JNIEnv *env, jobject self, jstring path) {
400 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
401 JavaErrorCheck;
402 MkRtSetup_X(hdl);
403 MK_STRN path_ptr = (path?(*env)->GetStringUTFChars(env,path,NULL):NULL);
404 JavaErrorCheck;
405 LC_CFS __retVal__L = LcSettingLookup(hdl, path_ptr);
406 if (__retVal__L == NULL) {
407 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.Lookup");
408 goto error;
409 }
410 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
411 if (path_ptr) (*env)->ReleaseStringUTFChars(env,path,path_ptr);
412 return __retVal__S;
413error:
414 return 0;
415}
416
418JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_LookupAll (JNIEnv *env, jobject self) {
419 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
420 JavaErrorCheck;
421 MkRtSetup_X(hdl);
422 MK_BFL __retVal__L = LcSettingLookupAll(hdl);
423 jobject __retVal__S = MK(MkBufferListC_ObjNew)(MK_RT_CALL env,__retVal__L);
424 return __retVal__S;
425error:
426 return 0;
427}
428
429// doc-key: LcSettingC,LcSettingC-Lookup,omo
430
432JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_LookupBool (JNIEnv *env, jobject self, jstring name) {
433 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
434 JavaErrorCheck;
435 MkRtSetup_X(hdl);
436 MK_BOOL value_out;
437 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
438 JavaErrorCheck;
439 enum MkErrorE errVal = LcSettingLookupBool(hdl, name_ptr, &value_out);
440 MkErrorC_Check(hdl, errVal)
441 jboolean __retVal__S = value_out;
442 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
443 return __retVal__S;
444error:
445 return 0;
446}
447
449JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_LookupFloat (JNIEnv *env, jobject self, jstring name) {
450 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
451 JavaErrorCheck;
452 MkRtSetup_X(hdl);
453 MK_DBL value_out;
454 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
455 JavaErrorCheck;
456 enum MkErrorE errVal = LcSettingLookupFloat(hdl, name_ptr, &value_out);
457 MkErrorC_Check(hdl, errVal)
458 jdouble __retVal__S = value_out;
459 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
460 return __retVal__S;
461error:
462 return 0;
463}
464
466JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_LookupInt (JNIEnv *env, jobject self, jstring name) {
467 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
468 JavaErrorCheck;
469 MkRtSetup_X(hdl);
470 MK_I32 value_out;
471 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
472 JavaErrorCheck;
473 enum MkErrorE errVal = LcSettingLookupInt(hdl, name_ptr, &value_out);
474 MkErrorC_Check(hdl, errVal)
475 jint __retVal__S = value_out;
476 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
477 return __retVal__S;
478error:
479 return 0;
480}
481
483JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_LookupInt64 (JNIEnv *env, jobject self, jstring name) {
484 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
485 JavaErrorCheck;
486 MkRtSetup_X(hdl);
487 MK_I64 value_out;
488 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
489 JavaErrorCheck;
490 enum MkErrorE errVal = LcSettingLookupInt64(hdl, name_ptr, &value_out);
491 MkErrorC_Check(hdl, errVal)
492 jlong __retVal__S = value_out;
493 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
494 return __retVal__S;
495error:
496 return 0;
497}
498
500JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_LookupString (JNIEnv *env, jobject self, jstring name) {
501 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
502 JavaErrorCheck;
503 MkRtSetup_X(hdl);
504 MK_STRN value_out;
505 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
506 JavaErrorCheck;
507 enum MkErrorE errVal = LcSettingLookupString(hdl, name_ptr, &value_out);
508 MkErrorC_Check(hdl, errVal)
509 jstring __retVal__S = JC2O(env,value_out);
510 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
511 return __retVal__S;
512error:
513 return 0;
514}
515
517// LcSettingC_Lookup_JV_API
518
522
523// doc-key: LcSettingC,LcSettingC-Misc,oc_
524
526JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_AddIfNotExists (JNIEnv *env, jobject self, jstring name, jobject cfgtype) {
527 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
528 JavaErrorCheck;
529 MkRtSetup_X(hdl);
530 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
531 JavaErrorCheck;
532 enum LcConfigTypeE cfgtype_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), cfgtype);
533 JavaErrorCheck;
534 LC_CFS __retVal__L = LcSettingAddIfNotExists(hdl, name_ptr, cfgtype_e);
535 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
536 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
537 return __retVal__S;
538error:
539 return 0;
540}
541
543JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Parent (JNIEnv *env, jobject self) {
544 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
545 JavaErrorCheck;
546 MkRtSetup_X(hdl);
547 LC_CFS __retVal__L = LcSettingParent(hdl);
548 if (__retVal__L == NULL) {
549 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.Parent");
550 goto error;
551 }
552 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
553 return __retVal__S;
554error:
555 return 0;
556}
557
558// doc-key: LcSettingC,LcSettingC-Misc,om_
559
561JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_Exists (JNIEnv *env, jobject self, jstring name) {
562 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
563 JavaErrorCheck;
564 MkRtSetup_X(hdl);
565 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
566 JavaErrorCheck;
567 MK_BOOL __retVal__L = LcSettingExists(hdl, name_ptr);
568 jboolean __retVal__S = __retVal__L;
569 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
570 return __retVal__S;
571error:
572 return 0;
573}
574
576JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Index (JNIEnv *env, jobject self) {
577 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
578 JavaErrorCheck;
579 MkRtSetup_X(hdl);
580 MK_I32 __retVal__L = LcSettingIndex(hdl);
581 jint __retVal__S = __retVal__L;
582 return __retVal__S;
583error:
584 return 0;
585}
586
588JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Length (JNIEnv *env, jobject self) {
589 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
590 JavaErrorCheck;
591 MkRtSetup_X(hdl);
592 MK_I32 __retVal__L = LcSettingLength(hdl);
593 jint __retVal__S = __retVal__L;
594 return __retVal__S;
595error:
596 return 0;
597}
598
599// skip class-overload: Log = LcSettingLog → MkObjectLog
600
602JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_Name (JNIEnv *env, jobject self) {
603 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
604 JavaErrorCheck;
605 MkRtSetup_X(hdl);
606 MK_STRN __retVal__L = LcSettingName(hdl);
607 jstring __retVal__S = JC2O(env,__retVal__L);
608 return __retVal__S;
609error:
610 return 0;
611}
612
614JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_Remove (JNIEnv *env, jobject self, jstring name) {
615 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
616 JavaErrorCheck;
617 MkRtSetup_X(hdl);
618 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
619 JavaErrorCheck;
620 enum MkErrorE errVal = LcSettingRemove(hdl, name_ptr);
621 MkErrorC_Check(hdl, errVal)
622 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
623error:
624 return;
625}
626
628JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_RemoveElem (JNIEnv *env, jobject self, jint idx) {
629 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
630 JavaErrorCheck;
631 MkRtSetup_X(hdl);
632 enum MkErrorE errVal = LcSettingRemoveElem(hdl, idx);
633 MkErrorC_Check(hdl, errVal)
634error:
635 return;
636}
637
639JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_SourceFile (JNIEnv *env, jobject self) {
640 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
641 JavaErrorCheck;
642 MkRtSetup_X(hdl);
643 MK_STRN __retVal__L = LcSettingSourceFile(hdl);
644 jstring __retVal__S = JC2O(env,__retVal__L);
645 return __retVal__S;
646error:
647 return 0;
648}
649
651JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_SourceLine (JNIEnv *env, jobject self) {
652 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
653 JavaErrorCheck;
654 MkRtSetup_X(hdl);
655 MK_I32 __retVal__L = LcSettingSourceLine(hdl);
656 jint __retVal__S = __retVal__L;
657 return __retVal__S;
658error:
659 return 0;
660}
661
663JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Type (JNIEnv *env, jobject self) {
664 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
665 JavaErrorCheck;
666 MkRtSetup_X(hdl);
667 enum LcConfigTypeE __retVal__L = LcSettingType(hdl);
668 jobject __retVal__S = MK(pGetEnumFromString)(env,LC(Class_LcConfigTypeE),"Ljvlcconfig/LcConfigTypeE;",LcConfigTypeE_ToString(__retVal__L));
669 return __retVal__S;
670error:
671 return 0;
672}
673
675// LcSettingC_Misc_JV_API
676
680
681// doc-key: LcSettingC,LcSettingC-Set,oc_
682
684JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetBoolElem (JNIEnv *env, jobject self, jint idx, jint value) {
685 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
686 JavaErrorCheck;
687 MkRtSetup_X(hdl);
688 LC_CFS __retVal__L = LcSettingSetBoolElem(hdl, idx, value);
689 if (__retVal__L == NULL) {
690 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.SetBoolElem");
691 goto error;
692 }
693 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
694 return __retVal__S;
695error:
696 return 0;
697}
698
700JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetFloatElem (JNIEnv *env, jobject self, jint idx, jdouble value) {
701 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
702 JavaErrorCheck;
703 MkRtSetup_X(hdl);
704 LC_CFS __retVal__L = LcSettingSetFloatElem(hdl, idx, value);
705 if (__retVal__L == NULL) {
706 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.SetFloatElem");
707 goto error;
708 }
709 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
710 return __retVal__S;
711error:
712 return 0;
713}
714
716JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetInt64Elem (JNIEnv *env, jobject self, jint idx, jlong value) {
717 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
718 JavaErrorCheck;
719 MkRtSetup_X(hdl);
720 LC_CFS __retVal__L = LcSettingSetInt64Elem(hdl, idx, value);
721 if (__retVal__L == NULL) {
722 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.SetInt64Elem");
723 goto error;
724 }
725 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
726 return __retVal__S;
727error:
728 return 0;
729}
730
732JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetIntElem (JNIEnv *env, jobject self, jint idx, jint value) {
733 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
734 JavaErrorCheck;
735 MkRtSetup_X(hdl);
736 LC_CFS __retVal__L = LcSettingSetIntElem(hdl, idx, value);
737 if (__retVal__L == NULL) {
738 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.SetIntElem");
739 goto error;
740 }
741 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
742 return __retVal__S;
743error:
744 return 0;
745}
746
748JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetStringElem (JNIEnv *env, jobject self, jint idx, jstring value) {
749 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
750 JavaErrorCheck;
751 MkRtSetup_X(hdl);
752 MK_STRN value_ptr = (value?(*env)->GetStringUTFChars(env,value,NULL):NULL);
753 JavaErrorCheck;
754 LC_CFS __retVal__L = LcSettingSetStringElem(hdl, idx, value_ptr);
755 if (__retVal__L == NULL) {
756 (*env)->ThrowNew(env, MK(Class_MkInitSoftError), "LcSettingC.SetStringElem");
757 goto error;
758 }
759 jobject __retVal__S = LC(LcSettingC_ObjNew)(MK_RT_CALL env,__retVal__L);
760 if (value_ptr) (*env)->ReleaseStringUTFChars(env,value,value_ptr);
761 return __retVal__S;
762error:
763 return 0;
764}
765
766// doc-key: LcSettingC,LcSettingC-Set,om_
767
769JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetBool (JNIEnv *env, jobject self, jboolean value) {
770 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
771 JavaErrorCheck;
772 MkRtSetup_X(hdl);
773 enum MkErrorE errVal = LcSettingSetBool(hdl, value);
774 MkErrorC_Check(hdl, errVal)
775error:
776 return;
777}
778
780JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetFloat (JNIEnv *env, jobject self, jdouble value) {
781 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
782 JavaErrorCheck;
783 MkRtSetup_X(hdl);
784 enum MkErrorE errVal = LcSettingSetFloat(hdl, value);
785 MkErrorC_Check(hdl, errVal)
786error:
787 return;
788}
789
791JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetFormat (JNIEnv *env, jobject self, jobject format) {
792 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
793 JavaErrorCheck;
794 MkRtSetup_X(hdl);
795 enum LcConfigFormatE format_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigFormatE), format);
796 JavaErrorCheck;
797 enum MkErrorE errVal = LcSettingSetFormat(hdl, format_e);
798 MkErrorC_Check(hdl, errVal)
799error:
800 return;
801}
802
804JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetInt (JNIEnv *env, jobject self, jint value) {
805 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
806 JavaErrorCheck;
807 MkRtSetup_X(hdl);
808 enum MkErrorE errVal = LcSettingSetInt(hdl, value);
809 MkErrorC_Check(hdl, errVal)
810error:
811 return;
812}
813
815JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetInt64 (JNIEnv *env, jobject self, jlong value) {
816 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
817 JavaErrorCheck;
818 MkRtSetup_X(hdl);
819 enum MkErrorE errVal = LcSettingSetInt64(hdl, value);
820 MkErrorC_Check(hdl, errVal)
821error:
822 return;
823}
824
826JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetString (JNIEnv *env, jobject self, jstring value) {
827 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
828 JavaErrorCheck;
829 MkRtSetup_X(hdl);
830 MK_STRN value_ptr = (value?(*env)->GetStringUTFChars(env,value,NULL):NULL);
831 JavaErrorCheck;
832 enum MkErrorE errVal = LcSettingSetString(hdl, value_ptr);
833 MkErrorC_Check(hdl, errVal)
834 if (value_ptr) (*env)->ReleaseStringUTFChars(env,value,value_ptr);
835error:
836 return;
837}
838
840// LcSettingC_Set_JV_API
841
845
846// doc-key: LcSettingC,LcSettingC-TOR,oC_
847
849JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Add (JNIEnv *env, jobject self, jstring name, jobject __type) {
850 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
851 JavaErrorCheck;
852 MkRtSetup_X(hdl);
853 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
854 JavaErrorCheck;
855 enum LcConfigTypeE __type_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), __type);
856 JavaErrorCheck;
857 LC_CFS __retVal__L = LcSettingAdd(hdl, name_ptr, __type_e);
858 if (__retVal__L == NULL) {
859 (*env)->ThrowNew(env, MK(Class_MkInitError), "LcSettingC.Add");
860 goto error;
861 }
862 jobject __retVal__S = LC(LcSettingC_ObjCreate)(MK_RT_CALL env,__retVal__L);
863 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
864 return __retVal__S;
865error:
866 return 0;
867}
868
869// doc-key: LcSettingC,LcSettingC-TOR,oc_
870
872JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetConfig (JNIEnv *env, jobject self) {
873 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
874 JavaErrorCheck;
875 MkRtSetup_X(hdl);
876 LC_CFG __retVal__L = LcSettingGetConfig(hdl);
877 jobject __retVal__S = LC(LcConfigC_ObjNew)(MK_RT_CALL env,__retVal__L);
878 return __retVal__S;
879error:
880 return 0;
881}
882
884// LcSettingC_TOR_JV_API
885
886// END-LcSettingC - created by 'jv_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
887
888// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
889
890void NS(LcSettingC_Init)(LC_RT_ARGS_ONLY) {
892
893 LcSettingC_TT->selfCreate = NS(LcSettingC_selfCreate) ;
894 LcSettingC_TT->selfUnlink = MK(AtomSelfUnlink) ;
895}
#define ClassInit
#define LC_RT_ARGS_ONLY
static MK_ARTIFICIAL LC_CFG LcConfigC_ObjNew(config_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
MK_STRN LcConfigFormatE_ToString(enum LcConfigFormatE value)
return the LcConfigFormatE as string …
const struct LcSettingS * LC_CFSN
class-shortcut for const struct LcSettingS *, all const shortcut using the XX_YYYC syntax (only for p...
#define LcSettingHandleResolve(...)
static LC_CFS LcSettingPrev(LC_CFS const cfs)
get previous instance from linked-list of LcSettingS type
static LC_CFS LcSettingNext(LC_CFS const cfs)
get next instance from linked-list of LcSettingS type
#define LcSettingInstances()
static MK_ARTIFICIAL LC_CFS LcSettingC_ObjNew(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
static LC_CFS LcSettingGetNull(void)
Null-Slot - return a LcSettingC typed NULL instance …
struct LcSettingS * LC_CFS
class-shortcut for struct LcSettingS *, all shortcut using the XX_YYY syntax (only for public API) …
static LC_CFS LcSettingC_ObjCreate(config_setting_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
__thread MK_TYP LcSettingC_TT
class as MkTypeDefS-class-type …
#define LcSettingC_X2obj(x)
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_HandleResolve(JNIEnv *env, jclass class, jint netHdl)
Java: [static] LcSettingC LcSettingC.HandleResolve(int netHdl) → C-API Handle-Resolve-Slot - ret...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Prev(JNIEnv *env, jobject self)
Java: LcSettingC cfs.Prev() → C-API get previous instance from linked-list of LcSettingS type
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetNull(JNIEnv *env, jclass class)
Java: [static] LcSettingC LcSettingC.GetNull() → C-API Null-Slot - return a LcSettingC typed NUL...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Next(JNIEnv *env, jobject self)
Java: LcSettingC cfs.Next() → C-API get next instance from linked-list of LcSettingS type
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Instances(JNIEnv *env, jclass class)
Java: [static] LcSettingC LcSettingC.Instances() → C-API get head-instance from linked-list of L...
static MK_STRN LcSettingGetString(LC_CFSN setting)
These functions return the value of the given setting …
static LC_CFG LcSettingGetConfig(LC_CFSN setting)
addon - return the LcConfigC from the LcSettingC …
static LC_CFS LcSettingGetElem(LC_CFSN setting, MK_I32 idx)
This function fetches the element at the given index index in the setting setting,...
static MK_BOOL LcSettingGetBool(LC_CFSN setting)
These functions return the value of the given setting …
static MK_DBL LcSettingGetFloat(LC_CFSN setting)
These functions return the value of the given setting …
static MK_BOOL LcSettingGetBoolElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_I64 LcSettingGetInt64Elem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static LC_CFS LcSettingGetMember(LC_CFSN setting, MK_STRN name)
This function fetches the child setting named name from the group setting …
static enum LcConfigFormatE LcSettingGetFormat(LC_CFSN setting)
These functions get and set the external format for the setting setting …
static MK_I32 LcSettingGetInt(LC_CFSN setting)
These functions return the value of the given setting …
static MK_I32 LcSettingGetIntElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_I64 LcSettingGetInt64(LC_CFSN setting)
These functions return the value of the given setting …
static MK_STRN LcSettingGetStringElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
static MK_DBL LcSettingGetFloatElem(LC_CFSN setting, MK_I32 idx)
These functions return the value at the specified index index in the setting setting …
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetMember(JNIEnv *env, jobject self, jstring name)
Java: LcSettingC setting.GetMember(String name) → C-API This function fetches the child setting...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_GetString(JNIEnv *env, jobject self)
Java: String setting.GetString() → C-API These functions return the value of the given setting ...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_GetStringElem(JNIEnv *env, jobject self, jint idx)
Java: String setting.GetStringElem(int idx) → C-API These functions return the value at the spe...
JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_GetFloat(JNIEnv *env, jobject self)
Java: double setting.GetFloat() → C-API These functions return the value of the given setting …
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_GetBoolElem(JNIEnv *env, jobject self, jint idx)
Java: boolean setting.GetBoolElem(int idx) → C-API These functions return the value at the spec...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetFormat(JNIEnv *env, jobject self)
Java: LcConfigFormatE setting.GetFormat() → C-API These functions get and set the external form...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_GetBool(JNIEnv *env, jobject self)
Java: boolean setting.GetBool() → C-API These functions return the value of the given setting …
JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_GetInt64Elem(JNIEnv *env, jobject self, jint idx)
Java: long setting.GetInt64Elem(int idx) → C-API These functions return the value at the specif...
JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_GetFloatElem(JNIEnv *env, jobject self, jint idx)
Java: double setting.GetFloatElem(int idx) → C-API These functions return the value at the spec...
JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_GetInt64(JNIEnv *env, jobject self)
Java: long setting.GetInt64() → C-API These functions return the value of the given setting …
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_GetIntElem(JNIEnv *env, jobject self, jint idx)
Java: int setting.GetIntElem(int idx) → C-API These functions return the value at the specified...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_GetInt(JNIEnv *env, jobject self)
Java: int setting.GetInt() → C-API These functions return the value of the given setting …
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetElem(JNIEnv *env, jobject self, jint idx)
Java: LcSettingC setting.GetElem(int idx) → C-API This function fetches the element at the give...
static MK_BOOL LcSettingIsArray(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsNumber(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static MK_BOOL LcSettingIsRoot(LC_CFSN setting)
This function returns CONFIG_TRUE if the given setting is the root setting, and CONFIG_FALSE otherwis...
static MK_BOOL LcSettingIsList(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsAggregate(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
static MK_BOOL LcSettingIsGroup(LC_CFSN setting)
These convenience functions, which are implemented as macros, test if the setting setting is of a giv...
static MK_BOOL LcSettingIsScalar(LC_CFSN setting)
These convenience functions, some of which are implemented as macros, test if the setting setting is ...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsList(JNIEnv *env, jobject self)
Java: boolean setting.IsList() → C-API These convenience functions, which are implemented as ma...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsArray(JNIEnv *env, jobject self)
Java: boolean setting.IsArray() → C-API These convenience functions, which are implemented as m...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsAggregate(JNIEnv *env, jobject self)
Java: boolean setting.IsAggregate() → C-API These convenience functions, some of which are impl...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsNumber(JNIEnv *env, jobject self)
Java: boolean setting.IsNumber() → C-API These convenience functions, some of which are impleme...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsGroup(JNIEnv *env, jobject self)
Java: boolean setting.IsGroup() → C-API These convenience functions, which are implemented as m...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsRoot(JNIEnv *env, jobject self)
Java: boolean setting.IsRoot() → C-API This function returns CONFIG_TRUE if the given setting i...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_IsScalar(JNIEnv *env, jobject self)
Java: boolean setting.IsScalar() → C-API These convenience functions, some of which are impleme...
static enum MkErrorE LcSettingLookupString(LC_CFSN setting, MK_STRN name, MK_STRN *value_out)
These functions look up the value of the child setting named name of the setting setting …
static LC_CFS LcSettingLookup(LC_CFS setting, MK_STRN path)
This function locates a setting by a path path relative to the setting setting …
static enum MkErrorE LcSettingLookupBool(LC_CFSN setting, MK_STRN name, MK_BOOL *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupInt(LC_CFSN setting, MK_STRN name, MK_I32 *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupInt64(LC_CFSN setting, MK_STRN name, MK_I64 *value_out)
These functions look up the value of the child setting named name of the setting setting …
static enum MkErrorE LcSettingLookupFloat(LC_CFSN setting, MK_STRN name, MK_DBL *value_out)
These functions look up the value of the child setting named name of the setting setting …
MK_BFL LcSettingLookupAll(LC_CFSN setting)
addon - read an entire configuration below setting into MkBufferListC …
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Lookup(JNIEnv *env, jobject self, jstring path)
Java: LcSettingC setting.Lookup(String path) → C-API This function locates a setting by a path ...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_LookupAll(JNIEnv *env, jobject self)
Java: MkBufferListC setting.LookupAll() → C-API addon - read an entire configuration below sett...
JNIEXPORT jlong JNICALL Java_jvlcconfig_LcSettingC_LookupInt64(JNIEnv *env, jobject self, jstring name)
Java: long setting.LookupInt64(String name) → C-API These functions look up the value of the ch...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_LookupInt(JNIEnv *env, jobject self, jstring name)
Java: int setting.LookupInt(String name) → C-API These functions look up the value of the child...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_LookupBool(JNIEnv *env, jobject self, jstring name)
Java: boolean setting.LookupBool(String name) → C-API These functions look up the value of the ...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_LookupString(JNIEnv *env, jobject self, jstring name)
Java: String setting.LookupString(String name) → C-API These functions look up the value of the...
JNIEXPORT jdouble JNICALL Java_jvlcconfig_LcSettingC_LookupFloat(JNIEnv *env, jobject self, jstring name)
Java: double setting.LookupFloat(String name) → C-API These functions look up the value of the ...
static LC_CFS LcSettingParent(LC_CFSN setting)
This function returns the parent setting of the given setting, or NULL if setting is the root setting...
static MK_I32 LcSettingIndex(LC_CFSN setting)
This function returns the index of the given setting within its parent setting …
static enum MkErrorE LcSettingRemoveElem(LC_CFS parent, MK_I32 idx)
This function removes the child setting at the given index index from the setting parent,...
static MK_STRN LcSettingName(LC_CFSN setting)
This function returns the name of the given setting, or NULL if the setting has no name …
static bool LcSettingExists(const LC_CFS setting, MK_STRN name)
addon - return true if name exists in the setting otherwise false …
static MK_I32 LcSettingSourceLine(LC_CFSN setting)
This function returns the line number of the configuration file or stream at which the setting settin...
static MK_STRN LcSettingSourceFile(LC_CFSN setting)
This function returns the name of the file from which the setting setting was read,...
static enum MkErrorE LcSettingRemove(LC_CFS parent, MK_STRN name)
This function removes and destroys the setting named name from the parent setting parent,...
static enum LcConfigTypeE LcSettingType(LC_CFSN setting)
This function returns the type of the given setting …
static MK_I32 LcSettingLength(LC_CFSN setting)
This function returns the number of settings in a group, or the number of elements in a list or array...
static LC_CFS LcSettingAddIfNotExists(LC_CFS setting, MK_STRN name, enum LcConfigTypeE cfgtype)
addon - add name with type only if not exists in the setting …
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_Name(JNIEnv *env, jobject self)
Java: String setting.Name() → C-API This function returns the name of the given setting,...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Type(JNIEnv *env, jobject self)
Java: LcConfigTypeE setting.Type() → C-API This function returns the type of the given setting ...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Parent(JNIEnv *env, jobject self)
Java: LcSettingC setting.Parent() → C-API This function returns the parent setting of the given...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Index(JNIEnv *env, jobject self)
Java: int setting.Index() → C-API This function returns the index of the given setting within i...
JNIEXPORT jboolean JNICALL Java_jvlcconfig_LcSettingC_Exists(JNIEnv *env, jobject self, jstring name)
Java: boolean setting.Exists(String name) → C-API addon - return true if name exists in the set...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_AddIfNotExists(JNIEnv *env, jobject self, jstring name, jobject cfgtype)
Java: LcSettingC setting.AddIfNotExists(String name, LcConfigTypeE cfgtype) → C-API addon - add...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_RemoveElem(JNIEnv *env, jobject self, jint idx)
Java: parent.RemoveElem(int idx) → C-API This function removes the child setting at the given i...
JNIEXPORT jstring JNICALL Java_jvlcconfig_LcSettingC_SourceFile(JNIEnv *env, jobject self)
Java: String setting.SourceFile() → C-API This function returns the name of the file from which...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_SourceLine(JNIEnv *env, jobject self)
Java: int setting.SourceLine() → C-API This function returns the line number of the configurati...
JNIEXPORT jint JNICALL Java_jvlcconfig_LcSettingC_Length(JNIEnv *env, jobject self)
Java: int setting.Length() → C-API This function returns the number of settings in a group,...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_Remove(JNIEnv *env, jobject self, jstring name)
Java: parent.Remove(String name) → C-API This function removes and destroys the setting named n...
static LC_CFS LcSettingSetFloatElem(LC_CFS setting, MK_I32 idx, MK_DBL value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetInt64(LC_CFS setting, MK_I64 value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetBool(LC_CFS setting, MK_BOOL value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingSetIntElem(LC_CFS setting, MK_I32 idx, MK_I32 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetString(LC_CFS setting, MK_STRN value)
These functions set the value of the given setting to value …
static enum MkErrorE LcSettingSetFormat(LC_CFS setting, enum LcConfigFormatE format)
These functions get and set the external format for the setting setting …
static LC_CFS LcSettingSetBoolElem(LC_CFS setting, MK_I32 idx, MK_I32 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetFloat(LC_CFS setting, MK_DBL value)
These functions set the value of the given setting to value …
static LC_CFS LcSettingSetStringElem(LC_CFS setting, MK_I32 idx, MK_STRN value)
These functions set the value at the specified index index in the setting setting to value …
static LC_CFS LcSettingSetInt64Elem(LC_CFS setting, MK_I32 idx, MK_I64 value)
These functions set the value at the specified index index in the setting setting to value …
static enum MkErrorE LcSettingSetInt(LC_CFS setting, MK_I32 value)
These functions set the value of the given setting to value …
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetString(JNIEnv *env, jobject self, jstring value)
Java: setting.SetString(String value) → C-API These functions set the value of the given settin...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetInt(JNIEnv *env, jobject self, jint value)
Java: setting.SetInt(int value) → C-API These functions set the value of the given setting to v...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetBoolElem(JNIEnv *env, jobject self, jint idx, jint value)
Java: LcSettingC setting.SetBoolElem(int idx, int value) → C-API These functions set the value ...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetInt64(JNIEnv *env, jobject self, jlong value)
Java: setting.SetInt64(long value) → C-API These functions set the value of the given setting t...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetFormat(JNIEnv *env, jobject self, jobject format)
Java: setting.SetFormat(LcConfigFormatE format) → C-API These functions get and set the externa...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetFloatElem(JNIEnv *env, jobject self, jint idx, jdouble value)
Java: LcSettingC setting.SetFloatElem(int idx, double value) → C-API These functions set the va...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetStringElem(JNIEnv *env, jobject self, jint idx, jstring value)
Java: LcSettingC setting.SetStringElem(int idx, String value) → C-API These functions set the v...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetInt64Elem(JNIEnv *env, jobject self, jint idx, jlong value)
Java: LcSettingC setting.SetInt64Elem(int idx, long value) → C-API These functions set the valu...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetFloat(JNIEnv *env, jobject self, jdouble value)
Java: setting.SetFloat(double value) → C-API These functions set the value of the given setting...
JNIEXPORT void JNICALL Java_jvlcconfig_LcSettingC_SetBool(JNIEnv *env, jobject self, jboolean value)
Java: setting.SetBool(boolean value) → C-API These functions set the value of the given setting...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_SetIntElem(JNIEnv *env, jobject self, jint idx, jint value)
Java: LcSettingC setting.SetIntElem(int idx, int value) → C-API These functions set the value a...
static LC_CFS LcSettingAdd(LC_CFS parent, MK_STRN name, enum LcConfigTypeE __type)
This function adds a new child setting or element to the setting parent, which must be a group,...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_Add(JNIEnv *env, jobject self, jstring name, jobject __type)
Java: [constructor] LcSettingC parent.Add(String name, LcConfigTypeE __type) → C-API This functi...
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetConfig(JNIEnv *env, jobject self)
Java: LcConfigC setting.GetConfig() → C-API addon - return the LcConfigC from the LcSettingC …
#define MK_UNUSED
MkErrorE
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
signed long long MK_I64
bool MK_BOOL
double MK_DBL
signed int MK_I32
#define MkThreadLocal
#define MK_RT_CALL
#define MkRtSetup_X(x)
#define MK_RT_ARGS
#define MkRtSetup_NULL
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …
MkSelfUnlinkF selfUnlink
MkSelfCreateF selfCreate