From 696c084e51ce49dc4a3f70642df469712eed8de6 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 26 Jun 2013 11:16:32 +0200 Subject: bugfix: call to ruleset with async queue did not use the queue closes: http://bugzilla.adiscon.com/show_bug.cgi?id=443 --- runtime/ruleset.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runtime/ruleset.h') diff --git a/runtime/ruleset.h b/runtime/ruleset.h index cbf8243b..64fe92ff 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... -- cgit v1.2.3