[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / ChannelMessageHandler.java
index 20173f72520bcbb735c02190a702047d6bf45628..c815ecdb316b9c78bfa9b79eb011bbd72d91d26c 100644 (file)
@@ -77,6 +77,22 @@ public class ChannelMessageHandler extends CommonBase {
                 * Handle an incoming `closing_signed` message from the given peer.
                 */
                void handle_closing_signed(byte[] their_node_id, ClosingSigned msg);
+               /**
+                * Handle an incoming `stfu` message from the given peer.
+                */
+               void handle_stfu(byte[] their_node_id, Stfu msg);
+               /**
+                * Handle an incoming `splice` message from the given peer.
+                */
+               void handle_splice(byte[] their_node_id, Splice msg);
+               /**
+                * Handle an incoming `splice_ack` message from the given peer.
+                */
+               void handle_splice_ack(byte[] their_node_id, SpliceAck msg);
+               /**
+                * Handle an incoming `splice_locked` message from the given peer.
+                */
+               void handle_splice_locked(byte[] their_node_id, SpliceLocked msg);
                /**
                 * Handle an incoming `tx_add_input message` from the given peer.
                 */
@@ -240,6 +256,26 @@ public class ChannelMessageHandler extends CommonBase {
                                arg.handle_closing_signed(their_node_id, msg_hu_conv);
                                Reference.reachabilityFence(arg);
                        }
+                       @Override public void handle_stfu(byte[] their_node_id, long msg) {
+                               org.ldk.structs.Stfu msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Stfu(null, msg); }
+                               arg.handle_stfu(their_node_id, msg_hu_conv);
+                               Reference.reachabilityFence(arg);
+                       }
+                       @Override public void handle_splice(byte[] their_node_id, long msg) {
+                               org.ldk.structs.Splice msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Splice(null, msg); }
+                               arg.handle_splice(their_node_id, msg_hu_conv);
+                               Reference.reachabilityFence(arg);
+                       }
+                       @Override public void handle_splice_ack(byte[] their_node_id, long msg) {
+                               org.ldk.structs.SpliceAck msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.SpliceAck(null, msg); }
+                               arg.handle_splice_ack(their_node_id, msg_hu_conv);
+                               Reference.reachabilityFence(arg);
+                       }
+                       @Override public void handle_splice_locked(byte[] their_node_id, long msg) {
+                               org.ldk.structs.SpliceLocked msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.SpliceLocked(null, msg); }
+                               arg.handle_splice_locked(their_node_id, msg_hu_conv);
+                               Reference.reachabilityFence(arg);
+                       }
                        @Override public void handle_tx_add_input(byte[] their_node_id, long msg) {
                                org.ldk.structs.TxAddInput msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.TxAddInput(null, msg); }
                                arg.handle_tx_add_input(their_node_id, msg_hu_conv);
@@ -482,6 +518,50 @@ public class ChannelMessageHandler extends CommonBase {
                if (this != null) { this.ptrs_to.add(msg); };
        }
 
+       /**
+        * Handle an incoming `stfu` message from the given peer.
+        */
+       public void handle_stfu(byte[] their_node_id, org.ldk.structs.Stfu msg) {
+               bindings.ChannelMessageHandler_handle_stfu(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), msg == null ? 0 : msg.ptr);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(their_node_id);
+               Reference.reachabilityFence(msg);
+               if (this != null) { this.ptrs_to.add(msg); };
+       }
+
+       /**
+        * Handle an incoming `splice` message from the given peer.
+        */
+       public void handle_splice(byte[] their_node_id, org.ldk.structs.Splice msg) {
+               bindings.ChannelMessageHandler_handle_splice(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), msg == null ? 0 : msg.ptr);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(their_node_id);
+               Reference.reachabilityFence(msg);
+               if (this != null) { this.ptrs_to.add(msg); };
+       }
+
+       /**
+        * Handle an incoming `splice_ack` message from the given peer.
+        */
+       public void handle_splice_ack(byte[] their_node_id, org.ldk.structs.SpliceAck msg) {
+               bindings.ChannelMessageHandler_handle_splice_ack(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), msg == null ? 0 : msg.ptr);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(their_node_id);
+               Reference.reachabilityFence(msg);
+               if (this != null) { this.ptrs_to.add(msg); };
+       }
+
+       /**
+        * Handle an incoming `splice_locked` message from the given peer.
+        */
+       public void handle_splice_locked(byte[] their_node_id, org.ldk.structs.SpliceLocked msg) {
+               bindings.ChannelMessageHandler_handle_splice_locked(this.ptr, InternalUtils.check_arr_len(their_node_id, 33), msg == null ? 0 : msg.ptr);
+               Reference.reachabilityFence(this);
+               Reference.reachabilityFence(their_node_id);
+               Reference.reachabilityFence(msg);
+               if (this != null) { this.ptrs_to.add(msg); };
+       }
+
        /**
         * Handle an incoming `tx_add_input message` from the given peer.
         */