From 96dd0a52d93219a214130c18fe34bb81ce5acdbd Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Wed, 11 Feb 2015 17:09:59 +0100 Subject: Convert the HTTPd ACL event to use the new cross-module event system --- include/modules/httpd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/modules') diff --git a/include/modules/httpd.h b/include/modules/httpd.h index 86234d53f..5e3e780dc 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -24,6 +24,7 @@ #pragma once #include "base.h" +#include "event.h" #include #include @@ -237,3 +238,14 @@ class HTTPdAPI : public dynamic_reference { } }; + +class HTTPACLEventListener : public Events::ModuleEventListener +{ + public: + HTTPACLEventListener(Module* mod) + : ModuleEventListener(mod, "event/http-acl") + { + } + + virtual ModResult OnHTTPACLCheck(HTTPRequest& req) = 0; +}; -- cgit v1.3.1-10-gc9f91