Microchip® Advanced Software Framework

fs.h File Reference

Virtual file system management.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  fs_file
 

Functions

int fs_open (char *name, struct fs_file *file)
 Open the specified filename in the virtual file system. More...
 

int fs_open ( char *  name,
struct fs_file file 
)

Open the specified filename in the virtual file system.

Parameters
nameFilename to open.
filePointer to an allocated struct fs_file, to be filled by fs_open if the specified filename is found.
Returns
1 on success, 0 otherwise.

References fs_file::data, fsdata_file_noconst::data, FS_ROOT, fs_file::len, fsdata_file_noconst::len, fsdata_file_noconst::name, fsdata_file_noconst::next, and NULL.

Referenced by http_recv().