35 #include "contiki-net.h"
38 #include "httpd-fsdata.h"
40 #include "httpd-fsdata.c"
42 #if HTTPD_FS_STATISTICS
43 static uint16_t count[HTTPD_FS_NUMFILES];
48 httpd_fs_strcmp(
const char *str1,
const char *str2)
60 if(str1[i] != str2[i]) {
69 httpd_fs_open(
const char *name,
struct httpd_fs_file *file)
71 #if HTTPD_FS_STATISTICS
74 struct httpd_fsdata_file_noconst *f;
76 for(f = (
struct httpd_fsdata_file_noconst *)HTTPD_FS_ROOT;
78 f = (
struct httpd_fsdata_file_noconst *)f->next) {
80 if(httpd_fs_strcmp(name, f->name) == 0) {
83 #if HTTPD_FS_STATISTICS
88 #if HTTPD_FS_STATISTICS
99 #if HTTPD_FS_STATISTICS
101 for(i = 0; i < HTTPD_FS_NUMFILES; i++) {
107 #if HTTPD_FS_STATISTICS
109 httpd_fs_count(
char *name)
111 struct httpd_fsdata_file_noconst *f;
115 for(f = (
struct httpd_fsdata_file_noconst *)HTTPD_FS_ROOT;
117 f = (
struct httpd_fsdata_file_noconst *)f->next) {
119 if(httpd_fs_strcmp(name, f->name) == 0) {
#define NULL
The null pointer.