+ // void CResult_SignatureNoneZ_free(struct LDKCResult_SignatureNoneZ _res);
+ public static native void CResult_SignatureNoneZ_free(long _res);
+ // struct LDKCResult_SignatureNoneZ CResult_SignatureNoneZ_clone(const struct LDKCResult_SignatureNoneZ *NONNULL_PTR orig);
+ public static native long CResult_SignatureNoneZ_clone(long orig);
+ // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_ok(struct LDKSign o);
+ public static native long CResult_SignDecodeErrorZ_ok(long o);
+ // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_SignDecodeErrorZ_err(long e);
+ // void CResult_SignDecodeErrorZ_free(struct LDKCResult_SignDecodeErrorZ _res);
+ public static native void CResult_SignDecodeErrorZ_free(long _res);
+ // struct LDKCResult_SignDecodeErrorZ CResult_SignDecodeErrorZ_clone(const struct LDKCResult_SignDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_SignDecodeErrorZ_clone(long orig);
+ // void CVec_CVec_u8ZZ_free(struct LDKCVec_CVec_u8ZZ _res);
+ public static native void CVec_CVec_u8ZZ_free(byte[][] _res);
+ // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_ok(struct LDKCVec_CVec_u8ZZ o);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_ok(byte[][] o);
+ // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_err(void);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_err();
+ // void CResult_CVec_CVec_u8ZZNoneZ_free(struct LDKCResult_CVec_CVec_u8ZZNoneZ _res);
+ public static native void CResult_CVec_CVec_u8ZZNoneZ_free(long _res);
+ // struct LDKCResult_CVec_CVec_u8ZZNoneZ CResult_CVec_CVec_u8ZZNoneZ_clone(const struct LDKCResult_CVec_CVec_u8ZZNoneZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_CVec_u8ZZNoneZ_clone(long orig);
+ // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_ok(struct LDKInMemorySigner o);
+ public static native long CResult_InMemorySignerDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InMemorySignerDecodeErrorZ_err(long e);
+ // void CResult_InMemorySignerDecodeErrorZ_free(struct LDKCResult_InMemorySignerDecodeErrorZ _res);
+ public static native void CResult_InMemorySignerDecodeErrorZ_free(long _res);
+ // struct LDKCResult_InMemorySignerDecodeErrorZ CResult_InMemorySignerDecodeErrorZ_clone(const struct LDKCResult_InMemorySignerDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InMemorySignerDecodeErrorZ_clone(long orig);
+ // void CVec_TxOutZ_free(struct LDKCVec_TxOutZ _res);
+ public static native void CVec_TxOutZ_free(long[] _res);
+ // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_ok(struct LDKTransaction o);
+ public static native long CResult_TransactionNoneZ_ok(byte[] o);
+ // struct LDKCResult_TransactionNoneZ CResult_TransactionNoneZ_err(void);
+ public static native long CResult_TransactionNoneZ_err();
+ // void CResult_TransactionNoneZ_free(struct LDKCResult_TransactionNoneZ _res);
+ public static native void CResult_TransactionNoneZ_free(long _res);
+ // void CVec_RouteHopZ_free(struct LDKCVec_RouteHopZ _res);
+ public static native void CVec_RouteHopZ_free(long[] _res);
+ // void CVec_CVec_RouteHopZZ_free(struct LDKCVec_CVec_RouteHopZZ _res);
+ public static native void CVec_CVec_RouteHopZZ_free(long[][] _res);
+ // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_ok(struct LDKRoute o);
+ public static native long CResult_RouteDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RouteDecodeErrorZ_err(long e);
+ // void CResult_RouteDecodeErrorZ_free(struct LDKCResult_RouteDecodeErrorZ _res);
+ public static native void CResult_RouteDecodeErrorZ_free(long _res);
+ // struct LDKCResult_RouteDecodeErrorZ CResult_RouteDecodeErrorZ_clone(const struct LDKCResult_RouteDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteDecodeErrorZ_clone(long orig);
+ // void CVec_RouteHintZ_free(struct LDKCVec_RouteHintZ _res);
+ public static native void CVec_RouteHintZ_free(long[] _res);
+ // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_ok(struct LDKRoute o);
+ public static native long CResult_RouteLightningErrorZ_ok(long o);
+ // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_err(struct LDKLightningError e);
+ public static native long CResult_RouteLightningErrorZ_err(long e);
+ // void CResult_RouteLightningErrorZ_free(struct LDKCResult_RouteLightningErrorZ _res);
+ public static native void CResult_RouteLightningErrorZ_free(long _res);
+ // struct LDKCResult_RouteLightningErrorZ CResult_RouteLightningErrorZ_clone(const struct LDKCResult_RouteLightningErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RouteLightningErrorZ_clone(long orig);
+ // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_ok(struct LDKNetAddress o);
+ public static native long CResult_NetAddressu8Z_ok(long o);
+ // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_err(uint8_t e);
+ public static native long CResult_NetAddressu8Z_err(byte e);
+ // void CResult_NetAddressu8Z_free(struct LDKCResult_NetAddressu8Z _res);
+ public static native void CResult_NetAddressu8Z_free(long _res);
+ // struct LDKCResult_NetAddressu8Z CResult_NetAddressu8Z_clone(const struct LDKCResult_NetAddressu8Z *NONNULL_PTR orig);
+ public static native long CResult_NetAddressu8Z_clone(long orig);
+ // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(struct LDKCResult_NetAddressu8Z o);
+ public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_err(long e);
+ // void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ _res);
+ public static native void CResult_CResult_NetAddressu8ZDecodeErrorZ_free(long _res);
+ // struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ CResult_CResult_NetAddressu8ZDecodeErrorZ_clone(const struct LDKCResult_CResult_NetAddressu8ZDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CResult_NetAddressu8ZDecodeErrorZ_clone(long orig);
+ // void CVec_UpdateAddHTLCZ_free(struct LDKCVec_UpdateAddHTLCZ _res);
+ public static native void CVec_UpdateAddHTLCZ_free(long[] _res);
+ // void CVec_UpdateFulfillHTLCZ_free(struct LDKCVec_UpdateFulfillHTLCZ _res);
+ public static native void CVec_UpdateFulfillHTLCZ_free(long[] _res);
+ // void CVec_UpdateFailHTLCZ_free(struct LDKCVec_UpdateFailHTLCZ _res);
+ public static native void CVec_UpdateFailHTLCZ_free(long[] _res);
+ // void CVec_UpdateFailMalformedHTLCZ_free(struct LDKCVec_UpdateFailMalformedHTLCZ _res);
+ public static native void CVec_UpdateFailMalformedHTLCZ_free(long[] _res);
+ // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_ok(struct LDKAcceptChannel o);
+ public static native long CResult_AcceptChannelDecodeErrorZ_ok(long o);
+ // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_AcceptChannelDecodeErrorZ_err(long e);
+ // void CResult_AcceptChannelDecodeErrorZ_free(struct LDKCResult_AcceptChannelDecodeErrorZ _res);
+ public static native void CResult_AcceptChannelDecodeErrorZ_free(long _res);
+ // struct LDKCResult_AcceptChannelDecodeErrorZ CResult_AcceptChannelDecodeErrorZ_clone(const struct LDKCResult_AcceptChannelDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_AcceptChannelDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_ok(struct LDKAnnouncementSignatures o);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_err(long e);
+ // void CResult_AnnouncementSignaturesDecodeErrorZ_free(struct LDKCResult_AnnouncementSignaturesDecodeErrorZ _res);
+ public static native void CResult_AnnouncementSignaturesDecodeErrorZ_free(long _res);
+ // struct LDKCResult_AnnouncementSignaturesDecodeErrorZ CResult_AnnouncementSignaturesDecodeErrorZ_clone(const struct LDKCResult_AnnouncementSignaturesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_AnnouncementSignaturesDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_ok(struct LDKChannelReestablish o);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_err(long e);
+ // void CResult_ChannelReestablishDecodeErrorZ_free(struct LDKCResult_ChannelReestablishDecodeErrorZ _res);
+ public static native void CResult_ChannelReestablishDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelReestablishDecodeErrorZ CResult_ChannelReestablishDecodeErrorZ_clone(const struct LDKCResult_ChannelReestablishDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelReestablishDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_ok(struct LDKClosingSigned o);
+ public static native long CResult_ClosingSignedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ClosingSignedDecodeErrorZ_err(long e);
+ // void CResult_ClosingSignedDecodeErrorZ_free(struct LDKCResult_ClosingSignedDecodeErrorZ _res);
+ public static native void CResult_ClosingSignedDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ClosingSignedDecodeErrorZ CResult_ClosingSignedDecodeErrorZ_clone(const struct LDKCResult_ClosingSignedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ClosingSignedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_ok(struct LDKCommitmentSigned o);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_err(long e);
+ // void CResult_CommitmentSignedDecodeErrorZ_free(struct LDKCResult_CommitmentSignedDecodeErrorZ _res);
+ public static native void CResult_CommitmentSignedDecodeErrorZ_free(long _res);
+ // struct LDKCResult_CommitmentSignedDecodeErrorZ CResult_CommitmentSignedDecodeErrorZ_clone(const struct LDKCResult_CommitmentSignedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CommitmentSignedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_ok(struct LDKFundingCreated o);
+ public static native long CResult_FundingCreatedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_FundingCreatedDecodeErrorZ_err(long e);
+ // void CResult_FundingCreatedDecodeErrorZ_free(struct LDKCResult_FundingCreatedDecodeErrorZ _res);
+ public static native void CResult_FundingCreatedDecodeErrorZ_free(long _res);
+ // struct LDKCResult_FundingCreatedDecodeErrorZ CResult_FundingCreatedDecodeErrorZ_clone(const struct LDKCResult_FundingCreatedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_FundingCreatedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_ok(struct LDKFundingSigned o);
+ public static native long CResult_FundingSignedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_FundingSignedDecodeErrorZ_err(long e);
+ // void CResult_FundingSignedDecodeErrorZ_free(struct LDKCResult_FundingSignedDecodeErrorZ _res);
+ public static native void CResult_FundingSignedDecodeErrorZ_free(long _res);
+ // struct LDKCResult_FundingSignedDecodeErrorZ CResult_FundingSignedDecodeErrorZ_clone(const struct LDKCResult_FundingSignedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_FundingSignedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_ok(struct LDKFundingLocked o);
+ public static native long CResult_FundingLockedDecodeErrorZ_ok(long o);
+ // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_FundingLockedDecodeErrorZ_err(long e);
+ // void CResult_FundingLockedDecodeErrorZ_free(struct LDKCResult_FundingLockedDecodeErrorZ _res);
+ public static native void CResult_FundingLockedDecodeErrorZ_free(long _res);
+ // struct LDKCResult_FundingLockedDecodeErrorZ CResult_FundingLockedDecodeErrorZ_clone(const struct LDKCResult_FundingLockedDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_FundingLockedDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_ok(struct LDKInit o);
+ public static native long CResult_InitDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InitDecodeErrorZ_err(long e);
+ // void CResult_InitDecodeErrorZ_free(struct LDKCResult_InitDecodeErrorZ _res);
+ public static native void CResult_InitDecodeErrorZ_free(long _res);
+ // struct LDKCResult_InitDecodeErrorZ CResult_InitDecodeErrorZ_clone(const struct LDKCResult_InitDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_InitDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_ok(struct LDKOpenChannel o);
+ public static native long CResult_OpenChannelDecodeErrorZ_ok(long o);
+ // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OpenChannelDecodeErrorZ_err(long e);
+ // void CResult_OpenChannelDecodeErrorZ_free(struct LDKCResult_OpenChannelDecodeErrorZ _res);
+ public static native void CResult_OpenChannelDecodeErrorZ_free(long _res);
+ // struct LDKCResult_OpenChannelDecodeErrorZ CResult_OpenChannelDecodeErrorZ_clone(const struct LDKCResult_OpenChannelDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OpenChannelDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_ok(struct LDKRevokeAndACK o);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_err(long e);
+ // void CResult_RevokeAndACKDecodeErrorZ_free(struct LDKCResult_RevokeAndACKDecodeErrorZ _res);
+ public static native void CResult_RevokeAndACKDecodeErrorZ_free(long _res);
+ // struct LDKCResult_RevokeAndACKDecodeErrorZ CResult_RevokeAndACKDecodeErrorZ_clone(const struct LDKCResult_RevokeAndACKDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RevokeAndACKDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_ok(struct LDKShutdown o);
+ public static native long CResult_ShutdownDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ShutdownDecodeErrorZ_err(long e);
+ // void CResult_ShutdownDecodeErrorZ_free(struct LDKCResult_ShutdownDecodeErrorZ _res);
+ public static native void CResult_ShutdownDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ShutdownDecodeErrorZ CResult_ShutdownDecodeErrorZ_clone(const struct LDKCResult_ShutdownDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ShutdownDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_ok(struct LDKUpdateFailHTLC o);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_err(long e);
+ // void CResult_UpdateFailHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateFailHTLCDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UpdateFailHTLCDecodeErrorZ CResult_UpdateFailHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFailHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(struct LDKUpdateFailMalformedHTLC o);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_err(long e);
+ // void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateFailMalformedHTLCDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFailMalformedHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_ok(struct LDKUpdateFee o);
+ public static native long CResult_UpdateFeeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFeeDecodeErrorZ_err(long e);
+ // void CResult_UpdateFeeDecodeErrorZ_free(struct LDKCResult_UpdateFeeDecodeErrorZ _res);
+ public static native void CResult_UpdateFeeDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UpdateFeeDecodeErrorZ CResult_UpdateFeeDecodeErrorZ_clone(const struct LDKCResult_UpdateFeeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFeeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_ok(struct LDKUpdateFulfillHTLC o);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_err(long e);
+ // void CResult_UpdateFulfillHTLCDecodeErrorZ_free(struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateFulfillHTLCDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ CResult_UpdateFulfillHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateFulfillHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateFulfillHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_ok(struct LDKUpdateAddHTLC o);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_err(long e);
+ // void CResult_UpdateAddHTLCDecodeErrorZ_free(struct LDKCResult_UpdateAddHTLCDecodeErrorZ _res);
+ public static native void CResult_UpdateAddHTLCDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UpdateAddHTLCDecodeErrorZ CResult_UpdateAddHTLCDecodeErrorZ_clone(const struct LDKCResult_UpdateAddHTLCDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UpdateAddHTLCDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_ok(struct LDKPing o);
+ public static native long CResult_PingDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PingDecodeErrorZ_err(long e);
+ // void CResult_PingDecodeErrorZ_free(struct LDKCResult_PingDecodeErrorZ _res);
+ public static native void CResult_PingDecodeErrorZ_free(long _res);
+ // struct LDKCResult_PingDecodeErrorZ CResult_PingDecodeErrorZ_clone(const struct LDKCResult_PingDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PingDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_ok(struct LDKPong o);
+ public static native long CResult_PongDecodeErrorZ_ok(long o);
+ // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_PongDecodeErrorZ_err(long e);
+ // void CResult_PongDecodeErrorZ_free(struct LDKCResult_PongDecodeErrorZ _res);
+ public static native void CResult_PongDecodeErrorZ_free(long _res);
+ // struct LDKCResult_PongDecodeErrorZ CResult_PongDecodeErrorZ_clone(const struct LDKCResult_PongDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_PongDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(struct LDKUnsignedChannelAnnouncement o);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_err(long e);
+ // void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ _res);
+ public static native void CResult_UnsignedChannelAnnouncementDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_ok(struct LDKChannelAnnouncement o);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_err(long e);
+ // void CResult_ChannelAnnouncementDecodeErrorZ_free(struct LDKCResult_ChannelAnnouncementDecodeErrorZ _res);
+ public static native void CResult_ChannelAnnouncementDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelAnnouncementDecodeErrorZ CResult_ChannelAnnouncementDecodeErrorZ_clone(const struct LDKCResult_ChannelAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_ok(struct LDKUnsignedChannelUpdate o);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_err(long e);
+ // void CResult_UnsignedChannelUpdateDecodeErrorZ_free(struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ _res);
+ public static native void CResult_UnsignedChannelUpdateDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ CResult_UnsignedChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_UnsignedChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UnsignedChannelUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_ok(struct LDKChannelUpdate o);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_err(long e);
+ // void CResult_ChannelUpdateDecodeErrorZ_free(struct LDKCResult_ChannelUpdateDecodeErrorZ _res);
+ public static native void CResult_ChannelUpdateDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelUpdateDecodeErrorZ CResult_ChannelUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_ok(struct LDKErrorMessage o);
+ public static native long CResult_ErrorMessageDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ErrorMessageDecodeErrorZ_err(long e);
+ // void CResult_ErrorMessageDecodeErrorZ_free(struct LDKCResult_ErrorMessageDecodeErrorZ _res);
+ public static native void CResult_ErrorMessageDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ErrorMessageDecodeErrorZ CResult_ErrorMessageDecodeErrorZ_clone(const struct LDKCResult_ErrorMessageDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ErrorMessageDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(struct LDKUnsignedNodeAnnouncement o);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_err(long e);
+ // void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ _res);
+ public static native void CResult_UnsignedNodeAnnouncementDecodeErrorZ_free(long _res);
+ // struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_UnsignedNodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_UnsignedNodeAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_ok(struct LDKNodeAnnouncement o);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_err(long e);
+ // void CResult_NodeAnnouncementDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementDecodeErrorZ _res);
+ public static native void CResult_NodeAnnouncementDecodeErrorZ_free(long _res);
+ // struct LDKCResult_NodeAnnouncementDecodeErrorZ CResult_NodeAnnouncementDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeAnnouncementDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_ok(struct LDKQueryShortChannelIds o);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_ok(long o);
+ // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_err(long e);
+ // void CResult_QueryShortChannelIdsDecodeErrorZ_free(struct LDKCResult_QueryShortChannelIdsDecodeErrorZ _res);
+ public static native void CResult_QueryShortChannelIdsDecodeErrorZ_free(long _res);
+ // struct LDKCResult_QueryShortChannelIdsDecodeErrorZ CResult_QueryShortChannelIdsDecodeErrorZ_clone(const struct LDKCResult_QueryShortChannelIdsDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_QueryShortChannelIdsDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(struct LDKReplyShortChannelIdsEnd o);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_err(long e);
+ // void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ _res);
+ public static native void CResult_ReplyShortChannelIdsEndDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(const struct LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ReplyShortChannelIdsEndDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_ok(struct LDKQueryChannelRange o);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_err(long e);
+ // void CResult_QueryChannelRangeDecodeErrorZ_free(struct LDKCResult_QueryChannelRangeDecodeErrorZ _res);
+ public static native void CResult_QueryChannelRangeDecodeErrorZ_free(long _res);
+ // struct LDKCResult_QueryChannelRangeDecodeErrorZ CResult_QueryChannelRangeDecodeErrorZ_clone(const struct LDKCResult_QueryChannelRangeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_QueryChannelRangeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_ok(struct LDKReplyChannelRange o);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_err(long e);
+ // void CResult_ReplyChannelRangeDecodeErrorZ_free(struct LDKCResult_ReplyChannelRangeDecodeErrorZ _res);
+ public static native void CResult_ReplyChannelRangeDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ReplyChannelRangeDecodeErrorZ CResult_ReplyChannelRangeDecodeErrorZ_clone(const struct LDKCResult_ReplyChannelRangeDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ReplyChannelRangeDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_ok(struct LDKGossipTimestampFilter o);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_ok(long o);
+ // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_err(long e);
+ // void CResult_GossipTimestampFilterDecodeErrorZ_free(struct LDKCResult_GossipTimestampFilterDecodeErrorZ _res);
+ public static native void CResult_GossipTimestampFilterDecodeErrorZ_free(long _res);
+ // struct LDKCResult_GossipTimestampFilterDecodeErrorZ CResult_GossipTimestampFilterDecodeErrorZ_clone(const struct LDKCResult_GossipTimestampFilterDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_GossipTimestampFilterDecodeErrorZ_clone(long orig);
+ // void Event_free(struct LDKEvent this_ptr);