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