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 nativeTxCreationKeysOpaque;
14 typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
15 struct nativeChannelPublicKeysOpaque;
16 typedef struct nativeChannelPublicKeysOpaque LDKnativeChannelPublicKeys;
17 struct nativeHTLCOutputInCommitmentOpaque;
18 typedef struct nativeHTLCOutputInCommitmentOpaque LDKnativeHTLCOutputInCommitment;
19 struct nativeChannelTransactionParametersOpaque;
20 typedef struct nativeChannelTransactionParametersOpaque LDKnativeChannelTransactionParameters;
21 struct nativeCounterpartyChannelTransactionParametersOpaque;
22 typedef struct nativeCounterpartyChannelTransactionParametersOpaque LDKnativeCounterpartyChannelTransactionParameters;
23 struct nativeDirectedChannelTransactionParametersOpaque;
24 typedef struct nativeDirectedChannelTransactionParametersOpaque LDKnativeDirectedChannelTransactionParameters;
25 struct nativeHolderCommitmentTransactionOpaque;
26 typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
27 struct nativeBuiltCommitmentTransactionOpaque;
28 typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
29 struct nativeClosingTransactionOpaque;
30 typedef struct nativeClosingTransactionOpaque LDKnativeClosingTransaction;
31 struct nativeTrustedClosingTransactionOpaque;
32 typedef struct nativeTrustedClosingTransactionOpaque LDKnativeTrustedClosingTransaction;
33 struct nativeCommitmentTransactionOpaque;
34 typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
35 struct nativeTrustedCommitmentTransactionOpaque;
36 typedef struct nativeTrustedCommitmentTransactionOpaque LDKnativeTrustedCommitmentTransaction;
37 struct nativeShutdownScriptOpaque;
38 typedef struct nativeShutdownScriptOpaque LDKnativeShutdownScript;
39 struct nativeInvalidShutdownScriptOpaque;
40 typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript;
41 struct nativeBackgroundProcessorOpaque;
42 typedef struct nativeBackgroundProcessorOpaque LDKnativeBackgroundProcessor;
43 struct nativeRouteHopOpaque;
44 typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
45 struct nativeRouteOpaque;
46 typedef struct nativeRouteOpaque LDKnativeRoute;
47 struct nativeRouteHintOpaque;
48 typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
49 struct nativeRouteHintHopOpaque;
50 typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop;
51 struct nativeBestBlockOpaque;
52 typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
53 struct nativeWatchedOutputOpaque;
54 typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
55 struct nativeInitFeaturesOpaque;
56 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
57 struct nativeNodeFeaturesOpaque;
58 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
59 struct nativeChannelFeaturesOpaque;
60 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
61 struct nativeInvoiceFeaturesOpaque;
62 typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
63 struct nativeScorerOpaque;
64 typedef struct nativeScorerOpaque LDKnativeScorer;
65 struct nativeDelayedPaymentOutputDescriptorOpaque;
66 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
67 struct nativeStaticPaymentOutputDescriptorOpaque;
68 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
69 struct LDKBaseSign;
70 struct nativeInMemorySignerOpaque;
71 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
72 struct nativeKeysManagerOpaque;
73 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
74 struct nativeFilesystemPersisterOpaque;
75 typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
76 struct nativePaymentIdOpaque;
77 typedef struct nativePaymentIdOpaque LDKnativePaymentId;
78 struct nativeChannelManagerOpaque;
79 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
80 struct nativeChainParametersOpaque;
81 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
82 struct nativeCounterpartyForwardingInfoOpaque;
83 typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
84 struct nativeChannelCounterpartyOpaque;
85 typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
86 struct nativeChannelDetailsOpaque;
87 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
88 struct nativeChannelManagerReadArgsOpaque;
89 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
90 struct nativeChannelHandshakeConfigOpaque;
91 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
92 struct nativeChannelHandshakeLimitsOpaque;
93 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
94 struct nativeChannelConfigOpaque;
95 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
96 struct nativeUserConfigOpaque;
97 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
98 struct nativeOutPointOpaque;
99 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
100 struct nativeInvoiceOpaque;
101 typedef struct nativeInvoiceOpaque LDKnativeInvoice;
102 struct nativeSignedRawInvoiceOpaque;
103 typedef struct nativeSignedRawInvoiceOpaque LDKnativeSignedRawInvoice;
104 struct nativeRawInvoiceOpaque;
105 typedef struct nativeRawInvoiceOpaque LDKnativeRawInvoice;
106 struct nativeRawDataPartOpaque;
107 typedef struct nativeRawDataPartOpaque LDKnativeRawDataPart;
108 struct nativePositiveTimestampOpaque;
109 typedef struct nativePositiveTimestampOpaque LDKnativePositiveTimestamp;
110 struct nativeSha256Opaque;
111 typedef struct nativeSha256Opaque LDKnativeSha256;
112 struct nativeDescriptionOpaque;
113 typedef struct nativeDescriptionOpaque LDKnativeDescription;
114 struct nativePayeePubKeyOpaque;
115 typedef struct nativePayeePubKeyOpaque LDKnativePayeePubKey;
116 struct nativeExpiryTimeOpaque;
117 typedef struct nativeExpiryTimeOpaque LDKnativeExpiryTime;
118 struct nativeMinFinalCltvExpiryOpaque;
119 typedef struct nativeMinFinalCltvExpiryOpaque LDKnativeMinFinalCltvExpiry;
120 struct nativeInvoiceSignatureOpaque;
121 typedef struct nativeInvoiceSignatureOpaque LDKnativeInvoiceSignature;
122 struct nativePrivateRouteOpaque;
123 typedef struct nativePrivateRouteOpaque LDKnativePrivateRoute;
124 struct nativeChannelMonitorUpdateOpaque;
125 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
126 struct nativeMonitorUpdateErrorOpaque;
127 typedef struct nativeMonitorUpdateErrorOpaque LDKnativeMonitorUpdateError;
128 struct nativeHTLCUpdateOpaque;
129 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
130 struct nativeChannelMonitorOpaque;
131 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
132 struct nativeIgnoringMessageHandlerOpaque;
133 typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
134 struct nativeErroringMessageHandlerOpaque;
135 typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
136 struct nativeMessageHandlerOpaque;
137 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
138 struct nativePeerHandleErrorOpaque;
139 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
140 struct nativePeerManagerOpaque;
141 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
142 struct nativeNodeIdOpaque;
143 typedef struct nativeNodeIdOpaque LDKnativeNodeId;
144 struct nativeNetworkGraphOpaque;
145 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
146 struct nativeReadOnlyNetworkGraphOpaque;
147 typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
148 struct nativeNetGraphMsgHandlerOpaque;
149 typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
150 struct nativeDirectionalChannelInfoOpaque;
151 typedef struct nativeDirectionalChannelInfoOpaque LDKnativeDirectionalChannelInfo;
152 struct nativeChannelInfoOpaque;
153 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
154 struct nativeRoutingFeesOpaque;
155 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
156 struct nativeNodeAnnouncementInfoOpaque;
157 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
158 struct nativeNodeInfoOpaque;
159 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
160 struct nativeDecodeErrorOpaque;
161 typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
162 struct nativeInitOpaque;
163 typedef struct nativeInitOpaque LDKnativeInit;
164 struct nativeErrorMessageOpaque;
165 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
166 struct nativePingOpaque;
167 typedef struct nativePingOpaque LDKnativePing;
168 struct nativePongOpaque;
169 typedef struct nativePongOpaque LDKnativePong;
170 struct nativeOpenChannelOpaque;
171 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
172 struct nativeAcceptChannelOpaque;
173 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
174 struct nativeFundingCreatedOpaque;
175 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
176 struct nativeFundingSignedOpaque;
177 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
178 struct nativeFundingLockedOpaque;
179 typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
180 struct nativeShutdownOpaque;
181 typedef struct nativeShutdownOpaque LDKnativeShutdown;
182 struct nativeClosingSignedFeeRangeOpaque;
183 typedef struct nativeClosingSignedFeeRangeOpaque LDKnativeClosingSignedFeeRange;
184 struct nativeClosingSignedOpaque;
185 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
186 struct nativeUpdateAddHTLCOpaque;
187 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
188 struct nativeUpdateFulfillHTLCOpaque;
189 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
190 struct nativeUpdateFailHTLCOpaque;
191 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
192 struct nativeUpdateFailMalformedHTLCOpaque;
193 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
194 struct nativeCommitmentSignedOpaque;
195 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
196 struct nativeRevokeAndACKOpaque;
197 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
198 struct nativeUpdateFeeOpaque;
199 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
200 struct nativeDataLossProtectOpaque;
201 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
202 struct nativeChannelReestablishOpaque;
203 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
204 struct nativeAnnouncementSignaturesOpaque;
205 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
206 struct nativeUnsignedNodeAnnouncementOpaque;
207 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
208 struct nativeNodeAnnouncementOpaque;
209 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
210 struct nativeUnsignedChannelAnnouncementOpaque;
211 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
212 struct nativeChannelAnnouncementOpaque;
213 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
214 struct nativeUnsignedChannelUpdateOpaque;
215 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
216 struct nativeChannelUpdateOpaque;
217 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
218 struct nativeQueryChannelRangeOpaque;
219 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
220 struct nativeReplyChannelRangeOpaque;
221 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
222 struct nativeQueryShortChannelIdsOpaque;
223 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
224 struct nativeReplyShortChannelIdsEndOpaque;
225 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
226 struct nativeGossipTimestampFilterOpaque;
227 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
228 struct nativeLightningErrorOpaque;
229 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
230 struct nativeCommitmentUpdateOpaque;
231 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
232 struct nativeLockedChannelMonitorOpaque;
233 typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
234 struct nativeChainMonitorOpaque;
235 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;