projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-updated Java files
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
structs
/
FilesystemPersister.java
diff --git
a/src/main/java/org/ldk/structs/FilesystemPersister.java
b/src/main/java/org/ldk/structs/FilesystemPersister.java
index 4df4cb285e082b1342b9875307ddc094fc296fb6..a274e07b1553e8a05bfd745b291f050dfbdbb3c5 100644
(file)
--- a/
src/main/java/org/ldk/structs/FilesystemPersister.java
+++ b/
src/main/java/org/ldk/structs/FilesystemPersister.java
@@
-4,6
+4,8
@@
import org.ldk.impl.bindings;
import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
import org.ldk.enums.*;
import org.ldk.util.*;
import java.util.Arrays;
+import java.lang.ref.Reference;
+import javax.annotation.Nullable;
/**
/**
@@
-33,9
+35,11
@@
public class FilesystemPersister extends CommonBase {
* Initialize a new FilesystemPersister and set the path to the individual channels'
* files.
*/
* Initialize a new FilesystemPersister and set the path to the individual channels'
* files.
*/
- public static FilesystemPersister of(String path_to_channel_data) {
+ public static FilesystemPersister of(
java.lang.
String path_to_channel_data) {
long ret = bindings.FilesystemPersister_new(path_to_channel_data);
long ret = bindings.FilesystemPersister_new(path_to_channel_data);
- FilesystemPersister ret_hu_conv = new FilesystemPersister(null, ret);
+ Reference.reachabilityFence(path_to_channel_data);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ FilesystemPersister ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new FilesystemPersister(null, ret); }
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
ret_hu_conv.ptrs_to.add(ret_hu_conv);
return ret_hu_conv;
}
@@
-45,6
+49,7
@@
public class FilesystemPersister extends CommonBase {
*/
public String get_data_dir() {
String ret = bindings.FilesystemPersister_get_data_dir(this.ptr);
*/
public String get_data_dir() {
String ret = bindings.FilesystemPersister_get_data_dir(this.ptr);
+ Reference.reachabilityFence(this);
return ret;
}
return ret;
}
@@
-53,6
+58,9
@@
public class FilesystemPersister extends CommonBase {
*/
public Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ read_channelmonitors(KeysInterface keys_manager) {
long ret = bindings.FilesystemPersister_read_channelmonitors(this.ptr, keys_manager == null ? 0 : keys_manager.ptr);
*/
public Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ read_channelmonitors(KeysInterface keys_manager) {
long ret = bindings.FilesystemPersister_read_channelmonitors(this.ptr, keys_manager == null ? 0 : keys_manager.ptr);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(keys_manager);
+ if (ret >= 0 && ret <= 4096) { return null; }
Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ ret_hu_conv = Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ.constr_from_ptr(ret);
this.ptrs_to.add(keys_manager);
return ret_hu_conv;
Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ ret_hu_conv = Result_CVec_C2Tuple_BlockHashChannelMonitorZZErrorZ.constr_from_ptr(ret);
this.ptrs_to.add(keys_manager);
return ret_hu_conv;
@@
-64,6
+72,8
@@
public class FilesystemPersister extends CommonBase {
*/
public Persist as_Persist() {
long ret = bindings.FilesystemPersister_as_Persist(this.ptr);
*/
public Persist as_Persist() {
long ret = bindings.FilesystemPersister_as_Persist(this.ptr);
+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
Persist ret_hu_conv = new Persist(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;
Persist ret_hu_conv = new Persist(null, ret);
ret_hu_conv.ptrs_to.add(this);
return ret_hu_conv;