Create fsdata_custom.c

got this error again, rookie mistake
This commit is contained in:
joran2738
2023-11-06 20:18:22 +01:00
parent 5942274e6a
commit 737fa17db8

View File

@@ -0,0 +1,156 @@
#include "lwip/apps/fs.h"
#include "lwip/def.h"
#define file_NULL (struct fsdata_file *) NULL
#ifndef FS_FILE_FLAGS_HEADER_INCLUDED
#define FS_FILE_FLAGS_HEADER_INCLUDED 1
#endif
#ifndef FS_FILE_FLAGS_HEADER_PERSISTENT
#define FS_FILE_FLAGS_HEADER_PERSISTENT 0
#endif
/* FSDATA_FILE_ALIGNMENT: 0=off, 1=by variable, 2=by include */
#ifndef FSDATA_FILE_ALIGNMENT
#define FSDATA_FILE_ALIGNMENT 0
#endif
#ifndef FSDATA_ALIGN_PRE
#define FSDATA_ALIGN_PRE
#endif
#ifndef FSDATA_ALIGN_POST
#define FSDATA_ALIGN_POST
#endif
#if FSDATA_FILE_ALIGNMENT==2
#include "fsdata_alignment.h"
#endif
#if FSDATA_FILE_ALIGNMENT==1
static const unsigned int dummy_align__index_html = 0;
#endif
static const unsigned char FSDATA_ALIGN_PRE data__index_html[] FSDATA_ALIGN_POST = {
/* /index.html (12 chars) */
0x2f,0x69,0x6e,0x64,0x65,0x78,0x2e,0x68,0x74,0x6d,0x6c,0x00,
/* HTTP header */
/* "HTTP/1.0 200 OK
" (17 bytes) */
0x48,0x54,0x54,0x50,0x2f,0x31,0x2e,0x30,0x20,0x32,0x30,0x30,0x20,0x4f,0x4b,0x0d,
0x0a,
/* "Server: lwIP/2.1.2 (http://savannah.nongnu.org/projects/lwip)
" (63 bytes) */
0x53,0x65,0x72,0x76,0x65,0x72,0x3a,0x20,0x6c,0x77,0x49,0x50,0x2f,0x32,0x2e,0x31,
0x2e,0x32,0x20,0x28,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x73,0x61,0x76,0x61,0x6e,
0x6e,0x61,0x68,0x2e,0x6e,0x6f,0x6e,0x67,0x6e,0x75,0x2e,0x6f,0x72,0x67,0x2f,0x70,
0x72,0x6f,0x6a,0x65,0x63,0x74,0x73,0x2f,0x6c,0x77,0x69,0x70,0x29,0x0d,0x0a,
/* "Content-Length: 481
" (18+ bytes) */
0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x4c,0x65,0x6e,0x67,0x74,0x68,0x3a,0x20,
0x34,0x38,0x31,0x0d,0x0a,
/* "Content-Encoding: deflate
" (27 bytes) */
0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x45,0x6e,0x63,0x6f,0x64,0x69,0x6e,0x67,
0x3a,0x20,0x64,0x65,0x66,0x6c,0x61,0x74,0x65,0x0d,0x0a,
/* "Content-Type: text/html
" (27 bytes) */
0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x54,0x79,0x70,0x65,0x3a,0x20,0x74,0x65,
0x78,0x74,0x2f,0x68,0x74,0x6d,0x6c,0x0d,0x0a,0x0d,0x0a,
/* raw file data (481 bytes) */
0xad,0x55,0x5d,0x6f,0xda,0x30,0x14,0x7d,0x9f,0xb4,0xff,0xe0,0x79,0x55,0x15,0xa4,
0xcd,0x29,0x9b,0xb4,0x07,0x16,0x32,0xd1,0x16,0x4d,0x9b,0xd0,0xa8,0xa6,0x3e,0x6c,
0x8f,0xc1,0x71,0x1a,0x43,0x62,0x33,0xfb,0x5a,0x2b,0xaa,0xfa,0xdf,0x6b,0x93,0x2f,
0x52,0x12,0x44,0x55,0xfc,0x40,0xc2,0xbd,0xe7,0xfa,0x9c,0xeb,0x73,0x15,0x07,0xef,
0xae,0xe7,0x57,0xb7,0x7f,0x6f,0xa6,0x28,0x85,0x3c,0x0b,0xdf,0xbe,0x09,0xea,0x27,
0x8b,0x62,0xfb,0x44,0x76,0x05,0xc0,0x21,0x63,0xe1,0xe4,0xe7,0xe4,0x0f,0x9a,0x4d,
0xaf,0xd1,0x95,0x14,0xa0,0x64,0x16,0xf8,0x45,0xbc,0x04,0x69,0xaa,0xf8,0x1a,0x90,
0x56,0x74,0x8c,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3,0xc7,
0xf1,0x36,0x43,0x77,0x12,0x73,0xcf,0x5f,0xd6,0xf5,0xce,0x18,0x9f,0xc4,0xe3,0xf3,
0xba,0xfb,0x0e,0xfa,0xdd,0xc0,0x73,0x31,0x15,0x6b,0x8b,0xc0,0xa8,0xac,0x53,0xc4,
0x19,0x89,0x96,0xd1,0xbd,0xd7,0x91,0x71,0xcb,0x56,0x8d,0xdc,0xcf,0x87,0xee,0x34,
0x6c,0xd6,0x6c,0x84,0xf0,0xf7,0xe9,0x2d,0xee,0x41,0x68,0x43,0x29,0xd3,0x7a,0x54,
0x8b,0xf2,0x14,0xd3,0x6b,0x29,0x34,0xeb,0x54,0xb3,0xed,0xaf,0x67,0x2b,0xa6,0x94,
0x54,0x3b,0x1b,0xf5,0x6e,0x50,0x19,0xa2,0x21,0x02,0xa3,0xad,0x19,0xee,0x50,0x3d,
0x3c,0x75,0xf5,0x48,0x52,0x6a,0x94,0x62,0x31,0xfa,0x9f,0xf2,0x8c,0xa1,0x3c,0x5a,
0x71,0x71,0x87,0x20,0x65,0x48,0x15,0x27,0x45,0xf6,0x0e,0xbc,0x16,0xb6,0x1f,0xde,
0xf3,0x62,0x07,0x53,0xe7,0x5a,0xb7,0x4a,0x79,0x9b,0xd8,0x8f,0x67,0x71,0xbb,0x3d,
0x01,};
#if FSDATA_FILE_ALIGNMENT==1
static const unsigned int dummy_align__info_shtml = 1;
#endif
static const unsigned char FSDATA_ALIGN_PRE data__info_shtml[] FSDATA_ALIGN_POST = {
/* /info.shtml (12 chars) */
0x2f,0x69,0x6e,0x66,0x6f,0x2e,0x73,0x68,0x74,0x6d,0x6c,0x00,
/* HTTP header */
/* "HTTP/1.0 200 OK
" (17 bytes) */
0x48,0x54,0x54,0x50,0x2f,0x31,0x2e,0x30,0x20,0x32,0x30,0x30,0x20,0x4f,0x4b,0x0d,
0x0a,
/* "Server: lwIP/2.1.2 (http://savannah.nongnu.org/projects/lwip)
" (63 bytes) */
0x53,0x65,0x72,0x76,0x65,0x72,0x3a,0x20,0x6c,0x77,0x49,0x50,0x2f,0x32,0x2e,0x31,
0x2e,0x32,0x20,0x28,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x73,0x61,0x76,0x61,0x6e,
0x6e,0x61,0x68,0x2e,0x6e,0x6f,0x6e,0x67,0x6e,0x75,0x2e,0x6f,0x72,0x67,0x2f,0x70,
0x72,0x6f,0x6a,0x65,0x63,0x74,0x73,0x2f,0x6c,0x77,0x69,0x70,0x29,0x0d,0x0a,
/* "Content-Type: text/html
Expires: Fri, 10 Apr 2008 14:00:00 GMT
Pragma: no-cache
" (85 bytes) */
0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x2d,0x54,0x79,0x70,0x65,0x3a,0x20,0x74,0x65,
0x78,0x74,0x2f,0x68,0x74,0x6d,0x6c,0x0d,0x0a,0x45,0x78,0x70,0x69,0x72,0x65,0x73,
0x3a,0x20,0x46,0x72,0x69,0x2c,0x20,0x31,0x30,0x20,0x41,0x70,0x72,0x20,0x32,0x30,
0x30,0x38,0x20,0x31,0x34,0x3a,0x30,0x30,0x3a,0x30,0x30,0x20,0x47,0x4d,0x54,0x0d,
0x0a,0x50,0x72,0x61,0x67,0x6d,0x61,0x3a,0x20,0x6e,0x6f,0x2d,0x63,0x61,0x63,0x68,
0x65,0x0d,0x0a,0x0d,0x0a,
/* raw file data (217 bytes) */
0x3c,0x21,0x44,0x4f,0x43,0x54,0x59,0x50,0x45,0x20,0x68,0x74,0x6d,0x6c,0x3e,0x0d,
0x0a,0x3c,0x68,0x74,0x6d,0x6c,0x3e,0x0d,0x0a,0x3c,0x68,0x65,0x61,0x64,0x3e,0x0d,
0x0a,0x20,0x20,0x20,0x20,0x3c,0x74,0x69,0x74,0x6c,0x65,0x3e,0x4d,0x79,0x20,0x53,
0x54,0x4d,0x33,0x32,0x20,0x57,0x65,0x62,0x20,0x50,0x61,0x67,0x65,0x3c,0x2f,0x74,
0x69,0x74,0x6c,0x65,0x3e,0x0d,0x0a,0x3c,0x2f,0x68,0x65,0x61,0x64,0x3e,0x0d,0x0a,
0x3c,0x62,0x6f,0x64,0x79,0x3e,0x0d,0x0a,0x20,0x20,0x20,0x20,0x3c,0x68,0x31,0x3e,
0x57,0x65,0x6c,0x63,0x6f,0x6d,0x65,0x20,0x74,0x6f,0x20,0x6d,0x79,0x20,0x53,0x54,
0x4d,0x33,0x32,0x20,0x57,0x65,0x62,0x20,0x50,0x61,0x67,0x65,0x3c,0x2f,0x68,0x31,
0x3e,0x0d,0x0a,0x20,0x20,0x20,0x20,0x3c,0x70,0x3e,0x56,0x65,0x72,0x73,0x69,0x6f,
0x6e,0x3a,0x20,0x3c,0x21,0x2d,0x2d,0x23,0x56,0x45,0x52,0x53,0x49,0x4f,0x4e,0x2d,
0x2d,0x3e,0x3c,0x2f,0x70,0x3e,0x0d,0x0a,0x20,0x20,0x20,0x20,0x3c,0x70,0x3e,0x44,
0x61,0x74,0x65,0x3a,0x20,0x3c,0x21,0x2d,0x2d,0x23,0x44,0x41,0x54,0x45,0x2d,0x2d,
0x3e,0x3c,0x2f,0x70,0x3e,0x0d,0x0a,0x3c,0x2f,0x62,0x6f,0x64,0x79,0x3e,0x0d,0x0a,
0x3c,0x2f,0x68,0x74,0x6d,0x6c,0x3e,0x0d,0x0a,};
const struct fsdata_file file__index_html[] = { {
file_NULL,
data__index_html,
data__index_html + 12,
sizeof(data__index_html) - 12,
FS_FILE_FLAGS_HEADER_INCLUDED | FS_FILE_FLAGS_HEADER_PERSISTENT,
}};
const struct fsdata_file file__info_shtml[] = { {
file__index_html,
data__info_shtml,
data__info_shtml + 12,
sizeof(data__info_shtml) - 12,
FS_FILE_FLAGS_HEADER_INCLUDED | FS_FILE_FLAGS_SSI,
}};
#define FS_ROOT file__info_shtml
#define FS_NUMFILES 2