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