Update auto-generated bindings
[ldk-c-bindings] / lightning-c-bindings / src / lightning / ln / mod.rs
1 // This file is Copyright its original authors, visible in version control
2 // history and in the source files from which this was generated.
3 //
4 // This file is licensed under the license available in the LICENSE or LICENSE.md
5 // file in the root of this repository or, if no such file exists, the same
6 // license as that which applies to the original source files from which this
7 // source was automatically generated.
8
9 //! High level lightning structs and impls live here.
10 //!
11 //! You probably want to create a [`ChannelManager`], and a [`P2PGossipSync`] first.
12 //! Then, you probably want to pass them both on to a peer_handler::PeerManager and use that to
13 //! create/manage connections and call get_and_clear_pending_events after each action, handling
14 //! them appropriately.
15 //!
16 //! When you want to open/close a channel or send a payment, call into your [`ChannelManager`] and
17 //! when you want to learn things about the network topology (eg get a route for sending a payment),
18 //! call into your [`P2PGossipSync`].
19 //!
20 //! [`ChannelManager`]: channelmanager::ChannelManager
21 //! [`P2PGossipSync`]: crate::routing::gossip::P2PGossipSync
22
23 use alloc::str::FromStr;
24 use core::ffi::c_void;
25 use core::convert::Infallible;
26 use bitcoin::hashes::Hash;
27 use crate::c_types::*;
28 #[cfg(feature="no-std")]
29 use alloc::{vec::Vec, boxed::Box};
30
31 pub mod channelmanager;
32 pub mod inbound_payment;
33 pub mod msgs;
34 pub mod peer_handler;
35 pub mod chan_utils;
36 pub mod features;
37 pub mod script;
38 pub mod wire;
39 mod peer_channel_encryptor {
40
41 use alloc::str::FromStr;
42 use core::ffi::c_void;
43 use core::convert::Infallible;
44 use bitcoin::hashes::Hash;
45 use crate::c_types::*;
46 #[cfg(feature="no-std")]
47 use alloc::{vec::Vec, boxed::Box};
48
49 }
50 mod channel {
51
52 use alloc::str::FromStr;
53 use core::ffi::c_void;
54 use core::convert::Infallible;
55 use bitcoin::hashes::Hash;
56 use crate::c_types::*;
57 #[cfg(feature="no-std")]
58 use alloc::{vec::Vec, boxed::Box};
59
60 }
61 mod onion_utils {
62
63 use alloc::str::FromStr;
64 use core::ffi::c_void;
65 use core::convert::Infallible;
66 use bitcoin::hashes::Hash;
67 use crate::c_types::*;
68 #[cfg(feature="no-std")]
69 use alloc::{vec::Vec, boxed::Box};
70
71 }