36 #include "contiki-net.h"
39 #include "httpd-fsdata.h"
41 #include "httpd-fsdata.c"
42 #include "ctk/libconio_arch-small.h"
44 #if HTTPD_FS_STATISTICS
45 static u16_t count[HTTPD_FS_NUMFILES];
50 httpd_fs_strcmp(
const char *str1,
const char *str2)
62 if(str1[i] != str2[i]) {
71 httpd_fs_open(
const char *name,
struct httpd_fs_file *file)
73 #if HTTPD_FS_STATISTICS
77 struct httpd_fsdata_file_noconst *f;
80 for(f = (
struct httpd_fsdata_file_noconst *)HTTPD_FS_ROOT;
82 f = (
struct httpd_fsdata_file_noconst *)f->next) {
84 if(httpd_fs_strcmp(name, f->name) == 0) {
87 #if HTTPD_FS_STATISTICS
92 #if HTTPD_FS_STATISTICS
103 #if HTTPD_FS_STATISTICS
105 for(i = 0; i < HTTPD_FS_NUMFILES; i++) {
111 #if HTTPD_FS_STATISTICS
113 httpd_fs_count(
char *name)
115 struct httpd_fsdata_file_noconst *f;
119 for(f = (
struct httpd_fsdata_file_noconst *)HTTPD_FS_ROOT;
121 f = (
struct httpd_fsdata_file_noconst *)f->next) {
123 if(httpd_fs_strcmp(name, f->name) == 0) {