theLink 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - cs - py - rb - jv - cc
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 904 of file MqContextC_py.c.

904 {
906 OT_SETUP_VARARGS(0,1,ConfigSetBgError_doc)
907 OT_SETUP_CALLABLE(callback)
908 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
909 OT_CHECK_NOARGS
910 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
911 MqConfigSetBgError (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
912 OT_retObj_SET_None
913 goto end;
914 error:
915 OT_retObj_SET_Error
916 end:
917 OT_CLEANUP_CALLABLE(callback)
919}
#define ConfigSetBgError_doc
#define OT_SETUP_hdl
#define OT_retObj_RETURN
#define error
#define MqConfigSetBgError(...)
MqTokenF MqServiceCallbackF
MqContextC - the callback-function is used as a service-handle or as a event-handle …

◆ 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 922 of file MqContextC_py.c.

922 {
924 OT_SETUP_VARARGS(0,1,ConfigSetEvent_doc)
925 OT_SETUP_CALLABLE(callback)
926 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
927 OT_CHECK_NOARGS
928 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
929 MqConfigSetEvent (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
930 OT_retObj_SET_None
931 goto end;
932 error:
933 OT_retObj_SET_Error
934 end:
935 OT_CLEANUP_CALLABLE(callback)
937}
#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 940 of file MqContextC_py.c.

940 {
942 OT_SETUP_VARARGS(0,1,ConfigSetServerCleanup_doc)
943 OT_SETUP_CALLABLE(callback)
944 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
945 OT_CHECK_NOARGS
946 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
947 MqConfigSetServerCleanup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
948 OT_retObj_SET_None
949 goto end;
950 error:
951 OT_retObj_SET_Error
952 end:
953 OT_CLEANUP_CALLABLE(callback)
955}
#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 958 of file MqContextC_py.c.

958 {
960 OT_SETUP_VARARGS(0,1,ConfigSetServerSetup_doc)
961 OT_SETUP_CALLABLE(callback)
962 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
963 OT_CHECK_NOARGS
964 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
965 MqConfigSetServerSetup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
966 OT_retObj_SET_None
967 goto end;
968 error:
969 OT_retObj_SET_Error
970 end:
971 OT_CLEANUP_CALLABLE(callback)
973}
#define ConfigSetServerSetup_doc
#define MqConfigSetServerSetup(...)