1 #ifndef EVE_HTTP_INSTANCE_H_INCLUDED 2 #define EVE_HTTP_INSTANCE_H_INCLUDED 12 #define GENERATOR(id) HTTP_REQ_ ## id, 13 #define RESOURCE(id, name, ctype, flags) 14 #define HTTP_FILE(id, name, url, ctype, flags) GENERATOR(id) 19 #include EVE_HTTP_TOC_FILE_GEN_H 35 #define GENERATOR(id, ctype, flags) [HTTP_RESOURCE_ ## id] = {CSTRING(ctype), flags}, 36 #define RESOURCE(id, name, ctype, flags) GENERATOR(id, ctype, flags) 37 #define HTTP_FILE(id, name, url, ctype, flags) GENERATOR(id, ctype, flags) 41 #include EVE_HTTP_TOC_FILE_GEN_H 51 #define GENERATOR(id, name) ENUM_CVT_ENTRY(HTTP_RESOURCE_ ## id, name), 52 #define RESOURCE(id, name, ctype, flags) GENERATOR(id, name) 53 #define HTTP_FILE(id, name, url, ctype, flags) GENERATOR(id, name) 57 #include EVE_HTTP_TOC_FILE_GEN_H 67 #define GENERATOR(id, url) [HTTP_REQ_ ## id] = ENUM_CVT_ENTRY((HTTP_RESOURCE_ ## id << 8) | HTTP_REQ_ ## id, url), 68 #define RESOURCE(id, name, ctype, flags) 69 #define HTTP_FILE(id, name, url, ctype, flags) GENERATOR(id, url) 79 #include EVE_HTTP_TOC_FILE_GEN_H 89 const uint16_t TocSegmentCommandSize =
sizeof(
TocCommand);
const struct http_content_type_t HttpContentTypeTable[HTTP_RESOURCE__COUNT]
#define ENUM_CVT_ENTRY(v, s)
const uint8_t HttpRequestCount
const struct http_enum_cvt_t HttpReqTypeTable[HTTP_REQ__COUNT]
const struct http_enum_cvt_t HttpResourceTable[HTTP_RESOURCE__COUNT]
union toc_command_t TocCommand
const uint8_t HttpStaticResourceCount