Update auto-generated bindings with new upstream.
[ldk-java] / ts / structs / Ping.ts
index d915f29e4612c8e74f47817fa7598902b3b7706d..f7054fe012ae08e2ec003add20f46ebc69e91716 100644 (file)
@@ -18,12 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location
                         bindings.Ping_free(this.ptr);
                     }
                 }
-       public Ping clone() {
-               number ret = bindings.Ping_clone(this.ptr);
-               const ret_hu_conv: Ping = new Ping(null, ret);
-               return ret_hu_conv;
-       }
-
        public number get_ponglen() {
                number ret = bindings.Ping_get_ponglen(this.ptr);
                return ret;
@@ -45,6 +39,14 @@ import * as bindings from '../bindings' // TODO: figure out location
        public static Ping constructor_new(number ponglen_arg, number byteslen_arg) {
                number ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
                const ret_hu_conv: Ping = new Ping(null, ret);
+               ret_hu_conv.ptrs_to.add(ret_hu_conv);
+               return ret_hu_conv;
+       }
+
+       public Ping clone() {
+               number ret = bindings.Ping_clone(this.ptr);
+               const ret_hu_conv: Ping = new Ping(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;
        }