[Java] Update auto-generated Java bindings with new upstream getters
[ldk-java] / src / main / java / org / ldk / structs / ReadOnlyNetworkGraph.java
index 058daad0cd89ef630e676952d6b85dc0d6ca2780..caeb6b97e3c41063a0732e5a204709c9684e2433 100644 (file)
@@ -34,6 +34,15 @@ public class ReadOnlyNetworkGraph extends CommonBase implements AutoCloseable {
                return ret_hu_conv;
        }
 
+       /**
+        * Returns the list of channels in the graph
+        */
+       public long[] list_channels() {
+               long[] ret = bindings.ReadOnlyNetworkGraph_list_channels(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
        /**
         * Returns information on a node with the given id.
         * 
@@ -51,6 +60,23 @@ public class ReadOnlyNetworkGraph extends CommonBase implements AutoCloseable {
                return ret_hu_conv;
        }
 
+       /**
+        * Returns the list of nodes in the graph
+        */
+       public NodeId[] list_nodes() {
+               long[] ret = bindings.ReadOnlyNetworkGraph_list_nodes(this.ptr);
+               Reference.reachabilityFence(this);
+               int ret_conv_8_len = ret.length;
+               NodeId[] ret_conv_8_arr = new NodeId[ret_conv_8_len];
+               for (int i = 0; i < ret_conv_8_len; i++) {
+                       long ret_conv_8 = ret[i];
+                       org.ldk.structs.NodeId ret_conv_8_hu_conv = null; if (ret_conv_8 < 0 || ret_conv_8 > 4096) { ret_conv_8_hu_conv = new org.ldk.structs.NodeId(null, ret_conv_8); }
+                       ret_conv_8_hu_conv.ptrs_to.add(this);
+                       ret_conv_8_arr[i] = ret_conv_8_hu_conv;
+               }
+               return ret_conv_8_arr;
+       }
+
        /**
         * Get network addresses by node id.
         * Returns None if the requested node is completely unknown,