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