#include "lwip/def.h"
#include "fs.h"
#include "fsdata.h"
#include "fsdata.c"
#include <string.h>
Include dependency graph for fs.c:
Go to the source code of this file.
Functions | |
int | fs_open (char *name, struct fs_file *file) |
|
Definition at line 49 of file fs.c. References fs_file::data, FS_ROOT, fs_file::len, name, and NULL. Referenced by http_recv().
00050 { 00051 struct fsdata_file_noconst *f; 00052 00053 for(f = (struct fsdata_file_noconst *)FS_ROOT; f != NULL; f = (struct fsdata_file_noconst *)f->next) { 00054 if(!strcmp(name, f->name)) { 00055 file->data = f->data; 00056 file->len = f->len; 00057 return 1; 00058 } 00059 } 00060 return 0; 00061 } |