theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ConfigApi_Interface_RB_API

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

+ Collaboration diagram for MqContextC_ConfigApi_Interface_RB_API:

Functions

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetBgError (MqContextC_ARGS)
  Ruby: ctx.ConfigSetBgError(?callback:callable=nil?) C-API
set the MqSetupS::BgError
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetEvent (MqContextC_ARGS)
  Ruby: ctx.ConfigSetEvent(?callback:callable=nil?) C-API
set the MqSetupS::Event
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetServerCleanup (MqContextC_ARGS)
  Ruby: ctx.ConfigSetServerCleanup(?callback:callable=nil?) C-API
set the MqSetupS::ServerCleanup
 
static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetServerSetup (MqContextC_ARGS)
  Ruby: ctx.ConfigSetServerSetup(?callback:callable=nil?) 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

◆ rbmqmsgque_MqContextC_ConfigSetBgError()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetBgError ( MqContextC_ARGS )
static

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

Definition at line 754 of file MqContextC_rb.c.

754 {
757 OT_SETUP_CALLABLE(callback)
760 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
761 MqConfigSetBgError (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
763 end: MK_UNUSED /* LONG JUMP on error */
764 OT_CLEANUP_CALLABLE(callback)
766}
#define OT_SETUP_VARARGS(min, max, d)
#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 MK_UNUSED
#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)

◆ rbmqmsgque_MqContextC_ConfigSetEvent()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetEvent ( MqContextC_ARGS )
static

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

Definition at line 769 of file MqContextC_rb.c.

769 {
772 OT_SETUP_CALLABLE(callback)
775 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
776 MqConfigSetEvent (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
778 end: MK_UNUSED /* LONG JUMP on error */
779 OT_CLEANUP_CALLABLE(callback)
781}
#define ConfigSetEvent_doc
#define MqConfigSetEvent(...)

◆ rbmqmsgque_MqContextC_ConfigSetServerCleanup()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetServerCleanup ( MqContextC_ARGS )
static

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

Definition at line 784 of file MqContextC_rb.c.

784 {
787 OT_SETUP_CALLABLE(callback)
790 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
791 MqConfigSetServerCleanup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
793 end: MK_UNUSED /* LONG JUMP on error */
794 OT_CLEANUP_CALLABLE(callback)
796}
#define ConfigSetServerCleanup_doc
#define MqConfigSetServerCleanup(...)

◆ rbmqmsgque_MqContextC_ConfigSetServerSetup()

static OT_ProcRet rbmqmsgque_MqContextC_ConfigSetServerSetup ( MqContextC_ARGS )
static

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

Definition at line 799 of file MqContextC_rb.c.

799 {
802 OT_SETUP_CALLABLE(callback)
805 MqServiceCallbackF fCall = (callback == NULL ? NULL : NS(ServiceCall));
806 MqConfigSetServerSetup (hdl, fCall, callback, NS(ServiceFree), NS(ServiceCopy));
808 end: MK_UNUSED /* LONG JUMP on error */
809 OT_CLEANUP_CALLABLE(callback)
811}
#define ConfigSetServerSetup_doc
#define MqConfigSetServerSetup(...)