#ifndef _STUPID_SIMPLE_FS_H #define _STUPID_SIMPLE_FS_H #include 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