Espresso 0.0.2a
This commit is contained in:
19
include/fs/ssfs.h
Normal file
19
include/fs/ssfs.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef _STUPID_SIMPLE_FS_H
|
||||
#define _STUPID_SIMPLE_FS_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct ssfs_file_header {
|
||||
char filename[16]; /* 15 chars + null zero */
|
||||
|
||||
uint32_t num_sectors;
|
||||
uint64_t start_sector;
|
||||
uint32_t num_bytes;
|
||||
|
||||
/*uint8_t padding_[11];*/ /* 32 bytes without this */
|
||||
} __attribute__((packed)) ssfs_file_header_t;
|
||||
|
||||
int ssfs_read_file(const char* name, void* buffer, int size);
|
||||
int ssfs_write_file(const char* name, void* data, int size);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user