diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-02-11 17:09:59 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-02-11 17:09:59 +0100 |
commit | 96dd0a52d93219a214130c18fe34bb81ce5acdbd (patch) | |
tree | b147d56152258d276b676eabf7d5c3d13a58fd0e /include/modules | |
parent | c19e9d0edbb1be9d5fd6f281bce054066fc4a003 (diff) |
Convert the HTTPd ACL event to use the new cross-module event system
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/httpd.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 <string> #include <sstream> @@ -237,3 +238,14 @@ class HTTPdAPI : public dynamic_reference<HTTPdAPIBase> { } }; + +class HTTPACLEventListener : public Events::ModuleEventListener +{ + public: + HTTPACLEventListener(Module* mod) + : ModuleEventListener(mod, "event/http-acl") + { + } + + virtual ModResult OnHTTPACLCheck(HTTPRequest& req) = 0; +}; |