@@ -624,62 +624,62 @@ pub extern "C" fn ChannelManager_as_ChannelMessageHandler(this_arg: *const Chann
624
624
}
625
625
}
626
626
use lightning:: ln:: msgs:: ChannelMessageHandler as ChannelMessageHandlerTraitImport ;
627
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_open_channel ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , mut their_features : crate :: ln:: features:: InitFeatures , msg : & crate :: ln:: msgs:: OpenChannel ) {
628
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_open_channel ( & their_node_id . into_rust ( ) , * unsafe { Box :: from_raw ( their_features. take_ptr ( ) ) } , unsafe { & * msg. inner } )
627
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_open_channel ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , mut their_features : crate :: ln:: features:: InitFeatures , msg : & crate :: ln:: msgs:: OpenChannel ) {
628
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_open_channel ( & counterparty_node_id . into_rust ( ) , * unsafe { Box :: from_raw ( their_features. take_ptr ( ) ) } , unsafe { & * msg. inner } )
629
629
}
630
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_accept_channel ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , mut their_features : crate :: ln:: features:: InitFeatures , msg : & crate :: ln:: msgs:: AcceptChannel ) {
631
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_accept_channel ( & their_node_id . into_rust ( ) , * unsafe { Box :: from_raw ( their_features. take_ptr ( ) ) } , unsafe { & * msg. inner } )
630
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_accept_channel ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , mut their_features : crate :: ln:: features:: InitFeatures , msg : & crate :: ln:: msgs:: AcceptChannel ) {
631
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_accept_channel ( & counterparty_node_id . into_rust ( ) , * unsafe { Box :: from_raw ( their_features. take_ptr ( ) ) } , unsafe { & * msg. inner } )
632
632
}
633
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_funding_created ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: FundingCreated ) {
634
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_funding_created ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
633
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_funding_created ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: FundingCreated ) {
634
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_funding_created ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
635
635
}
636
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_funding_signed ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: FundingSigned ) {
637
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_funding_signed ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
636
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_funding_signed ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: FundingSigned ) {
637
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_funding_signed ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
638
638
}
639
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_funding_locked ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: FundingLocked ) {
640
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_funding_locked ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
639
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_funding_locked ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: FundingLocked ) {
640
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_funding_locked ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
641
641
}
642
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_shutdown ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: Shutdown ) {
643
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_shutdown ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
642
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_shutdown ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: Shutdown ) {
643
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_shutdown ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
644
644
}
645
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_closing_signed ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: ClosingSigned ) {
646
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_closing_signed ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
645
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_closing_signed ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: ClosingSigned ) {
646
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_closing_signed ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
647
647
}
648
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_add_htlc ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateAddHTLC ) {
649
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_add_htlc ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
648
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_add_htlc ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateAddHTLC ) {
649
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_add_htlc ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
650
650
}
651
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fulfill_htlc ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFulfillHTLC ) {
652
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fulfill_htlc ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
651
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fulfill_htlc ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFulfillHTLC ) {
652
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fulfill_htlc ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
653
653
}
654
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fail_htlc ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFailHTLC ) {
655
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fail_htlc ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
654
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fail_htlc ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFailHTLC ) {
655
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fail_htlc ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
656
656
}
657
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fail_malformed_htlc ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFailMalformedHTLC ) {
658
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fail_malformed_htlc ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
657
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fail_malformed_htlc ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFailMalformedHTLC ) {
658
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fail_malformed_htlc ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
659
659
}
660
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_commitment_signed ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: CommitmentSigned ) {
661
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_commitment_signed ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
660
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_commitment_signed ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: CommitmentSigned ) {
661
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_commitment_signed ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
662
662
}
663
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_revoke_and_ack ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: RevokeAndACK ) {
664
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_revoke_and_ack ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
663
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_revoke_and_ack ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: RevokeAndACK ) {
664
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_revoke_and_ack ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
665
665
}
666
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fee ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFee ) {
667
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fee ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
666
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_update_fee ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: UpdateFee ) {
667
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_update_fee ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
668
668
}
669
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_announcement_signatures ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: AnnouncementSignatures ) {
670
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_announcement_signatures ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
669
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_announcement_signatures ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: AnnouncementSignatures ) {
670
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_announcement_signatures ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
671
671
}
672
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_channel_reestablish ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: ChannelReestablish ) {
673
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_channel_reestablish ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
672
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_channel_reestablish ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: ChannelReestablish ) {
673
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_channel_reestablish ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
674
674
}
675
- extern "C" fn ChannelManager_ChannelMessageHandler_peer_disconnected ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , mut no_connection_possible : bool ) {
676
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . peer_disconnected ( & their_node_id . into_rust ( ) , no_connection_possible)
675
+ extern "C" fn ChannelManager_ChannelMessageHandler_peer_disconnected ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , mut no_connection_possible : bool ) {
676
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . peer_disconnected ( & counterparty_node_id . into_rust ( ) , no_connection_possible)
677
677
}
678
- extern "C" fn ChannelManager_ChannelMessageHandler_peer_connected ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , init_msg : & crate :: ln:: msgs:: Init ) {
679
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . peer_connected ( & their_node_id . into_rust ( ) , unsafe { & * init_msg. inner } )
678
+ extern "C" fn ChannelManager_ChannelMessageHandler_peer_connected ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , init_msg : & crate :: ln:: msgs:: Init ) {
679
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . peer_connected ( & counterparty_node_id . into_rust ( ) , unsafe { & * init_msg. inner } )
680
680
}
681
- extern "C" fn ChannelManager_ChannelMessageHandler_handle_error ( this_arg : * const c_void , their_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: ErrorMessage ) {
682
- unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_error ( & their_node_id . into_rust ( ) , unsafe { & * msg. inner } )
681
+ extern "C" fn ChannelManager_ChannelMessageHandler_handle_error ( this_arg : * const c_void , counterparty_node_id : crate :: c_types:: PublicKey , msg : & crate :: ln:: msgs:: ErrorMessage ) {
682
+ unsafe { & mut * ( this_arg as * mut nativeChannelManager ) } . handle_error ( & counterparty_node_id . into_rust ( ) , unsafe { & * msg. inner } )
683
683
}
684
684
use lightning:: util:: events:: MessageSendEventsProvider as nativeMessageSendEventsProviderTrait;
685
685
#[ must_use]
0 commit comments