summaryrefslogtreecommitdiffstats
path: root/tools/omfile.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-03-01 07:33:09 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-03-01 07:33:09 +0100
commit2c39f76037328459c5cff14762e0839b1e77d570 (patch)
tree73916a3373e27b3ce8d474348a9d9bdb304165f1 /tools/omfile.h
parentf12a1995e42d098217fef22cba6e7158ed76e635 (diff)
downloadrsyslog-2c39f76037328459c5cff14762e0839b1e77d570.tar.gz
rsyslog-2c39f76037328459c5cff14762e0839b1e77d570.tar.xz
rsyslog-2c39f76037328459c5cff14762e0839b1e77d570.zip
make $ActonFileDefaultTemplate available to ompipe
This was not honored by the new ompipe module, because it is a local file directive (it was applied to pipes as a side-effect of using the same module for pipes and files...). I now made this a global, so that semantics are the same as previously. Not really nice, but probably the best thing to do in the current situation (everything else would involve much more overhead --- leave that for the new config system).
Diffstat (limited to 'tools/omfile.h')
-rw-r--r--tools/omfile.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/omfile.h b/tools/omfile.h
index 09031dac..8dca6a88 100644
--- a/tools/omfile.h
+++ b/tools/omfile.h
@@ -28,7 +28,11 @@
/* prototypes */
rsRetVal modInitFile(int iIFVersRequested __attribute__((unused)), int *ipIFVersProvided, rsRetVal (**pQueryEtryPt)(), rsRetVal (*pHostQueryEtryPt)(uchar*, rsRetVal (**)()), modInfo_t*);
+/* the define below is dirty, but we need it for ompipe integration. There is no
+ * other way to have the functionality (well, one way would be to go through the
+ * globals, but that seems not yet justified. -- rgerhards, 2010-03-01
+ */
+uchar *pszFileDfltTplName;
#endif /* #ifndef OMFILE_H_INCLUDED */
-/*
- * vi:set ai:
+/* vi:set ai:
*/