Merge pull request #14 from TheBlueMatt/main
[ldk-c-bindings] / lightning-c-bindings / include / rust_types.h
1 #if defined(__GNUC__)
2 #define MUST_USE_STRUCT __attribute__((warn_unused))
3 #define MUST_USE_RES __attribute__((warn_unused_result))
4 #else
5 #define MUST_USE_STRUCT
6 #define MUST_USE_RES
7 #endif
8 #if defined(__clang__)
9 #define NONNULL_PTR _Nonnull
10 #else
11 #define NONNULL_PTR
12 #endif
13 struct nativeChannelHandshakeConfigOpaque;
14 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
15 struct nativeChannelHandshakeLimitsOpaque;
16 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
17 struct nativeChannelConfigOpaque;
18 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
19 struct nativeUserConfigOpaque;
20 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
21 struct nativeOutPointOpaque;
22 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
23 struct nativeTxCreationKeysOpaque;
24 typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
25 struct nativeChannelPublicKeysOpaque;
26 typedef struct nativeChannelPublicKeysOpaque LDKnativeChannelPublicKeys;
27 struct nativeHTLCOutputInCommitmentOpaque;
28 typedef struct nativeHTLCOutputInCommitmentOpaque LDKnativeHTLCOutputInCommitment;
29 struct nativeChannelTransactionParametersOpaque;
30 typedef struct nativeChannelTransactionParametersOpaque LDKnativeChannelTransactionParameters;
31 struct nativeCounterpartyChannelTransactionParametersOpaque;
32 typedef struct nativeCounterpartyChannelTransactionParametersOpaque LDKnativeCounterpartyChannelTransactionParameters;
33 struct nativeDirectedChannelTransactionParametersOpaque;
34 typedef struct nativeDirectedChannelTransactionParametersOpaque LDKnativeDirectedChannelTransactionParameters;
35 struct nativeHolderCommitmentTransactionOpaque;
36 typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
37 struct nativeBuiltCommitmentTransactionOpaque;
38 typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
39 struct nativeCommitmentTransactionOpaque;
40 typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
41 struct nativeTrustedCommitmentTransactionOpaque;
42 typedef struct nativeTrustedCommitmentTransactionOpaque LDKnativeTrustedCommitmentTransaction;
43 struct nativeChannelMonitorUpdateOpaque;
44 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
45 struct nativeMonitorUpdateErrorOpaque;
46 typedef struct nativeMonitorUpdateErrorOpaque LDKnativeMonitorUpdateError;
47 struct nativeHTLCUpdateOpaque;
48 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
49 struct nativeChannelMonitorOpaque;
50 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
51 struct nativeRouteHopOpaque;
52 typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
53 struct nativeRouteOpaque;
54 typedef struct nativeRouteOpaque LDKnativeRoute;
55 struct nativeRouteHintHopOpaque;
56 typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop;
57 struct nativeIgnoringMessageHandlerOpaque;
58 typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
59 struct nativeErroringMessageHandlerOpaque;
60 typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
61 struct nativeMessageHandlerOpaque;
62 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
63 typedef struct LDKSocketDescriptor LDKSocketDescriptor;
64 struct nativePeerHandleErrorOpaque;
65 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
66 struct nativePeerManagerOpaque;
67 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
68 struct nativeWatchedOutputOpaque;
69 typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
70 struct nativeNetworkGraphOpaque;
71 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
72 struct nativeLockedNetworkGraphOpaque;
73 typedef struct nativeLockedNetworkGraphOpaque LDKnativeLockedNetworkGraph;
74 struct nativeNetGraphMsgHandlerOpaque;
75 typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
76 struct nativeDirectionalChannelInfoOpaque;
77 typedef struct nativeDirectionalChannelInfoOpaque LDKnativeDirectionalChannelInfo;
78 struct nativeChannelInfoOpaque;
79 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
80 struct nativeRoutingFeesOpaque;
81 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
82 struct nativeNodeAnnouncementInfoOpaque;
83 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
84 struct nativeNodeInfoOpaque;
85 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
86 struct nativeInitFeaturesOpaque;
87 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
88 struct nativeNodeFeaturesOpaque;
89 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
90 struct nativeChannelFeaturesOpaque;
91 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
92 struct nativeInvoiceFeaturesOpaque;
93 typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
94 struct nativeDecodeErrorOpaque;
95 typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
96 struct nativeInitOpaque;
97 typedef struct nativeInitOpaque LDKnativeInit;
98 struct nativeErrorMessageOpaque;
99 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
100 struct nativePingOpaque;
101 typedef struct nativePingOpaque LDKnativePing;
102 struct nativePongOpaque;
103 typedef struct nativePongOpaque LDKnativePong;
104 struct nativeOpenChannelOpaque;
105 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
106 struct nativeAcceptChannelOpaque;
107 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
108 struct nativeFundingCreatedOpaque;
109 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
110 struct nativeFundingSignedOpaque;
111 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
112 struct nativeFundingLockedOpaque;
113 typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
114 struct nativeShutdownOpaque;
115 typedef struct nativeShutdownOpaque LDKnativeShutdown;
116 struct nativeClosingSignedOpaque;
117 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
118 struct nativeUpdateAddHTLCOpaque;
119 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
120 struct nativeUpdateFulfillHTLCOpaque;
121 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
122 struct nativeUpdateFailHTLCOpaque;
123 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
124 struct nativeUpdateFailMalformedHTLCOpaque;
125 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
126 struct nativeCommitmentSignedOpaque;
127 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
128 struct nativeRevokeAndACKOpaque;
129 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
130 struct nativeUpdateFeeOpaque;
131 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
132 struct nativeDataLossProtectOpaque;
133 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
134 struct nativeChannelReestablishOpaque;
135 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
136 struct nativeAnnouncementSignaturesOpaque;
137 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
138 struct nativeUnsignedNodeAnnouncementOpaque;
139 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
140 struct nativeNodeAnnouncementOpaque;
141 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
142 struct nativeUnsignedChannelAnnouncementOpaque;
143 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
144 struct nativeChannelAnnouncementOpaque;
145 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
146 struct nativeUnsignedChannelUpdateOpaque;
147 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
148 struct nativeChannelUpdateOpaque;
149 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
150 struct nativeQueryChannelRangeOpaque;
151 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
152 struct nativeReplyChannelRangeOpaque;
153 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
154 struct nativeQueryShortChannelIdsOpaque;
155 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
156 struct nativeReplyShortChannelIdsEndOpaque;
157 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
158 struct nativeGossipTimestampFilterOpaque;
159 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
160 struct nativeLightningErrorOpaque;
161 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
162 struct nativeCommitmentUpdateOpaque;
163 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
164 struct nativeDelayedPaymentOutputDescriptorOpaque;
165 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
166 struct nativeStaticPaymentOutputDescriptorOpaque;
167 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
168 struct LDKBaseSign;
169 typedef struct LDKBaseSign LDKBaseSign;
170 struct nativeInMemorySignerOpaque;
171 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
172 struct nativeKeysManagerOpaque;
173 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
174 struct nativeChainMonitorOpaque;
175 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
176 struct nativeFilesystemPersisterOpaque;
177 typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
178 struct nativeChannelManagerOpaque;
179 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
180 struct nativeChainParametersOpaque;
181 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
182 struct nativeBestBlockOpaque;
183 typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
184 struct nativeChannelDetailsOpaque;
185 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
186 struct nativeChannelManagerReadArgsOpaque;
187 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;