summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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;