Fix build after mg_connect() move

This commit is contained in:
Sergey Lyubka 2022-02-22 21:35:03 +00:00
parent a287fd97e4
commit 048fee5c88
4 changed files with 2 additions and 12 deletions

View File

@ -285,11 +285,6 @@ to fail due to several undefined symbols. Create `mongoose_custom.c` and impleme
the following functions (take a look at `src/sock.c` for the reference implementation):
```c
struct mg_connection *mg_connect(struct mg_mgr *mgr, const char *url,
mg_event_handler_t fn, void *fn_data) {
// implement this!
}
void mg_connect_resolved(struct mg_connection *c) {
// implement this!
}

View File

@ -2604,6 +2604,7 @@ struct mg_connection *mg_mqtt_listen(struct mg_mgr *mgr, const char *url,
size_t mg_vprintf(struct mg_connection *c, const char *fmt, va_list ap) {
char mem[256], *buf = mem;
size_t len = mg_vasprintf(&buf, sizeof(mem), fmt, ap);

View File

@ -1,4 +1,5 @@
#include "net.h"
#include "dns.h"
#include "log.h"
#include "util.h"

View File

@ -5,13 +5,6 @@ int mkdir(const char *path, mode_t mode) {
return -1;
}
struct mg_connection *mg_connect(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_connect_resolved(struct mg_connection *c);
void mg_connect_resolved(struct mg_connection *c) {
(void) c;
}