mongoose/test/mongoose_custom.c

39 lines
902 B
C
Raw Normal View History

2021-07-26 18:00:37 +08:00
#include "mongoose.h"
2022-01-19 03:19:34 +08:00
int mkdir(const char *path, mode_t mode) {
(void) path, (void) mode;
return -1;
2021-07-29 21:21:20 +08:00
}
2021-07-26 18:00:37 +08:00
void mg_connect_resolved(struct mg_connection *c) {
(void) c;
}
struct mg_connection *mg_listen(struct mg_mgr *mgr, const char *url,
mg_event_handler_t fn, void *fn_data) {
(void) mgr, (void) url, (void) fn, (void) fn_data;
return NULL;
}
void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
(void) mgr, (void) ms;
}
bool mg_send(struct mg_connection *c, const void *buf, size_t len) {
(void) c, (void) buf, (void) len;
return 0;
}
2022-01-19 17:25:01 +08:00
void mg_mgr_wakeup(struct mg_connection *c, const void *buf, size_t len) {
(void) c, (void) buf, (void) len;
}
2021-08-12 02:17:04 +08:00
struct mg_connection *mg_mkpipe(struct mg_mgr *mgr, mg_event_handler_t fn,
void *fn_data) {
(void) mgr, (void) fn, (void) fn_data;
return NULL;
}
2021-07-26 18:00:37 +08:00
void _fini(void) {
}