aboutsummaryrefslogtreecommitdiffstats
path: root/src/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/version.h')
-rw-r--r--src/version.h11
1 files changed, 5 insertions, 6 deletions
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 */