Rebuild against current RL main
[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 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 nativeIgnoringMessageHandlerOpaque;
34 typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
35 struct nativeErroringMessageHandlerOpaque;
36 typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
37 struct nativeMessageHandlerOpaque;
38 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
39 typedef struct LDKSocketDescriptor LDKSocketDescriptor;
40 struct nativePeerHandleErrorOpaque;
41 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
42 struct nativePeerManagerOpaque;
43 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
44 struct nativeInitFeaturesOpaque;
45 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
46 struct nativeNodeFeaturesOpaque;
47 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
48 struct nativeChannelFeaturesOpaque;
49 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
50 struct nativeInvoiceFeaturesOpaque;
51 typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
52 struct nativeChannelHandshakeConfigOpaque;
53 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
54 struct nativeChannelHandshakeLimitsOpaque;
55 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
56 struct nativeChannelConfigOpaque;
57 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
58 struct nativeUserConfigOpaque;
59 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
60 struct nativeNetworkGraphOpaque;
61 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
62 struct nativeLockedNetworkGraphOpaque;
63 typedef struct nativeLockedNetworkGraphOpaque LDKnativeLockedNetworkGraph;
64 struct nativeNetGraphMsgHandlerOpaque;
65 typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
66 struct nativeDirectionalChannelInfoOpaque;
67 typedef struct nativeDirectionalChannelInfoOpaque LDKnativeDirectionalChannelInfo;
68 struct nativeChannelInfoOpaque;
69 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
70 struct nativeRoutingFeesOpaque;
71 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
72 struct nativeNodeAnnouncementInfoOpaque;
73 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
74 struct nativeNodeInfoOpaque;
75 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
76 struct nativeChainMonitorOpaque;
77 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
78 struct nativeOutPointOpaque;
79 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
80 struct nativeChannelMonitorUpdateOpaque;
81 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
82 struct nativeMonitorUpdateErrorOpaque;
83 typedef struct nativeMonitorUpdateErrorOpaque LDKnativeMonitorUpdateError;
84 struct nativeHTLCUpdateOpaque;
85 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
86 struct nativeChannelMonitorOpaque;
87 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
88 struct nativeChannelManagerOpaque;
89 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
90 struct nativeChainParametersOpaque;
91 typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
92 struct nativeChannelDetailsOpaque;
93 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
94 struct nativeChannelManagerReadArgsOpaque;
95 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
96 struct nativeDelayedPaymentOutputDescriptorOpaque;
97 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
98 struct nativeStaticPaymentOutputDescriptorOpaque;
99 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
100 struct LDKSign;
101 typedef struct LDKSign LDKSign;
102 struct nativeInMemorySignerOpaque;
103 typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
104 struct nativeKeysManagerOpaque;
105 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
106 struct nativeRouteHopOpaque;
107 typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
108 struct nativeRouteOpaque;
109 typedef struct nativeRouteOpaque LDKnativeRoute;
110 struct nativeRouteHintOpaque;
111 typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
112 struct nativeDecodeErrorOpaque;
113 typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
114 struct nativeInitOpaque;
115 typedef struct nativeInitOpaque LDKnativeInit;
116 struct nativeErrorMessageOpaque;
117 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
118 struct nativePingOpaque;
119 typedef struct nativePingOpaque LDKnativePing;
120 struct nativePongOpaque;
121 typedef struct nativePongOpaque LDKnativePong;
122 struct nativeOpenChannelOpaque;
123 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
124 struct nativeAcceptChannelOpaque;
125 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
126 struct nativeFundingCreatedOpaque;
127 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
128 struct nativeFundingSignedOpaque;
129 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
130 struct nativeFundingLockedOpaque;
131 typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
132 struct nativeShutdownOpaque;
133 typedef struct nativeShutdownOpaque LDKnativeShutdown;
134 struct nativeClosingSignedOpaque;
135 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
136 struct nativeUpdateAddHTLCOpaque;
137 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
138 struct nativeUpdateFulfillHTLCOpaque;
139 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
140 struct nativeUpdateFailHTLCOpaque;
141 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
142 struct nativeUpdateFailMalformedHTLCOpaque;
143 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
144 struct nativeCommitmentSignedOpaque;
145 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
146 struct nativeRevokeAndACKOpaque;
147 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
148 struct nativeUpdateFeeOpaque;
149 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
150 struct nativeDataLossProtectOpaque;
151 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
152 struct nativeChannelReestablishOpaque;
153 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
154 struct nativeAnnouncementSignaturesOpaque;
155 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
156 struct nativeUnsignedNodeAnnouncementOpaque;
157 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
158 struct nativeNodeAnnouncementOpaque;
159 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
160 struct nativeUnsignedChannelAnnouncementOpaque;
161 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
162 struct nativeChannelAnnouncementOpaque;
163 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
164 struct nativeUnsignedChannelUpdateOpaque;
165 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
166 struct nativeChannelUpdateOpaque;
167 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
168 struct nativeQueryChannelRangeOpaque;
169 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
170 struct nativeReplyChannelRangeOpaque;
171 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
172 struct nativeQueryShortChannelIdsOpaque;
173 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
174 struct nativeReplyShortChannelIdsEndOpaque;
175 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
176 struct nativeGossipTimestampFilterOpaque;
177 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
178 struct nativeLightningErrorOpaque;
179 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
180 struct nativeCommitmentUpdateOpaque;
181 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;