libmkkernel 9.0
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Variables
MkKernel_Type_C_API

a collection of common used data types and definitions … More...

+ Collaboration diagram for MkKernel_Type_C_API:

Data Structures

struct  MK_STRN_A
 array of MK_STRN values … More...
 

Macros

#define MK_ALFA   '@'
 MK_ALFA the command-line separator between server and client …
 
#define MK_ALFA_STR   ((MkStringR){1,"@"})
 MK_ALFA the command-line separator as string …
 
#define bool2str(_bool)   (_bool?"true":"false")
 
#define MK_FORMAT_N   "%i"
 

Typedefs

typedef unsigned char MK_BOL
 1 byte boolean data-type
 
typedef signed char MK_BYT
 1 byte byte data-type
 
typedef signed short MK_SRT
 2 byte short data-type
 
typedef signed int MK_INT
 4 byte integer data-type
 
typedef float MK_FLT
 4 byte float data-type
 
typedef int64_t MK_WID
 8 byte wide integer data-type
 
typedef long MK_SIZE
 
typedef long long MK_LLG
 min 8 byte long long
 
typedef double MK_DBL
 8 byte double data-type
 
typedef long MK_LONG
 4/8 byte long data-type
 
typedef bool MK_BOOL
 real bool data-type
 
typedef union MkBufferAtomU MK_ATO
 8 byte atom data-type
 
typedef int32_t MK_NUM
 array size data-type ('num' items in array …
 
typedef int MK_DBG
 debug-level data-type …
 
typedef void MK_PTRB
 pointer type data-type
 
typedef char MK_STRB
 string type data-type
 
typedef unsigned char MK_BINB
 byte-array type data-type
 
typedef unsigned char MK_LSTB
 list type data-type
 
typedef MK_PTRBMK_PTR
 generic pointer data-type
 
typedef const MK_PTRBMK_PTRN
 const generic pointer data-type
 
typedef MK_PTRBMK_CCP
 class constructor/destructor data type
 
typedef MK_PTRBMK_CBP
 generic pointer to call-back data
 
typedef MK_STRBMK_STR
 string pointer data-type
 
typedef MK_PTRBMK_MNG
 managed object pointer, datatype will be checked on runtime
 
typedef const MK_PTRBMK_MNGN
 const - a managed object pointer, datatype will be checked on runtime
 
typedef MK_PTRB const * MK_EXP
 exception object pointer
 
typedef MK_PTRBMK_MXP
 MkExceptionC object pointer.
 
typedef const MK_STRBMK_STRN
 constant string pointer data-type
 
typedef MK_BINBMK_BIN
 byte-array pointer data-type
 
typedef MK_BINB const * MK_BINN
 const byte-array pointer data-type
 
typedef MK_LSTBMK_LST
 list pointer data-type
 
typedef MK_STRB const * MK_FST
 const format string pointer data-type
 
typedef unsigned int MK_SIG
 signature datatype
 

Variables

MK_UNUSED static const MK_STRN_A MK_STRN_A_NULL = (MK_STRN_A) {0,0}
 

OS wide MK_TIME_T

timeout in seconds as "integer" value

typedef time_t MK_TIME_T
 
#define MK_FORMAT_TIME   "%li"
 
#define MK_TIME   ((MK_TIME_T)time(NULL))
 
#define MK_TIME_MAX   (365*24*60*60)
 one year
 

helper type for target language implementation

typedef void * MK_NAT_OBJECT
 
typedef void * MK_NAT_LIST
 

unsigned integer data-type

typedef uint64_t MK_USW
 
typedef unsigned int MK_USI
 
typedef unsigned short MK_USS
 
typedef unsigned char MK_USB
 
typedef unsigned long long MK_UXN
 
typedef unsigned long MK_ULN
 

MkTypeC


typedef struct MkTypeSMK_TYP
 class-shortcut for struct MkTypeS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MkTypeSMK_TYPN
 class-shortcut for const struct MkTypeS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MkTypeS MK_TYPR
 reference-shortcut for struct MkTypeS, all shortcut using the XX_YYYR syntax (only for public API) …
 
#define META_TIMEOUT_REF   900
 

Detailed Description

a collection of common used data types and definitions …

Macro Definition Documentation

◆ bool2str

#define bool2str (   _bool)    (_bool?"true":"false")

Definition at line 2671 of file kernel_mk.h.

◆ META_TIMEOUT_REF

#define META_TIMEOUT_REF   900

Definition at line 194 of file kernel_mk.h.

◆ MK_ALFA

#define MK_ALFA   '@'

MK_ALFA the command-line separator between server and client …

Definition at line 2626 of file kernel_mk.h.

◆ MK_ALFA_STR

#define MK_ALFA_STR   ((MkStringR){1,"@"})

MK_ALFA the command-line separator as string …

Definition at line 2628 of file kernel_mk.h.

◆ MK_FORMAT_N

#define MK_FORMAT_N   "%i"

Definition at line 2680 of file kernel_mk.h.

◆ MK_FORMAT_TIME

#define MK_FORMAT_TIME   "%li"

Definition at line 2691 of file kernel_mk.h.

◆ MK_TIME

#define MK_TIME   ((MK_TIME_T)time(NULL))

Definition at line 2692 of file kernel_mk.h.

◆ MK_TIME_MAX

#define MK_TIME_MAX   (365*24*60*60)

one year

Definition at line 2693 of file kernel_mk.h.

Typedef Documentation

◆ MK_ATO

typedef union MkBufferAtomU MK_ATO

8 byte atom data-type

Definition at line 2674 of file kernel_mk.h.

◆ MK_BIN

typedef MK_BINB* MK_BIN

byte-array pointer data-type

Definition at line 2756 of file kernel_mk.h.

◆ MK_BINB

typedef unsigned char MK_BINB

byte-array type data-type

Definition at line 2706 of file kernel_mk.h.

◆ MK_BINN

typedef MK_BINB const* MK_BINN

const byte-array pointer data-type

Definition at line 2759 of file kernel_mk.h.

◆ MK_BOL

typedef unsigned char MK_BOL

1 byte boolean data-type

Definition at line 2632 of file kernel_mk.h.

◆ MK_BOOL

typedef bool MK_BOOL

real bool data-type

Definition at line 2670 of file kernel_mk.h.

◆ MK_BYT

typedef signed char MK_BYT

1 byte byte data-type

Definition at line 2636 of file kernel_mk.h.

◆ MK_CBP

typedef MK_PTRB* MK_CBP

generic pointer to call-back data

Definition at line 2722 of file kernel_mk.h.

◆ MK_CCP

typedef MK_PTRB* MK_CCP

class constructor/destructor data type

Definition at line 2719 of file kernel_mk.h.

◆ MK_DBG

typedef int MK_DBG

debug-level data-type …

Definition at line 2684 of file kernel_mk.h.

◆ MK_DBL

typedef double MK_DBL

8 byte double data-type

Definition at line 2663 of file kernel_mk.h.

◆ MK_EXP

typedef MK_PTRB const* MK_EXP

exception object pointer

Definition at line 2734 of file kernel_mk.h.

◆ MK_FLT

typedef float MK_FLT

4 byte float data-type

Definition at line 2645 of file kernel_mk.h.

◆ MK_FST

typedef MK_STRB const* MK_FST

const format string pointer data-type

Definition at line 2765 of file kernel_mk.h.

◆ MK_INT

typedef signed int MK_INT

4 byte integer data-type

Definition at line 2642 of file kernel_mk.h.

◆ MK_LLG

typedef long long MK_LLG

min 8 byte long long

Definition at line 2660 of file kernel_mk.h.

◆ MK_LONG

typedef long MK_LONG

4/8 byte long data-type

Definition at line 2666 of file kernel_mk.h.

◆ MK_LST

typedef MK_LSTB* MK_LST

list pointer data-type

Definition at line 2762 of file kernel_mk.h.

◆ MK_LSTB

typedef unsigned char MK_LSTB

list type data-type

Definition at line 2709 of file kernel_mk.h.

◆ MK_MNG

typedef MK_PTRB* MK_MNG

managed object pointer, datatype will be checked on runtime

Definition at line 2728 of file kernel_mk.h.

◆ MK_MNGN

typedef const MK_PTRB* MK_MNGN

const - a managed object pointer, datatype will be checked on runtime

Definition at line 2731 of file kernel_mk.h.

◆ MK_MXP

typedef MK_PTRB* MK_MXP

MkExceptionC object pointer.

Definition at line 2737 of file kernel_mk.h.

◆ MK_NAT_LIST

typedef void* MK_NAT_LIST

Definition at line 2772 of file kernel_mk.h.

◆ MK_NAT_OBJECT

typedef void* MK_NAT_OBJECT

Definition at line 2770 of file kernel_mk.h.

◆ MK_NUM

typedef int32_t MK_NUM

array size data-type ('num' items in array …

Attention
-> need signed integer in pBusReadNextWord -> need int because of pSwapI in pReadHDR

Definition at line 2679 of file kernel_mk.h.

◆ MK_PTR

typedef MK_PTRB* MK_PTR

generic pointer data-type

Definition at line 2713 of file kernel_mk.h.

◆ MK_PTRB

typedef void MK_PTRB

pointer type data-type

Definition at line 2700 of file kernel_mk.h.

◆ MK_PTRN

typedef const MK_PTRB* MK_PTRN

const generic pointer data-type

Definition at line 2716 of file kernel_mk.h.

◆ MK_SIG

typedef unsigned int MK_SIG

signature datatype

Definition at line 2793 of file kernel_mk.h.

◆ MK_SIZE

typedef long MK_SIZE

Definition at line 2656 of file kernel_mk.h.

◆ MK_SRT

typedef signed short MK_SRT

2 byte short data-type

Definition at line 2639 of file kernel_mk.h.

◆ MK_STR

typedef MK_STRB* MK_STR

string pointer data-type

Definition at line 2725 of file kernel_mk.h.

◆ MK_STRB

typedef char MK_STRB

string type data-type

Definition at line 2703 of file kernel_mk.h.

◆ MK_STRN

typedef const MK_STRB* MK_STRN

constant string pointer data-type

internal hdl used in uplevel-programming-language-shell to store a pointer:

  • java uses jlong equal to MK_LONG
  • csharp uses IntPtr equal to MK_PTR typedef MK_PTRB *MK_HDL;

Definition at line 2745 of file kernel_mk.h.

◆ MK_TIME_T

typedef time_t MK_TIME_T

Definition at line 2690 of file kernel_mk.h.

◆ MK_TYP

typedef struct MkTypeS* MK_TYP

class-shortcut for struct MkTypeS *, all shortcut using the XX_YYY syntax (only for public API) …

Definition at line 3069 of file kernel_mk.h.

◆ MK_TYPN

typedef const struct MkTypeS* MK_TYPN

class-shortcut for const struct MkTypeS *, all const shortcut using the XX_YYYC syntax (only for public API) …

Definition at line 3072 of file kernel_mk.h.

◆ MK_TYPR

typedef struct MkTypeS MK_TYPR

reference-shortcut for struct MkTypeS, all shortcut using the XX_YYYR syntax (only for public API) …

Definition at line 3075 of file kernel_mk.h.

◆ MK_ULN

typedef unsigned long MK_ULN

Definition at line 2788 of file kernel_mk.h.

◆ MK_USB

typedef unsigned char MK_USB

Definition at line 2784 of file kernel_mk.h.

◆ MK_USI

typedef unsigned int MK_USI

Definition at line 2780 of file kernel_mk.h.

◆ MK_USS

typedef unsigned short MK_USS

Definition at line 2782 of file kernel_mk.h.

◆ MK_USW

typedef uint64_t MK_USW

Definition at line 2778 of file kernel_mk.h.

◆ MK_UXN

typedef unsigned long long MK_UXN

Definition at line 2786 of file kernel_mk.h.

◆ MK_WID

typedef int64_t MK_WID

8 byte wide integer data-type

Definition at line 2652 of file kernel_mk.h.

Variable Documentation

◆ MK_STRN_A_NULL

MK_UNUSED static const MK_STRN_A MK_STRN_A_NULL = (MK_STRN_A) {0,0}
static

Definition at line 2753 of file kernel_mk.h.