[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / InitFeatures.java
index fbd23d8966318766122b5f877b61df17aa7cc56e..418f79e8cc00bd9a0987d809c8593b85197a0065 100644 (file)
@@ -26,7 +26,7 @@ public class InitFeatures extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(org.ldk.structs.InitFeatures b) {
-               boolean ret = bindings.InitFeatures_eq(this.ptr, b == null ? 0 : b.ptr);
+               boolean ret = bindings.InitFeatures_eq(this.ptr, b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                if (this != null) { this.ptrs_to.add(b); };
@@ -82,7 +82,7 @@ public class InitFeatures extends CommonBase {
         * Returns true if this `Features` object contains required features unknown by `other`.
         */
        public boolean requires_unknown_bits_from(org.ldk.structs.InitFeatures other) {
-               boolean ret = bindings.InitFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr);
+               boolean ret = bindings.InitFeatures_requires_unknown_bits_from(this.ptr, other.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(other);
                if (this != null) { this.ptrs_to.add(other); };
@@ -794,4 +794,38 @@ public class InitFeatures extends CommonBase {
                return ret;
        }
 
+       /**
+        * Set this feature as optional.
+        */
+       public void set_trampoline_routing_optional() {
+               bindings.InitFeatures_set_trampoline_routing_optional(this.ptr);
+               Reference.reachabilityFence(this);
+       }
+
+       /**
+        * Set this feature as required.
+        */
+       public void set_trampoline_routing_required() {
+               bindings.InitFeatures_set_trampoline_routing_required(this.ptr);
+               Reference.reachabilityFence(this);
+       }
+
+       /**
+        * Checks if this feature is supported.
+        */
+       public boolean supports_trampoline_routing() {
+               boolean ret = bindings.InitFeatures_supports_trampoline_routing(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       /**
+        * Checks if this feature is required.
+        */
+       public boolean requires_trampoline_routing() {
+               boolean ret = bindings.InitFeatures_requires_trampoline_routing(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
 }