X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Futil%2Ferrors.rs;h=9b0e757de971217a60fdb9925872f3a1bbd68f6a;hb=bc9b1a8f0e4119a7ccfb7ff8d3bc91b877c9b312;hp=0ed0cf296683cb64c521427d25ac3854e44ac63d;hpb=253af8dd617161b2bd79173f9da3ecc0b0991f7e;p=rust-lightning diff --git a/lightning-c-bindings/src/util/errors.rs b/lightning-c-bindings/src/util/errors.rs index 0ed0cf29..9b0e757d 100644 --- a/lightning-c-bindings/src/util/errors.rs +++ b/lightning-c-bindings/src/util/errors.rs @@ -33,7 +33,7 @@ pub enum APIError { ChannelUnavailable { err: crate::c_types::derived::CVec_u8Z, }, - /// An attempt to call add/update_monitor returned an Err (ie you did this!), causing the + /// An attempt to call watch/update_channel returned an Err (ie you did this!), causing the /// attempted action to fail. MonitorUpdateFailed, } @@ -160,3 +160,7 @@ impl APIError { } #[no_mangle] pub extern "C" fn APIError_free(this_ptr: APIError) { } +#[no_mangle] +pub extern "C" fn APIError_clone(orig: &APIError) -> APIError { + orig.clone() +}