taisei/src/vfs/decompress_wrapper.h
Andrei Alexeyev 3de1d96f52
vfs: transparent decompression of *.zst files
A zstd-compressed file "foobar.foo.zst" will appear in the filesystem as
a normal uncompressed file "foobar.foo". The raw compressed data is
still available under the original .zst filename.

If both "foobar.foo" and "foobar.foo.zst" exist, the former is
preferred and won't be shadowed.

This is implemented as a wrapper layer, much like readonly_wrapper.
It is currently applied on top of plain directories that contribute to
/res, but not to zipped packages. Zip files support zstd as a
compression method, so we'll probably rely on that instead.
2021-03-26 21:45:57 +02:00

19 lines
499 B
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_vfs_decompress_wrapper_h
#define IGUARD_vfs_decompress_wrapper_h
#include "taisei.h"
#include "decompress_wrapper_public.h"
#include "private.h"
VFSNode *vfs_decomp_wrap(VFSNode *base);
#endif // IGUARD_vfs_decompress_wrapper_h