From: Matt Corallo Date: Wed, 13 Mar 2024 22:58:43 +0000 (+0000) Subject: [Java] Update auto-generated bindings X-Git-Tag: v0.0.121.3^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=1b5deed50c3fd0ec4ea2798c2aa04769d9ab63d2;p=ldk-java [Java] Update auto-generated bindings --- diff --git a/src/main/java/org/ldk/enums/BlindedFailure.java b/src/main/java/org/ldk/enums/BlindedFailure.java index 51b3265c..47ba4cf7 100644 --- a/src/main/java/org/ldk/enums/BlindedFailure.java +++ b/src/main/java/org/ldk/enums/BlindedFailure.java @@ -16,5 +16,5 @@ public enum BlindedFailure { */ LDKBlindedFailure_FromBlindedNode, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Bolt11SemanticError.java b/src/main/java/org/ldk/enums/Bolt11SemanticError.java index f858b153..9efbbc3a 100644 --- a/src/main/java/org/ldk/enums/Bolt11SemanticError.java +++ b/src/main/java/org/ldk/enums/Bolt11SemanticError.java @@ -47,5 +47,5 @@ public enum Bolt11SemanticError { */ LDKBolt11SemanticError_ImpreciseAmount, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Bolt12SemanticError.java b/src/main/java/org/ldk/enums/Bolt12SemanticError.java index 80cc8592..3fe0c2a3 100644 --- a/src/main/java/org/ldk/enums/Bolt12SemanticError.java +++ b/src/main/java/org/ldk/enums/Bolt12SemanticError.java @@ -113,5 +113,5 @@ public enum Bolt12SemanticError { */ LDKBolt12SemanticError_MissingSignature, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/COption_NoneZ.java b/src/main/java/org/ldk/enums/COption_NoneZ.java index d4379d79..4affa585 100644 --- a/src/main/java/org/ldk/enums/COption_NoneZ.java +++ b/src/main/java/org/ldk/enums/COption_NoneZ.java @@ -13,5 +13,5 @@ public enum COption_NoneZ { */ LDKCOption_NoneZ_None, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/ChannelMonitorUpdateStatus.java b/src/main/java/org/ldk/enums/ChannelMonitorUpdateStatus.java index 70c6589a..4cbadd6f 100644 --- a/src/main/java/org/ldk/enums/ChannelMonitorUpdateStatus.java +++ b/src/main/java/org/ldk/enums/ChannelMonitorUpdateStatus.java @@ -74,5 +74,5 @@ public enum ChannelMonitorUpdateStatus { */ LDKChannelMonitorUpdateStatus_UnrecoverableError, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/ChannelShutdownState.java b/src/main/java/org/ldk/enums/ChannelShutdownState.java index a7813ae5..9e8ea0ea 100644 --- a/src/main/java/org/ldk/enums/ChannelShutdownState.java +++ b/src/main/java/org/ldk/enums/ChannelShutdownState.java @@ -32,5 +32,5 @@ public enum ChannelShutdownState { */ LDKChannelShutdownState_ShutdownComplete, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/ConfirmationTarget.java b/src/main/java/org/ldk/enums/ConfirmationTarget.java index 4098a123..25479835 100644 --- a/src/main/java/org/ldk/enums/ConfirmationTarget.java +++ b/src/main/java/org/ldk/enums/ConfirmationTarget.java @@ -93,5 +93,5 @@ public enum ConfirmationTarget { */ LDKConfirmationTarget_ChannelCloseMinimum, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/CreationError.java b/src/main/java/org/ldk/enums/CreationError.java index 0f4c50fa..90e1a5f7 100644 --- a/src/main/java/org/ldk/enums/CreationError.java +++ b/src/main/java/org/ldk/enums/CreationError.java @@ -34,5 +34,5 @@ public enum CreationError { */ LDKCreationError_MinFinalCltvExpiryDeltaTooShort, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Currency.java b/src/main/java/org/ldk/enums/Currency.java index 67ed429b..4c57527e 100644 --- a/src/main/java/org/ldk/enums/Currency.java +++ b/src/main/java/org/ldk/enums/Currency.java @@ -25,5 +25,5 @@ public enum Currency { */ LDKCurrency_Signet, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/HTLCClaim.java b/src/main/java/org/ldk/enums/HTLCClaim.java index da90c2e0..286d0680 100644 --- a/src/main/java/org/ldk/enums/HTLCClaim.java +++ b/src/main/java/org/ldk/enums/HTLCClaim.java @@ -25,5 +25,5 @@ public enum HTLCClaim { */ LDKHTLCClaim_Revocation, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/IOError.java b/src/main/java/org/ldk/enums/IOError.java index ff41b270..2a2f26ec 100644 --- a/src/main/java/org/ldk/enums/IOError.java +++ b/src/main/java/org/ldk/enums/IOError.java @@ -23,5 +23,5 @@ public enum IOError { LDKIOError_Other, LDKIOError_UnexpectedEof, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Level.java b/src/main/java/org/ldk/enums/Level.java index 6b065961..38746c30 100644 --- a/src/main/java/org/ldk/enums/Level.java +++ b/src/main/java/org/ldk/enums/Level.java @@ -29,5 +29,5 @@ public enum Level { */ LDKLevel_Error, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Network.java b/src/main/java/org/ldk/enums/Network.java index ce377958..bcab211d 100644 --- a/src/main/java/org/ldk/enums/Network.java +++ b/src/main/java/org/ldk/enums/Network.java @@ -21,5 +21,5 @@ public enum Network { */ LDKNetwork_Signet, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/PaymentFailureReason.java b/src/main/java/org/ldk/enums/PaymentFailureReason.java index 1710fa7b..b9cec19c 100644 --- a/src/main/java/org/ldk/enums/PaymentFailureReason.java +++ b/src/main/java/org/ldk/enums/PaymentFailureReason.java @@ -40,5 +40,5 @@ public enum PaymentFailureReason { */ LDKPaymentFailureReason_UnexpectedError, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Recipient.java b/src/main/java/org/ldk/enums/Recipient.java index 6fad691b..5e705b19 100644 --- a/src/main/java/org/ldk/enums/Recipient.java +++ b/src/main/java/org/ldk/enums/Recipient.java @@ -19,5 +19,5 @@ public enum Recipient { */ LDKRecipient_PhantomNode, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/RetryableSendFailure.java b/src/main/java/org/ldk/enums/RetryableSendFailure.java index 30a0d2b3..26a79966 100644 --- a/src/main/java/org/ldk/enums/RetryableSendFailure.java +++ b/src/main/java/org/ldk/enums/RetryableSendFailure.java @@ -30,5 +30,5 @@ public enum RetryableSendFailure { */ LDKRetryableSendFailure_DuplicatePayment, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/Secp256k1Error.java b/src/main/java/org/ldk/enums/Secp256k1Error.java index 6b50cc5e..15ac4972 100644 --- a/src/main/java/org/ldk/enums/Secp256k1Error.java +++ b/src/main/java/org/ldk/enums/Secp256k1Error.java @@ -49,5 +49,5 @@ public enum Secp256k1Error { */ LDKSecp256k1Error_InvalidParityValue, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/SiPrefix.java b/src/main/java/org/ldk/enums/SiPrefix.java index 319da34e..8a87b1d3 100644 --- a/src/main/java/org/ldk/enums/SiPrefix.java +++ b/src/main/java/org/ldk/enums/SiPrefix.java @@ -21,5 +21,5 @@ public enum SiPrefix { */ LDKSiPrefix_Pico, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/SocketAddressParseError.java b/src/main/java/org/ldk/enums/SocketAddressParseError.java index f3bdd755..1622a1cc 100644 --- a/src/main/java/org/ldk/enums/SocketAddressParseError.java +++ b/src/main/java/org/ldk/enums/SocketAddressParseError.java @@ -21,5 +21,5 @@ public enum SocketAddressParseError { */ LDKSocketAddressParseError_InvalidOnionV3, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/enums/UtxoLookupError.java b/src/main/java/org/ldk/enums/UtxoLookupError.java index 1b2a750b..211861db 100644 --- a/src/main/java/org/ldk/enums/UtxoLookupError.java +++ b/src/main/java/org/ldk/enums/UtxoLookupError.java @@ -13,5 +13,5 @@ public enum UtxoLookupError { */ LDKUtxoLookupError_UnknownTx, ; static native void init(); - static { init(); } + static { org.ldk.impl.bindings.run_statics(); init(); } } \ No newline at end of file diff --git a/src/main/java/org/ldk/impl/bindings.java b/src/main/java/org/ldk/impl/bindings.java index c648d98c..a979e69d 100644 --- a/src/main/java/org/ldk/impl/bindings.java +++ b/src/main/java/org/ldk/impl/bindings.java @@ -38,6 +38,7 @@ public class bindings { // Fetching the LDK versions from C also checks that the header and binaries match System.err.println("Loaded LDK-Java Bindings " + version.get_ldk_java_bindings_version() + " with LDK " + get_ldk_version() + " and LDK-C-Bindings " + get_ldk_c_bindings_version()); } + public static void run_statics() { /* Useful to force the statics to run */ } static native void init(java.lang.Class c); static native void init_class_cache(); static native String get_lib_version_string();