Microchip® Advanced Software Framework

raw_http_basic_example/network/httpserver/fs.c File Reference

Virtual file system management.

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

#include <string.h>
#include "fs.h"
#include "fsdata.h"

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.

Referenced by http_recv(), and http_request().