Update C/C++ demo bindings to latest upstream API
[ldk-c-bindings] / lightning-c-bindings / demo.c
index 1e9bfb0c283a28c28cfac1840962557f3844e57e..7eed98b469ee7286691d9f413086f6b8a5398c36 100644 (file)
@@ -25,21 +25,21 @@ void broadcast_tx(const void *this_arg, LDKTransaction tx) {
        Transaction_free(tx);
 }
 
-LDKCResult_NoneChannelMonitorUpdateErrZ add_channel_monitor(const void *this_arg, LDKOutPoint funding_txo, LDKChannelMonitor monitor) {
-       return CResult_NoneChannelMonitorUpdateErrZ_ok();
+LDKChannelMonitorUpdateStatus add_channel_monitor(const void *this_arg, LDKOutPoint funding_txo, LDKChannelMonitor monitor) {
+       return ChannelMonitorUpdateStatus_completed();
 }
-LDKCResult_NoneChannelMonitorUpdateErrZ update_channel_monitor(const void *this_arg, LDKOutPoint funding_txo, LDKChannelMonitorUpdate monitor) {
-       return CResult_NoneChannelMonitorUpdateErrZ_ok();
+LDKChannelMonitorUpdateStatus update_channel_monitor(const void *this_arg, LDKOutPoint funding_txo, LDKChannelMonitorUpdate monitor) {
+       return ChannelMonitorUpdateStatus_completed();
 }
-LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ monitors_pending_monitor_events(const void *this_arg) {
-       LDKCVec_C2Tuple_OutPointCVec_MonitorEventZZZ empty_htlc_vec = {
+LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ monitors_pending_monitor_events(const void *this_arg) {
+       LDKCVec_C3Tuple_OutPointCVec_MonitorEventZPublicKeyZZ empty_htlc_vec = {
                .data = NULL,
                .datalen = 0,
        };
        return empty_htlc_vec;
 }
 
-void never_handle_event(const void *this_arg, const struct LDKEvent* event) {
+void never_handle_event(const void *this_arg, const struct LDKEvent event) {
        // Note that we never actually generate any events to handle in the code below.
        assert(false);
 }