Loading...
Searching...
No Matches
MqDumpC_Class_C_API

MqDumpC - define the class … More...

+ Collaboration diagram for MqDumpC_Class_C_API:

Topics

 MqDumpC_Class_Define_C_API
 MqDumpC - low level definition, access and cast …
 

Typedefs

typedef struct MqDumpSlibmqmsgque::MQ_DMP
 class-shortcut for struct MqDumpS *, all shortcut using the XX_YYY syntax (only for public API) …
 
typedef const struct MqDumpSlibmqmsgque::MQ_DMPN
 class-shortcut for const struct MqDumpS *, all const shortcut using the XX_YYYC syntax (only for public API) …
 
typedef struct MqDumpS libmqmsgque::MQ_DMPR
 reference-shortcut for struct MqDumpS, all shortcut using the XX_YYYR syntax (only for public API) …
 

MqDumpC - Export - inline - interact with an external software

MK_HDL libmqmsgque::MqDumpHandleGet_RT (MK_RT const mkrt, MQ_DMP const dmp)
 Handle-Get-Slot - returns a export-hdl to the MqDumpC useable for external storage
 
MQ_DMP libmqmsgque::MqDumpHandleResolve_RT (MK_RT const mkrt, MK_HDL const netHdl)
 Handle-Resolve-Slot - return a MqDumpC from netHdl or MK_NULL if invalid…
 
#define MqDumpHandleResolve_e(netHdl)
 wrapper for MqDumpHandleResolve with error-handline
 

MqDumpC - Misc - function - unspecified functions to perform different tasks

MQ_DMP libmqmsgque::MqDumpGetNull (void)
 Null-Slot - return a MqDumpC typed NULL instance …
 

MqDumpC - Introspection - inline - access to all instances created by class starting with the last one

MQ_DMP libmqmsgque::MqDumpInstances_RT (MK_RT_PARSER_ONLY)
 get head-instance from linked-list of MqDumpS type …
 
MK_ATTR_HDL MQ_DMP libmqmsgque::MqDumpNext (MQ_DMP const dmp)
 get next instance from linked-list of MqDumpS type
 
MK_ATTR_HDL MQ_DMP libmqmsgque::MqDumpPrev (MQ_DMP const dmp)
 get previous instance from linked-list of MqDumpS type
 

MqDumpC - Export - overload

#define MqDumpHandleResolve_NULL(...)
 
#define MqDumpHandleResolve(...)
 
#define MqDumpHandleGet_NULL(...)
 
#define MqDumpHandleGet(...)
 

MqDumpC - Introspection - overload

#define MqDumpInstances_NULL()
 
#define MqDumpInstances()
 

Detailed Description

MqDumpC - define the class …

Macro Definition Documentation

◆ MqDumpHandleGet

#define MqDumpHandleGet ( ...)
Value:
MqDumpHandleGet_RT(MK_RT_CALL __VA_ARGS__)
#define MK_RT_CALL

Definition at line 893 of file msgque_overload_mq.h.

◆ MqDumpHandleGet_NULL

#define MqDumpHandleGet_NULL ( ...)
Value:
MqDumpHandleGet_RT(MK_RT_CALL_NULL __VA_ARGS__)
#define MK_RT_CALL_NULL

Definition at line 892 of file msgque_overload_mq.h.

◆ MqDumpHandleResolve

#define MqDumpHandleResolve ( ...)
Value:
MqDumpHandleResolve_RT(MK_RT_CALL __VA_ARGS__)

Definition at line 889 of file msgque_overload_mq.h.

◆ MqDumpHandleResolve_e

#define MqDumpHandleResolve_e ( netHdl)
Value:
({ \
MK_HDL tmpHdl=netHdl; \
MQ_DMP tmp; \
if (tmpHdl==0) { \
tmp=NULL; \
} else { \
tmp=MqDumpHandleResolve(tmpHdl); \
if (tmp==NULL) { \
MkErrorSetC_1_NULL("ERROR: 'MqDumpC' handle is 'NULL'"); \
goto error; \
}; \
}; \
tmp; \
})
#define MqDumpHandleResolve(...)

wrapper for MqDumpHandleResolve with error-handline

Parameters
[in]netHdlThe handle previously returned by MkObjectHandleGet.
Returns
Return an valid libmqmsgque::MQ_DMP or MK_NULL with an error set.
  • If netHdl is MK_NULL than MK_NULL is returned and the upper-code decide how to deal with it.
  • MqDumpHandleResolve return an valid libmqmsgque::MQ_DMP or MK_NULL if the netHdl is invalid or the underlying object has already been deleted.
    • If a MK_NULL is returned than an error-message is created and a jump to the label error is done.
    • If a libmqmsgque::MQ_DMP is returned than the netHdl is valid.

Definition at line 8705 of file LibMqMsgque_mq.h.

8705#define MqDumpHandleResolve_e(netHdl) ({ \
8706 MK_HDL tmpHdl=netHdl; \
8707 MQ_DMP tmp; \
8708 if (tmpHdl==0) { \
8709 tmp=NULL; \
8710 } else { \
8711 tmp=MqDumpHandleResolve(tmpHdl); \
8712 if (tmp==NULL) { \
8713 MkErrorSetC_1_NULL("ERROR: 'MqDumpC' handle is 'NULL'"); \
8714 goto error; \
8715 }; \
8716 }; \
8717 tmp; \
8718})

◆ MqDumpHandleResolve_NULL

#define MqDumpHandleResolve_NULL ( ...)
Value:
MqDumpHandleResolve_RT(MK_RT_CALL_NULL __VA_ARGS__)

Definition at line 888 of file msgque_overload_mq.h.

◆ MqDumpInstances

#define MqDumpInstances ( )
Value:
MqDumpInstances_RT(MK_RT_CALL_ONLY)
#define MK_RT_CALL_ONLY

Definition at line 904 of file msgque_overload_mq.h.

◆ MqDumpInstances_NULL

#define MqDumpInstances_NULL ( )
Value:
MqDumpInstances_RT(MK_RT_CALL_NULL_ONLY)
#define MK_RT_CALL_NULL_ONLY

Definition at line 903 of file msgque_overload_mq.h.

Typedef Documentation

◆ MQ_DMP

typedef struct MqDumpS* libmqmsgque::MQ_DMP

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

Definition at line 535 of file LibMqMsgque_mq.h.

◆ MQ_DMPN

typedef const struct MqDumpS* libmqmsgque::MQ_DMPN

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

Definition at line 538 of file LibMqMsgque_mq.h.

◆ MQ_DMPR

typedef struct MqDumpS libmqmsgque::MQ_DMPR

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

Definition at line 541 of file LibMqMsgque_mq.h.

Function Documentation

◆ MqDumpGetNull()

MQ_DMP libmqmsgque::MqDumpGetNull ( void )
inline

Null-Slot - return a MqDumpC typed NULL instance …

Definition at line 8729 of file LibMqMsgque_mq.h.

8729 {
8730 return (MQ_DMP)MK_NULL;
8731 }
#define MK_NULL
+ Here is the caller graph for this function:

◆ MqDumpHandleGet_RT()

MK_HDL libmqmsgque::MqDumpHandleGet_RT ( MK_RT const mkrt,
MQ_DMP const dmp )
inline

Handle-Get-Slot - returns a export-hdl to the MqDumpC useable for external storage

The export-hdl is a reference to an instance that can be stored in software and converted back into an instance using the MqDumpHandleResolve.

The export-hdl is only valid until the Programming-Language-Micro-Kernel (PLMK) ends.

example: The export-hdl is used in rpc to identify an object across the network.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]dmpthe MqDumpS instance to work on
Returns
the required export-hdl

Definition at line 8672 of file LibMqMsgque_mq.h.

8675 {
8677 return MkObjectHandleGet(MkOBJ(dmp));
#define MkObjectHandleGet(...)
#define MkOBJ(x)
#define MK_RT_ATTR_HDL_CHECK(x)
#define MK_RT_ATTR_RUNTIME
#define MK_RT_ATTR_HDL

◆ MqDumpHandleResolve_RT()

MQ_DMP libmqmsgque::MqDumpHandleResolve_RT ( MK_RT const mkrt,
MK_HDL const netHdl )
inline

Handle-Resolve-Slot - return a MqDumpC from netHdl or MK_NULL if invalid…

The MqDumpHandleResolve undo the MqDumpHandleGet and is intended to export a unique identifer into external code not belonging to the Programming-Language-Micro-Kernel (PLMK).

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]netHdlhandle former exported with MqDumpHandleGet
Returns
the required handle or MK_NULL if netHdl is invalid

Definition at line 8689 of file LibMqMsgque_mq.h.

8692 {
8693 return MqDmp(MkObjectHandleResolve(netHdl));
#define MkObjectHandleResolve(...)
MQ_DMP MqDmp(MK_MNG mng)
cast a unknown-object into an MqDumpS pointer or NULL if not possible

◆ MqDumpInstances_RT()

MQ_DMP libmqmsgque::MqDumpInstances_RT ( MK_RT_PARSER_ONLY )
inline

get head-instance from linked-list of MqDumpS type …

The head-instance is the last instance created.

Definition at line 9598 of file LibMqMsgque_mq.h.

9598 {
9600 return (MQ_DMP)MqDumpC_TT->instances;
9601}
#define MqRtSetup_NULL_RT
#define MqDumpC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
+ Here is the caller graph for this function:

◆ MqDumpNext()

MK_ATTR_HDL MQ_DMP libmqmsgque::MqDumpNext ( MQ_DMP const dmp)
inline

get next instance from linked-list of MqDumpS type

Definition at line 9605 of file LibMqMsgque_mq.h.

9605 {
9606 MK_ATTR_HDL_CHECK(dmp);
9607 return (MQ_DMP)MqDumpC_X2obj(dmp)->obj_protect.next;
9608}
#define MqDumpC_X2obj(x)
+ Here is the caller graph for this function:

◆ MqDumpPrev()

MK_ATTR_HDL MQ_DMP libmqmsgque::MqDumpPrev ( MQ_DMP const dmp)
inline

get previous instance from linked-list of MqDumpS type

Definition at line 9612 of file LibMqMsgque_mq.h.

9612 {
9613 MK_ATTR_HDL_CHECK(dmp);
9614 return (MQ_DMP)MqDumpC_X2obj(dmp)->obj_protect.prev;
9615}
+ Here is the caller graph for this function: