1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 20:43:13 +02:00

Make user.list() RPC API return a list of all users with details.

This is the 1st RPC API call that actually works :D
This commit is contained in:
Bram Matthys
2022-06-06 16:47:09 +02:00
parent 31fc2843a2
commit 4cd520d327
8 changed files with 104 additions and 24 deletions
+4
View File
@@ -139,6 +139,8 @@ int (*make_oper)(Client *client, const char *operblock_name, const char *opercla
int (*unreal_match_iplist)(Client *client, NameList *l);
void (*webserver_send_response)(Client *client, int status, char *msg);
void (*webserver_close_client)(Client *client);
void (*rpc_response)(Client *client, json_t *request, json_t *result);
void (*rpc_error)(Client *client, json_t *request, const char *msg);
Efunction *EfunctionAddMain(Module *module, EfunctionType eftype, int (*func)(), void (*vfunc)(), void *(*pvfunc)(), char *(*stringfunc)(), const char *(*conststringfunc)())
{
@@ -413,4 +415,6 @@ void efunctions_init(void)
efunc_init_function(EFUNC_UNREAL_MATCH_IPLIST, unreal_match_iplist, NULL);
efunc_init_function(EFUNC_WEBSERVER_SEND_RESPONSE, webserver_send_response, webserver_send_response_default_handler);
efunc_init_function(EFUNC_WEBSERVER_CLOSE_CLIENT, webserver_close_client, webserver_close_client_default_handler);
efunc_init_function(EFUNC_RPC_RESPONSE, rpc_response, rpc_response_default_handler);
efunc_init_function(EFUNC_RPC_ERROR, rpc_error, rpc_error_default_handler);
}