Update auto-generated bindings for LDK 0.0.115
[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 nativeRefundOpaque;
14 typedef struct nativeRefundOpaque LDKnativeRefund;
15 struct nativeRecipientOnionFieldsOpaque;
16 typedef struct nativeRecipientOnionFieldsOpaque LDKnativeRecipientOnionFields;
17 struct nativeCounterpartyCommitmentSecretsOpaque;
18 typedef struct nativeCounterpartyCommitmentSecretsOpaque LDKnativeCounterpartyCommitmentSecrets;
19 struct nativeTxCreationKeysOpaque;
20 typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
21 struct nativeChannelPublicKeysOpaque;
22 typedef struct nativeChannelPublicKeysOpaque LDKnativeChannelPublicKeys;
23 struct nativeHTLCOutputInCommitmentOpaque;
24 typedef struct nativeHTLCOutputInCommitmentOpaque LDKnativeHTLCOutputInCommitment;
25 struct nativeChannelTransactionParametersOpaque;
26 typedef struct nativeChannelTransactionParametersOpaque LDKnativeChannelTransactionParameters;
27 struct nativeCounterpartyChannelTransactionParametersOpaque;
28 typedef struct nativeCounterpartyChannelTransactionParametersOpaque LDKnativeCounterpartyChannelTransactionParameters;
29 struct nativeDirectedChannelTransactionParametersOpaque;
30 typedef struct nativeDirectedChannelTransactionParametersOpaque LDKnativeDirectedChannelTransactionParameters;
31 struct nativeHolderCommitmentTransactionOpaque;
32 typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
33 struct nativeBuiltCommitmentTransactionOpaque;
34 typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
35 struct nativeClosingTransactionOpaque;
36 typedef struct nativeClosingTransactionOpaque LDKnativeClosingTransaction;
37 struct nativeTrustedClosingTransactionOpaque;
38 typedef struct nativeTrustedClosingTransactionOpaque LDKnativeTrustedClosingTransaction;
39 struct nativeCommitmentTransactionOpaque;
40 typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
41 struct nativeTrustedCommitmentTransactionOpaque;
42 typedef struct nativeTrustedCommitmentTransactionOpaque LDKnativeTrustedCommitmentTransaction;
43 struct nativeShutdownScriptOpaque;
44 typedef struct nativeShutdownScriptOpaque LDKnativeShutdownScript;
45 struct nativeInvalidShutdownScriptOpaque;
46 typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript;
47 struct nativeUnsignedInvoiceOpaque;
48 typedef struct nativeUnsignedInvoiceOpaque LDKnativeUnsignedInvoice;
49 struct nativeBlindedPayInfoOpaque;
50 typedef struct nativeBlindedPayInfoOpaque LDKnativeBlindedPayInfo;
51 struct nativeBackgroundProcessorOpaque;
52 typedef struct nativeBackgroundProcessorOpaque LDKnativeBackgroundProcessor;
53 struct nativeDefaultRouterOpaque;
54 typedef struct nativeDefaultRouterOpaque LDKnativeDefaultRouter;
55 struct nativeScorerAccountingForInFlightHtlcsOpaque;
56 typedef struct nativeScorerAccountingForInFlightHtlcsOpaque LDKnativeScorerAccountingForInFlightHtlcs;
57 struct nativeInFlightHtlcsOpaque;
58 typedef struct nativeInFlightHtlcsOpaque LDKnativeInFlightHtlcs;
59 struct nativeRouteHopOpaque;
60 typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
61 struct nativeBlindedTailOpaque;
62 typedef struct nativeBlindedTailOpaque LDKnativeBlindedTail;
63 struct nativePathOpaque;
64 typedef struct nativePathOpaque LDKnativePath;
65 struct nativeRouteOpaque;
66 typedef struct nativeRouteOpaque LDKnativeRoute;
67 struct nativeRouteParametersOpaque;
68 typedef struct nativeRouteParametersOpaque LDKnativeRouteParameters;
69 struct nativePaymentParametersOpaque;
70 typedef struct nativePaymentParametersOpaque LDKnativePaymentParameters;
71 struct nativeRouteHintOpaque;
72 typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
73 struct nativeRouteHintHopOpaque;
74 typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop;
75 struct nativeBestBlockOpaque;
76 typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
77 struct nativeWatchedOutputOpaque;
78 typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
79 struct nativeMultiThreadedLockableScoreOpaque;
80 typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore;
81 struct nativeMultiThreadedScoreLockOpaque;
82 typedef struct nativeMultiThreadedScoreLockOpaque LDKnativeMultiThreadedScoreLock;
83 struct nativeChannelUsageOpaque;
84 typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage;
85 struct nativeFixedPenaltyScorerOpaque;
86 typedef struct nativeFixedPenaltyScorerOpaque LDKnativeFixedPenaltyScorer;
87 struct nativeProbabilisticScorerOpaque;
88 typedef struct nativeProbabilisticScorerOpaque LDKnativeProbabilisticScorer;
89 struct nativeProbabilisticScoringParametersOpaque;
90 typedef struct nativeProbabilisticScoringParametersOpaque LDKnativeProbabilisticScoringParameters;
91 struct nativeInitFeaturesOpaque;
92 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
93 struct nativeNodeFeaturesOpaque;
94 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
95 struct nativeChannelFeaturesOpaque;
96 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
97 struct nativeInvoiceFeaturesOpaque;
98 typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
99 struct nativeOfferFeaturesOpaque;
100 typedef struct nativeOfferFeaturesOpaque LDKnativeOfferFeatures;
101 struct nativeInvoiceRequestFeaturesOpaque;
102 typedef struct nativeInvoiceRequestFeaturesOpaque LDKnativeInvoiceRequestFeatures;
103 struct nativeBolt12InvoiceFeaturesOpaque;
104 typedef struct nativeBolt12InvoiceFeaturesOpaque LDKnativeBolt12InvoiceFeatures;
105 struct nativeBlindedHopFeaturesOpaque;
106 typedef struct nativeBlindedHopFeaturesOpaque LDKnativeBlindedHopFeatures;
107 struct nativeChannelTypeFeaturesOpaque;
108 typedef struct nativeChannelTypeFeaturesOpaque LDKnativeChannelTypeFeatures;
109 struct nativeOfferOpaque;
110 typedef struct nativeOfferOpaque LDKnativeOffer;
111 struct nativeAmountOpaque;
112 typedef struct nativeAmountOpaque LDKnativeAmount;
113 struct nativeQuantityOpaque;
114 typedef struct nativeQuantityOpaque LDKnativeQuantity;
115 struct nativeNodeIdOpaque;
116 typedef struct nativeNodeIdOpaque LDKnativeNodeId;
117 struct nativeNetworkGraphOpaque;
118 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
119 struct nativeReadOnlyNetworkGraphOpaque;
120 typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
121 struct nativeP2PGossipSyncOpaque;
122 typedef struct nativeP2PGossipSyncOpaque LDKnativeP2PGossipSync;
123 struct nativeChannelUpdateInfoOpaque;
124 typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
125 struct nativeChannelInfoOpaque;
126 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
127 struct nativeDirectedChannelInfoOpaque;
128 typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
129 struct nativeRoutingFeesOpaque;
130 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
131 struct nativeNodeAnnouncementInfoOpaque;
132 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
133 struct nativeNodeAliasOpaque;
134 typedef struct nativeNodeAliasOpaque LDKnativeNodeAlias;
135 struct nativeNodeInfoOpaque;
136 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
137 struct nativeDelayedPaymentOutputDescriptorOpaque;
138 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
139 struct nativeStaticPaymentOutputDescriptorOpaque;
140 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
141 struct LDKChannelSigner;
142 struct nativeInMemorySignerOpaque;
143 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
144 struct nativeKeysManagerOpaque;
145 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
146 struct nativePhantomKeysManagerOpaque;
147 typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
148 struct nativeFilesystemPersisterOpaque;
149 typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
150 struct nativeChannelManagerOpaque;
151 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
152 struct nativeChainParametersOpaque;
153 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
154 struct nativeCounterpartyForwardingInfoOpaque;
155 typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
156 struct nativeChannelCounterpartyOpaque;
157 typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
158 struct nativeChannelDetailsOpaque;
159 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
160 struct nativePhantomRouteHintsOpaque;
161 typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
162 struct nativeChannelManagerReadArgsOpaque;
163 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
164 struct nativeChannelHandshakeConfigOpaque;
165 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
166 struct nativeChannelHandshakeLimitsOpaque;
167 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
168 struct nativeChannelConfigOpaque;
169 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
170 struct nativeUserConfigOpaque;
171 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
172 struct nativeBigSizeOpaque;
173 typedef struct nativeBigSizeOpaque LDKnativeBigSize;
174 struct nativeHostnameOpaque;
175 typedef struct nativeHostnameOpaque LDKnativeHostname;
176 struct nativeUntrustedStringOpaque;
177 typedef struct nativeUntrustedStringOpaque LDKnativeUntrustedString;
178 struct nativePrintableStringOpaque;
179 typedef struct nativePrintableStringOpaque LDKnativePrintableString;
180 struct nativeOutPointOpaque;
181 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
182 struct nativeChannelMonitorUpdateOpaque;
183 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
184 struct nativeHTLCUpdateOpaque;
185 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
186 struct nativeChannelMonitorOpaque;
187 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
188 struct nativeExpandedKeyOpaque;
189 typedef struct nativeExpandedKeyOpaque LDKnativeExpandedKey;
190 struct nativeIgnoringMessageHandlerOpaque;
191 typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
192 struct nativeErroringMessageHandlerOpaque;
193 typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
194 struct nativeMessageHandlerOpaque;
195 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
196 struct nativePeerHandleErrorOpaque;
197 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
198 struct nativePeerManagerOpaque;
199 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
200 struct nativeUtxoFutureOpaque;
201 typedef struct nativeUtxoFutureOpaque LDKnativeUtxoFuture;
202 struct nativeOnionMessengerOpaque;
203 typedef struct nativeOnionMessengerOpaque LDKnativeOnionMessenger;
204 struct nativeBlindedPathOpaque;
205 typedef struct nativeBlindedPathOpaque LDKnativeBlindedPath;
206 struct nativeBlindedHopOpaque;
207 typedef struct nativeBlindedHopOpaque LDKnativeBlindedHop;
208 struct nativeInvoiceOpaque;
209 typedef struct nativeInvoiceOpaque LDKnativeInvoice;
210 struct nativeSignedRawInvoiceOpaque;
211 typedef struct nativeSignedRawInvoiceOpaque LDKnativeSignedRawInvoice;
212 struct nativeRawInvoiceOpaque;
213 typedef struct nativeRawInvoiceOpaque LDKnativeRawInvoice;
214 struct nativeRawDataPartOpaque;
215 typedef struct nativeRawDataPartOpaque LDKnativeRawDataPart;
216 struct nativePositiveTimestampOpaque;
217 typedef struct nativePositiveTimestampOpaque LDKnativePositiveTimestamp;
218 struct nativeSha256Opaque;
219 typedef struct nativeSha256Opaque LDKnativeSha256;
220 struct nativeDescriptionOpaque;
221 typedef struct nativeDescriptionOpaque LDKnativeDescription;
222 struct nativePayeePubKeyOpaque;
223 typedef struct nativePayeePubKeyOpaque LDKnativePayeePubKey;
224 struct nativeExpiryTimeOpaque;
225 typedef struct nativeExpiryTimeOpaque LDKnativeExpiryTime;
226 struct nativeMinFinalCltvExpiryDeltaOpaque;
227 typedef struct nativeMinFinalCltvExpiryDeltaOpaque LDKnativeMinFinalCltvExpiryDelta;
228 struct nativeInvoiceSignatureOpaque;
229 typedef struct nativeInvoiceSignatureOpaque LDKnativeInvoiceSignature;
230 struct nativePrivateRouteOpaque;
231 typedef struct nativePrivateRouteOpaque LDKnativePrivateRoute;
232 struct nativeInitOpaque;
233 typedef struct nativeInitOpaque LDKnativeInit;
234 struct nativeErrorMessageOpaque;
235 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
236 struct nativeWarningMessageOpaque;
237 typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
238 struct nativePingOpaque;
239 typedef struct nativePingOpaque LDKnativePing;
240 struct nativePongOpaque;
241 typedef struct nativePongOpaque LDKnativePong;
242 struct nativeOpenChannelOpaque;
243 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
244 struct nativeAcceptChannelOpaque;
245 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
246 struct nativeFundingCreatedOpaque;
247 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
248 struct nativeFundingSignedOpaque;
249 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
250 struct nativeChannelReadyOpaque;
251 typedef struct nativeChannelReadyOpaque LDKnativeChannelReady;
252 struct nativeShutdownOpaque;
253 typedef struct nativeShutdownOpaque LDKnativeShutdown;
254 struct nativeClosingSignedFeeRangeOpaque;
255 typedef struct nativeClosingSignedFeeRangeOpaque LDKnativeClosingSignedFeeRange;
256 struct nativeClosingSignedOpaque;
257 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
258 struct nativeUpdateAddHTLCOpaque;
259 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
260 struct nativeOnionMessageOpaque;
261 typedef struct nativeOnionMessageOpaque LDKnativeOnionMessage;
262 struct nativeUpdateFulfillHTLCOpaque;
263 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
264 struct nativeUpdateFailHTLCOpaque;
265 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
266 struct nativeUpdateFailMalformedHTLCOpaque;
267 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
268 struct nativeCommitmentSignedOpaque;
269 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
270 struct nativeRevokeAndACKOpaque;
271 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
272 struct nativeUpdateFeeOpaque;
273 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
274 struct nativeDataLossProtectOpaque;
275 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
276 struct nativeChannelReestablishOpaque;
277 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
278 struct nativeAnnouncementSignaturesOpaque;
279 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
280 struct nativeUnsignedNodeAnnouncementOpaque;
281 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
282 struct nativeNodeAnnouncementOpaque;
283 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
284 struct nativeUnsignedChannelAnnouncementOpaque;
285 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
286 struct nativeChannelAnnouncementOpaque;
287 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
288 struct nativeUnsignedChannelUpdateOpaque;
289 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
290 struct nativeChannelUpdateOpaque;
291 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
292 struct nativeQueryChannelRangeOpaque;
293 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
294 struct nativeReplyChannelRangeOpaque;
295 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
296 struct nativeQueryShortChannelIdsOpaque;
297 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
298 struct nativeReplyShortChannelIdsEndOpaque;
299 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
300 struct nativeGossipTimestampFilterOpaque;
301 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
302 struct nativeLightningErrorOpaque;
303 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
304 struct nativeCommitmentUpdateOpaque;
305 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
306 struct nativeUnsignedInvoiceRequestOpaque;
307 typedef struct nativeUnsignedInvoiceRequestOpaque LDKnativeUnsignedInvoiceRequest;
308 struct nativeInvoiceRequestOpaque;
309 typedef struct nativeInvoiceRequestOpaque LDKnativeInvoiceRequest;
310 struct nativeRecordOpaque;
311 typedef struct nativeRecordOpaque LDKnativeRecord;
312 struct nativeFutureOpaque;
313 typedef struct nativeFutureOpaque LDKnativeFuture;
314 struct nativeSleeperOpaque;
315 typedef struct nativeSleeperOpaque LDKnativeSleeper;
316 struct nativeMonitorUpdateIdOpaque;
317 typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
318 struct nativeLockedChannelMonitorOpaque;
319 typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
320 struct nativeChainMonitorOpaque;
321 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
322 struct nativeRapidGossipSyncOpaque;
323 typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;