#pragma once #include #include #include #include "httpd-types.h" #define httpd_printf(fmt, ...) printf(fmt, ##__VA_ARGS__) // Prototypes for porting int httpdConnSendData(ConnTypePtr conn, char *buff, int len); void httpdConnDisconnect(ConnTypePtr conn); void httpdPlatDisableTimeout(ConnTypePtr conn); void httpdPlatInit(); httpd_thread_handle_t* httpdPlatStart(struct httpd_options *opts); void httpdPlatJoin(httpd_thread_handle_t * handle); void httpdPlatLock(); void httpdPlatUnlock(); void* httpdPlatMalloc(size_t len); void httpdPlatFree(void *ptr); char* httpdPlatStrdup(const char *s); void httpdPlatDelayMs(uint32_t ms); void httpdPlatTaskEnd(); int httpdPlatEspfsRead(void *dest, uint32_t offset, size_t len); void platHttpServerTask(void *pvParameters); void* platHttpServerTaskPosix(void *pvParameters);