theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ConfigApi_Interface_PY_API

MqContextC - various function to setup a interface for the contextMore...

+ Collaboration diagram for MqContextC_ConfigApi_Interface_PY_API:

Functions

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetBgError (MqContextC_ARGS)
  Python: ctx.ConfigSetBgError(?callback:callable=None?) C-API
set the MqSetupS::BgError
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetEvent (MqContextC_ARGS)
  Python: ctx.ConfigSetEvent(?callback:callable=None?) C-API
set the MqSetupS::Event
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetServerCleanup (MqContextC_ARGS)
  Python: ctx.ConfigSetServerCleanup(?callback:callable=None?) C-API
set the MqSetupS::ServerCleanup
 
static OT_ProcRet pymqmsgque_MqContextC_ConfigSetServerSetup (MqContextC_ARGS)
  Python: ctx.ConfigSetServerSetup(?callback:callable=None?) C-API
set the MqSetupS::ServerSetup
 

Detailed Description

MqContextC - various function to setup a interface for the context

The "Setup"-Callback is special because this callback have to be callable by the server child and/or the slave context.

To distinguish the server child and slave the following functions are used:

Function Documentation

◆ pymqmsgque_MqContextC_ConfigSetBgError()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetBgError ( MqContextC_ARGS )
static

Python: ctx.ConfigSetBgError(?callback:callable=None?) C-API
set the MqSetupS::BgError

Definition at line 903 of file MqContextC_py.c.

903 {
906 OT_SETUP_CALLABLE(callback)
909 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
910 MqConfigSetBgError (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
912 goto end;
913 error:
915 end:
916 OT_CLEANUP_CALLABLE(callback)
918}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#define OT_retObj_SET_None
#define OT_retObj_RETURN
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_NOARGS
#define NS(n)
#define ConfigSetBgError_doc
#define OT_SETUP_hdl
#define error
Definition high_lng.h:339
#define MqConfigSetBgError(...)
MqTokenF MqServiceCallbackF
MqContextC - the callback-function is used as a service-handle or as a event-handle …
#define OT_CHECK_CALLABLE(val)
#define OT_CLEANUP_CALLABLE(val)
#define OT_SETUP_CALLABLE(val)

◆ pymqmsgque_MqContextC_ConfigSetEvent()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetEvent ( MqContextC_ARGS )
static

Python: ctx.ConfigSetEvent(?callback:callable=None?) C-API
set the MqSetupS::Event

Definition at line 921 of file MqContextC_py.c.

921 {
924 OT_SETUP_CALLABLE(callback)
927 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
928 MqConfigSetEvent (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
930 goto end;
931 error:
933 end:
934 OT_CLEANUP_CALLABLE(callback)
936}
#define ConfigSetEvent_doc
#define MqConfigSetEvent(...)

◆ pymqmsgque_MqContextC_ConfigSetServerCleanup()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetServerCleanup ( MqContextC_ARGS )
static

Python: ctx.ConfigSetServerCleanup(?callback:callable=None?) C-API
set the MqSetupS::ServerCleanup

Definition at line 939 of file MqContextC_py.c.

939 {
942 OT_SETUP_CALLABLE(callback)
945 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
946 MqConfigSetServerCleanup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
948 goto end;
949 error:
951 end:
952 OT_CLEANUP_CALLABLE(callback)
954}
#define ConfigSetServerCleanup_doc
#define MqConfigSetServerCleanup(...)

◆ pymqmsgque_MqContextC_ConfigSetServerSetup()

static OT_ProcRet pymqmsgque_MqContextC_ConfigSetServerSetup ( MqContextC_ARGS )
static

Python: ctx.ConfigSetServerSetup(?callback:callable=None?) C-API
set the MqSetupS::ServerSetup

Definition at line 957 of file MqContextC_py.c.

957 {
960 OT_SETUP_CALLABLE(callback)
963 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
964 MqConfigSetServerSetup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
966 goto end;
967 error:
969 end:
970 OT_CLEANUP_CALLABLE(callback)
972}
#define ConfigSetServerSetup_doc
#define MqConfigSetServerSetup(...)