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