theLink 10.0
Loading...
Searching...
No Matches
LibMqMsgque_tcl.h
Go to the documentation of this file.
1
9#pragma once
10
11#include "LibMkKernel_tcl.h"
12#include "LibMqMsgque_mq.h"
13#include "tmpl/mq_type_S_lng.h"
14
15/*****************************************************************************/
16/* */
17/* Macro_API */
18/* */
19/*****************************************************************************/
20
21// BEGIN-HEADER - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
22
23#undef HEADER
24#define HEADER
25
26// If the source of libmqmsgque is direct used in an external library
27// (without dynamic linking) and this library should *not* export
28// the symbol's of libmqmsgque then the flag META_IGNORE_EXTERN have
29// to be set
30#undef MQ_TCL_EXTERN
31#if defined(META_IGNORE_EXTERN)
32# define MQ_TCL_EXTERN
33#elif defined(PIC)
34 // does we build a DLL ?
35# if defined(DLL_EXPORT)
36 // does we build the libmqmsgque library ?
37# if defined(MQ_TCL_BUILD_DLL)
38# define MQ_TCL_EXTERN __declspec(dllexport)
39# else
40# define MQ_TCL_EXTERN __declspec(dllimport)
41# endif
42# else
43 // no DLL - architecture specific extern specifier
44# define MQ_TCL_EXTERN __attribute__ ((visibility("default")))
45# endif
46#else
48# define MQ_TCL_EXTERN
49#endif
50
51// external data lookup
52#undef MQ_TCL_EXTERN_DATA
53#if defined(META_PRIVATE)
54# define MQ_TCL_EXTERN_DATA extern
55#elif defined(META_IGNORE_EXTERN)
56# define MQ_TCL_EXTERN_DATA extern
57#elif defined(PIC)
58 // does we build a DLL ?
59# if defined(DLL_EXPORT)
60 // does we build the libmqmsgque library ?
61# if defined(MQ_TCL_BUILD_DLL)
62# define MQ_TCL_EXTERN_DATA __declspec(dllexport)
63# else
64# define MQ_TCL_EXTERN_DATA __declspec(dllimport)
65# endif
66# else
67 // no DLL - architecture specific extern specifier
68# define MQ_TCL_EXTERN_DATA __attribute__ ((visibility("default"))) extern
69# endif
70#else
71# define MQ_TCL_EXTERN_DATA extern
72#endif
73
74#undef MQ
75#define MQ(n) tclmqmsgque_ ## n
76#undef NS
77#define NS(n) tclmqmsgque_ ## n
78
79// END-HEADER - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
80
81// BEGIN-Class-def - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
82
83#define MqContextC_ARGS OBJECT_ARGS
84#define MqContextC_ARGS_CALL OBJECT_ARGS_CALL
85#define MqDumpC_ARGS OBJECT_ARGS
86#define MqDumpC_ARGS_CALL OBJECT_ARGS_CALL
87#define MqFactoryC_ARGS OBJECT_ARGS
88#define MqFactoryC_ARGS_CALL OBJECT_ARGS_CALL
89
90// END-Class-def - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
91
92/*****************************************************************************/
93/* */
94/* check */
95/* */
96/*****************************************************************************/
97
99
100/*****************************************************************************/
101/* */
102/* Class_API */
103/* */
104/*****************************************************************************/
105
106// BEGIN-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
107
108// ----------------------------------------------------------------------
109// class: MqContextC
110
111 #define MqContextC_lngO MQ(MqContextC)
114
115 int MQ(pMqContextC_Init) (MK_RT_ARGS OT_ENV_T, OT_NS_T );
116
117 #define OT_retObj_SET_CTX(nat) retObj = MQ(MqContextC_ObjNew) (MK_RT_CALL interp,nat)
118
119 #define OT_TMP_CTX_OBJ(val) MQ(MqContextC_ObjNew) (MK_RT_CALL interp,val)
120
122 mk_inline OT_OBJ_T MQ(MqContextC_ObjNew) (MK_RT_ARGS OT_ENV_T interp, MqContextC_type hdl) {
123 return ( hdl ? MK(AtomObjNew) (MK_RT_CALL interp, MqContextC_X2obj(hdl)) : MQ(MqContextC_MK_NULL) );
124 }
125
126// ----------------------------------------------------------------------
127// class: MqDumpC
128
129 #define MqDumpC_lngO MQ(MqDumpC)
132
133 int MQ(pMqDumpC_Init) (MK_RT_ARGS OT_ENV_T, OT_NS_T );
134
135 #define OT_retObj_SET_DMP(nat) retObj = MQ(MqDumpC_ObjNew) (MK_RT_CALL interp,nat)
136
137 #define OT_TMP_DMP_OBJ(val) MQ(MqDumpC_ObjNew) (MK_RT_CALL interp,val)
138
140 mk_inline OT_OBJ_T MQ(MqDumpC_ObjNew) (MK_RT_ARGS OT_ENV_T interp, MqDumpC_type hdl) {
141 return ( hdl ? MK(AtomObjNew) (MK_RT_CALL interp, MqDumpC_X2obj(hdl)) : MQ(MqDumpC_MK_NULL) );
142 }
143
144// ----------------------------------------------------------------------
145// class: MqFactoryC
146
147 #define MqFactoryC_lngO MQ(MqFactoryC)
150
151 int MQ(pMqFactoryC_Init) (MK_RT_ARGS OT_ENV_T, OT_NS_T );
152
153 #define OT_retObj_SET_FCT(nat) retObj = MQ(MqFactoryC_ObjNew) (MK_RT_CALL interp,nat)
154
155 #define OT_TMP_FCT_OBJ(val) MQ(MqFactoryC_ObjNew) (MK_RT_CALL interp,val)
156
158 mk_inline OT_OBJ_T MQ(MqFactoryC_ObjNew) (MK_RT_ARGS OT_ENV_T interp, MqFactoryC_type hdl) {
159 return ( hdl ? MK(AtomObjNew) (MK_RT_CALL interp, MqFactoryC_X2obj(hdl)) : MQ(MqFactoryC_MK_NULL) );
160 }
161
162// END-CLASS - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
163
164/*****************************************************************************/
165/* */
166/* types */
167/* */
168/*****************************************************************************/
169
170// \brief object to link the \libmqmsgque object with application specific data
171//
172// extra attributes: objectMy staticMy - both are cashes
177
178/*****************************************************************************/
179/* */
180/* functions */
181/* */
182/*****************************************************************************/
183
184// from MqContextC_tcl.c
185
188
189// from MqCall_tcl.c
190
191void MK_DECL NS(ServiceFree) ( MQ_SERVICE_FREE_ARGS );
192void MK_DECL NS(ServiceCopy) ( MQ_SERVICE_COPY_ARGS );
193enum MkErrorE MK_DECL NS(ServiceCall) ( MQ_SERVICE_CALL_ARGS );
194
195// from MqFactoryC.c
196int NS(MqFactoryC_Setup) ( MK_RT_ARGS OT_ENV_T );
197
198/*****************************************************************************/
199/* */
200/* enum */
201/* */
202/*****************************************************************************/
203
204// BEGIN-enum - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
205
206MQ_TCL_EXTERN int MK_DECL MQ(Get_MqIdentE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MqIdentE *ret);
207#define Get_MqIdentE_FromObj_path MQ(Get_MqIdentE_FromObj)
208
209MQ_TCL_EXTERN int MK_DECL MQ(Get_MqSlaveE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MqSlaveE *ret);
210#define Get_MqSlaveE_FromObj_path MQ(Get_MqSlaveE_FromObj)
211
212MQ_TCL_EXTERN int MK_DECL MQ(Get_MqStartE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MqStartE *ret);
213#define Get_MqStartE_FromObj_path MQ(Get_MqStartE_FromObj)
214
215MQ_TCL_EXTERN int MK_DECL MQ(Get_MqStatusIsEF_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MqStatusIsEF *ret);
216#define Get_MqStatusIsEF_FromObj_path MQ(Get_MqStatusIsEF_FromObj)
217
218MQ_TCL_EXTERN int MK_DECL MQ(Get_MqWaitOnEventE_FromObj)(MK_RT_ARGS OT_ENV_T interp, OT_OBJ_T enumE, enum MqWaitOnEventE *ret);
219#define Get_MqWaitOnEventE_FromObj_path MQ(Get_MqWaitOnEventE_FromObj)
220
221// END-enum - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
222
223// BEGIN-enum-tostring - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
224
225#define OT_NEW_Mq_enum_OBJ(typ,val) MQ(Mq ## typ ## _ToString(val))
226
228
230
232
234
236
237// END-enum-tostring - created by 'tcl_MqS.tcl -i NHI1_HOME/theLink/c/gen/c_mqmsgque.meta' - DO NOT change
238
239/*****************************************************************************/
240/* */
241/* inline functions */
242/* */
243/*****************************************************************************/
244
245#undef HEADER
tag: nhi1-release-250425
#define MK(n)
Tcl_Class OT_CLS_T
Tcl_Namespace * OT_NS_T
Tcl_Interp * OT_ENV_T
Tcl_Obj * OT_OBJ_T
#define MQ(n)
#define NS(n)
#define MQ_TCL_EXTERN_DATA
#define MqContextC_ARGS
#define MQ_TCL_EXTERN
static library
OT_ProcRet NS MqContextC_ReadLIST(MqContextC_ARGS)
OT_ProcRet NS MqContextC_ReadNEXT(MqContextC_ARGS)
#define MK_DECL
#define mk_inline
#define MK_ARTIFICIAL
MkErrorE
#define MkThreadLocal
#define MK_RT_CALL
#define MK_RT_ARGS
#define MqContextC_type
same as MqContextS but useable in a class-macro as: class##_type …
#define MqContextC_X2obj(x)
#define MQ_SERVICE_FREE_ARGS
the MqDataFreeF arguments with default names
#define MQ_SERVICE_CALL_ARGS
the MqTokenF arguments with default names
#define MQ_SERVICE_COPY_ARGS
the MqDataFreeF arguments with default names
#define MqDumpC_X2obj(x)
#define MqDumpC_type
same as MqDumpS but useable in a class-macro as: class##_type …
#define MqFactoryC_X2obj(x)
#define MqFactoryC_type
same as MqFactoryS but useable in a class-macro as: class##_type …
MK_STRN MqWaitOnEventE_ToString(enum MqWaitOnEventE value)
return the MqWaitOnEventE as string …
MqWaitOnEventE
wait for an event? …
MqSlaveE
predefined slave-id for well known slaves …
MK_STRN MqStatusIsEF_ToString(enum MqStatusIsEF value)
return the MqStatusIsEF as string …
MqIdentE
identify the application using prefix (default) or factory …
MK_STRN MqSlaveE_ToString(enum MqSlaveE value)
return the MqSlaveE as string …
MqStartE
User preferences on HOWTO start a new entity.
MqStatusIsEF
Information about how the context was created.
MK_STRN MqIdentE_ToString(enum MqIdentE value)
return the MqIdentE as string …
MK_STRN MqStartE_ToString(enum MqStartE value)
return the MqStartE as string …
tag: nhi1-release-250425
tag: nhi1-release-250425
PUBLIC data structure for the tclmqmsgque-specific-data
OT_OBJ_T my
"my" command of "mqctx"
struct MqContextS mqctx
link to the tclmqmsgque object