Test current state of things, which actually doesn't crash!
[ldk-java] / src / main / java / org / ldk / impl / bindings.java
index b79be037fb2beba51c6b9e48403fcf4e1dec83c6..947468c35abb8269d2eed8762519dbd9a40f9964 100644 (file)
@@ -5,6 +5,8 @@ public class bindings {
                System.loadLibrary("lightningjni");
        }
 
+       public static native long LDKSecretKey_new();
+
        public interface LDKMessageSendEventsProvider {
                 long get_and_clear_pending_msg_events();
        }
@@ -14,7 +16,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 +90,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);