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 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 nativeChannelUsageOpaque;
64 typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage;
65 struct nativeFixedPenaltyScorerOpaque;
66 typedef struct nativeFixedPenaltyScorerOpaque LDKnativeFixedPenaltyScorer;
67 struct nativeProbabilisticScorerOpaque;
68 typedef struct nativeProbabilisticScorerOpaque LDKnativeProbabilisticScorer;
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 nativeNodeIdOpaque;
82 typedef struct nativeNodeIdOpaque LDKnativeNodeId;
83 struct nativeNetworkGraphOpaque;
84 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
85 struct nativeReadOnlyNetworkGraphOpaque;
86 typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
87 struct nativeP2PGossipSyncOpaque;
88 typedef struct nativeP2PGossipSyncOpaque LDKnativeP2PGossipSync;
89 struct nativeChannelUpdateInfoOpaque;
90 typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
91 struct nativeChannelInfoOpaque;
92 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
93 struct nativeDirectedChannelInfoOpaque;
94 typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
95 struct nativeRoutingFeesOpaque;
96 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
97 struct nativeNodeAnnouncementInfoOpaque;
98 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
99 struct nativeNodeInfoOpaque;
100 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
101 struct nativeDelayedPaymentOutputDescriptorOpaque;
102 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
103 struct nativeStaticPaymentOutputDescriptorOpaque;
104 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
105 struct LDKBaseSign;
106 struct nativeInMemorySignerOpaque;
107 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
108 struct nativeKeysManagerOpaque;
109 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
110 struct nativePhantomKeysManagerOpaque;
111 typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
112 struct nativeFilesystemPersisterOpaque;
113 typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
114 struct nativeChannelManagerOpaque;
115 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
116 struct nativeChainParametersOpaque;
117 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
118 struct nativeCounterpartyForwardingInfoOpaque;
119 typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
120 struct nativeChannelCounterpartyOpaque;
121 typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
122 struct nativeChannelDetailsOpaque;
123 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
124 struct nativePhantomRouteHintsOpaque;
125 typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
126 struct nativeChannelManagerReadArgsOpaque;
127 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
128 struct nativeChannelHandshakeConfigOpaque;
129 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
130 struct nativeChannelHandshakeLimitsOpaque;
131 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
132 struct nativeChannelConfigOpaque;
133 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
134 struct nativeUserConfigOpaque;
135 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
136 struct nativeBigSizeOpaque;
137 typedef struct nativeBigSizeOpaque LDKnativeBigSize;
138 struct nativeOutPointOpaque;
139 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
140 struct nativeInvoicePayerOpaque;
141 typedef struct nativeInvoicePayerOpaque LDKnativeInvoicePayer;
142 struct nativeInvoiceOpaque;
143 typedef struct nativeInvoiceOpaque LDKnativeInvoice;
144 struct nativeSignedRawInvoiceOpaque;
145 typedef struct nativeSignedRawInvoiceOpaque LDKnativeSignedRawInvoice;
146 struct nativeRawInvoiceOpaque;
147 typedef struct nativeRawInvoiceOpaque LDKnativeRawInvoice;
148 struct nativeRawDataPartOpaque;
149 typedef struct nativeRawDataPartOpaque LDKnativeRawDataPart;
150 struct nativePositiveTimestampOpaque;
151 typedef struct nativePositiveTimestampOpaque LDKnativePositiveTimestamp;
152 struct nativeSha256Opaque;
153 typedef struct nativeSha256Opaque LDKnativeSha256;
154 struct nativeDescriptionOpaque;
155 typedef struct nativeDescriptionOpaque LDKnativeDescription;
156 struct nativePayeePubKeyOpaque;
157 typedef struct nativePayeePubKeyOpaque LDKnativePayeePubKey;
158 struct nativeExpiryTimeOpaque;
159 typedef struct nativeExpiryTimeOpaque LDKnativeExpiryTime;
160 struct nativeMinFinalCltvExpiryOpaque;
161 typedef struct nativeMinFinalCltvExpiryOpaque LDKnativeMinFinalCltvExpiry;
162 struct nativeInvoiceSignatureOpaque;
163 typedef struct nativeInvoiceSignatureOpaque LDKnativeInvoiceSignature;
164 struct nativePrivateRouteOpaque;
165 typedef struct nativePrivateRouteOpaque LDKnativePrivateRoute;
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 nativeRapidGossipSyncOpaque;
185 typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;
186 struct nativeDecodeErrorOpaque;
187 typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
188 struct nativeInitOpaque;
189 typedef struct nativeInitOpaque LDKnativeInit;
190 struct nativeErrorMessageOpaque;
191 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
192 struct nativeWarningMessageOpaque;
193 typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
194 struct nativePingOpaque;
195 typedef struct nativePingOpaque LDKnativePing;
196 struct nativePongOpaque;
197 typedef struct nativePongOpaque LDKnativePong;
198 struct nativeOpenChannelOpaque;
199 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
200 struct nativeAcceptChannelOpaque;
201 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
202 struct nativeFundingCreatedOpaque;
203 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
204 struct nativeFundingSignedOpaque;
205 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
206 struct nativeChannelReadyOpaque;
207 typedef struct nativeChannelReadyOpaque LDKnativeChannelReady;
208 struct nativeShutdownOpaque;
209 typedef struct nativeShutdownOpaque LDKnativeShutdown;
210 struct nativeClosingSignedFeeRangeOpaque;
211 typedef struct nativeClosingSignedFeeRangeOpaque LDKnativeClosingSignedFeeRange;
212 struct nativeClosingSignedOpaque;
213 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
214 struct nativeUpdateAddHTLCOpaque;
215 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
216 struct nativeUpdateFulfillHTLCOpaque;
217 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
218 struct nativeUpdateFailHTLCOpaque;
219 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
220 struct nativeUpdateFailMalformedHTLCOpaque;
221 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
222 struct nativeCommitmentSignedOpaque;
223 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
224 struct nativeRevokeAndACKOpaque;
225 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
226 struct nativeUpdateFeeOpaque;
227 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
228 struct nativeDataLossProtectOpaque;
229 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
230 struct nativeChannelReestablishOpaque;
231 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
232 struct nativeAnnouncementSignaturesOpaque;
233 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
234 struct nativeUnsignedNodeAnnouncementOpaque;
235 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
236 struct nativeNodeAnnouncementOpaque;
237 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
238 struct nativeUnsignedChannelAnnouncementOpaque;
239 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
240 struct nativeChannelAnnouncementOpaque;
241 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
242 struct nativeUnsignedChannelUpdateOpaque;
243 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
244 struct nativeChannelUpdateOpaque;
245 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
246 struct nativeQueryChannelRangeOpaque;
247 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
248 struct nativeReplyChannelRangeOpaque;
249 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
250 struct nativeQueryShortChannelIdsOpaque;
251 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
252 struct nativeReplyShortChannelIdsEndOpaque;
253 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
254 struct nativeGossipTimestampFilterOpaque;
255 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
256 struct nativeLightningErrorOpaque;
257 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
258 struct nativeCommitmentUpdateOpaque;
259 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
260 struct nativeDefaultRouterOpaque;
261 typedef struct nativeDefaultRouterOpaque LDKnativeDefaultRouter;
262 struct nativeRecordOpaque;
263 typedef struct nativeRecordOpaque LDKnativeRecord;
264 struct nativeMonitorUpdateIdOpaque;
265 typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
266 struct nativeLockedChannelMonitorOpaque;
267 typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
268 struct nativeChainMonitorOpaque;
269 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;