X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-c-bindings;a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Flightning%2Fchain%2Fmod.rs;h=63d70e3ebefa49dff37106fad5be87d715a85810;hp=1f0e01921176dbb00f10b3a9bcbd7de2fec0680a;hb=f0a481f3ab7db33c7cc9cf607f68727b3f89095d;hpb=1a83ffc7dd1e58b330a4fa2245a418638cfa1e59 diff --git a/lightning-c-bindings/src/lightning/chain/mod.rs b/lightning-c-bindings/src/lightning/chain/mod.rs index 1f0e019..63d70e3 100644 --- a/lightning-c-bindings/src/lightning/chain/mod.rs +++ b/lightning-c-bindings/src/lightning/chain/mod.rs @@ -98,6 +98,8 @@ pub struct Access { /// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. pub free: Option, } +unsafe impl Send for Access {} +unsafe impl Sync for Access {} use lightning::chain::Access as rustAccess; impl rustAccess for Access { @@ -146,6 +148,8 @@ pub struct Listen { /// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. pub free: Option, } +unsafe impl Send for Listen {} +unsafe impl Sync for Listen {} use lightning::chain::Listen as rustListen; impl rustListen for Listen { @@ -261,6 +265,8 @@ pub struct Confirm { /// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. pub free: Option, } +unsafe impl Send for Confirm {} +unsafe impl Sync for Confirm {} use lightning::chain::Confirm as rustConfirm; impl rustConfirm for Confirm { @@ -355,6 +361,8 @@ pub struct Watch { /// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. pub free: Option, } +unsafe impl Send for Watch {} +unsafe impl Sync for Watch {} use lightning::chain::Watch as rustWatch; impl rustWatch for Watch { @@ -436,6 +444,8 @@ pub struct Filter { /// Does not need to free the outer struct containing function pointers and may be NULL is no resources need to be freed. pub free: Option, } +unsafe impl Send for Filter {} +unsafe impl Sync for Filter {} use lightning::chain::Filter as rustFilter; impl rustFilter for Filter {