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