fs_inmemory.h (455B)
1 #ifndef GOUT_FS_INMEMORY_H_ 2 #define GOUT_FS_INMEMORY_H_ 3 4 #include <stdio.h> 5 #include <sys/stat.h> 6 7 #include "utils.h" 8 9 /* Global in-memory file system implementation. */ 10 extern const FileSystem* g_fs_inmemory; 11 12 /* Returns the buffer for the specified path, or NULL if not found. */ 13 const char* inmemory_fs_get_buffer(const char* path); 14 15 /* Clears all memory buffers in the mock filesystem. */ 16 void inmemory_fs_clear(void); 17 18 #endif // GOUT_FS_INMEMORY_H_