Update bindings demo apps for new code upstream
[rust-lightning] / lightning-c-bindings / demo.c
index 44442ef3d56ce58c8f906b25107fd48fe98eb9bb..0f8bd102a48189be60b5156a686297a54fd2ac60 100644 (file)
@@ -54,11 +54,11 @@ int main() {
                .free = NULL
        };
 
-       LDKManyChannelMonitor mon = {
+       LDKWatch mon = {
                .this_arg = NULL,
-               .add_monitor = add_channel_monitor,
-               .update_monitor = update_channel_monitor,
-               .get_and_clear_pending_monitor_events = monitors_pending_monitor_events,
+               .watch_channel = add_channel_monitor,
+               .update_channel = update_channel_monitor,
+               .release_pending_monitor_events = monitors_pending_monitor_events,
                .free = NULL,
        };