projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update bindings to latest upstream.
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
NetworkGraph.java
diff --git
a/src/main/java/org/ldk/structs/NetworkGraph.java
b/src/main/java/org/ldk/structs/NetworkGraph.java
index 778e475b14677ee43cf367a355966e83ca640f0f..b8badcc5c149c8b043de7baa55cc1f75a8e6a717 100644
(file)
--- a/
src/main/java/org/ldk/structs/NetworkGraph.java
+++ b/
src/main/java/org/ldk/structs/NetworkGraph.java
@@
-14,6
+14,13
@@
public class NetworkGraph extends CommonBase {
if (ptr != 0) { bindings.NetworkGraph_free(ptr); }
}
if (ptr != 0) { bindings.NetworkGraph_free(ptr); }
}
+ public NetworkGraph clone() {
+ long ret = bindings.NetworkGraph_clone(this.ptr);
+ NetworkGraph ret_hu_conv = new NetworkGraph(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
public byte[] write() {
byte[] ret = bindings.NetworkGraph_write(this.ptr);
return ret;
public byte[] write() {
byte[] ret = bindings.NetworkGraph_write(this.ptr);
return ret;
@@
-28,6
+35,7
@@
public class NetworkGraph extends CommonBase {
public static NetworkGraph constructor_new(byte[] genesis_hash) {
long ret = bindings.NetworkGraph_new(genesis_hash);
NetworkGraph ret_hu_conv = new NetworkGraph(null, ret);
public static NetworkGraph constructor_new(byte[] genesis_hash) {
long ret = bindings.NetworkGraph_new(genesis_hash);
NetworkGraph ret_hu_conv = new NetworkGraph(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
return ret_hu_conv;
}