Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / SocketDescriptor.java
index fd8454c7509286596287ec4e33a1e3edf5796b98..3edbde56f6b9f0801b05c48e7c4ab7bc0c7bf327 100644 (file)
@@ -139,12 +139,17 @@ public class SocketDescriptor extends CommonBase {
                return ret;
        }
 
+       long clone_ptr() {
+               long ret = bindings.SocketDescriptor_clone_ptr(this.ptr);
+               return ret;
+       }
+
        /**
         * Creates a copy of a SocketDescriptor
         */
        public SocketDescriptor clone() {
                long ret = bindings.SocketDescriptor_clone(this.ptr);
-               if (ret >= 0 && ret < 1024) { return null; }
+               if (ret >= 0 && ret <= 4096) { return null; }
                SocketDescriptor ret_hu_conv = new SocketDescriptor(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;