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 py_mqmsgque_MqContextC_ConfigSetBgError (MqContextC_ARGS)
  Python: ctx.ConfigSetBgError(?callback:callable=None?) C-API
set the MqSetupS::BgError
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetEvent (MqContextC_ARGS)
  Python: ctx.ConfigSetEvent(?callback:callable=None?) C-API
set the MqSetupS::Event
 
static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetServerCleanup (MqContextC_ARGS)
  Python: ctx.ConfigSetServerCleanup(?callback:callable=None?) C-API
set the MqSetupS::ServerCleanup
 
static OT_ProcRet py_mqmsgque_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

◆ py_mqmsgque_MqContextC_ConfigSetBgError()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetBgError ( MqContextC_ARGS )
static

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

Definition at line 906 of file MqContextC_py.c.

906 {
908 OT_SETUP_VARARGS(0,1,ConfigSetBgError_doc)
909 OT_SETUP_CALLABLE(callback)
910 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
911 OT_CHECK_NOARGS
912 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
913 MqConfigSetBgError (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
914 OT_retObj_SET_None
915 goto end;
916 error:
917 OT_retObj_SET_Error
918 end:
919 OT_CLEANUP_CALLABLE(callback)
921}
#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 …

◆ py_mqmsgque_MqContextC_ConfigSetEvent()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetEvent ( MqContextC_ARGS )
static

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

Definition at line 924 of file MqContextC_py.c.

924 {
926 OT_SETUP_VARARGS(0,1,ConfigSetEvent_doc)
927 OT_SETUP_CALLABLE(callback)
928 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
929 OT_CHECK_NOARGS
930 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
931 MqConfigSetEvent (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
932 OT_retObj_SET_None
933 goto end;
934 error:
935 OT_retObj_SET_Error
936 end:
937 OT_CLEANUP_CALLABLE(callback)
939}
#define ConfigSetEvent_doc
#define MqConfigSetEvent(...)

◆ py_mqmsgque_MqContextC_ConfigSetServerCleanup()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetServerCleanup ( MqContextC_ARGS )
static

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

Definition at line 942 of file MqContextC_py.c.

942 {
944 OT_SETUP_VARARGS(0,1,ConfigSetServerCleanup_doc)
945 OT_SETUP_CALLABLE(callback)
946 OT_CHECK_OPTIONAL(OT_CHECK_CALLABLE(callback))
947 OT_CHECK_NOARGS
948 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
949 MqConfigSetServerCleanup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
950 OT_retObj_SET_None
951 goto end;
952 error:
953 OT_retObj_SET_Error
954 end:
955 OT_CLEANUP_CALLABLE(callback)
957}
#define ConfigSetServerCleanup_doc
#define MqConfigSetServerCleanup(...)

◆ py_mqmsgque_MqContextC_ConfigSetServerSetup()

static OT_ProcRet py_mqmsgque_MqContextC_ConfigSetServerSetup ( MqContextC_ARGS )
static

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

Definition at line 960 of file MqContextC_py.c.

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