From 801a748e256cb7c4952969103f2f2eaf5ee36552 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 24 Feb 2025 03:39:50 +0000 Subject: Add the system.listMethods RPC method. Still to implement: - system.getCapabilities - system.methodHelp - system.methodSignature --- include/modules/rpc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/modules/rpc.h b/include/modules/rpc.h index 1f136b1e2..640eebda1 100644 --- a/include/modules/rpc.h +++ b/include/modules/rpc.h @@ -21,6 +21,9 @@ namespace RPC class ServiceInterface; class Value; + /** Represents a list of registered events. */ + using Events = Anope::map; + /** Represents possible types of RPC value. */ using ValueUnion = std::variant; @@ -194,6 +197,8 @@ public: { } + virtual const Events &GetEvents() = 0; + virtual bool Register(Event *event) = 0; virtual bool Unregister(Event *event) = 0; -- cgit