mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Add fs arg to mg_file* and mg_http_upload API
This commit is contained in:
1 parent
09df542db8
commit
56a7438114
20 files changed
+447
-367
No files matched your search
+13
-3
@@ -93,6 +93,16 @@ static size_t packed_seek(void *fd, size_t offset) {
|
||||
return fp->pos;
|
||||
}
|
||||
|
||||
struct mg_fs mg_fs_packed = {packed_stat, packed_list, packed_open,
|
||||
packed_close, packed_read, packed_write,
|
||||
packed_seek};
|
||||
static bool packed_rename(const char *from, const char *to) {
|
||||
(void) from, (void) to;
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool packed_remove(const char *path) {
|
||||
(void) path;
|
||||
return false;
|
||||
}
|
||||
|
||||
struct mg_fs mg_fs_packed = {packed_stat, packed_list, packed_open,
|
||||
packed_close, packed_read, packed_write,
|
||||
packed_seek, packed_rename, packed_remove};
|
||||
Reference in new issue
Block a user