theLink 10.0
Loading...
Searching...
No Matches
MqContextC_ConfigApi_Get_C_API

MqContextC - various function to 'get' the configuration-data from a contextMore...

+ Collaboration diagram for MqContextC_ConfigApi_Get_C_API:

Functions

static bool MqConfigGetIsServer (MQ_CTX const ctx)
 does the context object is a server ?
 
static enum MqIdentE MqConfigGetIdentFrom (MQ_CTX const ctx)
 get the MqConfigS::identFrom
 
static bool MqConfigGetIsParent (MQ_CTX const ctx)
 does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is MK_NULL
 
static bool MqConfigGetIsString (MQ_CTX const ctx)
 does the context object is using the string-mode ?
 
static MK_STRN MqConfigGetName (MQ_CTXN const ctx)
 get the name of the context object
 
static MK_STRN MqConfigGetPrefix (MQ_CTXN const ctx)
 get the MqConfigS::dispPrefix
 
static MK_STRN MqConfigGetPostfix (MQ_CTXN const ctx)
 get the MqConfigS::dispPostfix
 
static MK_STRN MqConfigGetStorage (MQ_CTXN const ctx)
 get the storage of the context object
 
static MK_I32 MqConfigGetBuffersize (MQ_CTXN const ctx)
 get the minimum of the read/send buffersize of the socket
 
static MK_I32 MqConfigGetPkgsize (MQ_CTXN const ctx)
 get the maximun size of a BDY package
 
static MK_TIME_T MqConfigGetTimeout (MQ_CTXN const ctx)
 get the timeout value of the context object
 
static MK_STRN MqConfigGetIoUds (MQ_CTXN const ctx)
 return the MqIoUdsConfigS
 
enum MkErrorE MqConfigGetIoTcp (MQ_CTX const ctx, MK_STRN *host_out, MK_STRN *port_out, MK_STRN *myhost_out, MK_STRN *myport_out)
 get the configuration-data of the tcp-client-server-link
 
enum MkErrorE MqConfigGetIoTcpL_RT (MK_RT mkrt, MQ_CTX const ctx, MK_BFL *vals_out)
 get the configuration-data of the tcp-client-server-link as MkBufferListC
 
static MQ_SOCK_HDL MqConfigGetIoPipe (MQ_CTX const ctx)
 return the MqIoPipeConfigS
 
static enum MqStartE MqConfigGetStartAs (MQ_CTX const ctx)
 return the MqConfigS::startAs value
 
static enum MqStatusIsEF MqConfigGetStatusIs (MQ_CTX const ctx)
 return the MqContextS::statusIs value
 
config_tMqConfigGetConfigFile (MQ_CTX const ctx)
 get the config-file handle used for libconfig API funtions
 
config_setting_tMqConfigGetConfigRoot (MQ_CTX const ctx)
 get the config-root handle used for libconfig API funtions
 
enum MkErrorE MqConfigSetConfigFile_RT (MK_RT mkrt, MQ_CTX const ctx, MK_STRN const filename)
 set the config-file and parse for well-known config-items
 

MqContextC - MqContextC_ConfigApi_Get_C_API - function

MK_I32 MqConfigGetBuffersizeP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetBuffersize
 
enum MqIdentE MqConfigGetIdentFromP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetIdentFrom
 
MQ_SOCK_HDL MqConfigGetIoPipeP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetIoPipe
 
MK_STRN MqConfigGetIoUdsP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetIoUds
 
MK_BOOL MqConfigGetIsParentP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetIsParent
 
MK_BOOL MqConfigGetIsServerP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetIsServer
 
MK_BOOL MqConfigGetIsStringP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetIsString
 
MK_STRN MqConfigGetNameP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetName
 
MK_I32 MqConfigGetPkgsizeP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetPkgsize
 
MK_STRN MqConfigGetPostfixP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetPostfix
 
MK_STRN MqConfigGetPrefixP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetPrefix
 
enum MqStartE MqConfigGetStartAsP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetStartAs
 
enum MqStatusIsEF MqConfigGetStatusIsP (MQ_CTX const ctx)
 Non-inline replacement for MqConfigGetStatusIs
 
MK_STRN MqConfigGetStorageP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetStorage
 
MK_TIME_T MqConfigGetTimeoutP (MQ_CTXN const ctx)
 Non-inline replacement for MqConfigGetTimeout
 
#define MQ_IS_SERVER(ctx)
 extract boolean information from context
 
#define MQ_IS_SERVER_PARENT(ctx)
 
#define MQ_IS_CLIENT(ctx)
 
#define MQ_IS_CLIENT_PARENT(ctx)
 
#define MQ_IS_CHILD(ctx)
 
#define MQ_IS_PARENT(ctx)
 
#define MQ_IS_SLAVE(ctx)
 
#define MQ_IS_MASTER(ctx)
 
#define MQ_IS_LOOPBACK(ctx)
 
#define MQ_GET_PARENT(ctx)
 
#define MQ_GET_MASTER(ctx)
 
#define MQ_IS_ON_EXIT(ctx)
 

MqContextC - MqContextC_ConfigApi_Get_C_API - overload

#define MqConfigGetIoTcpL_NULL(...)
 
#define MqConfigGetIoTcpL(...)
 
#define MqConfigGetIoTcpL_E(...)
 
#define MqConfigGetIoTcpL_C(...)
 
#define MqConfigGetIoTcpL_e(...)
 
#define MqConfigSetConfigFile_NULL(...)
 
#define MqConfigSetConfigFile(...)
 
#define MqConfigSetConfigFile_E(...)
 
#define MqConfigSetConfigFile_C(...)
 
#define MqConfigGetIoTcp_E(...)
 
#define MqConfigGetIoTcp_C(...)
 

Detailed Description

MqContextC - various function to 'get' the configuration-data from a context

Macro Definition Documentation

◆ MQ_GET_MASTER

#define MQ_GET_MASTER ( ctx)
Value:
(MQ_IS_SLAVE(ctx) ? ctx->config.master : ctx)
#define MQ_IS_SLAVE(ctx)

Definition at line 2467 of file LibMqMsgque_mq.h.

◆ MQ_GET_PARENT

#define MQ_GET_PARENT ( ctx)
Value:
(MQ_IS_CHILD(ctx) ? ctx->link.ctxIdP : ctx)
#define MQ_IS_CHILD(ctx)

Definition at line 2466 of file LibMqMsgque_mq.h.

◆ MQ_IS_CHILD

#define MQ_IS_CHILD ( ctx)
Value:
((ctx)->config.parent != NULL)

Definition at line 2460 of file LibMqMsgque_mq.h.

◆ MQ_IS_CLIENT

#define MQ_IS_CLIENT ( ctx)
Value:
(ctx->setup.isServer == false)

Definition at line 2458 of file LibMqMsgque_mq.h.

◆ MQ_IS_CLIENT_PARENT

#define MQ_IS_CLIENT_PARENT ( ctx)
Value:
(MQ_IS_CLIENT(ctx) && MQ_IS_PARENT(ctx))
#define MQ_IS_PARENT(ctx)
#define MQ_IS_CLIENT(ctx)

Definition at line 2459 of file LibMqMsgque_mq.h.

◆ MQ_IS_LOOPBACK

#define MQ_IS_LOOPBACK ( ctx)
Value:
((ctx)->config.io.com == MQ_IO_LOOP)
@ MQ_IO_LOOP
using pipe socket as stdin and stdout

Definition at line 2464 of file LibMqMsgque_mq.h.

◆ MQ_IS_MASTER

#define MQ_IS_MASTER ( ctx)
Value:
((ctx)->config.master == NULL)

Definition at line 2463 of file LibMqMsgque_mq.h.

◆ MQ_IS_ON_EXIT

#define MQ_IS_ON_EXIT ( ctx)
Value:
(MQ_GET_PARENT(ctx)->bits.onExit == true)
#define MQ_GET_PARENT(ctx)

Definition at line 2469 of file LibMqMsgque_mq.h.

◆ MQ_IS_PARENT

#define MQ_IS_PARENT ( ctx)
Value:
((ctx)->config.parent == NULL)

Definition at line 2461 of file LibMqMsgque_mq.h.

◆ MQ_IS_SERVER

#define MQ_IS_SERVER ( ctx)
Value:
(ctx->setup.isServer == true)

extract boolean information from context

Definition at line 2456 of file LibMqMsgque_mq.h.

◆ MQ_IS_SERVER_PARENT

#define MQ_IS_SERVER_PARENT ( ctx)
Value:
(MQ_IS_SERVER(ctx) && MQ_IS_PARENT(ctx))
#define MQ_IS_SERVER(ctx)
extract boolean information from context

Definition at line 2457 of file LibMqMsgque_mq.h.

◆ MQ_IS_SLAVE

#define MQ_IS_SLAVE ( ctx)
Value:
((ctx)->config.master != NULL)

Definition at line 2462 of file LibMqMsgque_mq.h.

◆ MqConfigGetIoTcp_C

#define MqConfigGetIoTcp_C ( ...)
Value:
if (MkErrorCheckI(MqConfigGetIoTcp(__VA_ARGS__)))
enum MkErrorE MqConfigGetIoTcp(MQ_CTX const ctx, MK_STRN *host_out, MK_STRN *port_out, MK_STRN *myhost_out, MK_STRN *myport_out)
get the configuration-data of the tcp-client-server-link …

Definition at line 77 of file msgque_overload_mq.h.

◆ MqConfigGetIoTcp_E

#define MqConfigGetIoTcp_E ( ...)
Value:
MkErrorCheck(MqConfigGetIoTcp(__VA_ARGS__))

Definition at line 76 of file msgque_overload_mq.h.

◆ MqConfigGetIoTcpL

#define MqConfigGetIoTcpL ( ...)
Value:
#define MK_RT_CALL
enum MkErrorE MqConfigGetIoTcpL_RT(MK_RT mkrt, MQ_CTX const ctx, MK_BFL *vals_out)
get the configuration-data of the tcp-client-server-link as MkBufferListC …

Definition at line 64 of file msgque_overload_mq.h.

◆ MqConfigGetIoTcpL_C

#define MqConfigGetIoTcpL_C ( ...)
Value:
if (MkErrorCheckI(MqConfigGetIoTcpL(__VA_ARGS__)))
#define MqConfigGetIoTcpL(...)

Definition at line 66 of file msgque_overload_mq.h.

◆ MqConfigGetIoTcpL_E

#define MqConfigGetIoTcpL_E ( ...)
Value:
MkErrorCheck(MqConfigGetIoTcpL(__VA_ARGS__))

Definition at line 65 of file msgque_overload_mq.h.

◆ MqConfigGetIoTcpL_e

#define MqConfigGetIoTcpL_e ( ...)
Value:
MK_EMBEDDED(MK_BFL,MqConfigGetIoTcpL,__VA_ARGS__)

Definition at line 67 of file msgque_overload_mq.h.

◆ MqConfigGetIoTcpL_NULL

#define MqConfigGetIoTcpL_NULL ( ...)
Value:
#define MK_RT_CALL_NULL

Definition at line 63 of file msgque_overload_mq.h.

◆ MqConfigSetConfigFile

#define MqConfigSetConfigFile ( ...)
Value:
enum MkErrorE MqConfigSetConfigFile_RT(MK_RT mkrt, MQ_CTX const ctx, MK_STRN const filename)
set the config-file and parse for well-known config-items

Definition at line 71 of file msgque_overload_mq.h.

◆ MqConfigSetConfigFile_C

#define MqConfigSetConfigFile_C ( ...)
Value:
if (MkErrorCheckI(MqConfigSetConfigFile(__VA_ARGS__)))
#define MqConfigSetConfigFile(...)

Definition at line 73 of file msgque_overload_mq.h.

◆ MqConfigSetConfigFile_E

#define MqConfigSetConfigFile_E ( ...)
Value:
MkErrorCheck(MqConfigSetConfigFile(__VA_ARGS__))

Definition at line 72 of file msgque_overload_mq.h.

◆ MqConfigSetConfigFile_NULL

#define MqConfigSetConfigFile_NULL ( ...)
Value:

Definition at line 70 of file msgque_overload_mq.h.

Function Documentation

◆ MqConfigGetBuffersize()

static MK_I32 MqConfigGetBuffersize ( MQ_CTXN const ctx)
inlinestatic

get the minimum of the read/send buffersize of the socket

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the context.config.buffersize(R/S) value

Definition at line 8460 of file LibMqMsgque_mq.h.

8462 {
8463 MK_INSTANCE_HDL(ctx);
8464 return (ctx)->config.io.buffersize;
8465}
#define MK_INSTANCE_HDL(x)

◆ MqConfigGetBuffersizeP()

MK_I32 MqConfigGetBuffersizeP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetBuffersize

◆ MqConfigGetConfigFile()

config_t * MqConfigGetConfigFile ( MQ_CTX const ctx)

get the config-file handle used for libconfig API funtions

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the MqConfigS::cfg value or MK_NULL if no config-file is available.

◆ MqConfigGetConfigRoot()

config_setting_t * MqConfigGetConfigRoot ( MQ_CTX const ctx)

get the config-root handle used for libconfig API funtions

The root is the place in the config-file which belongs to the MqClassIdentGet application name.

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the MqConfigS::rootH value or MK_NULL if no config-root is available.

◆ MqConfigGetIdentFrom()

static enum MqIdentE MqConfigGetIdentFrom ( MQ_CTX const ctx)
inlinestatic

get the MqConfigS::identFrom

Parameters
[in]ctxthe MqContextS instance to work on
Returns
prefix or factory

Definition at line 8373 of file LibMqMsgque_mq.h.

8375 {
8376 MK_INSTANCE_HDL(ctx);
8377 return ctx->config.identFrom;
8378}

◆ MqConfigGetIdentFromP()

enum MqIdentE MqConfigGetIdentFromP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetIdentFrom

◆ MqConfigGetIoPipe()

static MQ_SOCK_HDL MqConfigGetIoPipe ( MQ_CTX const ctx)
inlinestatic

return the MqIoPipeConfigS

Parameters
[in]ctxthe MqContextS instance to work on

Definition at line 8565 of file LibMqMsgque_mq.h.

8567 {
8568 MK_INSTANCE_HDL(ctx);
8569 return ctx->config.io.pipe.hdl;
8570}

◆ MqConfigGetIoPipeP()

MQ_SOCK_HDL MqConfigGetIoPipeP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetIoPipe

◆ MqConfigGetIoTcp()

enum MkErrorE MqConfigGetIoTcp ( MQ_CTX const ctx,
MK_STRN * host_out,
MK_STRN * port_out,
MK_STRN * myhost_out,
MK_STRN * myport_out )

get the configuration-data of the tcp-client-server-link

Parameters
[in]ctxthe MqContextS instance to work on
[out]host_outclient: name of the remote interface (default: localhost)
server: name of the local interface (default: listen on all interfaces)
[out]port_outclient: name of the remote port
server: name of the local port
[out]myhost_outclient: name of the local interface
[out]myport_outclient: name of the local port
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
  • if the config-value is not defined… the out-value will be set to MK_NULL
  • if the the out-value is MK_NULL … nothing will be done

◆ MqConfigGetIoTcpL_RT()

enum MkErrorE MqConfigGetIoTcpL_RT ( MK_RT mkrt,
MQ_CTX const ctx,
MK_BFL * vals_out )

get the configuration-data of the tcp-client-server-link as MkBufferListC

host
clientname of the remote interface (default: localhost)
servername of the local interface (default: listen on all interfaces
port
clientname of the remote port
servername of the local port
myhostname of the local interface
myportname of the local port
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[out]vals_outthe contain host, port, myhost and myport data
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
the vals_out is owned by libmqmsgque ... do not free !

◆ MqConfigGetIoUds()

static MK_STRN MqConfigGetIoUds ( MQ_CTXN const ctx)
inlinestatic

return the MqIoUdsConfigS

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the context.config.io.uds.file value

Definition at line 8497 of file LibMqMsgque_mq.h.

8499 {
8500 MK_INSTANCE_HDL(ctx);
8501 return MkSysStringGetNoNULL(ctx->config.io.uds.file);
8502}
static MK_STRN MkSysStringGetNoNULL(MK_STRN str)

◆ MqConfigGetIoUdsP()

MK_STRN MqConfigGetIoUdsP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetIoUds

◆ MqConfigGetIsParent()

static bool MqConfigGetIsParent ( MQ_CTX const ctx)
inlinestatic

does the context object is a parent ? An objext is a parent id the MqConfigS::parent attribute is MK_NULL

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the (ctx->config.parent == NULL) value

Definition at line 8385 of file LibMqMsgque_mq.h.

8387 {
8388 MK_INSTANCE_HDL(ctx);
8389 return MQ_IS_PARENT(ctx);
8390}

◆ MqConfigGetIsParentP()

MK_BOOL MqConfigGetIsParentP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetIsParent

◆ MqConfigGetIsServer()

static bool MqConfigGetIsServer ( MQ_CTX const ctx)
inlinestatic

does the context object is a server ?

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the (ctx->setup.isServer == true) value

Definition at line 8362 of file LibMqMsgque_mq.h.

8364 {
8365 MK_INSTANCE_HDL(ctx);
8366 return MQ_IS_SERVER(ctx);
8367}

◆ MqConfigGetIsServerP()

MK_BOOL MqConfigGetIsServerP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetIsServer

◆ MqConfigGetIsString()

static bool MqConfigGetIsString ( MQ_CTX const ctx)
inlinestatic

does the context object is using the string-mode ?

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the (ctx->config.native == 'S') value

Definition at line 8396 of file LibMqMsgque_mq.h.

8398 {
8399 MK_INSTANCE_HDL(ctx);
8400 return (ctx->config.native == MK_NATIVE_IS_STRING);
8401}
MK_NATIVE_IS_STRING

◆ MqConfigGetIsStringP()

MK_BOOL MqConfigGetIsStringP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetIsString

◆ MqConfigGetName()

static MK_STRN MqConfigGetName ( MQ_CTXN const ctx)
inlinestatic

get the name of the context object

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the context.config.name value
Attention
the string is owned by libmqmsgque -> do not free !!

Definition at line 8409 of file LibMqMsgque_mq.h.

8411 {
8412 MK_INSTANCE_HDL(ctx);
8413 return MkSysStringGetNoNULL((ctx)->config.dispName);
8414}

◆ MqConfigGetNameP()

MK_STRN MqConfigGetNameP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetName

◆ MqConfigGetPkgsize()

static MK_I32 MqConfigGetPkgsize ( MQ_CTXN const ctx)
inlinestatic

get the maximun size of a BDY package

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the context.config.pkgsize(R/S) value

Definition at line 8472 of file LibMqMsgque_mq.h.

8474 {
8475 MK_INSTANCE_HDL(ctx);
8476 return (ctx)->config.io.pkgsize;
8477}

◆ MqConfigGetPkgsizeP()

MK_I32 MqConfigGetPkgsizeP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetPkgsize

◆ MqConfigGetPostfix()

static MK_STRN MqConfigGetPostfix ( MQ_CTXN const ctx)
inlinestatic

get the MqConfigS::dispPostfix

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the value requested
Attention
the string is owned by libmqmsgque -> do not free !!

Definition at line 8435 of file LibMqMsgque_mq.h.

8437 {
8438 MK_INSTANCE_HDL(ctx);
8439 return MkSysStringGetNoNULL((ctx)->config.dispPostfix);
8440}

◆ MqConfigGetPostfixP()

MK_STRN MqConfigGetPostfixP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetPostfix

◆ MqConfigGetPrefix()

static MK_STRN MqConfigGetPrefix ( MQ_CTXN const ctx)
inlinestatic

get the MqConfigS::dispPrefix

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the value requested
Attention
the string is owned by libmqmsgque -> do not free !!

Definition at line 8422 of file LibMqMsgque_mq.h.

8424 {
8425 MK_INSTANCE_HDL(ctx);
8426 return MkSysStringGetNoNULL((ctx)->config.dispPrefix);
8427}

◆ MqConfigGetPrefixP()

MK_STRN MqConfigGetPrefixP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetPrefix

◆ MqConfigGetStartAs()

static enum MqStartE MqConfigGetStartAs ( MQ_CTX const ctx)
inlinestatic

return the MqConfigS::startAs value

Definition at line 8574 of file LibMqMsgque_mq.h.

8576 {
8577 MK_INSTANCE_HDL(ctx);
8578 return ctx->config.startAs;
8579}

◆ MqConfigGetStartAsP()

enum MqStartE MqConfigGetStartAsP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetStartAs

◆ MqConfigGetStatusIs()

static enum MqStatusIsEF MqConfigGetStatusIs ( MQ_CTX const ctx)
inlinestatic

return the MqContextS::statusIs value

Definition at line 8583 of file LibMqMsgque_mq.h.

8585 {
8586 MK_INSTANCE_HDL(ctx);
8587 return ctx->statusIs;
8588}

◆ MqConfigGetStatusIsP()

enum MqStatusIsEF MqConfigGetStatusIsP ( MQ_CTX const ctx)

Non-inline replacement for MqConfigGetStatusIs

◆ MqConfigGetStorage()

static MK_STRN MqConfigGetStorage ( MQ_CTXN const ctx)
inlinestatic

get the storage of the context object

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the context.config.storageFile value
Attention
the string is owned by libmqmsgque -> do not free !!

Definition at line 8448 of file LibMqMsgque_mq.h.

8450 {
8451 MK_INSTANCE_HDL(ctx);
8452 return MkSysStringGetNoNULL((ctx)->config.storageFile);
8453}

◆ MqConfigGetStorageP()

MK_STRN MqConfigGetStorageP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetStorage

◆ MqConfigGetTimeout()

static MK_TIME_T MqConfigGetTimeout ( MQ_CTXN const ctx)
inlinestatic

get the timeout value of the context object

Parameters
[in]ctxthe MqContextS instance to work on
Returns
the context.config.timeout value

Definition at line 8484 of file LibMqMsgque_mq.h.

8486 {
8487 MK_INSTANCE_HDL(ctx);
8488 return (ctx)->config.io.timeout;
8489}

◆ MqConfigGetTimeoutP()

MK_TIME_T MqConfigGetTimeoutP ( MQ_CTXN const ctx)

Non-inline replacement for MqConfigGetTimeout

◆ MqConfigSetConfigFile_RT()

enum MkErrorE MqConfigSetConfigFile_RT ( MK_RT mkrt,
MQ_CTX const ctx,
MK_STRN const filename )

set the config-file and parse for well-known config-items

Read more at MqConfigS::cfg

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]filenamename of the config-file for input
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk