uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fs.c File Reference
#include "lwip/opt.h"
#include "lwip/def.h"
#include "fs.h"
#include <string.h>
#include <hash-djb2.h>
#include <romfs.h>

Go to the source code of this file.

Classes

struct  webfs_table
 

Macros

#define LWIP_MAX_OPEN_FILES   10
 

Functions

int webfs_open_custom (struct webfs_file *file, const char *name)
 
void webfs_close_custom (struct webfs_file *file)
 
struct webfs_filewebfs_open (const char *name)
 
void webfs_close (struct webfs_file *file)
 
int webfs_read (struct webfs_file *file, char *buffer, int count)
 
int webfs_bytes_left (struct webfs_file *file)
 
void webfs_init (const u8_t *romfs)
 

Variables

struct webfs_table webfs_memory [LWIP_MAX_OPEN_FILES]
 

Macro Definition Documentation

#define LWIP_MAX_OPEN_FILES   10

Definition at line 42 of file fs.c.

Function Documentation

int webfs_bytes_left ( struct webfs_file file)

Definition at line 151 of file fs.c.

void webfs_close ( struct webfs_file file)

Definition at line 126 of file fs.c.

void webfs_close_custom ( struct webfs_file file)

Definition at line 75 of file fs.c.

void webfs_init ( const u8_t romfs)

Definition at line 156 of file fs.c.

struct webfs_file* webfs_open ( const char *  name)

Definition at line 107 of file fs.c.

int webfs_open_custom ( struct webfs_file file,
const char *  name 
)

Definition at line 56 of file fs.c.

int webfs_read ( struct webfs_file file,
char *  buffer,
int  count 
)

Definition at line 132 of file fs.c.

Variable Documentation

struct webfs_table webfs_memory[LWIP_MAX_OPEN_FILES]

Definition at line 54 of file fs.c.