Commit latest auto-generated C bindings based on 0.0.100
[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::ChannelManager, and a routing::NetGraphMsgHandler 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 when
17 //! you want to learn things about the network topology (eg get a route for sending a payment),
18 //! call into your NetGraphMsgHandler.
19
20 use std::str::FromStr;
21 use std::ffi::c_void;
22 use bitcoin::hashes::Hash;
23 use crate::c_types::*;
24
25 pub mod channelmanager;
26 pub mod msgs;
27 pub mod peer_handler;
28 pub mod chan_utils;
29 pub mod features;
30 pub mod script;
31 mod peer_channel_encryptor {
32
33 use std::str::FromStr;
34 use std::ffi::c_void;
35 use bitcoin::hashes::Hash;
36 use crate::c_types::*;
37
38 }
39 mod channel {
40
41 use std::str::FromStr;
42 use std::ffi::c_void;
43 use bitcoin::hashes::Hash;
44 use crate::c_types::*;
45
46 }
47 mod onion_utils {
48
49 use std::str::FromStr;
50 use std::ffi::c_void;
51 use bitcoin::hashes::Hash;
52 use crate::c_types::*;
53
54 }
55 mod wire {
56
57 use std::str::FromStr;
58 use std::ffi::c_void;
59 use bitcoin::hashes::Hash;
60 use crate::c_types::*;
61
62 }