summaryrefslogtreecommitdiffstats
path: root/runtime/ruleset.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-05 10:01:22 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-05 10:01:22 +0100
commit938eff729c581657eb84c0ea0a7a6665ecd040be (patch)
treedc494f3b3bfd716b691ca82edd80aa6f450ecec3 /runtime/ruleset.h
parent70b8ba19a314a1ce9fdb01062fcd7dd470882a8a (diff)
parenta57c8cea990afc9f36839408eea6bea8ddf8a4fe (diff)
downloadrsyslog-938eff729c581657eb84c0ea0a7a6665ecd040be.tar.gz
rsyslog-938eff729c581657eb84c0ea0a7a6665ecd040be.tar.bz2
rsyslog-938eff729c581657eb84c0ea0a7a6665ecd040be.zip
Merge branch 'v7-stable'
Diffstat (limited to 'runtime/ruleset.h')
-rw-r--r--runtime/ruleset.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/ruleset.h b/runtime/ruleset.h
index 8bfd4920..9905b53c 100644
--- a/runtime/ruleset.h
+++ b/runtime/ruleset.h
@@ -90,6 +90,13 @@ rulesetGetName(ruleset_t *pRuleset)
return pRuleset->pszName;
}
+/* returns 1 if the ruleset has a queue associtated, 0 if not */
+static inline int
+rulesetHasQueue(ruleset_t *pRuleset)
+{
+ return pRuleset->pQueue == NULL ? 0 : 1;
+}
+
/* we will most probably convert this module back to traditional C
* calling sequence, so here we go...