ldk-java
3 years agoDont auto-free slices passed to Rust
Matt Corallo [Tue, 6 Oct 2020 17:35:27 +0000 (13:35 -0400)]
Dont auto-free slices passed to Rust

3 years agoReorg a bit and let us call trait methods from Java
Matt Corallo [Tue, 6 Oct 2020 01:59:34 +0000 (21:59 -0400)]
Reorg a bit and let us call trait methods from Java

3 years agoAdd ability to check if a CResult<> is OK, and get its value pointer
Matt Corallo [Tue, 6 Oct 2020 00:55:35 +0000 (20:55 -0400)]
Add ability to check if a CResult<> is OK, and get its value pointer

3 years agoAdd ability to get the Java object underlying a _JCalls struct
Matt Corallo [Tue, 6 Oct 2020 00:53:46 +0000 (20:53 -0400)]
Add ability to get the Java object underlying a _JCalls struct

3 years agoFix java short type ID for pointers
Matt Corallo [Tue, 6 Oct 2020 00:02:26 +0000 (20:02 -0400)]
Fix java short type ID for pointers

3 years agoUpdate test for new bindings
Matt Corallo [Fri, 2 Oct 2020 20:55:05 +0000 (16:55 -0400)]
Update test for new bindings

3 years agoUpdate auto-generated bindings
Matt Corallo [Fri, 2 Oct 2020 20:54:59 +0000 (16:54 -0400)]
Update auto-generated bindings

3 years agoUpdate genbindings.sh somewhat for newer upstream
Matt Corallo [Fri, 2 Oct 2020 20:54:35 +0000 (16:54 -0400)]
Update genbindings.sh somewhat for newer upstream

3 years agoUpdate to latest upstream bindings
Matt Corallo [Thu, 3 Sep 2020 20:39:40 +0000 (16:39 -0400)]
Update to latest upstream bindings

3 years agoAdd new test that builds a ChannelManager
Matt Corallo [Tue, 1 Sep 2020 20:49:23 +0000 (16:49 -0400)]
Add new test that builds a ChannelManager

3 years agoHandle size_t's and non-JCalls trait impls
Matt Corallo [Tue, 1 Sep 2020 20:48:48 +0000 (16:48 -0400)]
Handle size_t's and non-JCalls trait impls

3 years agoConvert unitary enums to Java enums
Matt Corallo [Tue, 1 Sep 2020 19:25:53 +0000 (15:25 -0400)]
Convert unitary enums to Java enums

3 years agoMove trait mapping to an fn
Matt Corallo [Tue, 1 Sep 2020 16:43:49 +0000 (12:43 -0400)]
Move trait mapping to an fn

3 years agoManually track allocations and assert that we don't leak
Matt Corallo [Tue, 1 Sep 2020 15:35:43 +0000 (11:35 -0400)]
Manually track allocations and assert that we don't leak

3 years agoRename PeerTest
Matt Corallo [Mon, 31 Aug 2020 23:16:19 +0000 (19:16 -0400)]
Rename PeerTest

3 years agoAdd .gitignore
Matt Corallo [Mon, 31 Aug 2020 22:56:14 +0000 (18:56 -0400)]
Add .gitignore

3 years agoTest current state of things, which actually doesn't crash!
Matt Corallo [Mon, 31 Aug 2020 22:44:53 +0000 (18:44 -0400)]
Test current state of things, which actually doesn't crash!

3 years agoref-count trait objects to avoid double-free, probably will need to do this everywhere
Matt Corallo [Mon, 31 Aug 2020 22:40:55 +0000 (18:40 -0400)]
ref-count trait objects to avoid double-free, probably will need to do this everywhere

3 years agoConvert String (tested from Java!)
Matt Corallo [Sat, 29 Aug 2020 03:50:14 +0000 (23:50 -0400)]
Convert String (tested from Java!)

3 years agoAdd debug info to liblightningjni.so
Matt Corallo [Sat, 29 Aug 2020 03:50:53 +0000 (23:50 -0400)]
Add debug info to liblightningjni.so

3 years agoUpdate linking for address sanitizer
Matt Corallo [Sat, 29 Aug 2020 03:34:37 +0000 (23:34 -0400)]
Update linking for address sanitizer

3 years agoClean up and calculate java method signatures
Matt Corallo [Sat, 29 Aug 2020 03:05:50 +0000 (23:05 -0400)]
Clean up and calculate java method signatures

3 years agoA bit less logic in map_type
Matt Corallo [Sat, 29 Aug 2020 01:41:56 +0000 (21:41 -0400)]
A bit less logic in map_type

3 years agoRun conversions on JNI -> Java calls, though need to fill them out
Matt Corallo [Fri, 28 Aug 2020 18:22:34 +0000 (14:22 -0400)]
Run conversions on JNI -> Java calls, though need to fill them out

3 years agoReturn, instead of writing, form map_type
Matt Corallo [Fri, 28 Aug 2020 16:42:24 +0000 (12:42 -0400)]
Return, instead of writing, form map_type

3 years agoSimplify type checking a bit
Matt Corallo [Fri, 28 Aug 2020 02:34:22 +0000 (22:34 -0400)]
Simplify type checking a bit

3 years agoSupport u16s
Matt Corallo [Fri, 28 Aug 2020 01:33:07 +0000 (21:33 -0400)]
Support u16s

3 years agoCompiles with fn calls, even if the call types are bogus
Matt Corallo [Fri, 28 Aug 2020 00:16:23 +0000 (20:16 -0400)]
Compiles with fn calls, even if the call types are bogus

3 years agoHandle trait return values
Matt Corallo [Thu, 27 Aug 2020 21:07:49 +0000 (17:07 -0400)]
Handle trait return values

3 years agoPull out type mapping
Matt Corallo [Thu, 27 Aug 2020 20:38:43 +0000 (16:38 -0400)]
Pull out type mapping

3 years agoStarting to look like something that might work...
Matt Corallo [Thu, 27 Aug 2020 20:17:40 +0000 (16:17 -0400)]
Starting to look like something that might work...

3 years agoNew genbindings
Matt Corallo [Wed, 26 Aug 2020 16:36:54 +0000 (12:36 -0400)]
New genbindings

3 years agoAlso output a C wrapper that correctly wraps all the JNI functions
Matt Corallo [Wed, 29 Jul 2020 04:41:30 +0000 (00:41 -0400)]
Also output a C wrapper that correctly wraps all the JNI functions

3 years agoInitial bindings header generation demo
Matt Corallo [Tue, 28 Jul 2020 17:14:25 +0000 (13:14 -0400)]
Initial bindings header generation demo

3 years agoInitial Dummy Checkin
Matt Corallo [Sat, 25 Jul 2020 22:24:14 +0000 (18:24 -0400)]
Initial Dummy Checkin