149#ifndef META_HAVE_LIBCONFIG
150 #error "META_HAVE_LIBCONFIG was NOT defined, require 1 or 0"
157# undef MQ_C_BUILD_DLL
158# define MQ_C_BUILD_DLL
193# define MQ_RT_ARGS_ONLY MK_RT const mkrt, MQ_RT const mqrt
194# define MQ_RT_ARGS MQ_RT_ARGS_ONLY,
195# define MQ_RT_CALL_ONLY mkrt, mqrt
196# define MQ_RT_CALL MQ_RT_CALL_ONLY,
197# define MQ_RT_CALL_NULL_ONLY MkRT, MqRT
198# define MQ_RT_CALL_NULL MQ_RT_CALL_NULL_ONLY,
199# define MQ_RT_PTR mqrt
200# define MQ_RT_REF (*mqrt)
201# define MQ_RT_PARSER_ONLY MQ_RT_ARGS_ONLY __parser__(internal,default=N#RUNTIME)
202# define MQ_RT_PARSER MQ_RT_PARSER_ONLY,
203# if META_HDL_USE__NONNULL__GCC_ATTRIBUTE == 1
205# define MQ_RT_NONNULL_ATTRIBUTE_2 __attribute__((nonnull(3,4)))
206# define MQ_RT_NONNULL_ATTRIBUTE_1 __attribute__((nonnull(3)))
209# define MQ_RT_NONNULL_ATTRIBUTE_2 __attribute__((nonnull(4)))
210# define MQ_RT_NONNULL_ATTRIBUTE_1
213# define MQ_RT_ARGS_ONLY void
215# define MQ_RT_CALL_ONLY
217# define MQ_RT_CALL_NULL_ONLY
218# define MQ_RT_CALL_NULL
219# define MQ_RT_PTR &MqRuntimeRLS
220# define MQ_RT_REF MqRuntimeRLS
221# define MQ_RT_PARSER_ONLY void
223# if META_HDL_USE__NONNULL__GCC_ATTRIBUTE == 1
225# define MQ_RT_NONNULL_ATTRIBUTE_2 __attribute__((nonnull(1,2)))
226# define MQ_RT_NONNULL_ATTRIBUTE_1 __attribute__((nonnull(1)))
229# define MQ_RT_NONNULL_ATTRIBUTE_2 __attribute__((nonnull(2)))
230# define MQ_RT_NONNULL_ATTRIBUTE_1
241#undef BEGIN_MQ_C_DECLS
243#if defined(META_COMPILE_AS_CC)
244# define BEGIN_MQ_C_DECLS namespace libmqmsgque { using namespace libmkkernel;
245# define END_MQ_C_DECLS }
246#elif defined(__cplusplus)
247# define BEGIN_MQ_C_DECLS extern "C" {
248# define END_MQ_C_DECLS }
250# define BEGIN_MQ_C_DECLS
251# define END_MQ_C_DECLS
255#ifndef PARSE_C_HEADER_TO_META
381#if defined(META_IGNORE_EXTERN)
385# if defined(DLL_EXPORT)
387# if defined(MQ_C_BUILD_DLL)
388# define MQ_EXTERN __declspec(dllexport)
390# define MQ_EXTERN __declspec(dllimport)
394# define MQ_EXTERN __attribute__ ((visibility("default")))
403#if defined(META_PRIVATE)
404# define MQ_EXTERN_DATA extern
405#elif defined(META_IGNORE_EXTERN)
406# define MQ_EXTERN_DATA extern
409# if defined(DLL_EXPORT)
411# if defined(MQ_C_BUILD_DLL)
412# define MQ_EXTERN_DATA __declspec(dllexport)
414# define MQ_EXTERN_DATA __declspec(dllimport)
418# define MQ_EXTERN_DATA __attribute__ ((visibility("default"))) extern
421# define MQ_EXTERN_DATA extern
461__parser__(type=ME_NI4_MQ_HDL:"handle data-type")
478 __parser__(internal,type=ME_CCC_MqErrorC:"extension management class for
MqErrorS":internal)
481 __parser__(internal,type=ME_CCN_MqErrorC:"const - extension management class for
MqErrorS":internal)
492 __parser__(internal,type=ME_CCC_MqRuntimeC:"MqRuntimeC class handle":internal)
495 __parser__(internal,type=ME_CCN_MqRuntimeC:"const - MqRuntimeC class handle":internal)
520 __parser__(type=ME_CCC_MqContextC:"MqContextC class handle":primary)
523 __parser__(type=ME_CCN_MqContextC:"const - MqContextC class handle":primary)
534 __parser__(type=ME_CCC_MqDumpC:"MqDumpC class handle":primary)
537 __parser__(type=ME_CCN_MqDumpC:"const - MqDumpC class handle":primary)
548 __parser__(type=ME_CCC_MqFactoryC:"MqFactoryC class handle":primary)
551 __parser__(type=ME_CCN_MqFactoryC:"const - MqFactoryC class handle":primary)
562 __parser__(internal,type=ME_CCC_MqEnvC:"MqEnvC class handle":internal)
565 __parser__(internal,type=ME_CCN_MqEnvC:"const - MqEnvC class handle":internal)
592#if defined(__MINGW32__) || defined(_MSC_VER)
594# define MK_FORMAT_SOCK "%I64u"
598# define MK_FORMAT_SOCK "%i"
633__parser__(internal,no-rpc,prefix=EnumFunc,
return-type-
default-no)
638__parser__(internal,no-rpc,prefix=EnumFunc,return-type-default-no)
670__parser__(internal,no-rpc,prefix=EnumFunc,
return-type-
default-no)
675__parser__(internal,no-rpc,prefix=EnumFunc,return-type-default-no)
709__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc,
return-type-
default-no)
714__parser__(doc-group=Enum,doc-index=_ignore_,class=MqMsgque,no-rpc,prefix=EnumFunc,return-type-default-no)
721__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc)
802 #define MqEnvC_SIGNATURE (MkObjectC_SIGNATURE ^ (14u<<10))
803 #define MqEnvC_MASK (((1u<<22)-1)<<10)
811 #define MqEnvC_X2env(x) (x)
812 #define MqEnvC_X2obj(x) MkOBJ(x)
826 #define MqEnvC_T (&MQ_RT_REF._MqEnvC_T)
828 #define MqEnvC_TT (MkTYP(MqEnvC_T))
830 #define MqEnvST MqEnvC_T
832 #define MqEnvSTT (MkTYP(MqEnvST))
834 #define MqEnvC_type MQ_ENV
836 #define MqEnvCT_X(instance) ( (struct MkSuperTypeS *) (MkOBJ_R(instance).type) )
838 #define MqEnvCTT_X(instance) (MkOBJ_R(instance).type)
840 #define MqEnvCT_TT(typ) ( (struct MkSuperTypeS *) (typ) )
844 #define MqEnvCTT MqEnvCTT
846 #define MqEnvCT ( (struct MkSuperTypeS *) MqEnvCTT )
855 #pragma GCC diagnostic push
856 #pragma GCC diagnostic ignored "-Wattributes"
872 #pragma GCC diagnostic pop
873 #define MqEnvC_Check(mng) MqEnvCheck(mng)
884 META_ATTRIBUTE_SANITIZE
891 META_ATTRIBUTE_SANITIZE
897 #define MqEnvRaise(_env) if (!_MkCheckX(MqEnvC,_env)) { \
898 MkErrorSetC_1E("'MqEnvC' hdl is NULL"); \
903 #define MqENV_R(x) (*(x)).super.env
905 #define MqENV(x) (&MqENV_R(x))
922#define MQ_SERVICE_CALL_CHECK do { \
923 assert (__data__ != NULL); \
924 if (MqCtxCheck(mqctx) == false || MkOBJ_R(mqctx).self == NULL) return MK_OK; \
929#define MQ_SERVICE_CALL_ARGS MK_RT_ARGS MQ_CTX const mqctx, MK_PTR const __data__
931#define MQ_SERVICE_CALL MK_RT_CALL mqctx, __data__
939#define MQ_SERVICE_FREE_ARGS MK_RT_ARGS MQ_CTX const mqctx, MK_PTR *dataP
947#define MQ_SERVICE_COPY_ARGS MK_RT_ARGS MQ_CTX const mqctx, MK_PTR *dataP
978#if defined(MQ_C_BUILD_DLL)
980 #define META_SECTION_DEFINE
981 #include "MqLinkS_mq.h"
982 #undef META_SECTION_DEFINE
996 #define MqLinkS_targetIdent_size 64
1167#define MQ_CALLBACK_CREATE_ARGS MK_RT_ARGS MQ_CTX const mqctx, MK_BFL const argv
1168#define MQ_CALLBACK_CREATE_CALL MK_RT_CALL mqctx, argv
1189) __attribute__ ((noreturn));
1378__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc,
return-type-
default-no)
1383__parser__(doc-group=Enum,doc-index=_ignore_,class=MqMsgque,no-rpc,prefix=EnumFunc,return-type-default-no)
1390__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc)
1420__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc,
return-type-
default-no)
1425__parser__(doc-group=Enum,doc-index=_ignore_,class=MqMsgque,no-rpc,prefix=EnumFunc,return-type-default-no)
1432__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc)
1458__parser__(internal,no-rpc,prefix=EnumFunc,
return-type-
default-no)
1463__parser__(internal,no-rpc,prefix=EnumFunc,return-type-default-no)
1495__parser__(internal,no-rpc,prefix=EnumFunc,
return-type-
default-no)
1500__parser__(internal,no-rpc,prefix=EnumFunc,return-type-default-no)
1562__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc,
return-type-
default-no)
1567__parser__(doc-group=Enum,doc-index=_ignore_,class=MqMsgque,no-rpc,prefix=EnumFunc,return-type-default-no)
1574__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc)
1610__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc,
return-type-
default-no)
1615__parser__(doc-group=Enum,doc-index=_ignore_,class=MqMsgque,no-rpc,prefix=EnumFunc,return-type-default-no)
1622__parser__(doc-group=Enum,doc-index=_ignore_,
class=MqMsgque,no-rpc,prefix=EnumFunc)
1718 #define MqConfigS_dispname_size 64
1748 #define MqConfigS_prefix_size 64
1765 #define MqConfigS_postfix_size 64
1799 #define MqConfigS_storage_size 256
1849#if META_HAVE_LIBCONFIG
1909 void * filterH_dummy;
2307#define MqInterfaceDoc(mkrt,ctx,fCall,callback,fFree,fCopy)
2314__parser__(no-rpc,callback-name=ServerSetup,callback-null)
2330__parser__(no-rpc,callback-name=ServerCleanup,callback-null)
2346__parser__(no-rpc,callback-name=BgError,callback-null)
2366__parser__(no-rpc,callback-name=Event,callback-null)
2391#define MQ_IS_SERVER(ctx) (ctx->setup.isServer == true)
2392#define MQ_IS_SERVER_PARENT(ctx) (MQ_IS_SERVER(ctx) && MQ_IS_PARENT(ctx))
2393#define MQ_IS_CLIENT(ctx) (ctx->setup.isServer == false)
2394#define MQ_IS_CLIENT_PARENT(ctx) (MQ_IS_CLIENT(ctx) && MQ_IS_PARENT(ctx))
2395#define MQ_IS_CHILD(ctx) ((ctx)->config.parent != NULL)
2396#define MQ_IS_PARENT(ctx) ((ctx)->config.parent == NULL)
2397#define MQ_IS_SLAVE(ctx) ((ctx)->config.master != NULL)
2398#define MQ_IS_MASTER(ctx) ((ctx)->config.master == NULL)
2399#define MQ_IS_LOOPBACK(ctx) ((ctx)->config.io.com == MQ_IO_LOOP)
2401#define MQ_GET_PARENT(ctx) (MQ_IS_CHILD(ctx) ? ctx->link.ctxIdP : ctx)
2402#define MQ_GET_MASTER(ctx) (MQ_IS_SLAVE(ctx) ? ctx->config.master : ctx)
2598typedef
int (*
MqSysSelectF) (
int max,
void* read,
void* write,
void* except, struct timeval* timeout);
2666 struct MkIdS * val_out
2690 struct MkIdS * val_out
2715 struct MkIdS * val_out
2784 #define MqErrorC_SIGNATURE (MkErrExtC_SIGNATURE ^ (1u<<3))
2785 #define MqErrorC_MASK (((1u<<29)-1)<<3)
2793 #define MqErrorC_X2err(x) (x)
2794 #define MqErrorC_X2errext(x) MkERREXT(x)
2795 #define MqErrorC_X2ext(x) MkEXT(x)
2796 #define MqErrorC_X2obj(x) MkOBJ(x)
2810 #define MqErrorC_T (&MQ_RT_REF._MqErrorC_T)
2812 #define MqErrorC_TT (MkTYP(MqErrorC_T))
2814 #define MqErrorST MqErrorC_T
2816 #define MqErrorSTT (MkTYP(MqErrorST))
2818 #define MqErrorC_type MQ_ERR
2820 #define MqErrorCT_X(instance) ( (struct MkSuperTypeS *) (MkOBJ_R(instance).type) )
2822 #define MqErrorCTT_X(instance) (MkOBJ_R(instance).type)
2824 #define MqErrorCT_TT(typ) ( (struct MkSuperTypeS *) (typ) )
2826 #define MqErrorC_NS MQ
2828 #define MqErrorCTT MqErrorCTT
2830 #define MqErrorCT ( (struct MkSuperTypeS *) MqErrorCTT )
2839 #pragma GCC diagnostic push
2840 #pragma GCC diagnostic ignored "-Wattributes"
2856 #pragma GCC diagnostic pop
2857 #define MqErrorC_Check(mng) MqErrCheck(mng)
2868 META_ATTRIBUTE_SANITIZE
2875 META_ATTRIBUTE_SANITIZE
2881 #define MqErrRaise(_err) if (!_MkCheckX(MqErrorC,_err)) { \
2882 MkErrorSetC_1E("'MqErrorC' hdl is NULL"); \
2887 #define MqERR_R(x) (*(x)).super.err
2889 #define MqERR(x) (&MqERR_R(x))
2901#define MqERROR_R(r) ((*r).error_mq)
2902#define MqERROR_RT MqERROR_R(&MQ_RT_REF)
2903#define MqERROR_O(o) MqERROR_R(MqRT_O(o))
2904#define MqERROR_X(x) MqERROR_R(MqRT_X(x))
2905#define MqERROR_XN(x) MqERROR_R(MqRT_XN(x))
2906#define MqERROR MqERROR_R(&MqRuntimeRLS)
2987#define MqFactoryPanic(fct) if (fct == NULL) MkPanicC(MK_ERROR_PANIC, __func__, -1, "MqFactoryS exception");
3007#define MQ_CALLBACK_FACTORY_CTOR_ARGS \
3009 MQ_CTX const tmpl, \
3010 enum MqFactoryE create, \
3011 struct MqFactoryS * const fct, \
3014#define MQ_CALLBACK_FACTORY_CTOR_CALL MQ_RT_CALL tmpl, create, fct, contextP
3034 bool doFactoryCleanup,
3105 #define MqFactoryC_SIGNATURE (MkObjectC_SIGNATURE ^ (13u<<10))
3106 #define MqFactoryC_MASK (((1u<<22)-1)<<10)
3114 #define MqFactoryC_X2fct(x) (x)
3115 #define MqFactoryC_X2obj(x) MkOBJ(x)
3129 #define MqFactoryC_T (&MQ_RT_REF._MqFactoryC_T)
3131 #define MqFactoryC_TT (MkTYP(MqFactoryC_T))
3133 #define MqFactoryST MqFactoryC_T
3135 #define MqFactorySTT (MkTYP(MqFactoryST))
3137 #define MqFactoryC_type MQ_FCT
3139 #define MqFactoryCT_X(instance) ( (struct MkSuperTypeS *) (MkOBJ_R(instance).type) )
3141 #define MqFactoryCTT_X(instance) (MkOBJ_R(instance).type)
3143 #define MqFactoryCT_TT(typ) ( (struct MkSuperTypeS *) (typ) )
3145 #define MqFactoryC_NS MQ
3147 #define MqFactoryCTT MqFactoryCTT
3149 #define MqFactoryCT ( (struct MkSuperTypeS *) MqFactoryCTT )
3158 #pragma GCC diagnostic push
3159 #pragma GCC diagnostic ignored "-Wattributes"
3175 #pragma GCC diagnostic pop
3176 #define MqFactoryC_Check(mng) MqFctCheck(mng)
3187 META_ATTRIBUTE_SANITIZE
3194 META_ATTRIBUTE_SANITIZE
3200 #define MqFctRaise(_fct) if (!_MkCheckX(MqFactoryC,_fct)) { \
3201 MkErrorSetC_1E("'MqFactoryC' hdl is NULL"); \
3206 #define MqFCT_R(x) (*(x)).super.fct
3208 #define MqFCT(x) (&MqFCT_R(x))
3227__parser__push__(doc-group=_ignore_,doc-index=Class,doc-name=Export,
class=MqFactoryC);
3275#define MqFactoryHandleResolve_e(netHdl) ({ \
3276 MK_HDL tmpHdl=netHdl; \
3281 tmp=MqFactoryHandleResolve(tmpHdl); \
3283 MkErrorSetC_1_NULL("ERROR: 'MqFactoryC' handle is 'NULL'"); \
3298 __parser__(flags=
new,doc-group=_ignore_,doc-index=Class,doc-name=Misc,
class=MqFactoryC,null-
return-allow)
3466__parser__(constructor,lng-constr,no-rpc,overload-c-no)
3484#define MqFactoryAdd_1(fct) MqFactoryAdd(MK_ERROR_PANIC,fct,NULL, NULL, NULL, NULL, NULL, NULL, NULL, #fct)
3485#define MqFactoryAdd_2(fct,ident) MqFactoryAdd(MK_ERROR_PANIC,fct,NULL, NULL, NULL, NULL, NULL, NULL, NULL, ident)
3638#define MqFactoryLog_2M(fct,m) MqFactoryLog_2(fct,MkObj(m))
3786 #define MqCtxTypeC_SIGNATURE (MkTypeC_SIGNATURE ^ (2u<<6))
3787 #define MqCtxTypeC_MASK (((1u<<26)-1)<<6)
3795 #define MqCtxTypeC_X2ctxtyp(x) (x)
3796 #define MqCtxTypeC_X2typ(x) MkTYP(x)
3797 #define MqCtxTypeC_X2obj(x) MkOBJ(x)
3811 #define MqCtxTypeSTT (&MQ_RT_REF._MqCtxTypeC_TT)
3813 #define MqCtxTypeC_TT (&MQ_RT_REF._MqCtxTypeC_TT)
3815 #define MqCtxTypeC_type MQ_CTXTYP
3817 #define MqCtxTypeCT_X(instance) ( (struct MkTypeS *) (MkOBJ_R(instance).type) )
3819 #define MqCtxTypeCTT_X(instance) (MkOBJ_R(instance).type)
3821 #define MqCtxTypeCT_TT(typ) ( (struct MkTypeS *) (typ) )
3823 #define MqCtxTypeC_NS MQ
3825 #define MqCtxTypeCTT MqCtxTypeCTT
3827 #define MqCtxTypeCT ( (struct MkTypeS *) MqCtxTypeCTT )
3836 #pragma GCC diagnostic push
3837 #pragma GCC diagnostic ignored "-Wattributes"
3853 #pragma GCC diagnostic pop
3854 #define MqCtxTypeC_Check(mng) MqCtxTypCheck(mng)
3989#if defined(MQ_C_BUILD_DLL)
3991 #define META_SECTION_DEFINE
3992 #include "MqContextS_mq.h"
3993 #undef META_SECTION_DEFINE
4032 #define MqContextC_SIGNATURE (MkObjectC_SIGNATURE ^ (11u<<10))
4033 #define MqContextC_MASK (((1u<<22)-1)<<10)
4041 #define MqContextC_X2ctx(x) (x)
4042 #define MqContextC_X2obj(x) MkOBJ(x)
4056 #define MqContextC_T (&MQ_RT_REF._MqContextC_T)
4058 #define MqContextC_TT (MkTYP(MqContextC_T))
4060 #define MqContextST MqContextC_T
4062 #define MqContextSTT (MkTYP(MqContextST))
4064 #define MqContextC_type MQ_CTX
4066 #define MqContextCT_X(instance) ( (struct MqCtxTypeS *) (MkOBJ_R(instance).type) )
4068 #define MqContextCTT_X(instance) (MkOBJ_R(instance).type)
4070 #define MqContextCT_TT(typ) ( (struct MqCtxTypeS *) (typ) )
4072 #define MqContextC_NS MQ
4074 #define MqContextCTT MqContextCTT
4076 #define MqContextCT ( (struct MqCtxTypeS *) MqContextCTT )
4085 #pragma GCC diagnostic push
4086 #pragma GCC diagnostic ignored "-Wattributes"
4102 #pragma GCC diagnostic pop
4103 #define MqContextC_Check(mng) MqCtxCheck(mng)
4114 META_ATTRIBUTE_SANITIZE
4121 META_ATTRIBUTE_SANITIZE
4127 #define MqCtxRaise(_ctx) if (!_MkCheckX(MqContextC,_ctx)) { \
4128 MkErrorSetC_1E("'MqContextC' hdl is NULL"); \
4133 #define MqCTX_R(x) (*(x)).super.ctx
4135 #define MqCTX(x) (&MqCTX_R(x))
4154__parser__push__(doc-group=_ignore_,doc-index=Class,doc-name=Export,
class=MqContextC);
4202#define MqContextHandleResolve_e(netHdl) ({ \
4203 MK_HDL tmpHdl=netHdl; \
4208 tmp=MqContextHandleResolve(tmpHdl); \
4210 MkErrorSetC_1_NULL("ERROR: 'MqContextC' handle is 'NULL'"); \
4225 __parser__(flags=
new,doc-group=_ignore_,doc-index=Class,doc-name=Misc,
class=MqContextC,null-
return-allow)
4613MQ_EXTERN bool MK_DECL MqContextCheckLock (
4681__parser__(const,ignore,flags=new,runtime=MqEnvLog)
4692#define MqEnvLog_0() MqEnvLog(&(META_CONTEXT_S)->link.protect,META_CONTEXT_S,NULL,0,__func__,0,"ENV")
4693#define MqEnvLog_1(env) MqEnvLog(env,NULL,NULL,0,__func__,0,"ENV")
4694#define MqEnvLog_2(env,fmt) MqEnvLog(env,fmt,NULL,0,__func__,0,"ENV")
4695#define MqEnvLog_3(env,fmt,lbl) MqEnvLog(env,fmt,lbl,0,__func__,0,"ENV")
4976#define MqStorageLog_1(ctx) MqStorageLog(ctx,__func__)
5548#define MQ_ROUTE_CTX_MAX 50
5774__parser__(type=ME_PSN_MQ_TOKEN:"token identifer")
5778#define MQ_TOK_SIZE (8+1)
5803 MK_ATTR_HDL_CHECK(ctx);
6126 MK_I8 * const val_out
6259__parser__(template-required,no-rpc,keep,no-static)
6274__parser__(template-required,no-rpc,keep,no-static)
6726__parser__(internal,doc-no,doc-group=Atom,doc-index=SendApi)
7956#define MQ_SEND_TRANSACTION_TOKEN_SIZE 10
7957#define MQ_SEND_TOKEN_SIGNATURE_SIZE 50
8228 MK_ATTR_HDL_CHECK(ctx);
8238 MK_ATTR_HDL_CHECK(ctx);
8249 MK_ATTR_HDL_CHECK(ctx);
8259 MK_ATTR_HDL_CHECK(ctx);
8271 MK_ATTR_HDL_CHECK(ctx);
8283 MK_ATTR_HDL_CHECK(ctx);
8295 MK_ATTR_HDL_CHECK(ctx);
8307 MK_ATTR_HDL_CHECK(ctx);
8318 MK_ATTR_HDL_CHECK(ctx);
8319 return (ctx)->config.io.buffersize;
8329 MK_ATTR_HDL_CHECK(ctx);
8330 return (ctx)->config.io.pkgsize;
8340 MK_ATTR_HDL_CHECK(ctx);
8341 return (ctx)->config.io.timeout;
8352 MK_ATTR_HDL_CHECK(ctx);
8417 MK_ATTR_HDL_CHECK(ctx);
8425 MK_ATTR_HDL_CHECK(ctx);
8433 MK_ATTR_HDL_CHECK(ctx);
8498#if defined(MQ_C_BUILD_DLL)
8500 #define META_SECTION_DEFINE
8501 #include "MqDumpS_mq.h"
8502 #undef META_SECTION_DEFINE
8535 #define MqDumpC_SIGNATURE (MkObjectC_SIGNATURE ^ (12u<<10))
8536 #define MqDumpC_MASK (((1u<<22)-1)<<10)
8544 #define MqDumpC_X2dmp(x) (x)
8545 #define MqDumpC_X2obj(x) MkOBJ(x)
8559 #define MqDumpC_T (&MQ_RT_REF._MqDumpC_T)
8561 #define MqDumpC_TT (MkTYP(MqDumpC_T))
8563 #define MqDumpST MqDumpC_T
8565 #define MqDumpSTT (MkTYP(MqDumpST))
8567 #define MqDumpC_type MQ_DMP
8569 #define MqDumpCT_X(instance) ( (struct MkSuperTypeS *) (MkOBJ_R(instance).type) )
8571 #define MqDumpCTT_X(instance) (MkOBJ_R(instance).type)
8573 #define MqDumpCT_TT(typ) ( (struct MkSuperTypeS *) (typ) )
8575 #define MqDumpC_NS MQ
8577 #define MqDumpCTT MqDumpCTT
8579 #define MqDumpCT ( (struct MkSuperTypeS *) MqDumpCTT )
8588 #pragma GCC diagnostic push
8589 #pragma GCC diagnostic ignored "-Wattributes"
8605 #pragma GCC diagnostic pop
8606 #define MqDumpC_Check(mng) MqDmpCheck(mng)
8617 META_ATTRIBUTE_SANITIZE
8624 META_ATTRIBUTE_SANITIZE
8630 #define MqDmpRaise(_dmp) if (!_MkCheckX(MqDumpC,_dmp)) { \
8631 MkErrorSetC_1E("'MqDumpC' hdl is NULL"); \
8636 #define MqDMP_R(x) (*(x)).super.dmp
8638 #define MqDMP(x) (&MqDMP_R(x))
8657__parser__push__(doc-group=_ignore_,doc-index=Class,doc-name=Export,
class=MqDumpC);
8705#define MqDumpHandleResolve_e(netHdl) ({ \
8706 MK_HDL tmpHdl=netHdl; \
8711 tmp=MqDumpHandleResolve(tmpHdl); \
8713 MkErrorSetC_1_NULL("ERROR: 'MqDumpC' handle is 'NULL'"); \
8728 __parser__(flags=
new,doc-group=_ignore_,doc-index=Class,doc-name=Misc,
class=MqDumpC,null-
return-allow)
8758#define MqDumpLog_1XS(dump) MqDumpLog(dump,(MK_OBJ)META_CONTEXT_S,0,__func__,0)
9009#pragma GCC diagnostic push
9010#pragma GCC diagnostic ignored "-Wlto-type-mismatch"
9012#if defined(MQ_C_BUILD_DLL)
9014 #define META_SECTION_DEFINE
9015 #include "MqRuntimeS_mq.h"
9016 #undef META_SECTION_DEFINE
9069#pragma GCC diagnostic pop
9083 #define MqRuntimeC_SIGNATURE (MkRtExtC_SIGNATURE ^ (1u<<3))
9084 #define MqRuntimeC_MASK (((1u<<29)-1)<<3)
9092 #define MqRuntimeC_X2rt(x) (x)
9093 #define MqRuntimeC_X2rtext(x) MkRTEXT(x)
9094 #define MqRuntimeC_X2ext(x) MkEXT(x)
9095 #define MqRuntimeC_X2obj(x) MkOBJ(x)
9109 #define MqRuntimeC_T (&MQ_RT_REF._MqRuntimeC_T)
9111 #define MqRuntimeC_TT (MkTYP(MqRuntimeC_T))
9113 #define MqRuntimeST MqRuntimeC_T
9115 #define MqRuntimeSTT (MkTYP(MqRuntimeST))
9117 #define MqRuntimeC_type MQ_RT
9119 #define MqRuntimeCT_X(instance) ( (struct MkSuperTypeS *) (MkOBJ_R(instance).type) )
9121 #define MqRuntimeCTT_X(instance) (MkOBJ_R(instance).type)
9123 #define MqRuntimeCT_TT(typ) ( (struct MkSuperTypeS *) (typ) )
9125 #define MqRuntimeC_NS MQ
9127 #define MqRuntimeCTT MqRuntimeCTT
9129 #define MqRuntimeCT ( (struct MkSuperTypeS *) MqRuntimeCTT )
9138 #pragma GCC diagnostic push
9139 #pragma GCC diagnostic ignored "-Wattributes"
9155 #pragma GCC diagnostic pop
9156 #define MqRuntimeC_Check(mng) MqRtCheck(mng)
9167 META_ATTRIBUTE_SANITIZE
9174 META_ATTRIBUTE_SANITIZE
9180 #define MqRtRaise(_rt) if (!_MkCheckX(MqRuntimeC,_rt)) { \
9181 MkErrorSetC_1E("'MqRuntimeC' hdl is NULL"); \
9196#define MqRT &MqRuntimeRLS
9198 #define MqRT_O(o) MqRuntimeGetI32()
9199 #define MqRT_X(x) MqRuntimeGetI32()
9200 #define MqRT_ON(o) MqRuntimeGetI32()
9201 #define MqRT_XN(x) MqRuntimeGetI32()
9203 #define MqRT_O(o) ((o) && (*o).objRtExt ? (MQ_RT)(*o).objRtExt : MqRuntimeGetI32())
9204 #define MqRT_X(x) ((x) && MkOBJ_R(x).objRtExt ? (MQ_RT)MkOBJ_R(x).objRtExt : MqRuntimeGetI32())
9205 #define MqRT_ON(o) ( (*o).objRtExt ? (MQ_RT)(*o).objRtExt : MqRuntimeGetI32())
9206 #define MqRT_XN(x) ( MkOBJ_R(x).objRtExt ? (MQ_RT)MkOBJ_R(x).objRtExt : MqRuntimeGetI32())
9210 #define MqRtSetup_SO(o) MK_RT_UNUSED MQ_RT const mqrt = MqRT_O(o)
9211 #define MqRtSetup_SX(x) MK_RT_UNUSED MQ_RT const mqrt = MqRT_X(x)
9212 #define MqRtSetup_SXN(x) MK_RT_UNUSED MQ_RT const mqrt = MqRT_XN(x)
9213 #define MqRtSetup_SON(o) MK_RT_UNUSED MQ_RT const mqrt = MqRT_ON(o)
9215 #define MqRtSetup_O(o) MK_RT_UNUSED MQ_RT const mqrt = MqRT_O(o) ; MkRtSetup_O(o)
9216 #define MqRtSetup_X(x) MK_RT_UNUSED MQ_RT const mqrt = MqRT_X(x) ; MkRtSetup_X(x)
9217 #define MqRtSetup_XN(x) MK_RT_UNUSED MQ_RT const mqrt = MqRT_XN(x) ; MkRtSetup_XN(x)
9218 #define MqRtSetup_ON(o) MK_RT_UNUSED MQ_RT const mqrt = MqRT_ON(o) ; MkRtSetup_ON(o)
9219 #define MqRtSetup_NULL MK_RT_UNUSED MQ_RT const mqrt = MqRuntimeGetI32() ; MkRtSetupFromRtExt(mqrt)
9221 #define MqRtSetup_NULL_RT MK_RT_UNUSED MQ_RT const mqrt = MqRuntimeGetI32() ; MkRtSetup_NULL_RT
9222 #define MqRtSetup_X_RT(x) MK_RT_UNUSED MQ_RT const mqrt = MqRT_X(x) ; MkRtSetup_X_RT(x)
9223 #define MqRtSetup_XN_RT(x) MK_RT_UNUSED MQ_RT const mqrt = MqRT_XN(x) ; MkRtSetup_XN_RT(x)
9224 #define MqRtSetup_O_RT(o) MK_RT_UNUSED MQ_RT const mqrt = MqRT_O(o) ; MkRtSetup_O_RT(o)
9225 #define MqRtSetup_ON_RT(o) MK_RT_UNUSED MQ_RT const mqrt = MqRT_ON(o) ; MkRtSetup_ON_RT(o)
9227 #define MqRtSetup_SO(o)
9228 #define MqRtSetup_SX(x)
9229 #define MqRtSetup_SXN(x)
9230 #define MqRtSetup_SON(o)
9231 #define MqRtSetup_NULL_RT
9233 #define MqRtSetup_O(o)
9234 #define MqRtSetup_X(x)
9235 #define MqRtSetup_XN(x)
9236 #define MqRtSetup_ON(o)
9237 #define MqRtSetup_NULL
9239 #define MqRtSetup_X_RT(x)
9240 #define MqRtSetup_XN_RT(x)
9241 #define MqRtSetup_O_RT(o)
9242 #define MqRtSetup_ON_RT(o)
9353__parser__(hide,
template-required,
class=MqMsgque)
9559__parser__push__(doc-name=Introspection,doc-index=Class,class=MqContextC,no-rpc,null-return-allow,flags=new);
9571 MK_ATTR_HDL_CHECK(ctx);
9578 MK_ATTR_HDL_CHECK(ctx);
9594__parser__push__(doc-name=Introspection,doc-index=Class,
class=MqDumpC,no-rpc,null-
return-allow,flags=
new);
9606 MK_ATTR_HDL_CHECK(dmp);
9613 MK_ATTR_HDL_CHECK(dmp);
9629__parser__push__(doc-name=Introspection,doc-index=Class,
class=MqFactoryC,no-rpc,null-
return-allow,flags=
new);
9641 MK_ATTR_HDL_CHECK(fct);
9648 MK_ATTR_HDL_CHECK(fct);
9674 MK_ATTR_HDL_CHECK(ctx);
9685 MK_ATTR_HDL_CHECK(ctx);
#define MqLinkS_targetIdent_size
MqClassIdentGet of the link target, only valid on parent-context
#define MqConfigS_postfix_size
MQ_RT MqRuntimeGetI32(void)
inline from MkRuntimeInit
MQ_EXTERN_DATA MkThreadLocal struct MqRuntimeS MqRuntimeRLS
RLS.
#define MqRtSetup_NULL_RT
#define MqConfigS_storage_size
storage file used as default if a database is requested
#define MqConfigS_dispname_size
MQ_EXTERN MQ_RT MqRuntimeInit(MK_RT const mkrt, MQ_RT const mqrt)
initialize MkRuntimeRLS
#define MqConfigS_prefix_size
MK_EXTERN MK_ERR MkErrorFORMAT(MK_OBJN const fmtobj)
#define __parser__global__(...)
#define __parser__push__(...)