From 11672146b9bf67cae05e8e3207c9bd1e47d52220 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Fri, 5 Jan 2024 04:53:20 -0600 Subject: extracts natives --- src/version.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/version.h') diff --git a/src/version.h b/src/version.h index c008481..89341cb 100644 --- a/src/version.h +++ b/src/version.h @@ -14,7 +14,8 @@ enum { VERSION_ERRNO, VERSION_EDOWNLOAD, VERSION_ENOTFOUND, - VERSION_ERECURSE + VERSION_ERECURSE, + VERSION_EZIP }; struct l2_version_remote { @@ -64,11 +65,7 @@ struct l2_version_library { size_t size; struct { - enum { - EXTRACT_NONE, /* do not extract anything */ - EXTRACT_OLD, /* extract whole jar, preserving entries that are not excluded */ - EXTRACT_NEW /* extract only .dll, .so, .dylib from jar */ - } extracttype; + bool extract; char **exclude; } extract; @@ -101,4 +98,6 @@ void l2_version_free_libraries(struct l2_version_library *libs); unsigned l2_version_download_jar(json_t *version, const char *specifier, char **path); +unsigned l2_version_extract_natives(struct l2_version_library *libs, char **nativesdir); + #endif /* include guard */ -- cgit v1.2.3-70-g09d2