#include #include "fileserver/embedded_files.h" #include "string.h" esp_err_t __attribute__((weak)) www_get_static_file(const char *name, enum file_access_level access, const struct embedded_file_info **file) { // simple search by name for(int i = 0; i < EMBEDDED_FILE_LOOKUP_LEN; i++) { if (0 == strcmp(EMBEDDED_FILE_LOOKUP[i].name, name)) { *file = &EMBEDDED_FILE_LOOKUP[i]; return ESP_OK; } } return ESP_ERR_NOT_FOUND; } bool __attribute__((weak)) www_get_static_file_access_check(const struct embedded_file_info *file, enum file_access_level access) { return true; }