1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 13:26:38 +02:00

Add the system.listMethods RPC method.

Still to implement:

- system.getCapabilities
- system.methodHelp
- system.methodSignature
This commit is contained in:
Sadie Powell
2025-02-24 03:39:50 +00:00
parent a111b40560
commit 801a748e25
5 changed files with 90 additions and 2 deletions
+5
View File
@@ -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;