summaryrefslogtreecommitdiffstats
path: root/runtime/ruleset.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-04-18 16:23:02 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-04-18 16:23:02 +0200
commitdac70ef76e14e677f11579b7d11d13ddd92c25c8 (patch)
tree52caa6e0fc8bd6ef14d3b56839caf0ae537540d8 /runtime/ruleset.h
parent838f34dd2bc201b2718e0f94f2e285b3ddb1cc17 (diff)
parent7cb5f0cb8c98408bc46f2c07d8480b70d816de7a (diff)
downloadrsyslog-dac70ef76e14e677f11579b7d11d13ddd92c25c8.tar.gz
rsyslog-dac70ef76e14e677f11579b7d11d13ddd92c25c8.tar.bz2
rsyslog-dac70ef76e14e677f11579b7d11d13ddd92c25c8.zip
Merge branch 'v5-stable' into v6-stable
Diffstat (limited to 'runtime/ruleset.h')
-rw-r--r--runtime/ruleset.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/ruleset.h b/runtime/ruleset.h
index b055a71d..52e633eb 100644
--- a/runtime/ruleset.h
+++ b/runtime/ruleset.h
@@ -54,6 +54,7 @@ BEGINinterface(ruleset) /* name must also be changed in ENDinterface macro! */
qqueue_t* (*GetRulesetQueue)(ruleset_t*);
/* v3, 2009-11-04 */
parserList_t* (*GetParserList)(msg_t *);
+ /* v4 */
ENDinterface(ruleset)
#define rulesetCURR_IF_VERSION 4 /* increment whenever you change the interface structure! */
@@ -61,4 +62,18 @@ ENDinterface(ruleset)
/* prototypes */
PROTOTYPEObj(ruleset);
+
+/* Get name associated to ruleset. This function cannot fail (except,
+ * of course, if previously something went really wrong). Returned
+ * pointer is read-only.
+ * rgerhards, 2012-04-18
+ */
+static inline uchar*
+rulesetGetName(ruleset_t *pRuleset)
+{
+ return pRuleset->pszName;
+}
+
+
+rsRetVal rulesetGetRuleset(ruleset_t **ppRuleset, uchar *pszName);
#endif /* #ifndef INCLUDED_RULESET_H */