1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 02:46: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
@@ -837,7 +837,7 @@ extern MODVAR int (*make_oper)(Client *client, const char *operblock_name, const
extern MODVAR int (*unreal_match_iplist)(Client *client, NameList *l);
extern MODVAR void (*webserver_send_response)(Client *client, int status, char *msg);
extern MODVAR void (*webserver_close_client)(Client *client);
extern MODVAR int (*webserver_handle_request_body)(Client *client, WebRequest *web, const char *readbuf, int length);
extern MODVAR int (*webserver_handle_body)(Client *client, WebRequest *web, const char *readbuf, int length);
extern MODVAR void (*rpc_response)(Client *client, json_t *request, json_t *result);
extern MODVAR void (*rpc_error)(Client *client, json_t *request, int error_code, const char *error_message);
extern MODVAR void (*rpc_error_fmt)(Client *client, json_t *request, int error_code, FORMAT_STRING(const char *fmt), ...) __attribute__((format(printf,4,5)));
@@ -879,7 +879,7 @@ extern void do_unreal_log_remote_deliver_default_handler(LogLevel loglevel, cons
extern int make_oper_default_handler(Client *client, const char *operblock_name, const char *operclass, ConfigItem_class *clientclass, long modes, const char *snomask, const char *vhost);
extern void webserver_send_response_default_handler(Client *client, int status, char *msg);
extern void webserver_close_client_default_handler(Client *client);
extern int webserver_handle_request_body_default_handler(Client *client, WebRequest *web, const char *readbuf, int length);
extern int webserver_handle_body_default_handler(Client *client, WebRequest *web, const char *readbuf, int length);
extern void rpc_response_default_handler(Client *client, json_t *request, json_t *result);
extern void rpc_error_default_handler(Client *client, json_t *request, int error_code, const char *error_message);
extern void rpc_error_fmt_default_handler(Client *client, json_t *request, int error_code, const char *fmt, ...);
+1 -1
View File
@@ -2492,7 +2492,7 @@ enum EfunctionType {
EFUNC_UNREAL_MATCH_IPLIST,
EFUNC_WEBSERVER_SEND_RESPONSE,
EFUNC_WEBSERVER_CLOSE_CLIENT,
EFUNC_WEBSERVER_HANDLE_BODY_DATA,
EFUNC_WEBSERVER_HANDLE_BODY,
EFUNC_RPC_RESPONSE,
EFUNC_RPC_ERROR,
EFUNC_RPC_ERROR_FMT,
+1 -1
View File
@@ -1726,7 +1726,7 @@ struct WebRequest {
typedef struct WebServer WebServer;
struct WebServer {
int (*handle_request)(Client *client, WebRequest *web);
int (*handle_data)(Client *client, WebRequest *web, const char *buf, int length);
int (*handle_body)(Client *client, WebRequest *web, const char *buf, int length);
};
struct ConfigItem_listen {