Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[ldk-java] / src / main / java / org / ldk / structs / Shutdown.java
index d1b08971c69b16ad1e34d17184fb370ed44fe3d8..111511269b4244cb8efcb0472ac3f65891ab6b6e 100644 (file)
@@ -33,9 +33,21 @@ public class Shutdown extends CommonBase {
                return ret;
        }
 
-       // Skipped Shutdown_set_scriptpubkey
-       // Skipped Shutdown_new
-       // Skipped Shutdown_write
+       public void set_scriptpubkey(Shutdown this_ptr, byte[] val) {
+               bindings.Shutdown_set_scriptpubkey(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
+               this.ptrs_to.add(this_ptr);
+       }
+
+       public Shutdown(byte[] channel_id_arg, byte[] scriptpubkey_arg) {
+               super(bindings.Shutdown_new(channel_id_arg, scriptpubkey_arg));
+       }
+
+       public byte[] write(Shutdown obj) {
+               byte[] ret = bindings.Shutdown_write(obj == null ? 0 : obj.ptr & ~1);
+               this.ptrs_to.add(obj);
+               return ret;
+       }
+
        public Shutdown(byte[] ser) {
                super(bindings.Shutdown_read(ser));
        }