diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-12-01 21:53:15 +0800 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2021-12-08 13:20:57 -0800 |
commit | 246dde5d32de0aab5bfc71808dd16d8b02f6d4c3 (patch) | |
tree | 2362f9c1faa71d1a55672420b77f57be740dcc3a /lib/liberofs_private.h | |
parent | fd1882ac16470ca31c48ef5bd3be9a5ce2625c9b (diff) | |
download | erofs-utils-246dde5d32de0aab5bfc71808dd16d8b02f6d4c3.tar.gz |
UPSTREAM: erofs-utils: make liberofs more C++ friendly
1. Add extern "C" wrappers to headers, so that they can be included
from C++
2. Add const keywords to certain pointer type params
Link: https://lore.kernel.org/r/20211201135315.3732-1-xiang@kernel.org
Signed-off-by: Kelvin Zhang <zhangkelvin@google.com>
Signed-off-by: Gao Xiang <xiang@kernel.org>
(cherry picked from commit 519dbd2368240c4c6d159459ab5614e1d9540c3c)
Change-Id: I43522f84586e855f06a5d5c626e6a476c1c39aa4
Diffstat (limited to 'lib/liberofs_private.h')
-rw-r--r-- | lib/liberofs_private.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/liberofs_private.h b/lib/liberofs_private.h new file mode 100644 index 0000000..c2312e8 --- /dev/null +++ b/lib/liberofs_private.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ + +#ifdef HAVE_LIBSELINUX +#include <selinux/selinux.h> +#include <selinux/label.h> +#endif + +#ifdef WITH_ANDROID +#include <selinux/android.h> +#include <private/android_filesystem_config.h> +#include <private/canned_fs_config.h> +#include <private/fs_config.h> +#endif |