theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard - theLib
c - tcl - atl - cs - py - rb - jv - cc
Loading...
Searching...
No Matches
LcSettingC_TOR_JV_API

LcSettingC - various functions to create, initialize and destroy … More...

+ Collaboration diagram for LcSettingC_TOR_JV_API:

Functions

native LcSettingC jvlcconfig.LcSettingC.Add (String name, LcConfigTypeE __type)
  Java: [constructor] LcSettingC parent.Add(String name, LcConfigTypeE __type) C-API
This function adds a new child setting or element to the setting parent, which must be a group, array, or list …
 
native LcConfigC jvlcconfig.LcSettingC.GetConfig ()
  Java: LcConfigC setting.GetConfig() C-API
addon - return the LcConfigC from the LcSettingC
 
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 function adds a new child setting or element to the setting parent, which must be a group, array, or list …
 
JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetConfig (JNIEnv *env, jobject self)
  Java: LcConfigC setting.GetConfig() C-API
addon - return the LcConfigC from the LcSettingC
 

Detailed Description

LcSettingC - various functions to create, initialize and destroy …

Function Documentation

◆ Add()

native LcSettingC jvlcconfig.LcSettingC.Add ( String name,
LcConfigTypeE __type )

Java: [constructor] LcSettingC parent.Add(String name, LcConfigTypeE __type) C-API
This function adds a new child setting or element to the setting parent, which must be a group, array, or list …

◆ GetConfig()

native LcConfigC jvlcconfig.LcSettingC.GetConfig ( )

Java: LcConfigC setting.GetConfig() C-API
addon - return the LcConfigC from the LcSettingC

◆ Java_jvlcconfig_LcSettingC_Add()

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 function adds a new child setting or element to the setting parent, which must be a group, array, or list …

Definition at line 852 of file LcSettingC_jv.c.

852 {
853 LC_CFS hdl = (LC_CFS)pObj2Hdl(env,"LcSettingC",self);
854 JavaErrorCheck;
855 MkRtSetup_X(hdl);
856 MK_STRN name_ptr = (name?(*env)->GetStringUTFChars(env,name,NULL):NULL);
857 JavaErrorCheck;
858 enum LcConfigTypeE __type_e = MK(pGetEnumFromObj)(env, NS(Class_LcConfigTypeE), __type);
859 JavaErrorCheck;
860 LC_CFS __retVal__L = LcSettingAdd(hdl, name_ptr, __type_e);
861 if (__retVal__L == NULL) {
862 (*env)->ThrowNew(env, MK(Class_MkInitError), "LcSettingC.Add");
863 goto error;
864 }
865 jobject __retVal__S = LC(LcSettingC_ObjCreate)(MK_RT_CALL env,__retVal__L);
866 if (name_ptr) (*env)->ReleaseStringUTFChars(env,name,name_ptr);
867 return __retVal__S;
868error:
869 return 0;
870}
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:81
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 …
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,...
const MK_STRB * MK_STRN
#define MK_RT_CALL
#define MkRtSetup_X(x)
Struct to represent the data from the LcSettingC …

◆ Java_jvlcconfig_LcSettingC_GetConfig()

JNIEXPORT jobject JNICALL Java_jvlcconfig_LcSettingC_GetConfig ( JNIEnv * env,
jobject self )

Java: LcConfigC setting.GetConfig() C-API
addon - return the LcConfigC from the LcSettingC

Definition at line 875 of file LcSettingC_jv.c.

875 {
876 LC_CFSN hdl = (LC_CFSN)pObj2Hdl(env,"LcSettingC",self);
877 JavaErrorCheck;
878 MkRtSetup_X(hdl);
879 LC_CFG __retVal__L = LcSettingGetConfig(hdl);
880 jobject __retVal__S = LC(LcConfigC_ObjNew)(MK_RT_CALL env,__retVal__L);
881 return __retVal__S;
882error:
883 return 0;
884}
static MK_ARTIFICIAL LC_CFG LcConfigC_ObjNew(config_t *hdl)
return Programming-Language-Micro-Kernel (PLMK) instance from native hdl …
const struct LcSettingS * LC_CFSN
class-shortcut for const struct LcSettingS *, all const shortcut using the XX_YYYC syntax (only for p...
static LC_CFG LcSettingGetConfig(LC_CFSN setting)
addon - return the LcConfigC from the LcSettingC …
Struct to represent the data from the LcConfigC …