- bindings updates
[rust-lightning] / 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 nativeMessageHandlerOpaque;
34 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
35 typedef struct LDKSocketDescriptor LDKSocketDescriptor;
36 struct nativePeerHandleErrorOpaque;
37 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
38 struct nativePeerManagerOpaque;
39 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
40 struct nativeInitFeaturesOpaque;
41 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
42 struct nativeNodeFeaturesOpaque;
43 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
44 struct nativeChannelFeaturesOpaque;
45 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
46 struct nativeChannelHandshakeConfigOpaque;
47 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
48 struct nativeChannelHandshakeLimitsOpaque;
49 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
50 struct nativeChannelConfigOpaque;
51 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
52 struct nativeUserConfigOpaque;
53 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
54 struct nativeNetworkGraphOpaque;
55 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
56 struct nativeLockedNetworkGraphOpaque;
57 typedef struct nativeLockedNetworkGraphOpaque LDKnativeLockedNetworkGraph;
58 struct nativeNetGraphMsgHandlerOpaque;
59 typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
60 struct nativeDirectionalChannelInfoOpaque;
61 typedef struct nativeDirectionalChannelInfoOpaque LDKnativeDirectionalChannelInfo;
62 struct nativeChannelInfoOpaque;
63 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
64 struct nativeRoutingFeesOpaque;
65 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
66 struct nativeNodeAnnouncementInfoOpaque;
67 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
68 struct nativeNodeInfoOpaque;
69 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
70 struct nativeChainMonitorOpaque;
71 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
72 struct nativeOutPointOpaque;
73 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
74 struct nativeChannelMonitorUpdateOpaque;
75 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
76 struct nativeMonitorUpdateErrorOpaque;
77 typedef struct nativeMonitorUpdateErrorOpaque LDKnativeMonitorUpdateError;
78 struct nativeMonitorEventOpaque;
79 typedef struct nativeMonitorEventOpaque LDKnativeMonitorEvent;
80 struct nativeHTLCUpdateOpaque;
81 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
82 struct nativeChannelMonitorOpaque;
83 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
84 struct nativeChannelManagerOpaque;
85 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
86 struct nativeChannelDetailsOpaque;
87 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
88 struct nativePaymentSendFailureOpaque;
89 typedef struct nativePaymentSendFailureOpaque LDKnativePaymentSendFailure;
90 struct nativeChannelManagerReadArgsOpaque;
91 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
92 struct nativeDelayedPaymentOutputDescriptorOpaque;
93 typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
94 struct nativeStaticPaymentOutputDescriptorOpaque;
95 typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
96 struct nativeSpendableOutputDescriptorOpaque;
97 typedef struct nativeSpendableOutputDescriptorOpaque LDKnativeSpendableOutputDescriptor;
98 struct LDKChannelKeys;
99 typedef struct LDKChannelKeys LDKChannelKeys;
100 struct nativeInMemoryChannelKeysOpaque;
101 typedef struct nativeInMemoryChannelKeysOpaque LDKnativeInMemoryChannelKeys;
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;