uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
romfs.c File Reference
#include <string.h>
#include <FreeRTOS.h>
#include <semphr.h>
#include <unistd.h>
#include "fio.h"
#include "filesystem.h"
#include "romfs.h"
#include "osdebug.h"
#include "hash-djb2.h"

Go to the source code of this file.

Classes

struct  romfs_fds_t
 

Functions

const uint8_t * romfs_get_file_by_hash (const uint8_t *romfs, uint32_t h, uint32_t *len)
 
void register_romfs (const char *mountpoint, const uint8_t *romfs)
 

Function Documentation

void register_romfs ( const char *  mountpoint,
const uint8_t *  romfs 
)

Definition at line 107 of file romfs.c.

const uint8_t* romfs_get_file_by_hash ( const uint8_t *  romfs,
uint32_t  h,
uint32_t *  len 
)

Definition at line 73 of file romfs.c.