From b76b407b33973bf1ac00a842b5b325fb8e378170 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 9 May 2025 12:36:42 +0100 Subject: Move HTTP types to the HTTP namespace. --- modules/extra/xmlrpc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/extra') diff --git a/modules/extra/xmlrpc.cpp b/modules/extra/xmlrpc.cpp index 3e6a8af76..54e2752d9 100644 --- a/modules/extra/xmlrpc.cpp +++ b/modules/extra/xmlrpc.cpp @@ -20,10 +20,10 @@ template overloaded(Ts...) -> overloaded; class XMLRPCServiceInterface final : public RPC::ServiceInterface - , public HTTPPage + , public HTTP::Page { private: - static void SendError(HTTPReply &reply, xmlrpc_env &env) + static void SendError(HTTP::Reply &reply, xmlrpc_env &env) { Log(LOG_DEBUG) << "XML-RPC error " << env.fault_code << ": " << env.fault_string; @@ -69,11 +69,11 @@ public: XMLRPCServiceInterface(Module *creator) : RPC::ServiceInterface(creator) - , HTTPPage("/xmlrpc", "text/xml") + , HTTP::Page("/xmlrpc", "text/xml") { } - bool OnRequest(HTTPProvider *provider, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply) override + bool OnRequest(HTTP::Provider *provider, const Anope::string &page_name, HTTP::Client *client, HTTP::Message &message, HTTP::Reply &reply) override { xmlrpc_env env; xmlrpc_env_init(&env); @@ -276,7 +276,7 @@ class ModuleXMLRPC final : public Module { private: - ServiceReference httpref; + ServiceReference httpref; XMLRPCServiceInterface xmlrpcinterface; public: @@ -316,7 +316,7 @@ public: XMLRPCServiceInterface::enable_i8 = modconf.Get("enable_i8", "yes"); XMLRPCServiceInterface::enable_nil = modconf.Get("enable_nil", "yes"); - this->httpref = ServiceReference("HTTPProvider", modconf.Get("server", "httpd/main")); + this->httpref = ServiceReference(HTTP_PROVIDER, modconf.Get("server", "httpd/main")); if (!httpref) throw ConfigException("Unable to find http reference, is httpd loaded?"); -- cgit