Loading...
Searching...
No Matches
MqContextC_Misc_PY_API

MqContextC - various functions to work on a contextMore...

+ Collaboration diagram for MqContextC_Misc_PY_API:

Functions

static OT_ProcRet py_mqmsgque_MqContextC_GetBuffer (MqContextC_ARGS)
  Python: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object
 
static OT_ProcRet py_mqmsgque_MqContextC_GetRoot (MqContextC_ARGS)
  Python: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
static OT_ProcRet py_mqmsgque_MqContextC_ToString (MqContextC_ARGS)
  Python: string ctx.ToString() C-API
String-Slot - returns the string representation of the inst
 
static OT_ProcRet py_mqmsgque_MqContextC_Exit (MqContextC_ARGS)
  Python: ctx.Exit(?callfunc:string="MK_NULL"?, ?callfile:string="MK_NULL"?, ?callline:int32=-1?) C-API
delete the context and exit the current process or thread …
 
static OT_ProcRet py_mqmsgque_MqContextC_ProcessEvent (MqContextC_ARGS)
  Python: ctx.ProcessEvent(?wait:MqWaitOnEventE=NO?, ?timeout:MkTimeoutE|int32=DEFAULT?) C-API
enter the event-loop and wait for an incoming service-request. …
 

Detailed Description

MqContextC - various functions to work on a context

Function Documentation

◆ py_mqmsgque_MqContextC_Exit()

static OT_ProcRet py_mqmsgque_MqContextC_Exit ( MqContextC_ARGS )
static

Python: ctx.Exit(?callfunc:string="MK_NULL"?, ?callfile:string="MK_NULL"?, ?callline:int32=-1?) C-API
delete the context and exit the current process or thread …

Definition at line 1865 of file MqContextC_py.c.

1865 {
1867 OT_SETUP_VARARGS(0,3,Exit_doc)
1868 MK_STRN callfunc = NULL;
1869 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfunc))
1870 MK_STRN callfile = NULL;
1871 OT_CHECK_OPTIONAL(OT_CHECK_STRN (callfile))
1872 MK_I32 callline = -1;
1873 OT_CHECK_OPTIONAL(OT_CHECK_NI4 (callline))
1874 OT_CHECK_NOARGS
1875 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
1876 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
1877 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
1878 OT_FRAME_CLEANUP;
1879 MqExit (hdl, callfunc, callfile, callline);
1880 OT_retObj_SET_None
1881 goto end;
1882 error:
1883 OT_retObj_SET_Error
1884 end:
1886}
#define OT_SETUP_hdl
#define Exit_doc
#define OT_retObj_RETURN
#define error
const MK_STRB * MK_STRN
signed int MK_I32
bool MkSysStringIsNULL(MK_STRN str)
#define MqExit(...)

◆ py_mqmsgque_MqContextC_GetBuffer()

static OT_ProcRet py_mqmsgque_MqContextC_GetBuffer ( MqContextC_ARGS )
static

Python: MkBufferC ctx.GetBuffer() C-API
get the MqContextS::ctxbuf object

Definition at line 1822 of file MqContextC_py.c.

1822 {
1824 OT_SETUP_NOARG(GetBuffer_doc)
1825 OT_CHECK_NOARGS
1826 MK_BUF retVal = MqContextGetBuffer (hdl);
1827 OT_retObj_SET_BUF(retVal)
1828 goto end;
1829 error:
1830 OT_retObj_SET_Error
1831 end:
1833}
#define GetBuffer_doc
#define MqContextGetBuffer(...)

◆ py_mqmsgque_MqContextC_GetRoot()

static OT_ProcRet py_mqmsgque_MqContextC_GetRoot ( MqContextC_ARGS )
static

Python: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)

Definition at line 1836 of file MqContextC_py.c.

1836 {
1838 OT_SETUP_NOARG(GetRoot_doc)
1839 OT_CHECK_NOARGS
1840 MQ_CTX retVal = MqGetRoot (hdl);
1841 OT_retObj_SET_CTX(retVal)
1842 goto end;
1843 error:
1844 OT_retObj_SET_Error
1845 end:
1847}
#define GetRoot_doc
MQ_CTX MqGetRoot(MQ_CTX ctx)
get the Root (toplevel initial context)
PUBLIC data structure for the pymqmsgque-specific-data

◆ py_mqmsgque_MqContextC_ProcessEvent()

static OT_ProcRet py_mqmsgque_MqContextC_ProcessEvent ( MqContextC_ARGS )
static

Python: ctx.ProcessEvent(?wait:MqWaitOnEventE=NO?, ?timeout:MkTimeoutE|int32=DEFAULT?) C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 1889 of file MqContextC_py.c.

1889 {
1891 OT_SETUP_VARARGS(0,2,ProcessEvent_doc)
1892 enum MqWaitOnEventE wait = MQ_WAIT_NO;
1893 OT_CHECK_OPTIONAL(OT_CHECK_ENUM (MqWaitOnEventE,wait))
1894 MK_TIME_T timeout = MK_TIMEOUT_DEFAULT;
1895 OT_CHECK_OPTIONAL(OT_CHECK_TIME_T (timeout))
1896 OT_CHECK_NOARGS
1897 MkErrorC_Check(hdl,MqProcessEvent (hdl, wait, timeout));
1898 OT_retObj_SET_None
1899 goto end;
1900 error:
1901 OT_retObj_SET_Error
1902 end:
1904}
#define ProcessEvent_doc
MK_TIMEOUT_DEFAULT
time_t MK_TIME_T
#define MqProcessEvent(...)
MqWaitOnEventE
wait for an event? …
@ MQ_WAIT_NO
Check for one event but do not wait …

◆ py_mqmsgque_MqContextC_ToString()

static OT_ProcRet py_mqmsgque_MqContextC_ToString ( MqContextC_ARGS )
static

Python: string ctx.ToString() C-API
String-Slot - returns the string representation of the inst

Definition at line 1852 of file MqContextC_py.c.

1852 {
1854 OT_SETUP_NOARG(ToString_doc)
1855 OT_CHECK_NOARGS
1856 OT_retObj_SET_STR(MqContextToString (hdl))
1857 goto end;
1858 error:
1859 OT_retObj_SET_Error
1860 end:
1862}
#define ToString_doc
#define MqContextToString(...)