mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Exporting only dashboard func
This commit is contained in:
1 parent
cf7d1d8041
commit
95e22e8d4f
2 files changed
+6
-10
No files matched your search
@@ -3,11 +3,13 @@
|
||||
|
||||
#include "mongoose.h"
|
||||
|
||||
extern void run_web_server(struct mg_mgr *);
|
||||
void device_dashboard_fn(struct mg_connection *, int, void *, void *);
|
||||
|
||||
int main(void) {
|
||||
struct mg_mgr mgr;
|
||||
mg_mgr_init(&mgr);
|
||||
run_web_server(&mgr);
|
||||
mg_http_listen(&mgr, "http://0.0.0.0:8000", device_dashboard_fn, &mgr);
|
||||
for (;;) mg_mgr_poll(&mgr, 1000);
|
||||
mg_mgr_free(&mgr);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user