Also output a C wrapper that correctly wraps all the JNI functions
[ldk-java] / src / main / java / org / ldk / bindings.java
index e0fb8cbdf2a08ef01a0ff679d96c0495723ae436..60e13c1a4cb88e973ab93d0ef7a9f4aabe667dca 100644 (file)
@@ -312,7 +312,7 @@ public class bindings {
        /// void OutPoint_free(LDKOutPoint this_ptr);
        public static native void OutPointfree(long this_ptr);
        /// const uint8_t (*OutPoint_get_txid(const LDKOutPoint *this_ptr))[32];
-       public static native byte[] OutPointgettxid(long this_ptr);
+       public static native byte[]  OutPointgettxid(long this_ptr);
        /// void OutPoint_set_txid(LDKOutPoint *this_ptr, LDKThirtyTwoBytes val);
        public static native void OutPointsettxid(long this_ptr, long val);
        /// uint16_t OutPoint_get_index(const LDKOutPoint *this_ptr);
@@ -340,27 +340,27 @@ public class bindings {
        /// void InMemoryChannelKeys_free(LDKInMemoryChannelKeys this_ptr);
        public static native void InMemoryChannelKeysfree(long this_ptr);
        /// const uint8_t (*InMemoryChannelKeys_get_funding_key(const LDKInMemoryChannelKeys *this_ptr))[32];
-       public static native byte[] InMemoryChannelKeysgetfundingkey(long this_ptr);
+       public static native byte[]  InMemoryChannelKeysgetfundingkey(long this_ptr);
        /// void InMemoryChannelKeys_set_funding_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
        public static native void InMemoryChannelKeyssetfundingkey(long this_ptr, long val);
        /// const uint8_t (*InMemoryChannelKeys_get_revocation_base_key(const LDKInMemoryChannelKeys *this_ptr))[32];
-       public static native byte[] InMemoryChannelKeysgetrevocationbasekey(long this_ptr);
+       public static native byte[]  InMemoryChannelKeysgetrevocationbasekey(long this_ptr);
        /// void InMemoryChannelKeys_set_revocation_base_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
        public static native void InMemoryChannelKeyssetrevocationbasekey(long this_ptr, long val);
        /// const uint8_t (*InMemoryChannelKeys_get_payment_key(const LDKInMemoryChannelKeys *this_ptr))[32];
-       public static native byte[] InMemoryChannelKeysgetpaymentkey(long this_ptr);
+       public static native byte[]  InMemoryChannelKeysgetpaymentkey(long this_ptr);
        /// void InMemoryChannelKeys_set_payment_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
        public static native void InMemoryChannelKeyssetpaymentkey(long this_ptr, long val);
        /// const uint8_t (*InMemoryChannelKeys_get_delayed_payment_base_key(const LDKInMemoryChannelKeys *this_ptr))[32];
-       public static native byte[] InMemoryChannelKeysgetdelayedpaymentbasekey(long this_ptr);
+       public static native byte[]  InMemoryChannelKeysgetdelayedpaymentbasekey(long this_ptr);
        /// void InMemoryChannelKeys_set_delayed_payment_base_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
        public static native void InMemoryChannelKeyssetdelayedpaymentbasekey(long this_ptr, long val);
        /// const uint8_t (*InMemoryChannelKeys_get_htlc_base_key(const LDKInMemoryChannelKeys *this_ptr))[32];
-       public static native byte[] InMemoryChannelKeysgethtlcbasekey(long this_ptr);
+       public static native byte[]  InMemoryChannelKeysgethtlcbasekey(long this_ptr);
        /// void InMemoryChannelKeys_set_htlc_base_key(LDKInMemoryChannelKeys *this_ptr, LDKSecretKey val);
        public static native void InMemoryChannelKeyssethtlcbasekey(long this_ptr, long val);
        /// const uint8_t (*InMemoryChannelKeys_get_commitment_seed(const LDKInMemoryChannelKeys *this_ptr))[32];
-       public static native byte[] InMemoryChannelKeysgetcommitmentseed(long this_ptr);
+       public static native byte[]  InMemoryChannelKeysgetcommitmentseed(long this_ptr);
        /// void InMemoryChannelKeys_set_commitment_seed(LDKInMemoryChannelKeys *this_ptr, LDKThirtyTwoBytes val);
        public static native void InMemoryChannelKeyssetcommitmentseed(long this_ptr, long val);
        /// MUST_USE_RES LDKInMemoryChannelKeys InMemoryChannelKeys_new(LDKSecretKey funding_key, LDKSecretKey revocation_base_key, LDKSecretKey payment_key, LDKSecretKey delayed_payment_base_key, LDKSecretKey htlc_base_key, LDKThirtyTwoBytes commitment_seed, uint64_t channel_value_satoshis, LDKC2Tuple_u64u64Z key_derivation_params);
@@ -384,7 +384,7 @@ public class bindings {
        /// void ChannelDetails_free(LDKChannelDetails this_ptr);
        public static native void ChannelDetailsfree(long this_ptr);
        /// const uint8_t (*ChannelDetails_get_channel_id(const LDKChannelDetails *this_ptr))[32];
-       public static native byte[] ChannelDetailsgetchannelid(long this_ptr);
+       public static native byte[]  ChannelDetailsgetchannelid(long this_ptr);
        /// void ChannelDetails_set_channel_id(LDKChannelDetails *this_ptr, LDKThirtyTwoBytes val);
        public static native void ChannelDetailssetchannelid(long this_ptr, long val);
        /// LDKPublicKey ChannelDetails_get_remote_network_id(const LDKChannelDetails *this_ptr);
@@ -512,7 +512,7 @@ public class bindings {
        /// void FundingLocked_free(LDKFundingLocked this_ptr);
        public static native void FundingLockedfree(long this_ptr);
        /// const uint8_t (*FundingLocked_get_channel_id(const LDKFundingLocked *this_ptr))[32];
-       public static native byte[] FundingLockedgetchannelid(long this_ptr);
+       public static native byte[]  FundingLockedgetchannelid(long this_ptr);
        /// void FundingLocked_set_channel_id(LDKFundingLocked *this_ptr, LDKThirtyTwoBytes val);
        public static native void FundingLockedsetchannelid(long this_ptr, long val);
        /// LDKPublicKey FundingLocked_get_next_per_commitment_point(const LDKFundingLocked *this_ptr);
@@ -806,7 +806,7 @@ public class bindings {
        /// void HTLCOutputInCommitment_set_cltv_expiry(LDKHTLCOutputInCommitment *this_ptr, uint32_t val);
        public static native void HTLCOutputInCommitmentsetcltvexpiry(long this_ptr, int val);
        /// const uint8_t (*HTLCOutputInCommitment_get_payment_hash(const LDKHTLCOutputInCommitment *this_ptr))[32];
-       public static native byte[] HTLCOutputInCommitmentgetpaymenthash(long this_ptr);
+       public static native byte[]  HTLCOutputInCommitmentgetpaymenthash(long this_ptr);
        /// void HTLCOutputInCommitment_set_payment_hash(LDKHTLCOutputInCommitment *this_ptr, LDKThirtyTwoBytes val);
        public static native void HTLCOutputInCommitmentsetpaymenthash(long this_ptr, long val);
        /// LDKCVec_u8Z HTLCOutputInCommitment_write(const LDKHTLCOutputInCommitment *obj);
@@ -982,11 +982,11 @@ public class bindings {
        /// void NodeAnnouncementInfo_set_last_update(LDKNodeAnnouncementInfo *this_ptr, uint32_t val);
        public static native void NodeAnnouncementInfosetlastupdate(long this_ptr, int val);
        /// const uint8_t (*NodeAnnouncementInfo_get_rgb(const LDKNodeAnnouncementInfo *this_ptr))[3];
-       public static native byte[] NodeAnnouncementInfogetrgb(long this_ptr);
+       public static native byte[]  NodeAnnouncementInfogetrgb(long this_ptr);
        /// void NodeAnnouncementInfo_set_rgb(LDKNodeAnnouncementInfo *this_ptr, LDKThreeBytes val);
        public static native void NodeAnnouncementInfosetrgb(long this_ptr, long val);
        /// const uint8_t (*NodeAnnouncementInfo_get_alias(const LDKNodeAnnouncementInfo *this_ptr))[32];
-       public static native byte[] NodeAnnouncementInfogetalias(long this_ptr);
+       public static native byte[]  NodeAnnouncementInfogetalias(long this_ptr);
        /// void NodeAnnouncementInfo_set_alias(LDKNodeAnnouncementInfo *this_ptr, LDKThirtyTwoBytes val);
        public static native void NodeAnnouncementInfosetalias(long this_ptr, long val);
        /// void NodeAnnouncementInfo_set_addresses(LDKNodeAnnouncementInfo *this_ptr, LDKCVec_NetAddressZ val);