Migrate MagiskBoot to C++

This commit is contained in:
topjohnwu
2018-10-24 21:08:06 -04:00
parent 01e7dff1a0
commit fc8a3c5fb4
17 changed files with 683 additions and 514 deletions

View File

@ -44,8 +44,8 @@ typedef enum {
#define ACCLAIM_MAGIC "BauwksBoot"
#define ACCLAIM_PRE_HEADER_SZ 262144
#define SUP_LIST ((char *[]) { "gzip", "xz", "lzma", "bzip2", "lz4", "lz4_legacy", NULL })
#define SUP_EXT_LIST ((char *[]) { "gz", "xz", "lzma", "bz2", "lz4", "lz4", NULL })
#define SUP_LIST ((const char *[]) { "gzip", "xz", "lzma", "bzip2", "lz4", "lz4_legacy", NULL })
#define SUP_EXT_LIST ((const char *[]) { "gz", "xz", "lzma", "bz2", "lz4", "lz4", NULL })
format_t check_fmt(const void *buf, size_t len);
void get_fmt_name(format_t fmt, char *name);