ca6cdc69fa95cc4fa20ce4223797bfe6025071da
[rust-lightning] / lightning-c-bindings / include / rust_types.h
1 #if defined(__GNUC__)
2 #define MUST_USE_STRUCT __attribute__((warn_unused))
3 #else
4 #define MUST_USE_STRUCT
5 #endif
6 #if defined(__GNUC__)
7 #define MUST_USE_RES __attribute__((warn_unused_result))
8 #else
9 #define MUST_USE_RES
10 #endif
11 struct nativeChannelHandshakeConfigOpaque;
12 typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
13 struct nativeChannelHandshakeLimitsOpaque;
14 typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
15 struct nativeChannelConfigOpaque;
16 typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
17 struct nativeUserConfigOpaque;
18 typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
19 struct nativeChainMonitorOpaque;
20 typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
21 struct nativeChannelMonitorUpdateOpaque;
22 typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
23 struct nativeMonitorUpdateErrorOpaque;
24 typedef struct nativeMonitorUpdateErrorOpaque LDKnativeMonitorUpdateError;
25 struct nativeMonitorEventOpaque;
26 typedef struct nativeMonitorEventOpaque LDKnativeMonitorEvent;
27 struct nativeHTLCUpdateOpaque;
28 typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
29 struct nativeChannelMonitorOpaque;
30 typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
31 struct nativeOutPointOpaque;
32 typedef struct nativeOutPointOpaque LDKnativeOutPoint;
33 struct LDKChannelKeys;
34 typedef struct LDKChannelKeys LDKChannelKeys;
35 struct nativeInMemoryChannelKeysOpaque;
36 typedef struct nativeInMemoryChannelKeysOpaque LDKnativeInMemoryChannelKeys;
37 struct nativeKeysManagerOpaque;
38 typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
39 struct nativeChannelManagerOpaque;
40 typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
41 struct nativeChannelDetailsOpaque;
42 typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
43 struct nativePaymentSendFailureOpaque;
44 typedef struct nativePaymentSendFailureOpaque LDKnativePaymentSendFailure;
45 struct nativeChannelManagerReadArgsOpaque;
46 typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
47 struct nativeDecodeErrorOpaque;
48 typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
49 struct nativeInitOpaque;
50 typedef struct nativeInitOpaque LDKnativeInit;
51 struct nativeErrorMessageOpaque;
52 typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
53 struct nativePingOpaque;
54 typedef struct nativePingOpaque LDKnativePing;
55 struct nativePongOpaque;
56 typedef struct nativePongOpaque LDKnativePong;
57 struct nativeOpenChannelOpaque;
58 typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
59 struct nativeAcceptChannelOpaque;
60 typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
61 struct nativeFundingCreatedOpaque;
62 typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
63 struct nativeFundingSignedOpaque;
64 typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
65 struct nativeFundingLockedOpaque;
66 typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
67 struct nativeShutdownOpaque;
68 typedef struct nativeShutdownOpaque LDKnativeShutdown;
69 struct nativeClosingSignedOpaque;
70 typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
71 struct nativeUpdateAddHTLCOpaque;
72 typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
73 struct nativeUpdateFulfillHTLCOpaque;
74 typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
75 struct nativeUpdateFailHTLCOpaque;
76 typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
77 struct nativeUpdateFailMalformedHTLCOpaque;
78 typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
79 struct nativeCommitmentSignedOpaque;
80 typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
81 struct nativeRevokeAndACKOpaque;
82 typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
83 struct nativeUpdateFeeOpaque;
84 typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
85 struct nativeDataLossProtectOpaque;
86 typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
87 struct nativeChannelReestablishOpaque;
88 typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
89 struct nativeAnnouncementSignaturesOpaque;
90 typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
91 struct nativeUnsignedNodeAnnouncementOpaque;
92 typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
93 struct nativeNodeAnnouncementOpaque;
94 typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
95 struct nativeUnsignedChannelAnnouncementOpaque;
96 typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
97 struct nativeChannelAnnouncementOpaque;
98 typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
99 struct nativeUnsignedChannelUpdateOpaque;
100 typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
101 struct nativeChannelUpdateOpaque;
102 typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
103 struct nativeQueryChannelRangeOpaque;
104 typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
105 struct nativeReplyChannelRangeOpaque;
106 typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
107 struct nativeQueryShortChannelIdsOpaque;
108 typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
109 struct nativeReplyShortChannelIdsEndOpaque;
110 typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
111 struct nativeGossipTimestampFilterOpaque;
112 typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
113 struct nativeLightningErrorOpaque;
114 typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
115 struct nativeCommitmentUpdateOpaque;
116 typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
117 struct nativeMessageHandlerOpaque;
118 typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
119 struct nativePeerHandleErrorOpaque;
120 typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
121 struct nativePeerManagerOpaque;
122 typedef struct nativePeerManagerOpaque LDKnativePeerManager;
123 struct nativeTxCreationKeysOpaque;
124 typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
125 struct nativePreCalculatedTxCreationKeysOpaque;
126 typedef struct nativePreCalculatedTxCreationKeysOpaque LDKnativePreCalculatedTxCreationKeys;
127 struct nativeChannelPublicKeysOpaque;
128 typedef struct nativeChannelPublicKeysOpaque LDKnativeChannelPublicKeys;
129 struct nativeHTLCOutputInCommitmentOpaque;
130 typedef struct nativeHTLCOutputInCommitmentOpaque LDKnativeHTLCOutputInCommitment;
131 struct nativeHolderCommitmentTransactionOpaque;
132 typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
133 struct nativeInitFeaturesOpaque;
134 typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
135 struct nativeNodeFeaturesOpaque;
136 typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
137 struct nativeChannelFeaturesOpaque;
138 typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
139 struct nativeRouteHopOpaque;
140 typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
141 struct nativeRouteOpaque;
142 typedef struct nativeRouteOpaque LDKnativeRoute;
143 struct nativeRouteHintOpaque;
144 typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
145 struct nativeNetworkGraphOpaque;
146 typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
147 struct nativeLockedNetworkGraphOpaque;
148 typedef struct nativeLockedNetworkGraphOpaque LDKnativeLockedNetworkGraph;
149 struct nativeNetGraphMsgHandlerOpaque;
150 typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
151 struct nativeDirectionalChannelInfoOpaque;
152 typedef struct nativeDirectionalChannelInfoOpaque LDKnativeDirectionalChannelInfo;
153 struct nativeChannelInfoOpaque;
154 typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
155 struct nativeRoutingFeesOpaque;
156 typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
157 struct nativeNodeAnnouncementInfoOpaque;
158 typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
159 struct nativeNodeInfoOpaque;
160 typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;