mongoose/test/mongoose_custom.c

34 lines
661 B
C
Raw Permalink 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;
}
2022-02-23 11:06:02 +08:00
bool mg_open_listener(struct mg_connection *c, const char *url) {
(void) c, (void) url;
return false;
2021-07-26 18:00:37 +08:00
}
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;
2022-04-22 21:42:07 +08:00
return false;
}
int mg_mkpipe(struct mg_mgr *m, mg_event_handler_t fn, void *d, bool udp) {
(void) m, (void) fn, (void) d, (void) udp;
2022-04-22 21:42:07 +08:00
return -1;
}
void _fini(void);
2021-07-26 18:00:37 +08:00
void _fini(void) {
}