]> git.bitcoin.ninja Git - ldk-java/blobdiff - src/main/java/org/ldk/impl/bindings.java
ref-count trait objects to avoid double-free, probably will need to do this everywhere
[ldk-java] / src / main / java / org / ldk / impl / bindings.java
index b79be037fb2beba51c6b9e48403fcf4e1dec83c6..9a9963cd7e1f74ef69dd32e5c3f673c170c6d0f4 100644 (file)
@@ -14,7 +14,7 @@ public class bindings {
        }
        public static native long LDKEventsProvider_new(LDKEventsProvider impl);
        public interface LDKLogger {
-                void log(long record);
+                void log(String record);
        }
        public static native long LDKLogger_new(LDKLogger impl);
        public interface LDKChainWatchInterface {
@@ -88,7 +88,7 @@ public class bindings {
                 void handle_channel_reestablish(long their_node_id, long msg);
                 void handle_error(long their_node_id, long msg);
        }
-       public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl);
+       public static native long LDKChannelMessageHandler_new(LDKChannelMessageHandler impl, LDKMessageSendEventsProvider MessageSendEventsProvider);
        public interface LDKRoutingMessageHandler {
                 long handle_node_announcement(long msg);
                 long handle_channel_announcement(long msg);