X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fdemo.c;h=0f8bd102a48189be60b5156a686297a54fd2ac60;hb=f116ebbdf9d9c19cfb0e41c622d73cd750fccb44;hp=44442ef3d56ce58c8f906b25107fd48fe98eb9bb;hpb=d9a38d1846ad64622706c3093c0bb3a405817899;p=rust-lightning diff --git a/lightning-c-bindings/demo.c b/lightning-c-bindings/demo.c index 44442ef3..0f8bd102 100644 --- a/lightning-c-bindings/demo.c +++ b/lightning-c-bindings/demo.c @@ -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, };