summaryrefslogtreecommitdiffstats
path: root/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-14 17:58:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-14 17:58:12 +0000
commite45bbf5c66b5cb08c91bdb99ba1acf5f215c3112 (patch)
tree60d91c5ece80f8025a44484d674dbdcc3825faaa /module-template.h
parent8d186b303650c1d942543e28fdf8cf28a451f438 (diff)
downloadrsyslog-e45bbf5c66b5cb08c91bdb99ba1acf5f215c3112.tar.gz
rsyslog-e45bbf5c66b5cb08c91bdb99ba1acf5f215c3112.tar.xz
rsyslog-e45bbf5c66b5cb08c91bdb99ba1acf5f215c3112.zip
graceful termination now supported
Diffstat (limited to 'module-template.h')
-rw-r--r--module-template.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/module-template.h b/module-template.h
index a9535428..758e9710 100644
--- a/module-template.h
+++ b/module-template.h
@@ -376,6 +376,8 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\
CODEqueryEtryPt_STD_MOD_QUERIES \
else if(!strcmp((char*) name, "runInput")) {\
*pEtryPoint = runInput;\
+ } else if(!strcmp((char*) name, "getTermSyncType")) {\
+ *pEtryPoint = modGetTermSyncType;\
}
/* modInit()
@@ -467,6 +469,16 @@ static rsRetVal runInput(void)\
return iRet;\
}
+/* method to return which termination sync method is used by this module.
+ */
+#define TERM_SYNC_TYPE(x) \
+static rsRetVal modGetTermSyncType(eTermSyncType_t *pTermSync)\
+{\
+ assert(pTermSync != NULL); \
+ *pTermSync = (x);\
+ return RS_RET_OK;\
+}
+
/*
* vi:set ai:
*/