You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
856 B
29 lines
856 B
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#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);
|
|
|