eb35dae13b7dbea72a29c62a1facb565f58a2e4d
[ldk-c-bindings] / lightning-c-bindings / include / ldk_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 nativeCounterpartyCommitmentSecretsOpaque;
14 typedef struct nativeCounterpartyCommitmentSecretsOpaque LDKnativeCounterpartyCommitmentSecrets;
15 struct nativeTxCreationKeysOpaque;
16 typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
17 struct nativeChannelPublicKeysOpaque;
18 typedef struct nativeChannelPublicKeysOpaque LDKnativeChannelPublicKeys;
19 struct nativeHTLCOutputInCommitmentOpaque;
20 typedef struct nativeHTLCOutputInCommitmentOpaque LDKnativeHTLCOutputInCommitment;
21 struct nativeChannelTransactionParametersOpaque;
22 typedef struct nativeChannelTransactionParametersOpaque LDKnativeChannelTransactionParameters;
23 struct nativeCounterpartyChannelTransactionParametersOpaque;
24 typedef struct nativeCounterpartyChannelTransactionParametersOpaque LDKnativeCounterpartyChannelTransactionParameters;
25 struct nativeDirectedChannelTransactionParametersOpaque;
26 typedef struct nativeDirectedChannelTransactionParametersOpaque LDKnativeDirectedChannelTransactionParameters;
27 struct nativeHolderCommitmentTransactionOpaque;
28 typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
29 struct nativeBuiltCommitmentTransactionOpaque;
30 typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
31 struct nativeClosingTransactionOpaque;
32 typedef struct nativeClosingTransactionOpaque LDKnativeClosingTransaction;
33 struct nativeTrustedClosingTransactionOpaque;
34 typedef struct nativeTrustedClosingTransactionOpaque LDKnativeTrustedClosingTransaction;
35 struct nativeCommitmentTransactionOpaque;
36 typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
37 struct nativeTrustedCommitmentTransactionOpaque;
38 typedef struct nativeTrustedCommitmentTransactionOpaque LDKnativeTrustedCommitmentTransaction;
39 struct nativeShutdownScriptOpaque;
40 typedef struct nativeShutdownScriptOpaque LDKnativeShutdownScript;
41 struct nativeInvalidShutdownScriptOpaque;
42 typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript;
43 struct nativeBackgroundProcessorOpaque;
44 typedef struct nativeBackgroundProcessorOpaque LDKnativeBackgroundProcessor;
45 struct nativeRouteHopOpaque;
46 typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
47 struct nativeRouteOpaque;
48 typedef struct nativeRouteOpaque LDKnativeRoute;
49 struct nativeRouteParametersOpaque;
50 typedef struct nativeRouteParametersOpaque LDKnativeRouteParameters;
51 struct nativePaymentParametersOpaque;
52 typedef struct nativePaymentParametersOpaque LDKnativePaymentParameters;
53 struct nativeRouteHintOpaque;
54 typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
55 struct nativeRouteHintHopOpaque;
56 typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop;
57 struct nativeBestBlockOpaque;
58 typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
59 struct nativeWatchedOutputOpaque;
60 typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
61 struct nativeMultiThreadedLockableScoreOpaque;
62 typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore;
63 struct nativeFixedPenaltyScorerOpaque;
64 typedef struct nativeFixedPenaltyScorerOpaque LDKnativeFixedPenaltyScorer;
65 struct nativeScorerOpaque;
66 typedef struct nativeScorerOpaque LDKnativeScorer;
67 struct nativeScoringParametersOpaque;
68 typedef struct nativeScoringParametersOpaque LDKnativeScoringParameters;
69 struct nativeProbabilisticScoringParametersOpaque;
70 typedef struct nativeProbabilisticScoringParametersOpaque LDKnativeProbabilisticScoringParameters;
71 struct nativeInitFeaturesOpaque;
72 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
73 struct nativeNodeFeaturesOpaque;
74 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
75 struct nativeChannelFeaturesOpaque;
76 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
77 struct nativeInvoiceFeaturesOpaque;
78 typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
79 struct nativeChannelTypeFeaturesOpaque;
80 typedef struct nativeChannelTypeFeaturesOpaque LDKnativeChannelTypeFeatures;
81 struct nativeDelayedPaymentOutputDescriptorOpaque;
82 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
83 struct nativeStaticPaymentOutputDescriptorOpaque;
84 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
85 struct LDKBaseSign;
86 struct nativeInMemorySignerOpaque;
87 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
88 struct nativeKeysManagerOpaque;
89 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
90 struct nativePhantomKeysManagerOpaque;
91 typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
92 struct nativeFilesystemPersisterOpaque;
93 typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
94 struct nativeChannelManagerOpaque;
95 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
96 struct nativeChainParametersOpaque;
97 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
98 struct nativeCounterpartyForwardingInfoOpaque;
99 typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
100 struct nativeChannelCounterpartyOpaque;
101 typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
102 struct nativeChannelDetailsOpaque;
103 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
104 struct nativePhantomRouteHintsOpaque;
105 typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
106 struct nativeChannelManagerReadArgsOpaque;
107 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
108 struct nativeChannelHandshakeConfigOpaque;
109 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
110 struct nativeChannelHandshakeLimitsOpaque;
111 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
112 struct nativeChannelConfigOpaque;
113 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
114 struct nativeUserConfigOpaque;
115 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
116 struct nativeOutPointOpaque;
117 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
118 struct nativeInvoicePayerOpaque;
119 typedef struct nativeInvoicePayerOpaque LDKnativeInvoicePayer;
120 struct nativeRetryAttemptsOpaque;
121 typedef struct nativeRetryAttemptsOpaque LDKnativeRetryAttempts;
122 struct nativeInvoiceOpaque;
123 typedef struct nativeInvoiceOpaque LDKnativeInvoice;
124 struct nativeSignedRawInvoiceOpaque;
125 typedef struct nativeSignedRawInvoiceOpaque LDKnativeSignedRawInvoice;
126 struct nativeRawInvoiceOpaque;
127 typedef struct nativeRawInvoiceOpaque LDKnativeRawInvoice;
128 struct nativeRawDataPartOpaque;
129 typedef struct nativeRawDataPartOpaque LDKnativeRawDataPart;
130 struct nativePositiveTimestampOpaque;
131 typedef struct nativePositiveTimestampOpaque LDKnativePositiveTimestamp;
132 struct nativeSha256Opaque;
133 typedef struct nativeSha256Opaque LDKnativeSha256;
134 struct nativeDescriptionOpaque;
135 typedef struct nativeDescriptionOpaque LDKnativeDescription;
136 struct nativePayeePubKeyOpaque;
137 typedef struct nativePayeePubKeyOpaque LDKnativePayeePubKey;
138 struct nativeExpiryTimeOpaque;
139 typedef struct nativeExpiryTimeOpaque LDKnativeExpiryTime;
140 struct nativeMinFinalCltvExpiryOpaque;
141 typedef struct nativeMinFinalCltvExpiryOpaque LDKnativeMinFinalCltvExpiry;
142 struct nativeInvoiceSignatureOpaque;
143 typedef struct nativeInvoiceSignatureOpaque LDKnativeInvoiceSignature;
144 struct nativePrivateRouteOpaque;
145 typedef struct nativePrivateRouteOpaque LDKnativePrivateRoute;
146 struct nativeChannelMonitorUpdateOpaque;
147 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
148 struct nativeHTLCUpdateOpaque;
149 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
150 struct nativeChannelMonitorOpaque;
151 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
152 struct nativeIgnoringMessageHandlerOpaque;
153 typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
154 struct nativeErroringMessageHandlerOpaque;
155 typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
156 struct nativeMessageHandlerOpaque;
157 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
158 struct nativePeerHandleErrorOpaque;
159 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
160 struct nativePeerManagerOpaque;
161 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
162 struct nativeNodeIdOpaque;
163 typedef struct nativeNodeIdOpaque LDKnativeNodeId;
164 struct nativeNetworkGraphOpaque;
165 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
166 struct nativeReadOnlyNetworkGraphOpaque;
167 typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
168 struct nativeNetGraphMsgHandlerOpaque;
169 typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
170 struct nativeChannelUpdateInfoOpaque;
171 typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
172 struct nativeChannelInfoOpaque;
173 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
174 struct nativeDirectedChannelInfoOpaque;
175 typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
176 struct nativeRoutingFeesOpaque;
177 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
178 struct nativeNodeAnnouncementInfoOpaque;
179 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
180 struct nativeNodeInfoOpaque;
181 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
182 struct nativeDecodeErrorOpaque;
183 typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
184 struct nativeInitOpaque;
185 typedef struct nativeInitOpaque LDKnativeInit;
186 struct nativeErrorMessageOpaque;
187 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
188 struct nativeWarningMessageOpaque;
189 typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
190 struct nativePingOpaque;
191 typedef struct nativePingOpaque LDKnativePing;
192 struct nativePongOpaque;
193 typedef struct nativePongOpaque LDKnativePong;
194 struct nativeOpenChannelOpaque;
195 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
196 struct nativeAcceptChannelOpaque;
197 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
198 struct nativeFundingCreatedOpaque;
199 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
200 struct nativeFundingSignedOpaque;
201 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
202 struct nativeFundingLockedOpaque;
203 typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
204 struct nativeShutdownOpaque;
205 typedef struct nativeShutdownOpaque LDKnativeShutdown;
206 struct nativeClosingSignedFeeRangeOpaque;
207 typedef struct nativeClosingSignedFeeRangeOpaque LDKnativeClosingSignedFeeRange;
208 struct nativeClosingSignedOpaque;
209 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
210 struct nativeUpdateAddHTLCOpaque;
211 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
212 struct nativeUpdateFulfillHTLCOpaque;
213 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
214 struct nativeUpdateFailHTLCOpaque;
215 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
216 struct nativeUpdateFailMalformedHTLCOpaque;
217 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
218 struct nativeCommitmentSignedOpaque;
219 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
220 struct nativeRevokeAndACKOpaque;
221 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
222 struct nativeUpdateFeeOpaque;
223 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
224 struct nativeDataLossProtectOpaque;
225 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
226 struct nativeChannelReestablishOpaque;
227 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
228 struct nativeAnnouncementSignaturesOpaque;
229 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
230 struct nativeUnsignedNodeAnnouncementOpaque;
231 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
232 struct nativeNodeAnnouncementOpaque;
233 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
234 struct nativeUnsignedChannelAnnouncementOpaque;
235 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
236 struct nativeChannelAnnouncementOpaque;
237 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
238 struct nativeUnsignedChannelUpdateOpaque;
239 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
240 struct nativeChannelUpdateOpaque;
241 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
242 struct nativeQueryChannelRangeOpaque;
243 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
244 struct nativeReplyChannelRangeOpaque;
245 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
246 struct nativeQueryShortChannelIdsOpaque;
247 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
248 struct nativeReplyShortChannelIdsEndOpaque;
249 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
250 struct nativeGossipTimestampFilterOpaque;
251 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
252 struct nativeLightningErrorOpaque;
253 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
254 struct nativeCommitmentUpdateOpaque;
255 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
256 struct nativeDefaultRouterOpaque;
257 typedef struct nativeDefaultRouterOpaque LDKnativeDefaultRouter;
258 struct nativeRecordOpaque;
259 typedef struct nativeRecordOpaque LDKnativeRecord;
260 struct nativeMonitorUpdateIdOpaque;
261 typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
262 struct nativeLockedChannelMonitorOpaque;
263 typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
264 struct nativeChainMonitorOpaque;
265 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;