12using System.Runtime.InteropServices;
72 internal enum LcCsTypeLookupE {
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";
89 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
92 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
95 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
96 internal delegate
void LcFupu_LcConfigSetDestructor_destructor (IntPtr arg0);
98 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
101 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
104 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
115 internal static partial class Lc {
119 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCfgP")]
120 internal static extern IntPtr LcCfg (IntPtr mng);
122 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCfgCheckP")]
123 internal static extern bool LcCfgCheck (IntPtr mng);
125 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCfgCheckOP")]
126 internal static extern bool LcCfgCheckO (IntPtr obj);
128 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCfsP")]
129 internal static extern IntPtr LcCfs (IntPtr mng);
131 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCfsCheckP")]
132 internal static extern bool LcCfsCheck (IntPtr mng);
134 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCfsCheckOP")]
135 internal static extern bool LcCfsCheckO (IntPtr obj);
137 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcCleanup")]
138 internal static extern void LcCleanup ();
140 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigClearP")]
141 internal static extern void LcConfigClear (IntPtr config);
143 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigCreateP")]
144 internal static extern IntPtr LcConfigCreate ();
146 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigDelete_RT")]
147 internal static extern void LcConfigDelete (IntPtr mkrt, IntPtr cfg);
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);
152 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigErrorTypeP")]
153 internal static extern LcErrorTypeE LcConfigErrorType (IntPtr config);
155 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigFormatE_FromInt")]
158 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigFormatE_ToIntP")]
159 internal static extern Int32 LcConfigFormatE_ToInt (
LcConfigFormatE value);
161 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigFormatE_ToString")]
162 internal static extern IntPtr LcConfigFormatE_ToString (
LcConfigFormatE value);
164 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetDefaultFormatP")]
165 internal static extern LcConfigFormatE LcConfigGetDefaultFormat (IntPtr config);
167 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetFloatPrecisionP")]
168 internal static extern Int16 LcConfigGetFloatPrecision (IntPtr config);
170 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetIncludeDirP")]
171 internal static extern IntPtr LcConfigGetIncludeDir (IntPtr config);
173 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetIncludeFuncP")]
174 internal static extern IntPtr LcConfigGetIncludeFunc (IntPtr cfg);
176 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetNullP")]
177 internal static extern IntPtr LcConfigGetNull ();
179 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetOptionP")]
180 internal static extern bool LcConfigGetOption (IntPtr config,
LcConfigOptionsEF option);
182 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetOptionsP")]
185 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetSettingDeleteFuncP")]
186 internal static extern IntPtr LcConfigGetSettingDeleteFunc (IntPtr cfg);
188 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigGetTabWidthP")]
189 internal static extern Int16 LcConfigGetTabWidth (IntPtr config);
191 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigHandleGetP")]
194 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigHandleResolveP")]
197 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigInstancesP")]
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);
203 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigLookupP")]
204 internal static extern IntPtr LcConfigLookup (IntPtr config, IntPtr path);
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);
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);
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);
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);
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);
221 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigNextP")]
222 internal static extern IntPtr LcConfigNext (IntPtr cfg);
224 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigOptionsEF_FromInt")]
227 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigOptionsEF_ToIntP")]
230 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigOptionsEF_ToString")]
231 internal static extern IntPtr LcConfigOptionsEF_ToString (
LcConfigOptionsEF value);
233 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigPrevP")]
234 internal static extern IntPtr LcConfigPrev (IntPtr cfg);
236 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigReadFileP")]
237 internal static extern MkErrorE LcConfigReadFile (IntPtr config, IntPtr filename);
239 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigReadStringP")]
240 internal static extern MkErrorE LcConfigReadString (IntPtr config, IntPtr str);
242 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigRootSettingP")]
243 internal static extern IntPtr LcConfigRootSetting (IntPtr config);
245 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetDefaultFormatP")]
246 internal static extern void LcConfigSetDefaultFormat (IntPtr config,
LcConfigFormatE format);
248 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetFloatPrecisionP")]
249 internal static extern void LcConfigSetFloatPrecision (IntPtr config, Int16 digits);
251 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetIncludeDirP")]
252 internal static extern void LcConfigSetIncludeDir (IntPtr config, IntPtr include_dir);
254 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetIncludeFunc_RT")]
257 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetOptionP")]
258 internal static extern void LcConfigSetOption (IntPtr config,
LcConfigOptionsEF option,
bool flag);
260 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetOptionsP")]
261 internal static extern void LcConfigSetOptions (IntPtr config,
LcConfigOptionsEF options);
263 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetSettingDeleteFunc_RT")]
266 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigSetTabWidthP")]
267 internal static extern void LcConfigSetTabWidth (IntPtr config, Int16 width);
269 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigTypeE_FromInt")]
272 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigTypeE_ToIntP")]
273 internal static extern Int32 LcConfigTypeE_ToInt (
LcConfigTypeE value);
275 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigTypeE_ToString")]
276 internal static extern IntPtr LcConfigTypeE_ToString (
LcConfigTypeE value);
278 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigWriteFileP")]
279 internal static extern MkErrorE LcConfigWriteFile (IntPtr config, IntPtr filename);
281 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcConfigWriteString_RT")]
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);
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);
292 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcErrorE_ToIntP")]
293 internal static extern Int32 LcErrorE_ToInt (
LcErrorE value);
295 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcErrorE_ToString")]
296 internal static extern IntPtr LcErrorE_ToString (
LcErrorE value);
298 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcErrorTypeE_FromInt")]
301 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcErrorTypeE_ToIntP")]
302 internal static extern Int32 LcErrorTypeE_ToInt (
LcErrorTypeE value);
304 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcErrorTypeE_ToString")]
305 internal static extern IntPtr LcErrorTypeE_ToString (
LcErrorTypeE value);
307 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingAddP")]
308 internal static extern IntPtr LcSettingAdd (IntPtr parent, IntPtr name,
LcConfigTypeE __type);
310 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingAddIfNotExistsP")]
311 internal static extern IntPtr LcSettingAddIfNotExists (IntPtr setting, IntPtr name,
LcConfigTypeE cfgtype);
313 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingExistsP")]
314 internal static extern bool LcSettingExists (IntPtr setting, IntPtr name);
316 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetBoolP")]
317 internal static extern bool LcSettingGetBool (IntPtr setting);
319 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetBoolElemP")]
320 internal static extern bool LcSettingGetBoolElem (IntPtr setting, Int32 idx);
322 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetConfigP")]
323 internal static extern IntPtr LcSettingGetConfig (IntPtr setting);
325 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetElemP")]
326 internal static extern IntPtr LcSettingGetElem (IntPtr setting, Int32 idx);
328 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetFloatP")]
329 internal static extern Double LcSettingGetFloat (IntPtr setting);
331 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetFloatElemP")]
332 internal static extern Double LcSettingGetFloatElem (IntPtr setting, Int32 idx);
334 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetFormatP")]
335 internal static extern LcConfigFormatE LcSettingGetFormat (IntPtr setting);
337 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetIntP")]
338 internal static extern Int32 LcSettingGetInt (IntPtr setting);
340 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetInt64P")]
341 internal static extern Int64 LcSettingGetInt64 (IntPtr setting);
343 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetInt64ElemP")]
344 internal static extern Int64 LcSettingGetInt64Elem (IntPtr setting, Int32 idx);
346 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetIntElemP")]
347 internal static extern Int32 LcSettingGetIntElem (IntPtr setting, Int32 idx);
349 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetMemberP")]
350 internal static extern IntPtr LcSettingGetMember (IntPtr setting, IntPtr name);
352 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetNullP")]
353 internal static extern IntPtr LcSettingGetNull ();
355 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetStringP")]
356 internal static extern IntPtr LcSettingGetString (IntPtr setting);
358 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingGetStringElemP")]
359 internal static extern IntPtr LcSettingGetStringElem (IntPtr setting, Int32 idx);
361 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingHandleGetP")]
364 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingHandleResolveP")]
367 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIndexP")]
368 internal static extern Int32 LcSettingIndex (IntPtr setting);
370 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingInstancesP")]
373 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsAggregateP")]
374 internal static extern bool LcSettingIsAggregate (IntPtr setting);
376 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsArrayP")]
377 internal static extern bool LcSettingIsArray (IntPtr setting);
379 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsGroupP")]
380 internal static extern bool LcSettingIsGroup (IntPtr setting);
382 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsListP")]
383 internal static extern bool LcSettingIsList (IntPtr setting);
385 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsNumberP")]
386 internal static extern bool LcSettingIsNumber (IntPtr setting);
388 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsRootP")]
389 internal static extern bool LcSettingIsRoot (IntPtr setting);
391 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingIsScalarP")]
392 internal static extern bool LcSettingIsScalar (IntPtr setting);
394 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingLengthP")]
395 internal static extern Int32 LcSettingLength (IntPtr setting);
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);
400 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingLookupP")]
401 internal static extern IntPtr LcSettingLookup (IntPtr setting, IntPtr path);
403 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingLookupAll")]
404 internal static extern IntPtr LcSettingLookupAll (IntPtr setting);
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);
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);
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);
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);
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);
421 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingNameP")]
422 internal static extern IntPtr LcSettingName (IntPtr setting);
424 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingNextP")]
425 internal static extern IntPtr LcSettingNext (IntPtr cfs);
427 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingParentP")]
428 internal static extern IntPtr LcSettingParent (IntPtr setting);
430 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingPrevP")]
431 internal static extern IntPtr LcSettingPrev (IntPtr cfs);
433 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingRemoveP")]
434 internal static extern MkErrorE LcSettingRemove (IntPtr parent, IntPtr name);
436 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingRemoveElemP")]
437 internal static extern MkErrorE LcSettingRemoveElem (IntPtr parent, Int32 idx);
439 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetBoolP")]
440 internal static extern MkErrorE LcSettingSetBool (IntPtr setting,
bool value);
442 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetBoolElemP")]
443 internal static extern IntPtr LcSettingSetBoolElem (IntPtr setting, Int32 idx, Int32 value);
445 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetFloatP")]
446 internal static extern MkErrorE LcSettingSetFloat (IntPtr setting, Double value);
448 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetFloatElemP")]
449 internal static extern IntPtr LcSettingSetFloatElem (IntPtr setting, Int32 idx, Double value);
451 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetFormatP")]
454 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetIntP")]
455 internal static extern MkErrorE LcSettingSetInt (IntPtr setting, Int32 value);
457 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetInt64P")]
458 internal static extern MkErrorE LcSettingSetInt64 (IntPtr setting, Int64 value);
460 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetInt64ElemP")]
461 internal static extern IntPtr LcSettingSetInt64Elem (IntPtr setting, Int32 idx, Int64 value);
463 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetIntElemP")]
464 internal static extern IntPtr LcSettingSetIntElem (IntPtr setting, Int32 idx, Int32 value);
466 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetStringP")]
467 internal static extern MkErrorE LcSettingSetString (IntPtr setting, IntPtr value);
469 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSetStringElemP")]
470 internal static extern IntPtr LcSettingSetStringElem (IntPtr setting, Int32 idx, IntPtr value);
472 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSourceFileP")]
473 internal static extern IntPtr LcSettingSourceFile (IntPtr setting);
475 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingSourceLineP")]
476 internal static extern Int32 LcSettingSourceLine (IntPtr setting);
478 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSettingTypeP")]
479 internal static extern LcConfigTypeE LcSettingType (IntPtr setting);
481 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSetup")]
482 internal static extern void LcSetup ();
484 [DllImport(LcSetupC.DLL, CallingConvention=LcSetupC.CC, CharSet=LcSetupC.CS, EntryPoint =
"LcSetupThreadCallback")]
485 internal static extern void LcSetupThreadCallback (
LcSetupThreadF call);
492 if (IntPtr.Size != 8) {
493 throw new PlatformNotSupportedException($
"word-size-error: expect '8' but got '{IntPtr.Size}'");
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 LcConfigSetSettingDeleteFunc(...)
#define LcConfigSetIncludeFunc(...)
#define LcConfigDelete(x)
LcErrorE
Signals an error and is used as the return value of a function …
LcConfigFormatE
set the format of a LcSettingC …
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
LcConfigTypeE
define the data-type of a LcSettingC …
void(* LcSetupThreadF)(MK_RT mkrt)
prototype of the runtime-callback …
#define LcSettingHandleResolve(...)
#define LcSettingHandleGet(...)
#define LcSettingInstances()
#define LcSettingLog(...)
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
@ OPEN_BRACE_ON_SEPARATE_LINE
@ COLON_ASSIGNMENT_FOR_GROUPS
@ ALLOW_SCIENTIFIC_NOTATION
@ COLON_ASSIGNMENT_FOR_NON_GROUPS
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