theKernel 10.0
Loading...
Searching...
No Matches
LibMkKernel.cs
Go to the documentation of this file.
1
12/* LABEL-NO */
13using System;
14using System.Reflection;
15using System.Runtime.InteropServices;
16using System.Collections.Generic;
17using csmkkernel;
19/* LABEL-END */
20
21[assembly:AssemblyTitleAttribute("csmkkernel")]
22[assembly:AssemblyDescriptionAttribute("Programming-Language-Micro-Kernel for C#")]
23[assembly:AssemblyConfigurationAttribute("")]
24[assembly:AssemblyCompanyAttribute("IPN")]
25[assembly:AssemblyProductAttribute("csmkkernel")]
26[assembly:AssemblyCopyrightAttribute("Copyright (c) Andreas Otto 2024")]
27[assembly:AssemblyTrademarkAttribute("NHI1")]
28[assembly:AssemblyCultureAttribute("")]
29
30[assembly:AssemblyVersionAttribute("10.0.*")]
31[assembly:ComVisible(false)]
32[assembly:CLSCompliantAttribute(true)]
33
34// -define: META_STRONG_REF
35// Use a "strong" reference for the "self" handle "GCHandle.Alloc(this)"
36// -> C# is *not* able to delete the C# object.
37// default:
38// -> A "weak" reference "GCHandle.Alloc(this,GCHandleType.Weak)" is used
39// and the C# object is *only* released if the PLMK release the reference.
40
41// #######################################################################
42// -----------------------------------------------------------------------
43// documentation order
44
57
69
81
93
103
115
123
135
145
146/*
147 // BEGIN-CLASS - created by 'cs_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
148
149 MkObjectC.SetupThreadOBJ(mkrt);
150 MkBufferC.SetupThreadBUF(mkrt);
151 MkBufferStreamC.SetupThreadBUS(mkrt);
152 MkBufferListC.SetupThreadBFL(mkrt);
153 MkLogFileC.SetupThreadLFL(mkrt);
154 MkErrorC.SetupThreadERR(mkrt);
155 MkRuntimeC.SetupThreadRT(mkrt);
156
157 // END-CLASS - created by 'cs_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
158*/
159
160// ***********************************************************************************
161
162namespace csmkkernel {
163
166 public static partial class MkKernel {
167
170
171 static private void MkSetupTmpl() {
172 Mk.MkSetup();
173 }
174 static private void MkCleanupTmpl() {
175 }
176
178 } // END-MkKernel
179
180 // BEGIN-Enum
181 // END-Enum
182
183 // BEGIN-MkKernel - created by 'cs_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
184
185 public partial class MkKernel {
186
190
191 // doc-key: MkKernel,MkKernel-Enum,sco
192
194 public static MkErrorE ErrorE_FromInt (int value) {
195 MkErrorE value_out;
196 MkErrorE errVal = Mk.MkErrorE_FromInt(value, out value_out);
197 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
198 return value_out;
199 }
200
202 public static MkIdSE IdSE_FromInt (int value) {
203 MkIdSE value_out;
204 MkErrorE errVal = Mk.MkIdSE_FromInt(value, out value_out);
205 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
206 return value_out;
207 }
208
210 public static MkTimeoutE TimeoutE_FromInt (int value) {
211 MkTimeoutE value_out;
212 MkErrorE errVal = Mk.MkTimeoutE_FromInt(value, out value_out);
213 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
214 return value_out;
215 }
216
218 public static MkTypeE TypeE_FromInt (int value) {
219 MkTypeE value_out;
220 MkErrorE errVal = Mk.MkTypeE_FromInt(value, out value_out);
221 if (errVal > MkErrorE.CONTINUE) MkErrorC.Check(errVal);
222 return value_out;
223 }
224
225 // doc-key: MkKernel,MkKernel-Enum,sm_
226
228 public static int ErrorE_ToInt (MkErrorE value) {
229 Int32 __retVal__L = Mk.MkErrorE_ToInt(value);
230 return __retVal__L;
231 }
232
234 public static string ErrorE_ToString (MkErrorE value) {
235 IntPtr __retVal__L = Mk.MkErrorE_ToString(value);
236 return Marshal.PtrToStringAnsi(__retVal__L);
237 }
238
240 public static int IdSE_ToInt (MkIdSE value) {
241 Int32 __retVal__L = Mk.MkIdSE_ToInt(value);
242 return __retVal__L;
243 }
244
246 public static string IdSE_ToString (MkIdSE value) {
247 IntPtr __retVal__L = Mk.MkIdSE_ToString(value);
248 return Marshal.PtrToStringAnsi(__retVal__L);
249 }
250
252 public static int TimeoutE_ToInt (MkTimeoutE value) {
253 Int32 __retVal__L = Mk.MkTimeoutE_ToInt(value);
254 return __retVal__L;
255 }
256
258 public static string TimeoutE_ToString (MkTimeoutE value) {
259 IntPtr __retVal__L = Mk.MkTimeoutE_ToString(value);
260 return Marshal.PtrToStringAnsi(__retVal__L);
261 }
262
264 public static int TypeE_ToInt (MkTypeE value) {
265 Int32 __retVal__L = Mk.MkTypeE_ToInt(value);
266 return __retVal__L;
267 }
268
270 public static string TypeE_ToString (MkTypeE value) {
271 IntPtr __retVal__L = Mk.MkTypeE_ToString(value);
272 return Marshal.PtrToStringAnsi(__retVal__L);
273 }
274
276 // MkKernel_Enum_CS_API
277 }
278
279 public partial class MkKernel {
280
284
285 // doc-key: MkKernel,MkKernel-Setup-libmkkernel,sm_
286
288 public static void Cleanup () {
289 MkCleanupTmpl();
290 }
291
293 public static void Setup () {
294 MkSetupTmpl();
295 }
296
298 // MkKernel_Setup_libmkkernel_CS_API
299 }
300
301 // END-MkKernel - created by 'cs_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
302
303} // END - namespace "csmkkernel"
MkErrorC - the class known as err or error is used to create and manage an error message …
Definition MkErrorC.cs:498
static void Check(IntPtr ctx, MkErrorE err)
Definition MkErrorC.cs:74
MkKernel PACKAGE - The package is the toplevel structure of the Programming-Language-Micro-Kernel (PL...
static int ErrorE_ToInt(MkErrorE value)
C#: [static] int ErrorE_ToInt(MkErrorE value) → C-API return the MkErrorE as integer …
static int IdSE_ToInt(MkIdSE value)
C#: [static] int IdSE_ToInt(MkIdSE value) → C-API return the MkIdSE as integer …
static MkTimeoutE TimeoutE_FromInt(int value)
C#: [static] MkTimeoutE TimeoutE_FromInt(int value) → C-API return the MkTimeoutE from integer …
static string IdSE_ToString(MkIdSE value)
C#: [static] string IdSE_ToString(MkIdSE value) → C-API return the MkIdSE as string …
static MkIdSE IdSE_FromInt(int value)
C#: [static] MkIdSE IdSE_FromInt(int value) → C-API return the MkIdSE from integer …
static string ErrorE_ToString(MkErrorE value)
C#: [static] string ErrorE_ToString(MkErrorE value) → C-API return the MkErrorE as string …
static int TypeE_ToInt(MkTypeE value)
C#: [static] int TypeE_ToInt(MkTypeE value) → C-API return the MkTypeE as integer …
static string TimeoutE_ToString(MkTimeoutE value)
C#: [static] string TimeoutE_ToString(MkTimeoutE value) → C-API return the MkTimeoutE as string ...
static MkTypeE TypeE_FromInt(int value)
C#: [static] MkTypeE TypeE_FromInt(int value) → C-API return the MkTypeE from integer …
static int TimeoutE_ToInt(MkTimeoutE value)
C#: [static] int TimeoutE_ToInt(MkTimeoutE value) → C-API return the MkTimeoutE as integer …
static string TypeE_ToString(MkTypeE value)
C#: [static] string TypeE_ToString(MkTypeE value) → C-API return the MkTypeE as string …
static MkErrorE ErrorE_FromInt(int value)
C#: [static] MkErrorE ErrorE_FromInt(int value) → C-API return the MkErrorE from integer …
static void Setup()
C#: [static] Setup() → C-API setup csmkkernel internal memory …
static void Cleanup()
C#: [static] Cleanup() → C-API cleanup csmkkernel internal memory …
MkErrorE
→ C-API: MkErrorE → C-API: MkErrorE
MkIdSE
→ C-API: MkIdSE → C-API: MkIdSE
MkTimeoutE
→ C-API: MkTimeoutE → C-API: MkTimeoutE
MkTypeE
→ C-API: MkTypeE → C-API: MkTypeE