theConfig 10.0
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 849 of file LcSettingC_jv.c.

849 {
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}
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
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 872 of file LcSettingC_jv.c.

872 {
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}
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 …