summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-02-11 17:09:59 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-02-11 17:09:59 +0100
commit96dd0a52d93219a214130c18fe34bb81ce5acdbd (patch)
treeb147d56152258d276b676eabf7d5c3d13a58fd0e /include/modules
parentc19e9d0edbb1be9d5fd6f281bce054066fc4a003 (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.h12
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;
+};