main 9.0
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
aguard.c File Reference

aguard.c - 17 Jan 2020 - aotto1968 More...

#include "common.h"
#include "aguard_crypt.h"
+ Include dependency graph for aguard.c:

Go to the source code of this file.

Data Structures

struct  AGuardCtxS
 

Macros

#define NHI1_FILE_NAME   "AGuard.c"
 
#define META_CONTEXT_S   mqctx
 
#define ENCRYPT   true
 
#define DECRYPT   false
 
#define AGuardT   ((typeof(MqContextC_T)) AGuardTT)
 
#define check_MqError(E)   if (MkErrorCheckI(E))
 
#define myctx   ((struct AGuardCtxS*)META_CONTEXT_S)
 
#define MqReadDump_E(mqctx, dumpP)   if (MkErrorCheckI(MqReadDump( MK_RT_CALL mqctx,dumpP))) goto error
 
#define GuardReturn(PROC)
 

Functions

static enum MkErrorE sProxySubCall (MK_RT const mkrt, MQ_CTX const targetCtx, MK_PTR const data)
 
static enum MkErrorE MqReadDump (MK_RT const mkrt, MQ_CTX const mqctx, struct MqDumpS **dumpP)
 
static enum MkErrorE PkgToGrx2 (MK_RT const mkrt, MQ_CTX const mqctx, MQ_TOK const token, MQ_CTX const otherCtx, MQ_LTR otherLId)
 
static enum MkErrorE PkgToGrp (MQ_CALLBACK_SERVICE_CALL_ARGS)
 
static enum MkErrorE TrtToGrt (MQ_CALLBACK_SERVICE_CALL_ARGS)
 
static enum MkErrorE GrxToPkgError (MK_RT const mkrt, MQ_CTX const mqctx)
 
static enum MkErrorE GrxToPkg2 (MK_RT const mkrt, MQ_CTX const mqctx, MQ_TOK const intoken, MQ_CTX const otherCtx, MQ_LTR otherLId)
 
static enum MkErrorE GrpToPkg (MQ_CALLBACK_SERVICE_CALL_ARGS)
 
static enum MkErrorE GrtToTrt (MQ_CALLBACK_SERVICE_CALL_ARGS)
 
static enum MkErrorE FilterCleanup (MQ_CALLBACK_SERVICE_CALL_ARGS)
 
static enum MkErrorE FilterSetup (MQ_CALLBACK_SERVICE_CALL_ARGS)
 
static enum MkErrorE FilterFactory (MQ_CALLBACK_FACTORY_CTOR_ARGS)
 
int main (const int argc, MK_STRN argv[])
 

Variables

static MK_TYP AGuardTT = NULL
 

Detailed Description

aguard.c - 17 Jan 2020 - aotto1968

Version
72c6f965d2b1cf694c1a3675ac4ebb3caac8909d
Date
Fri Jan 17 13:14:06 2020 +0100
Author
aotto1968 aotto.nosp@m.1968.nosp@m.@t-on.nosp@m.line.nosp@m..de

Definition in file aguard.c.

Macro Definition Documentation

◆ AGuardT

#define AGuardT   ((typeof(MqContextC_T)) AGuardTT)

Definition at line 35 of file aguard.c.

◆ check_MqError

#define check_MqError (   E)    if (MkErrorCheckI(E))

Definition at line 46 of file aguard.c.

◆ DECRYPT

#define DECRYPT   false

Definition at line 23 of file aguard.c.

◆ ENCRYPT

#define ENCRYPT   true

Definition at line 22 of file aguard.c.

◆ GuardReturn

#define GuardReturn (   PROC)
Value:
switch (PROC) {\
case MK_OK: return MK_OK; \
case MK_CONTINUE: goto done; \
default: return MkErrorStack_1X (META_CONTEXT_S); \
}
#define META_CONTEXT_S
Definition aguard.c:20
MK_NUM selKey
#define MkErrorStack_1X(...)
MK_CONTINUE
MK_OK

Definition at line 319 of file aguard.c.

◆ META_CONTEXT_S

#define META_CONTEXT_S   mqctx

Definition at line 20 of file aguard.c.

◆ MqReadDump_E

#define MqReadDump_E (   mqctx,
  dumpP 
)    if (MkErrorCheckI(MqReadDump( MK_RT_CALL mqctx,dumpP))) goto error

Definition at line 81 of file aguard.c.

◆ myctx

Definition at line 53 of file aguard.c.

◆ NHI1_FILE_NAME

#define NHI1_FILE_NAME   "AGuard.c"

Definition at line 14 of file aguard.c.

Function Documentation

◆ FilterCleanup()

static enum MkErrorE FilterCleanup ( MQ_CALLBACK_SERVICE_CALL_ARGS  )
static

Definition at line 563 of file aguard.c.

+ Here is the caller graph for this function:

◆ FilterFactory()

static enum MkErrorE FilterFactory ( MQ_CALLBACK_FACTORY_CTOR_ARGS  )
static

Definition at line 646 of file aguard.c.

+ Here is the caller graph for this function:

◆ FilterSetup()

Definition at line 570 of file aguard.c.

+ Here is the caller graph for this function:

◆ GrpToPkg()

Definition at line 479 of file aguard.c.

+ Here is the caller graph for this function:

◆ GrtToTrt()

Definition at line 495 of file aguard.c.

+ Here is the caller graph for this function:

◆ GrxToPkg2()

static enum MkErrorE GrxToPkg2 ( MK_RT const  mkrt,
MQ_CTX const  mqctx,
MQ_TOK const  intoken,
MQ_CTX const  otherCtx,
MQ_LTR  otherLId 
)
static

Definition at line 327 of file aguard.c.

+ Here is the caller graph for this function:

◆ GrxToPkgError()

static enum MkErrorE GrxToPkgError ( MK_RT const  mkrt,
MQ_CTX const  mqctx 
)
static

Definition at line 293 of file aguard.c.

+ Here is the caller graph for this function:

◆ main()

int main ( const int  argc,
MK_STRN  argv[] 
)

Definition at line 668 of file aguard.c.

◆ MqReadDump()

static enum MkErrorE MqReadDump ( MK_RT const  mkrt,
MQ_CTX const  mqctx,
struct MqDumpS **  dumpP 
)
inlinestatic

Definition at line 71 of file aguard.c.

◆ PkgToGrp()

Definition at line 235 of file aguard.c.

+ Here is the caller graph for this function:

◆ PkgToGrx2()

static enum MkErrorE PkgToGrx2 ( MK_RT const  mkrt,
MQ_CTX const  mqctx,
MQ_TOK const  token,
MQ_CTX const  otherCtx,
MQ_LTR  otherLId 
)
static

Definition at line 84 of file aguard.c.

+ Here is the caller graph for this function:

◆ sProxySubCall()

static enum MkErrorE sProxySubCall ( MK_RT const  mkrt,
MQ_CTX const  targetCtx,
MK_PTR const  data 
)
static

Definition at line 56 of file aguard.c.

+ Here is the caller graph for this function:

◆ TrtToGrt()

Definition at line 254 of file aguard.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ AGuardTT

MK_TYP AGuardTT = NULL
static

Definition at line 34 of file aguard.c.