mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-27 15:01:03 +08:00
Fix build after mg_connect() move
This commit is contained in:
parent
a287fd97e4
commit
048fee5c88
@ -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!
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "net.h"
|
||||
#include "dns.h"
|
||||
#include "log.h"
|
||||
#include "util.h"
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user