+ // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_ok(bool o);
+ public static native long CResult_boolLightningErrorZ_ok(boolean o);
+ // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_err(struct LDKLightningError e);
+ public static native long CResult_boolLightningErrorZ_err(long e);
+ // void CResult_boolLightningErrorZ_free(struct LDKCResult_boolLightningErrorZ _res);
+ public static native void CResult_boolLightningErrorZ_free(long _res);
+ // struct LDKCResult_boolLightningErrorZ CResult_boolLightningErrorZ_clone(const struct LDKCResult_boolLightningErrorZ *NONNULL_PTR orig);
+ public static native long CResult_boolLightningErrorZ_clone(long orig);
+ // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(const struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ *NONNULL_PTR orig);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_clone(long orig);
+ // struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(struct LDKChannelAnnouncement a, struct LDKChannelUpdate b, struct LDKChannelUpdate c);
+ public static native long C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_new(long a, long b, long c);
+ // void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(struct LDKC3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ _res);
+ public static native void C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZ_free(long _res);
+ // void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(struct LDKCVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ _res);
+ public static native void CVec_C3Tuple_ChannelAnnouncementChannelUpdateChannelUpdateZZ_free(long[] _res);
+ // void CVec_NodeAnnouncementZ_free(struct LDKCVec_NodeAnnouncementZ _res);
+ public static native void CVec_NodeAnnouncementZ_free(long[] _res);
+ // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_ok(void);
+ public static native long CResult_NoneLightningErrorZ_ok();
+ // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_err(struct LDKLightningError e);
+ public static native long CResult_NoneLightningErrorZ_err(long e);
+ // void CResult_NoneLightningErrorZ_free(struct LDKCResult_NoneLightningErrorZ _res);
+ public static native void CResult_NoneLightningErrorZ_free(long _res);
+ // struct LDKCResult_NoneLightningErrorZ CResult_NoneLightningErrorZ_clone(const struct LDKCResult_NoneLightningErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NoneLightningErrorZ_clone(long orig);
+ // void CVec_PublicKeyZ_free(struct LDKCVec_PublicKeyZ _res);
+ public static native void CVec_PublicKeyZ_free(byte[][] _res);
+ // void CVec_u8Z_free(struct LDKCVec_u8Z _res);
+ public static native void CVec_u8Z_free(byte[] _res);
+ // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_ok(struct LDKCVec_u8Z o);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_ok(byte[] o);
+ // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_err(struct LDKPeerHandleError e);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_err(long e);
+ // void CResult_CVec_u8ZPeerHandleErrorZ_free(struct LDKCResult_CVec_u8ZPeerHandleErrorZ _res);
+ public static native void CResult_CVec_u8ZPeerHandleErrorZ_free(long _res);
+ // struct LDKCResult_CVec_u8ZPeerHandleErrorZ CResult_CVec_u8ZPeerHandleErrorZ_clone(const struct LDKCResult_CVec_u8ZPeerHandleErrorZ *NONNULL_PTR orig);
+ public static native long CResult_CVec_u8ZPeerHandleErrorZ_clone(long orig);
+ // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_ok(void);
+ public static native long CResult_NonePeerHandleErrorZ_ok();
+ // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_err(struct LDKPeerHandleError e);
+ public static native long CResult_NonePeerHandleErrorZ_err(long e);
+ // void CResult_NonePeerHandleErrorZ_free(struct LDKCResult_NonePeerHandleErrorZ _res);
+ public static native void CResult_NonePeerHandleErrorZ_free(long _res);
+ // struct LDKCResult_NonePeerHandleErrorZ CResult_NonePeerHandleErrorZ_clone(const struct LDKCResult_NonePeerHandleErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NonePeerHandleErrorZ_clone(long orig);
+ // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_ok(bool o);
+ public static native long CResult_boolPeerHandleErrorZ_ok(boolean o);
+ // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_err(struct LDKPeerHandleError e);
+ public static native long CResult_boolPeerHandleErrorZ_err(long e);
+ // void CResult_boolPeerHandleErrorZ_free(struct LDKCResult_boolPeerHandleErrorZ _res);
+ public static native void CResult_boolPeerHandleErrorZ_free(long _res);
+ // struct LDKCResult_boolPeerHandleErrorZ CResult_boolPeerHandleErrorZ_clone(const struct LDKCResult_boolPeerHandleErrorZ *NONNULL_PTR orig);
+ public static native long CResult_boolPeerHandleErrorZ_clone(long orig);
+ // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_ok(struct LDKInitFeatures o);
+ public static native long CResult_InitFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_InitFeaturesDecodeErrorZ CResult_InitFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_InitFeaturesDecodeErrorZ_err(long e);
+ // void CResult_InitFeaturesDecodeErrorZ_free(struct LDKCResult_InitFeaturesDecodeErrorZ _res);
+ public static native void CResult_InitFeaturesDecodeErrorZ_free(long _res);
+ // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_ok(struct LDKNodeFeatures o);
+ public static native long CResult_NodeFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeFeaturesDecodeErrorZ CResult_NodeFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeFeaturesDecodeErrorZ_err(long e);
+ // void CResult_NodeFeaturesDecodeErrorZ_free(struct LDKCResult_NodeFeaturesDecodeErrorZ _res);
+ public static native void CResult_NodeFeaturesDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_ok(struct LDKChannelFeatures o);
+ public static native long CResult_ChannelFeaturesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelFeaturesDecodeErrorZ CResult_ChannelFeaturesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelFeaturesDecodeErrorZ_err(long e);
+ // void CResult_ChannelFeaturesDecodeErrorZ_free(struct LDKCResult_ChannelFeaturesDecodeErrorZ _res);
+ public static native void CResult_ChannelFeaturesDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_ok(struct LDKChannelConfig o);
+ public static native long CResult_ChannelConfigDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelConfigDecodeErrorZ_err(long e);
+ // void CResult_ChannelConfigDecodeErrorZ_free(struct LDKCResult_ChannelConfigDecodeErrorZ _res);
+ public static native void CResult_ChannelConfigDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelConfigDecodeErrorZ CResult_ChannelConfigDecodeErrorZ_clone(const struct LDKCResult_ChannelConfigDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelConfigDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_ok(struct LDKDirectionalChannelInfo o);
+ public static native long CResult_DirectionalChannelInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_DirectionalChannelInfoDecodeErrorZ_err(long e);
+ // void CResult_DirectionalChannelInfoDecodeErrorZ_free(struct LDKCResult_DirectionalChannelInfoDecodeErrorZ _res);
+ public static native void CResult_DirectionalChannelInfoDecodeErrorZ_free(long _res);
+ // struct LDKCResult_DirectionalChannelInfoDecodeErrorZ CResult_DirectionalChannelInfoDecodeErrorZ_clone(const struct LDKCResult_DirectionalChannelInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_DirectionalChannelInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_ok(struct LDKChannelInfo o);
+ public static native long CResult_ChannelInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelInfoDecodeErrorZ_err(long e);
+ // void CResult_ChannelInfoDecodeErrorZ_free(struct LDKCResult_ChannelInfoDecodeErrorZ _res);
+ public static native void CResult_ChannelInfoDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelInfoDecodeErrorZ CResult_ChannelInfoDecodeErrorZ_clone(const struct LDKCResult_ChannelInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_ok(struct LDKRoutingFees o);
+ public static native long CResult_RoutingFeesDecodeErrorZ_ok(long o);
+ // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_RoutingFeesDecodeErrorZ_err(long e);
+ // void CResult_RoutingFeesDecodeErrorZ_free(struct LDKCResult_RoutingFeesDecodeErrorZ _res);
+ public static native void CResult_RoutingFeesDecodeErrorZ_free(long _res);
+ // struct LDKCResult_RoutingFeesDecodeErrorZ CResult_RoutingFeesDecodeErrorZ_clone(const struct LDKCResult_RoutingFeesDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_RoutingFeesDecodeErrorZ_clone(long orig);
+ // void CVec_NetAddressZ_free(struct LDKCVec_NetAddressZ _res);
+ public static native void CVec_NetAddressZ_free(long[] _res);
+ // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_ok(struct LDKNodeAnnouncementInfo o);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_err(long e);
+ // void CResult_NodeAnnouncementInfoDecodeErrorZ_free(struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ _res);
+ public static native void CResult_NodeAnnouncementInfoDecodeErrorZ_free(long _res);
+ // struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ CResult_NodeAnnouncementInfoDecodeErrorZ_clone(const struct LDKCResult_NodeAnnouncementInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeAnnouncementInfoDecodeErrorZ_clone(long orig);
+ // void CVec_u64Z_free(struct LDKCVec_u64Z _res);
+ public static native void CVec_u64Z_free(long[] _res);
+ // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_ok(struct LDKNodeInfo o);
+ public static native long CResult_NodeInfoDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NodeInfoDecodeErrorZ_err(long e);
+ // void CResult_NodeInfoDecodeErrorZ_free(struct LDKCResult_NodeInfoDecodeErrorZ _res);
+ public static native void CResult_NodeInfoDecodeErrorZ_free(long _res);
+ // struct LDKCResult_NodeInfoDecodeErrorZ CResult_NodeInfoDecodeErrorZ_clone(const struct LDKCResult_NodeInfoDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NodeInfoDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_ok(struct LDKNetworkGraph o);
+ public static native long CResult_NetworkGraphDecodeErrorZ_ok(long o);
+ // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_NetworkGraphDecodeErrorZ_err(long e);
+ // void CResult_NetworkGraphDecodeErrorZ_free(struct LDKCResult_NetworkGraphDecodeErrorZ _res);
+ public static native void CResult_NetworkGraphDecodeErrorZ_free(long _res);
+ // struct LDKCResult_NetworkGraphDecodeErrorZ CResult_NetworkGraphDecodeErrorZ_clone(const struct LDKCResult_NetworkGraphDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_NetworkGraphDecodeErrorZ_clone(long orig);
+ // struct LDKC2Tuple_usizeTransactionZ C2Tuple_usizeTransactionZ_new(uintptr_t a, struct LDKTransaction b);
+ public static native long C2Tuple_usizeTransactionZ_new(long a, byte[] b);
+ // void C2Tuple_usizeTransactionZ_free(struct LDKC2Tuple_usizeTransactionZ _res);
+ public static native void C2Tuple_usizeTransactionZ_free(long _res);
+ // void CVec_C2Tuple_usizeTransactionZZ_free(struct LDKCVec_C2Tuple_usizeTransactionZZ _res);
+ public static native void CVec_C2Tuple_usizeTransactionZZ_free(long[] _res);
+ // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_ok(void);
+ public static native long CResult_NoneChannelMonitorUpdateErrZ_ok();
+ // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_err(enum LDKChannelMonitorUpdateErr e);
+ public static native long CResult_NoneChannelMonitorUpdateErrZ_err(LDKChannelMonitorUpdateErr e);
+ // void CResult_NoneChannelMonitorUpdateErrZ_free(struct LDKCResult_NoneChannelMonitorUpdateErrZ _res);
+ public static native void CResult_NoneChannelMonitorUpdateErrZ_free(long _res);
+ // struct LDKCResult_NoneChannelMonitorUpdateErrZ CResult_NoneChannelMonitorUpdateErrZ_clone(const struct LDKCResult_NoneChannelMonitorUpdateErrZ *NONNULL_PTR orig);
+ public static native long CResult_NoneChannelMonitorUpdateErrZ_clone(long orig);
+ // void CVec_MonitorEventZ_free(struct LDKCVec_MonitorEventZ _res);
+ public static native void CVec_MonitorEventZ_free(long[] _res);
+ // void CVec_EventZ_free(struct LDKCVec_EventZ _res);
+ public static native void CVec_EventZ_free(long[] _res);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_ok(struct LDKOutPoint o);
+ public static native long CResult_OutPointDecodeErrorZ_ok(long o);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_OutPointDecodeErrorZ_err(long e);
+ // void CResult_OutPointDecodeErrorZ_free(struct LDKCResult_OutPointDecodeErrorZ _res);
+ public static native void CResult_OutPointDecodeErrorZ_free(long _res);
+ // struct LDKCResult_OutPointDecodeErrorZ CResult_OutPointDecodeErrorZ_clone(const struct LDKCResult_OutPointDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_OutPointDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_ok(struct LDKChannelMonitorUpdate o);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_err(long e);
+ // void CResult_ChannelMonitorUpdateDecodeErrorZ_free(struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ _res);
+ public static native void CResult_ChannelMonitorUpdateDecodeErrorZ_free(long _res);
+ // struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ CResult_ChannelMonitorUpdateDecodeErrorZ_clone(const struct LDKCResult_ChannelMonitorUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_ChannelMonitorUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_ok(struct LDKHTLCUpdate o);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_ok(long o);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_err(struct LDKDecodeError e);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_err(long e);
+ // void CResult_HTLCUpdateDecodeErrorZ_free(struct LDKCResult_HTLCUpdateDecodeErrorZ _res);
+ public static native void CResult_HTLCUpdateDecodeErrorZ_free(long _res);
+ // struct LDKCResult_HTLCUpdateDecodeErrorZ CResult_HTLCUpdateDecodeErrorZ_clone(const struct LDKCResult_HTLCUpdateDecodeErrorZ *NONNULL_PTR orig);
+ public static native long CResult_HTLCUpdateDecodeErrorZ_clone(long orig);
+ // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_ok(void);
+ public static native long CResult_NoneMonitorUpdateErrorZ_ok();
+ // struct LDKCResult_NoneMonitorUpdateErrorZ CResult_NoneMonitorUpdateErrorZ_err(struct LDKMonitorUpdateError e);
+ public static native long CResult_NoneMonitorUpdateErrorZ_err(long e);
+ // void CResult_NoneMonitorUpdateErrorZ_free(struct LDKCResult_NoneMonitorUpdateErrorZ _res);