fs.c File Reference

#include "lwip/def.h"
#include "fs.h"
#include "fsdata_file.h"
#include "fsdata.c"

Go to the source code of this file.

Functions

int fs_open (char *name, struct fs_file *file)


Function Documentation

int fs_open ( char *  name,
struct fs_file file 
)

Definition at line 41 of file fs.c.

References fsdata_file::cb, fs_file::data, FS_ROOT, fs_file::len, fsdata_file::name, and fsdata_file::next.

Referenced by http_recv().

00042 {
00043     const struct fsdata_file *f;
00044     for (f = FS_ROOT; f != NULL; f = f->next) {
00045         if (!strcmp(name, f->name)) {
00046             f->cb((const char**) &file->data, &file->len);
00047             return 1;
00048         }
00049     }
00050     return 0;
00051 }


Generated on Fri Feb 19 02:24:07 2010 for AVR32 - H&D by  doxygen 1.5.5