diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 16:50:12 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 16:50:12 +0000 |
commit | d0a93ad442331d12ee474ee859ee4fef5474b98f (patch) | |
tree | 760285102bc407030c5161f841a0058601af08c6 /module-template.h | |
parent | edbbf96be75d5e3ada30b08d6bf7aea7881248f5 (diff) | |
download | rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.gz rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.xz rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.zip |
introduced getWriteFDForSelect() module API
Diffstat (limited to 'module-template.h')
-rw-r--r-- | module-template.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/module-template.h b/module-template.h index 8842f7e4..3a8b9129 100644 --- a/module-template.h +++ b/module-template.h @@ -120,6 +120,27 @@ static rsRetVal dbgPrintInstInfo(selector_t *f, void *pModData)\ } + +/* getWriteFDForSelect() + * Extra comments: + * Print debug information about this instance. + */ +#define BEGINgetWriteFDForSelect \ +static rsRetVal getWriteFDForSelect(selector_t *f, void *pModData, short *fd)\ +{\ + rsRetVal iRet = RS_RET_NONE;\ + instanceData *pData = NULL; + +#define CODESTARTgetWriteFDForSelect \ + assert(f != NULL);\ + assert(fd != NULL);\ + pData = (instanceData*) pModData; + +#define ENDgetWriteFDForSelect \ + return iRet;\ +} + + /* parseSelectorAct() * Extra comments: * try to process a selector action line. Checks if the action @@ -175,6 +196,8 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\ *pEtryPoint = dbgPrintInstInfo;\ } else if(!strcmp((char*) name, "freeInstance")) {\ *pEtryPoint = freeInstance;\ + } else if(!strcmp((char*) name, "getWriteFDForSelect")) {\ + *pEtryPoint = getWriteFDForSelect;\ } /* modInit() |