Update auto-generated bindings to 0.0.113
[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 nativeChannelTypeFeaturesOpaque;
96 typedef struct nativeChannelTypeFeaturesOpaque LDKnativeChannelTypeFeatures;
97 struct nativeNodeIdOpaque;
98 typedef struct nativeNodeIdOpaque LDKnativeNodeId;
99 struct nativeNetworkGraphOpaque;
100 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
101 struct nativeReadOnlyNetworkGraphOpaque;
102 typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
103 struct nativeP2PGossipSyncOpaque;
104 typedef struct nativeP2PGossipSyncOpaque LDKnativeP2PGossipSync;
105 struct nativeChannelUpdateInfoOpaque;
106 typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
107 struct nativeChannelInfoOpaque;
108 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
109 struct nativeDirectedChannelInfoOpaque;
110 typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
111 struct nativeRoutingFeesOpaque;
112 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
113 struct nativeNodeAnnouncementInfoOpaque;
114 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
115 struct nativeNodeAliasOpaque;
116 typedef struct nativeNodeAliasOpaque LDKnativeNodeAlias;
117 struct nativeNodeInfoOpaque;
118 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
119 struct nativeDelayedPaymentOutputDescriptorOpaque;
120 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
121 struct nativeStaticPaymentOutputDescriptorOpaque;
122 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
123 struct LDKBaseSign;
124 struct nativeInMemorySignerOpaque;
125 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
126 struct nativeKeysManagerOpaque;
127 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
128 struct nativePhantomKeysManagerOpaque;
129 typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
130 struct nativeFilesystemPersisterOpaque;
131 typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
132 struct nativeChannelManagerOpaque;
133 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
134 struct nativeChainParametersOpaque;
135 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
136 struct nativeCounterpartyForwardingInfoOpaque;
137 typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
138 struct nativeChannelCounterpartyOpaque;
139 typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
140 struct nativeChannelDetailsOpaque;
141 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
142 struct nativePhantomRouteHintsOpaque;
143 typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
144 struct nativeChannelManagerReadArgsOpaque;
145 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
146 struct nativeChannelHandshakeConfigOpaque;
147 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
148 struct nativeChannelHandshakeLimitsOpaque;
149 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
150 struct nativeChannelConfigOpaque;
151 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
152 struct nativeUserConfigOpaque;
153 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
154 struct nativeBigSizeOpaque;
155 typedef struct nativeBigSizeOpaque LDKnativeBigSize;
156 struct nativeHostnameOpaque;
157 typedef struct nativeHostnameOpaque LDKnativeHostname;
158 struct nativePrintableStringOpaque;
159 typedef struct nativePrintableStringOpaque LDKnativePrintableString;
160 struct nativeOutPointOpaque;
161 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
162 struct nativeInvoicePayerOpaque;
163 typedef struct nativeInvoicePayerOpaque LDKnativeInvoicePayer;
164 struct nativeChannelMonitorUpdateOpaque;
165 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
166 struct nativeHTLCUpdateOpaque;
167 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
168 struct nativeChannelMonitorOpaque;
169 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
170 struct nativeExpandedKeyOpaque;
171 typedef struct nativeExpandedKeyOpaque LDKnativeExpandedKey;
172 struct nativeIgnoringMessageHandlerOpaque;
173 typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
174 struct nativeErroringMessageHandlerOpaque;
175 typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
176 struct nativeMessageHandlerOpaque;
177 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
178 struct nativePeerHandleErrorOpaque;
179 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
180 struct nativePeerManagerOpaque;
181 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
182 struct nativeOnionMessengerOpaque;
183 typedef struct nativeOnionMessengerOpaque LDKnativeOnionMessenger;
184 struct nativeInvoiceOpaque;
185 typedef struct nativeInvoiceOpaque LDKnativeInvoice;
186 struct nativeSignedRawInvoiceOpaque;
187 typedef struct nativeSignedRawInvoiceOpaque LDKnativeSignedRawInvoice;
188 struct nativeRawInvoiceOpaque;
189 typedef struct nativeRawInvoiceOpaque LDKnativeRawInvoice;
190 struct nativeRawDataPartOpaque;
191 typedef struct nativeRawDataPartOpaque LDKnativeRawDataPart;
192 struct nativePositiveTimestampOpaque;
193 typedef struct nativePositiveTimestampOpaque LDKnativePositiveTimestamp;
194 struct nativeSha256Opaque;
195 typedef struct nativeSha256Opaque LDKnativeSha256;
196 struct nativeDescriptionOpaque;
197 typedef struct nativeDescriptionOpaque LDKnativeDescription;
198 struct nativePayeePubKeyOpaque;
199 typedef struct nativePayeePubKeyOpaque LDKnativePayeePubKey;
200 struct nativeExpiryTimeOpaque;
201 typedef struct nativeExpiryTimeOpaque LDKnativeExpiryTime;
202 struct nativeMinFinalCltvExpiryOpaque;
203 typedef struct nativeMinFinalCltvExpiryOpaque LDKnativeMinFinalCltvExpiry;
204 struct nativeInvoiceSignatureOpaque;
205 typedef struct nativeInvoiceSignatureOpaque LDKnativeInvoiceSignature;
206 struct nativePrivateRouteOpaque;
207 typedef struct nativePrivateRouteOpaque LDKnativePrivateRoute;
208 struct nativeRapidGossipSyncOpaque;
209 typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;
210 struct nativeInitOpaque;
211 typedef struct nativeInitOpaque LDKnativeInit;
212 struct nativeErrorMessageOpaque;
213 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
214 struct nativeWarningMessageOpaque;
215 typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
216 struct nativePingOpaque;
217 typedef struct nativePingOpaque LDKnativePing;
218 struct nativePongOpaque;
219 typedef struct nativePongOpaque LDKnativePong;
220 struct nativeOpenChannelOpaque;
221 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
222 struct nativeAcceptChannelOpaque;
223 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
224 struct nativeFundingCreatedOpaque;
225 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
226 struct nativeFundingSignedOpaque;
227 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
228 struct nativeChannelReadyOpaque;
229 typedef struct nativeChannelReadyOpaque LDKnativeChannelReady;
230 struct nativeShutdownOpaque;
231 typedef struct nativeShutdownOpaque LDKnativeShutdown;
232 struct nativeClosingSignedFeeRangeOpaque;
233 typedef struct nativeClosingSignedFeeRangeOpaque LDKnativeClosingSignedFeeRange;
234 struct nativeClosingSignedOpaque;
235 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
236 struct nativeUpdateAddHTLCOpaque;
237 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
238 struct nativeOnionMessageOpaque;
239 typedef struct nativeOnionMessageOpaque LDKnativeOnionMessage;
240 struct nativeUpdateFulfillHTLCOpaque;
241 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
242 struct nativeUpdateFailHTLCOpaque;
243 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
244 struct nativeUpdateFailMalformedHTLCOpaque;
245 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
246 struct nativeCommitmentSignedOpaque;
247 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
248 struct nativeRevokeAndACKOpaque;
249 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
250 struct nativeUpdateFeeOpaque;
251 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
252 struct nativeDataLossProtectOpaque;
253 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
254 struct nativeChannelReestablishOpaque;
255 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
256 struct nativeAnnouncementSignaturesOpaque;
257 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
258 struct nativeUnsignedNodeAnnouncementOpaque;
259 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
260 struct nativeNodeAnnouncementOpaque;
261 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
262 struct nativeUnsignedChannelAnnouncementOpaque;
263 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
264 struct nativeChannelAnnouncementOpaque;
265 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
266 struct nativeUnsignedChannelUpdateOpaque;
267 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
268 struct nativeChannelUpdateOpaque;
269 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
270 struct nativeQueryChannelRangeOpaque;
271 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
272 struct nativeReplyChannelRangeOpaque;
273 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
274 struct nativeQueryShortChannelIdsOpaque;
275 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
276 struct nativeReplyShortChannelIdsEndOpaque;
277 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
278 struct nativeGossipTimestampFilterOpaque;
279 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
280 struct nativeLightningErrorOpaque;
281 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
282 struct nativeCommitmentUpdateOpaque;
283 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
284 struct nativeRecordOpaque;
285 typedef struct nativeRecordOpaque LDKnativeRecord;
286 struct nativeFutureOpaque;
287 typedef struct nativeFutureOpaque LDKnativeFuture;
288 struct nativeMonitorUpdateIdOpaque;
289 typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
290 struct nativeLockedChannelMonitorOpaque;
291 typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
292 struct nativeChainMonitorOpaque;
293 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;