summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-24 03:39:50 +0000
committerSadie Powell <sadie@witchery.services>2025-02-24 03:59:52 +0000
commit801a748e256cb7c4952969103f2f2eaf5ee36552 (patch)
tree2dae96409362ee42b2591128a1ba42896226ecd2 /include/modules
parenta111b40560bf305653b07d8f7289484793a32588 (diff)
Add the system.listMethods RPC method.
Still to implement: - system.getCapabilities - system.methodHelp - system.methodSignature
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/rpc.h5
1 files changed, 5 insertions, 0 deletions
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<Event *>;
+
/** Represents possible types of RPC value. */
using ValueUnion = std::variant<Array, Map, Anope::string, std::nullptr_t, bool, double, int64_t, uint64_t>;
@@ -194,6 +197,8 @@ public:
{
}
+ virtual const Events &GetEvents() = 0;
+
virtual bool Register(Event *event) = 0;
virtual bool Unregister(Event *event) = 0;