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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user