From 874b548986e3315d08b2de24c36bcdbbad0ae98b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 11 Jul 2021 19:30:18 +0000 Subject: [PATCH] Update auto-generated bindings to 0.0.99.1 --- src/main/java/org/ldk/impl/bindings.java | 2 +- src/main/jni/bindings.c | 6 +----- src/main/jni/bindings.c.body | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/ldk/impl/bindings.java b/src/main/java/org/ldk/impl/bindings.java index 69a392fb..9a5c9f2d 100644 --- a/src/main/java/org/ldk/impl/bindings.java +++ b/src/main/java/org/ldk/impl/bindings.java @@ -48,7 +48,7 @@ public class bindings { static native String get_lib_version_string(); public static String get_ldk_java_bindings_version() { - return "v0.0.99.0"; + return "v0.0.99.1"; } public static native String get_ldk_c_bindings_version(); public static native String get_ldk_version(); diff --git a/src/main/jni/bindings.c b/src/main/jni/bindings.c index 88713602..b71fa7be 100644 --- a/src/main/jni/bindings.c +++ b/src/main/jni/bindings.c @@ -133,7 +133,7 @@ static inline LDKStr java_to_owned_str(JNIEnv *env, jstring str) { } JNIEXPORT jstring JNICALL Java_org_ldk_impl_bindings_get_1lib_1version_1string(JNIEnv *env, jclass _c) { - return str_ref_to_java(env, "v0.0.99.0", strlen("v0.0.99.0")); + return str_ref_to_java(env, "v0.0.99.1", strlen("v0.0.99.1")); } JNIEXPORT jstring JNICALL Java_org_ldk_impl_bindings_get_1ldk_1c_1bindings_1version(JNIEnv *env, jclass _c) { return str_ref_to_java(env, check_get_ldk_bindings_version(), strlen(check_get_ldk_bindings_version())); @@ -26160,7 +26160,3 @@ JNIEXPORT jstring JNICALL Java_org_ldk_impl_bindings_SiPrefix_1to_1str(JNIEnv *e return ret_conv; } -// __cxa_thread_atexit_impl is used to more effeciently cleanup per-thread local storage by rust libstd. -// However, it is not available on glibc versions 2.17 or earlier, and rust libstd has a null-check and fallback in case it is missing. -// Because it is weak-linked on the rust side, we should be able to simply define it explicitly here, forcing rust to use the fallback. -void *__cxa_thread_atexit_impl = NULL; diff --git a/src/main/jni/bindings.c.body b/src/main/jni/bindings.c.body index 62287f97..06beaea6 100644 --- a/src/main/jni/bindings.c.body +++ b/src/main/jni/bindings.c.body @@ -131,7 +131,7 @@ static inline LDKStr java_to_owned_str(JNIEnv *env, jstring str) { } JNIEXPORT jstring JNICALL Java_org_ldk_impl_bindings_get_1lib_1version_1string(JNIEnv *env, jclass _c) { - return str_ref_to_java(env, "v0.0.99.0", strlen("v0.0.99.0")); + return str_ref_to_java(env, "v0.0.99.1", strlen("v0.0.99.1")); } JNIEXPORT jstring JNICALL Java_org_ldk_impl_bindings_get_1ldk_1c_1bindings_1version(JNIEnv *env, jclass _c) { return str_ref_to_java(env, check_get_ldk_bindings_version(), strlen(check_get_ldk_bindings_version())); -- 2.39.5