1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 15:26:38 +02:00

Rename some more:

* WEB() now has handle_request() and handle_body(), makes more sense.
* webserver_handle_body_data() -> webserver_handle_body()
* and similar cases
This commit is contained in:
Bram Matthys
2022-06-08 17:58:08 +02:00
parent 12f2cd8555
commit 4a68008b81
8 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ 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);
int (*webserver_handle_request_body)(Client *client, WebRequest *web, const char *readbuf, int length);
int (*webserver_handle_body)(Client *client, WebRequest *web, const char *readbuf, int length);
void (*rpc_response)(Client *client, json_t *request, json_t *result);
void (*rpc_error)(Client *client, json_t *request, int error_code, const char *error_message);
void (*rpc_error_fmt)(Client *client, json_t *request, int error_code, const char *fmt, ...);
@@ -415,7 +415,7 @@ 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_WEBSERVER_HANDLE_BODY_DATA, webserver_handle_request_body, webserver_handle_request_body_default_handler);
efunc_init_function(EFUNC_WEBSERVER_HANDLE_BODY, webserver_handle_body, webserver_handle_body_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);
efunc_init_function(EFUNC_RPC_ERROR_FMT, rpc_error_fmt, rpc_error_fmt_default_handler);