我用makefsfile.exe生成好了.h文件,但是不知道如何使用,除了生成的几个网页文件的数组以外还有一下这些结构体,不知道如何用
const struct fsdata_file file_perror_html[] =
{
{
NULL,
data_perror_html,
data_perror_html + 13,
sizeof(data_perror_html) - 13
}
};
const struct fsdata_file file_io_http_html[] =
{
{
file_perror_html,
data_io_http_html,
data_io_http_html + 14,
sizeof(data_io_http_html) - 14
}
};
const struct fsdata_file file_io_cgi_shtml[] =
{
{
file_io_http_html,
data_io_cgi_shtml,
data_io_cgi_shtml + 14,
sizeof(data_io_cgi_shtml) - 14
}
};
const struct fsdata_file file_index_html[] =
{
{
file_io_cgi_shtml,
data_index_html,
data_index_html + 12,
sizeof(data_index_html) - 12
}
};
const struct fsdata_file file_family_html[] =
{
{
file_index_html,
data_family_html,
data_family_html + 13,
sizeof(data_family_html) - 13
}
};
const struct fsdata_file file_block_html[] =
{
{
file_family_html,
data_block_html,
data_block_html + 12,
sizeof(data_block_html) - 12
}
};
const struct fsdata_file file_404_html[] =
{
{
file_block_html,
data_404_html,
data_404_html + 10,
sizeof(data_404_html) - 10
}
};
#define FS_ROOT file_404_html
#define FS_NUMFILES 7