theConfig 10.0
Loading...
Searching...
No Matches
liblcconfig.cs
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11using System;
12using System.Runtime.InteropServices;
13using csmkkernel;
14
15namespace cslcconfig {
16
17#if LCCONFIG
18 // BEGIN-enum - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
19
21 public enum LcConfigFormatE {
22 DEFAULT = 0,
23 HEX = 1,
24 }
25
27 [Flags] public enum LcConfigOptionsEF {
28 NONE = 0x0,
29 AUTOCONVERT = 0x01,
35 FSYNC = 0x40,
36 ALLOW_OVERRIDES = 0x80,
37 }
38
40 public enum LcConfigTypeE {
41 NONE = 0,
42 GROUP = 1,
43 INT = 2,
44 INT64 = 3,
45 FLOAT = 4,
46 STRING = 5,
47 BOOL = 6,
48 ARRAY = 7,
49 LIST = 8,
50 }
51
53 public enum LcErrorE {
54 FALSE = 0,
55 TRUE = 1,
56 }
57
59 public enum LcErrorTypeE {
60 NONE = 0,
61 FILE_IO = 1,
62 [CLSCompliant(false)]
63 PARSE = 2,
64 }
65
66 // END-enum - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
67#endif // LCCONFIG
68
69 // BEGIN-enum-public - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
70
72 internal enum LcCsTypeLookupE {
73 CFG = 0,
74 CFS = 1,
75 }
76
77 // END-enum-public - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
78
79 internal static class LcSetupC {
80 public const CallingConvention CC = CallingConvention.Cdecl;
81 public const CharSet CS = CharSet.Ansi;
82 public const string DLL = "cslcconfig";
83 }
84
85#if LCCONFIG
86
87 // BEGIN-fupu - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
88
89 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
90 internal delegate MkErrorE LcConfigIncludeCallF (IntPtr mkrt, IntPtr cfg, IntPtr incDir, IntPtr path, IntPtr ret_inout);
91
92 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
93 internal delegate void LcConfigIncludeFreeF (IntPtr mkrt, IntPtr cfg);
94
95 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
96 internal delegate void LcFupu_LcConfigSetDestructor_destructor (IntPtr arg0);
97
98 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
99 internal delegate MkErrorE LcSettingDeleteCallF (IntPtr mkrt, IntPtr cfg, IntPtr cfs);
100
101 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
102 internal delegate void LcSettingDeleteFreeF (IntPtr mkrt, IntPtr cfg);
103
104 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
105 internal delegate void LcSetupThreadF (IntPtr mkrt);
106
107 // END-fupu - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
108
109#endif // LCCONFIG
110
111 // BEGIN-fupu-public - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
112
113 // END-fupu-public - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
114
115 internal static partial class Lc {
116
117 // BEGIN-func - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
118
119 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCfgP")]
120 internal static extern IntPtr LcCfg (IntPtr mng);
121
122 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCfgCheckP")]
123 internal static extern bool LcCfgCheck (IntPtr mng);
124
125 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCfgCheckOP")]
126 internal static extern bool LcCfgCheckO (IntPtr obj);
127
128 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCfsP")]
129 internal static extern IntPtr LcCfs (IntPtr mng);
130
131 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCfsCheckP")]
132 internal static extern bool LcCfsCheck (IntPtr mng);
133
134 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCfsCheckOP")]
135 internal static extern bool LcCfsCheckO (IntPtr obj);
136
137 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCleanup")]
138 internal static extern void LcCleanup ();
139
140 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigClearP")]
141 internal static extern void LcConfigClear (IntPtr config);
142
143 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigCreateP")]
144 internal static extern IntPtr LcConfigCreate ();
145
146 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigDelete_RT")]
147 internal static extern void LcConfigDelete (IntPtr mkrt, IntPtr cfg);
148
149 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigErrorToMQ")]
150 internal static extern MkErrorE LcConfigErrorToMQ (IntPtr obj, IntPtr func, IntPtr file, Int32 line);
151
152 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigErrorTypeP")]
153 internal static extern LcErrorTypeE LcConfigErrorType (IntPtr config);
154
155 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigFormatE_FromInt")]
156 internal static extern MkErrorE LcConfigFormatE_FromInt (Int32 value, out LcConfigFormatE value_out);
157
158 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigFormatE_ToIntP")]
159 internal static extern Int32 LcConfigFormatE_ToInt (LcConfigFormatE value);
160
161 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigFormatE_ToString")]
162 internal static extern IntPtr LcConfigFormatE_ToString (LcConfigFormatE value);
163
164 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetDefaultFormatP")]
165 internal static extern LcConfigFormatE LcConfigGetDefaultFormat (IntPtr config);
166
167 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetFloatPrecisionP")]
168 internal static extern Int16 LcConfigGetFloatPrecision (IntPtr config);
169
170 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetIncludeDirP")]
171 internal static extern IntPtr LcConfigGetIncludeDir (IntPtr config);
172
173 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetIncludeFuncP")]
174 internal static extern IntPtr LcConfigGetIncludeFunc (IntPtr cfg);
175
176 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetNullP")]
177 internal static extern IntPtr LcConfigGetNull ();
178
179 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetOptionP")]
180 internal static extern bool LcConfigGetOption (IntPtr config, LcConfigOptionsEF option);
181
182 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetOptionsP")]
183 internal static extern LcConfigOptionsEF LcConfigGetOptions (IntPtr config);
184
185 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetSettingDeleteFuncP")]
186 internal static extern IntPtr LcConfigGetSettingDeleteFunc (IntPtr cfg);
187
188 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigGetTabWidthP")]
189 internal static extern Int16 LcConfigGetTabWidth (IntPtr config);
190
191 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigHandleGetP")]
192 internal static extern Int32 LcConfigHandleGet (IntPtr mkrt, IntPtr cfg);
193
194 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigHandleResolveP")]
195 internal static extern IntPtr LcConfigHandleResolve (IntPtr mkrt, Int32 netHdl);
196
197 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigInstancesP")]
198 internal static extern IntPtr LcConfigInstances (IntPtr mkrt);
199
200 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLog_RT")]
201 internal static extern void LcConfigLog (IntPtr mkrt, IntPtr cfg, IntPtr fmtobj, Int32 debug, IntPtr callfunc, Int32 lvl);
202
203 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLookupP")]
204 internal static extern IntPtr LcConfigLookup (IntPtr config, IntPtr path);
205
206 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLookupBoolP")]
207 internal static extern MkErrorE LcConfigLookupBool (IntPtr config, IntPtr path, out bool value_out);
208
209 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLookupFloatP")]
210 internal static extern MkErrorE LcConfigLookupFloat (IntPtr config, IntPtr path, out Double value_out);
211
212 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLookupIntP")]
213 internal static extern MkErrorE LcConfigLookupInt (IntPtr config, IntPtr path, out Int32 value_out);
214
215 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLookupInt64P")]
216 internal static extern MkErrorE LcConfigLookupInt64 (IntPtr config, IntPtr path, out Int64 value_out);
217
218 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigLookupStringP")]
219 internal static extern MkErrorE LcConfigLookupString (IntPtr config, IntPtr path, out IntPtr value_out);
220
221 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigNextP")]
222 internal static extern IntPtr LcConfigNext (IntPtr cfg);
223
224 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigOptionsEF_FromInt")]
225 internal static extern MkErrorE LcConfigOptionsEF_FromInt (Int32 value, out LcConfigOptionsEF value_out);
226
227 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigOptionsEF_ToIntP")]
228 internal static extern Int32 LcConfigOptionsEF_ToInt (LcConfigOptionsEF value);
229
230 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigOptionsEF_ToString")]
231 internal static extern IntPtr LcConfigOptionsEF_ToString (LcConfigOptionsEF value);
232
233 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigPrevP")]
234 internal static extern IntPtr LcConfigPrev (IntPtr cfg);
235
236 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigReadFileP")]
237 internal static extern MkErrorE LcConfigReadFile (IntPtr config, IntPtr filename);
238
239 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigReadStringP")]
240 internal static extern MkErrorE LcConfigReadString (IntPtr config, IntPtr str);
241
242 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigRootSettingP")]
243 internal static extern IntPtr LcConfigRootSetting (IntPtr config);
244
245 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetDefaultFormatP")]
246 internal static extern void LcConfigSetDefaultFormat (IntPtr config, LcConfigFormatE format);
247
248 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetFloatPrecisionP")]
249 internal static extern void LcConfigSetFloatPrecision (IntPtr config, Int16 digits);
250
251 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetIncludeDirP")]
252 internal static extern void LcConfigSetIncludeDir (IntPtr config, IntPtr include_dir);
253
254 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetIncludeFunc_RT")]
255 internal static extern MkErrorE LcConfigSetIncludeFunc (IntPtr mkrt, IntPtr cfg, LcConfigIncludeCallF fConfigIncludeCall, IntPtr fConfigIncludeData, LcConfigIncludeFreeF fConfigIncludeFree);
256
257 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetOptionP")]
258 internal static extern void LcConfigSetOption (IntPtr config, LcConfigOptionsEF option, bool flag);
259
260 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetOptionsP")]
261 internal static extern void LcConfigSetOptions (IntPtr config, LcConfigOptionsEF options);
262
263 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetSettingDeleteFunc_RT")]
264 internal static extern MkErrorE LcConfigSetSettingDeleteFunc (IntPtr mkrt, IntPtr cfg, LcSettingDeleteCallF fSettingDeleteCall, IntPtr fSettingDeleteData, LcSettingDeleteFreeF fSettingDeleteFree);
265
266 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigSetTabWidthP")]
267 internal static extern void LcConfigSetTabWidth (IntPtr config, Int16 width);
268
269 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigTypeE_FromInt")]
270 internal static extern MkErrorE LcConfigTypeE_FromInt (Int32 value, out LcConfigTypeE value_out);
271
272 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigTypeE_ToIntP")]
273 internal static extern Int32 LcConfigTypeE_ToInt (LcConfigTypeE value);
274
275 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigTypeE_ToString")]
276 internal static extern IntPtr LcConfigTypeE_ToString (LcConfigTypeE value);
277
278 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigWriteFileP")]
279 internal static extern MkErrorE LcConfigWriteFile (IntPtr config, IntPtr filename);
280
281 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcConfigWriteString_RT")]
282 internal static extern MkErrorE LcConfigWriteString (IntPtr mkrt, IntPtr cfg, out IntPtr val_out);
283 #if LCCONFIG
284
285 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcCsTypeUpdate_RT")]
286 internal static extern void LcCsTypeUpdate (IntPtr mkrt, LcCsTypeLookupE typeL, MkSelfCreateF selfCTOR, MkSelfUnlinkF selfUnlink);
287 #endif
288
289 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcErrorE_FromInt")]
290 internal static extern MkErrorE LcErrorE_FromInt (Int32 value, out LcErrorE value_out);
291
292 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcErrorE_ToIntP")]
293 internal static extern Int32 LcErrorE_ToInt (LcErrorE value);
294
295 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcErrorE_ToString")]
296 internal static extern IntPtr LcErrorE_ToString (LcErrorE value);
297
298 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcErrorTypeE_FromInt")]
299 internal static extern MkErrorE LcErrorTypeE_FromInt (Int32 value, out LcErrorTypeE value_out);
300
301 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcErrorTypeE_ToIntP")]
302 internal static extern Int32 LcErrorTypeE_ToInt (LcErrorTypeE value);
303
304 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcErrorTypeE_ToString")]
305 internal static extern IntPtr LcErrorTypeE_ToString (LcErrorTypeE value);
306
307 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingAddP")]
308 internal static extern IntPtr LcSettingAdd (IntPtr parent, IntPtr name, LcConfigTypeE __type);
309
310 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingAddIfNotExistsP")]
311 internal static extern IntPtr LcSettingAddIfNotExists (IntPtr setting, IntPtr name, LcConfigTypeE cfgtype);
312
313 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingExistsP")]
314 internal static extern bool LcSettingExists (IntPtr setting, IntPtr name);
315
316 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetBoolP")]
317 internal static extern bool LcSettingGetBool (IntPtr setting);
318
319 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetBoolElemP")]
320 internal static extern bool LcSettingGetBoolElem (IntPtr setting, Int32 idx);
321
322 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetConfigP")]
323 internal static extern IntPtr LcSettingGetConfig (IntPtr setting);
324
325 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetElemP")]
326 internal static extern IntPtr LcSettingGetElem (IntPtr setting, Int32 idx);
327
328 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetFloatP")]
329 internal static extern Double LcSettingGetFloat (IntPtr setting);
330
331 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetFloatElemP")]
332 internal static extern Double LcSettingGetFloatElem (IntPtr setting, Int32 idx);
333
334 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetFormatP")]
335 internal static extern LcConfigFormatE LcSettingGetFormat (IntPtr setting);
336
337 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetIntP")]
338 internal static extern Int32 LcSettingGetInt (IntPtr setting);
339
340 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetInt64P")]
341 internal static extern Int64 LcSettingGetInt64 (IntPtr setting);
342
343 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetInt64ElemP")]
344 internal static extern Int64 LcSettingGetInt64Elem (IntPtr setting, Int32 idx);
345
346 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetIntElemP")]
347 internal static extern Int32 LcSettingGetIntElem (IntPtr setting, Int32 idx);
348
349 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetMemberP")]
350 internal static extern IntPtr LcSettingGetMember (IntPtr setting, IntPtr name);
351
352 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetNullP")]
353 internal static extern IntPtr LcSettingGetNull ();
354
355 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetStringP")]
356 internal static extern IntPtr LcSettingGetString (IntPtr setting);
357
358 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingGetStringElemP")]
359 internal static extern IntPtr LcSettingGetStringElem (IntPtr setting, Int32 idx);
360
361 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingHandleGetP")]
362 internal static extern Int32 LcSettingHandleGet (IntPtr mkrt, IntPtr cfs);
363
364 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingHandleResolveP")]
365 internal static extern IntPtr LcSettingHandleResolve (IntPtr mkrt, Int32 netHdl);
366
367 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIndexP")]
368 internal static extern Int32 LcSettingIndex (IntPtr setting);
369
370 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingInstancesP")]
371 internal static extern IntPtr LcSettingInstances (IntPtr mkrt);
372
373 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsAggregateP")]
374 internal static extern bool LcSettingIsAggregate (IntPtr setting);
375
376 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsArrayP")]
377 internal static extern bool LcSettingIsArray (IntPtr setting);
378
379 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsGroupP")]
380 internal static extern bool LcSettingIsGroup (IntPtr setting);
381
382 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsListP")]
383 internal static extern bool LcSettingIsList (IntPtr setting);
384
385 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsNumberP")]
386 internal static extern bool LcSettingIsNumber (IntPtr setting);
387
388 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsRootP")]
389 internal static extern bool LcSettingIsRoot (IntPtr setting);
390
391 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingIsScalarP")]
392 internal static extern bool LcSettingIsScalar (IntPtr setting);
393
394 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLengthP")]
395 internal static extern Int32 LcSettingLength (IntPtr setting);
396
397 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLog_RT")]
398 internal static extern void LcSettingLog (IntPtr mkrt, IntPtr setting, IntPtr fmtobj, Int32 debug, IntPtr callfunc, Int32 lvl);
399
400 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupP")]
401 internal static extern IntPtr LcSettingLookup (IntPtr setting, IntPtr path);
402
403 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupAll")]
404 internal static extern IntPtr LcSettingLookupAll (IntPtr setting);
405
406 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupBoolP")]
407 internal static extern MkErrorE LcSettingLookupBool (IntPtr setting, IntPtr name, out bool value_out);
408
409 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupFloatP")]
410 internal static extern MkErrorE LcSettingLookupFloat (IntPtr setting, IntPtr name, out Double value_out);
411
412 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupIntP")]
413 internal static extern MkErrorE LcSettingLookupInt (IntPtr setting, IntPtr name, out Int32 value_out);
414
415 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupInt64P")]
416 internal static extern MkErrorE LcSettingLookupInt64 (IntPtr setting, IntPtr name, out Int64 value_out);
417
418 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingLookupStringP")]
419 internal static extern MkErrorE LcSettingLookupString (IntPtr setting, IntPtr name, out IntPtr value_out);
420
421 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingNameP")]
422 internal static extern IntPtr LcSettingName (IntPtr setting);
423
424 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingNextP")]
425 internal static extern IntPtr LcSettingNext (IntPtr cfs);
426
427 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingParentP")]
428 internal static extern IntPtr LcSettingParent (IntPtr setting);
429
430 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingPrevP")]
431 internal static extern IntPtr LcSettingPrev (IntPtr cfs);
432
433 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingRemoveP")]
434 internal static extern MkErrorE LcSettingRemove (IntPtr parent, IntPtr name);
435
436 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingRemoveElemP")]
437 internal static extern MkErrorE LcSettingRemoveElem (IntPtr parent, Int32 idx);
438
439 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetBoolP")]
440 internal static extern MkErrorE LcSettingSetBool (IntPtr setting, bool value);
441
442 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetBoolElemP")]
443 internal static extern IntPtr LcSettingSetBoolElem (IntPtr setting, Int32 idx, Int32 value);
444
445 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetFloatP")]
446 internal static extern MkErrorE LcSettingSetFloat (IntPtr setting, Double value);
447
448 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetFloatElemP")]
449 internal static extern IntPtr LcSettingSetFloatElem (IntPtr setting, Int32 idx, Double value);
450
451 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetFormatP")]
452 internal static extern MkErrorE LcSettingSetFormat (IntPtr setting, LcConfigFormatE format);
453
454 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetIntP")]
455 internal static extern MkErrorE LcSettingSetInt (IntPtr setting, Int32 value);
456
457 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetInt64P")]
458 internal static extern MkErrorE LcSettingSetInt64 (IntPtr setting, Int64 value);
459
460 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetInt64ElemP")]
461 internal static extern IntPtr LcSettingSetInt64Elem (IntPtr setting, Int32 idx, Int64 value);
462
463 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetIntElemP")]
464 internal static extern IntPtr LcSettingSetIntElem (IntPtr setting, Int32 idx, Int32 value);
465
466 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetStringP")]
467 internal static extern MkErrorE LcSettingSetString (IntPtr setting, IntPtr value);
468
469 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSetStringElemP")]
470 internal static extern IntPtr LcSettingSetStringElem (IntPtr setting, Int32 idx, IntPtr value);
471
472 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSourceFileP")]
473 internal static extern IntPtr LcSettingSourceFile (IntPtr setting);
474
475 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingSourceLineP")]
476 internal static extern Int32 LcSettingSourceLine (IntPtr setting);
477
478 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSettingTypeP")]
479 internal static extern LcConfigTypeE LcSettingType (IntPtr setting);
480
481 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSetup")]
482 internal static extern void LcSetup ();
483
484 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint = "LcSetupThreadCallback")]
485 internal static extern void LcSetupThreadCallback (LcSetupThreadF call);
486
487 // END-func - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
488
489 // BEGIN-class - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
490
491 static Lc() {
492 if (IntPtr.Size != 8) {
493 throw new PlatformNotSupportedException($"word-size-error: expect '8' but got '{IntPtr.Size}'");
494 }
495 }
496
497 // END-class - created by 'cs_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
498
499 } // Mq
500} // cslcconfig
501
502//vim: nowrap
void(* LcConfigIncludeFreeF)(LcConfigIncludeFreeF_ARGS)
enum MkErrorE(* LcSettingDeleteCallF)(LcSettingDeleteCallF_ARGS)
enum MkErrorE(* LcConfigIncludeCallF)(LcConfigIncludeCallF_ARGS)
void(* LcSettingDeleteFreeF)(LcSettingDeleteFreeF_ARGS)
#define LcConfigHandleGet(...)
#define LcConfigInstances()
#define LcConfigHandleResolve(...)
#define LcConfigWriteString(...)
#define LcConfigLog(...)
#define LcConfigSetSettingDeleteFunc(...)
#define LcConfigSetIncludeFunc(...)
#define LcConfigDelete(x)
LcErrorE
Signals an error and is used as the return value of a function …
Definition LcEnum_lc.h:188
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:134
LcErrorTypeE
error types
Definition LcEnum_lc.h:228
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
void(* LcSetupThreadF)(MK_RT mkrt)
prototype of the runtime-callback …
#define LcSettingHandleResolve(...)
#define LcSettingHandleGet(...)
#define LcSettingInstances()
#define LcSettingLog(...)
MkErrorE
void(* MkSelfUnlinkF)(MK_RT mkrt, MK_PTR self, MK_PTR const env)
MK_PTR(* MkSelfCreateF)(MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
LcConfigOptionsEF
→ C-API: LcConfigOptionsEF → C-API: LcConfigOptionsEF
LcConfigTypeE
→ C-API: LcConfigTypeE → C-API: LcConfigTypeE
LcErrorTypeE
→ C-API: LcErrorTypeE → C-API: LcErrorTypeE
LcErrorE
→ C-API: LcErrorE → C-API: LcErrorE
LcConfigFormatE
→ C-API: LcConfigFormatE → C-API: LcConfigFormatE