Un-break the test and untie serving code in dash example

This commit is contained in:
Sergey Lyubka committed 2022-05-13 22:15:33 +01:00
1 parent 3fbb7de712
commit c20e48179f
5 files changed
+139 -132

No files matched your search

-4
View File
@@ -40,7 +40,3 @@ void mg_fs_close(struct mg_fd *fd);
char *mg_file_read(struct mg_fs *fs, const char *path, size_t *size);
bool mg_file_write(struct mg_fs *fs, const char *path, const void *, size_t);
bool mg_file_printf(struct mg_fs *fs, const char *path, const char *fmt, ...);
// API for the embedded (packed) filesystem
const char *mg_unpack(const char *path, size_t *size, time_t *mtime);
const char *mg_unlist(size_t no);
+3
View File
@@ -7,6 +7,9 @@ struct packed_file {
size_t pos;
};
const char *mg_unpack(const char *path, size_t *size, time_t *mtime);
const char *mg_unlist(size_t no);
#if MG_ENABLE_PACKED_FS
#else
const char *mg_unpack(const char *path, size_t *size, time_t *mtime) {