[Java] Update auto-generated Java bindings
[ldk-java] / src / main / java / org / ldk / structs / ChannelInfo.java
index fa2ca7cf6411499cfb70b7468db89db43909b4fe..3a92408fedd249c529bb8a0ff747fff673a1ac26 100644 (file)
@@ -37,9 +37,10 @@ public class ChannelInfo extends CommonBase {
         * Protocol features of a channel communicated during its announcement
         */
        public void set_features(ChannelFeatures val) {
-               bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.ChannelInfo_set_features(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        /**
@@ -58,9 +59,10 @@ public class ChannelInfo extends CommonBase {
         * Source node of the first direction of a channel
         */
        public void set_node_one(NodeId val) {
-               bindings.ChannelInfo_set_node_one(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.ChannelInfo_set_node_one(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        /**
@@ -84,9 +86,10 @@ public class ChannelInfo extends CommonBase {
         * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        public void set_one_to_two(@Nullable ChannelUpdateInfo val) {
-               bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.ChannelInfo_set_one_to_two(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        /**
@@ -105,9 +108,10 @@ public class ChannelInfo extends CommonBase {
         * Source node of the second direction of a channel
         */
        public void set_node_two(NodeId val) {
-               bindings.ChannelInfo_set_node_two(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.ChannelInfo_set_node_two(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        /**
@@ -131,9 +135,10 @@ public class ChannelInfo extends CommonBase {
         * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        public void set_two_to_one(@Nullable ChannelUpdateInfo val) {
-               bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.ChannelInfo_set_two_to_one(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        /**
@@ -184,9 +189,10 @@ public class ChannelInfo extends CommonBase {
         * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        public void set_announcement_message(@Nullable ChannelAnnouncement val) {
-               bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr & ~1);
+               bindings.ChannelInfo_set_announcement_message(this.ptr, val == null ? 0 : val.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(val);
+               this.ptrs_to.add(val);
        }
 
        long clone_ptr() {