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