From d0a93ad442331d12ee474ee859ee4fef5474b98f Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 25 Jul 2007 16:50:12 +0000 Subject: introduced getWriteFDForSelect() module API --- module-template.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'module-template.h') 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() -- cgit