summaryrefslogtreecommitdiffstats
path: root/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-20 14:34:40 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-20 14:34:40 +0000
commit8a77bc82acfb5960e8c4054094f7eb80a158ec1f (patch)
treea447af04d7419c2049442d089ed3c6565d687bb1 /module-template.h
parenta5ac2e420e6f58f2cad5123ea674b0da5c016aea (diff)
downloadrsyslog-8a77bc82acfb5960e8c4054094f7eb80a158ec1f.tar.gz
rsyslog-8a77bc82acfb5960e8c4054094f7eb80a158ec1f.tar.xz
rsyslog-8a77bc82acfb5960e8c4054094f7eb80a158ec1f.zip
removed single-threading support for sending TCP messages; caused
simplyfication of output module interface as well as core syslog processing.
Diffstat (limited to 'module-template.h')
-rw-r--r--module-template.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/module-template.h b/module-template.h
index 9d7deaf4..3b6ebb69 100644
--- a/module-template.h
+++ b/module-template.h
@@ -199,49 +199,6 @@ static rsRetVal needUDPSocket(void *pModData)\
}
-/* onSelectReadyWrite()
- * Extra comments:
- * This is called when select() returned with a writable file descriptor
- * for this module. The fd was most probably obtained by getWriteFDForSelect()
- * before.
- */
-#define BEGINonSelectReadyWrite \
-static rsRetVal onSelectReadyWrite(void *pModData)\
-{\
- rsRetVal iRet = RS_RET_NONE;\
- instanceData *pData = NULL;
-
-#define CODESTARTonSelectReadyWrite \
- pData = (instanceData*) pModData;
-
-#define ENDonSelectReadyWrite \
- return iRet;\
-}
-
-
-/* getWriteFDForSelect()
- * Extra comments:
- * Gets writefd for select call. Must only be returned when the selector must
- * be written to. If the module has no such fds, it must return RS_RET_NONE.
- * In this case, the default implementation is sufficient.
- * This interface will probably go away over time, but we need it now to
- * continue modularization.
- */
-#define BEGINgetWriteFDForSelect \
-static rsRetVal getWriteFDForSelect(void *pModData, short __attribute__((unused)) *fd)\
-{\
- rsRetVal iRet = RS_RET_NONE;\
- instanceData *pData = NULL;
-
-#define CODESTARTgetWriteFDForSelect \
- assert(fd != NULL);\
- pData = (instanceData*) pModData;
-
-#define ENDgetWriteFDForSelect \
- return iRet;\
-}
-
-
/* parseSelectorAct()
* Extra comments:
* try to process a selector action line. Checks if the action
@@ -363,10 +320,6 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\
*pEtryPoint = parseSelectorAct;\
} else if(!strcmp((char*) name, "isCompatibleWithFeature")) {\
*pEtryPoint = isCompatibleWithFeature;\
- } else if(!strcmp((char*) name, "getWriteFDForSelect")) {\
- *pEtryPoint = getWriteFDForSelect;\
- } else if(!strcmp((char*) name, "onSelectReadyWrite")) {\
- *pEtryPoint = onSelectReadyWrite;\
} else if(!strcmp((char*) name, "needUDPSocket")) {\
*pEtryPoint = needUDPSocket;\
} else if(!strcmp((char*) name, "tryResume")) {\