mongoose_custom.c 661 B

123456789101112131415161718192021222324252627282930313233
  1. #include "mongoose.h"
  2. int mkdir(const char *path, mode_t mode) {
  3. (void) path, (void) mode;
  4. return -1;
  5. }
  6. void mg_connect_resolved(struct mg_connection *c) {
  7. (void) c;
  8. }
  9. bool mg_open_listener(struct mg_connection *c, const char *url) {
  10. (void) c, (void) url;
  11. return false;
  12. }
  13. void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
  14. (void) mgr, (void) ms;
  15. }
  16. bool mg_send(struct mg_connection *c, const void *buf, size_t len) {
  17. (void) c, (void) buf, (void) len;
  18. return false;
  19. }
  20. int mg_mkpipe(struct mg_mgr *m, mg_event_handler_t fn, void *d, bool udp) {
  21. (void) m, (void) fn, (void) d, (void) udp;
  22. return -1;
  23. }
  24. void _fini(void);
  25. void _fini(void) {
  26. }