aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_local.h')
-rw-r--r--src/cadet/gnunet-service-cadet_local.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/src/cadet/gnunet-service-cadet_local.h b/src/cadet/gnunet-service-cadet_local.h
index f89745092..9b6e5bf05 100644
--- a/src/cadet/gnunet-service-cadet_local.h
+++ b/src/cadet/gnunet-service-cadet_local.h
@@ -80,7 +80,8 @@ GML_shutdown (void);
80 * @return non-NULL if channel exists in the clients lists 80 * @return non-NULL if channel exists in the clients lists
81 */ 81 */
82struct CadetChannel * 82struct CadetChannel *
83GML_channel_get (struct CadetClient *c, uint32_t chid); 83GML_channel_get (struct CadetClient *c,
84 struct GNUNET_CADET_ClientChannelNumber chid);
84 85
85/** 86/**
86 * Add a channel to a client 87 * Add a channel to a client
@@ -91,7 +92,7 @@ GML_channel_get (struct CadetClient *c, uint32_t chid);
91 */ 92 */
92void 93void
93GML_channel_add (struct CadetClient *client, 94GML_channel_add (struct CadetClient *client,
94 uint32_t chid, 95 struct GNUNET_CADET_ClientChannelNumber chid,
95 struct CadetChannel *ch); 96 struct CadetChannel *ch);
96 97
97/** 98/**
@@ -103,7 +104,7 @@ GML_channel_add (struct CadetClient *client,
103 */ 104 */
104void 105void
105GML_channel_remove (struct CadetClient *client, 106GML_channel_remove (struct CadetClient *client,
106 uint32_t chid, 107 struct GNUNET_CADET_ClientChannelNumber chid,
107 struct CadetChannel *ch); 108 struct CadetChannel *ch);
108 109
109/** 110/**
@@ -113,7 +114,7 @@ GML_channel_remove (struct CadetClient *client,
113 * 114 *
114 * @return LID of a channel free to use. 115 * @return LID of a channel free to use.
115 */ 116 */
116CADET_ChannelNumber 117struct GNUNET_CADET_ClientChannelNumber
117GML_get_next_chid (struct CadetClient *c); 118GML_get_next_chid (struct CadetClient *c);
118 119
119/** 120/**
@@ -146,7 +147,7 @@ GML_client_get_by_port (const struct GNUNET_HashCode *port);
146void 147void
147GML_client_delete_channel (struct CadetClient *c, 148GML_client_delete_channel (struct CadetClient *c,
148 struct CadetChannel *ch, 149 struct CadetChannel *ch,
149 CADET_ChannelNumber id); 150 struct GNUNET_CADET_ClientChannelNumber id);
150 151
151/** 152/**
152 * Build a local ACK message and send it to a local client, if needed. 153 * Build a local ACK message and send it to a local client, if needed.
@@ -157,7 +158,8 @@ GML_client_delete_channel (struct CadetClient *c,
157 * @param id Channel ID to use 158 * @param id Channel ID to use
158 */ 159 */
159void 160void
160GML_send_ack (struct CadetClient *c, CADET_ChannelNumber id); 161GML_send_ack (struct CadetClient *c,
162 struct GNUNET_CADET_ClientChannelNumber id);
161 163
162/** 164/**
163 * Notify the appropriate client that a new incoming channel was created. 165 * Notify the appropriate client that a new incoming channel was created.
@@ -170,8 +172,10 @@ GML_send_ack (struct CadetClient *c, CADET_ChannelNumber id);
170 */ 172 */
171void 173void
172GML_send_channel_create (struct CadetClient *c, 174GML_send_channel_create (struct CadetClient *c,
173 uint32_t id, struct GNUNET_HashCode *port, 175 struct GNUNET_CADET_ClientChannelNumber id,
174 uint32_t opt, const struct GNUNET_PeerIdentity *peer); 176 const struct GNUNET_HashCode *port,
177 uint32_t opt,
178 const struct GNUNET_PeerIdentity *peer);
175 179
176/** 180/**
177 * Build a local channel NACK message and send it to a local client. 181 * Build a local channel NACK message and send it to a local client.
@@ -180,7 +184,9 @@ GML_send_channel_create (struct CadetClient *c,
180 * @param id Channel ID to use 184 * @param id Channel ID to use
181 */ 185 */
182void 186void
183GML_send_channel_nack (struct CadetClient *c, CADET_ChannelNumber id); 187GML_send_channel_nack (struct CadetClient *c,
188 struct GNUNET_CADET_ClientChannelNumber id);
189
184 190
185/** 191/**
186 * Notify a client that a channel is no longer valid. 192 * Notify a client that a channel is no longer valid.
@@ -189,7 +195,9 @@ GML_send_channel_nack (struct CadetClient *c, CADET_ChannelNumber id);
189 * @param id ID of the channel that is destroyed. 195 * @param id ID of the channel that is destroyed.
190 */ 196 */
191void 197void
192GML_send_channel_destroy (struct CadetClient *c, uint32_t id); 198GML_send_channel_destroy (struct CadetClient *c,
199 struct GNUNET_CADET_ClientChannelNumber id);
200
193 201
194/** 202/**
195 * Modify the cadet message ID from global to local and send to client. 203 * Modify the cadet message ID from global to local and send to client.
@@ -201,7 +209,7 @@ GML_send_channel_destroy (struct CadetClient *c, uint32_t id);
201void 209void
202GML_send_data (struct CadetClient *c, 210GML_send_data (struct CadetClient *c,
203 const struct GNUNET_CADET_Data *msg, 211 const struct GNUNET_CADET_Data *msg,
204 CADET_ChannelNumber id); 212 struct GNUNET_CADET_ClientChannelNumber id);
205 213
206/** 214/**
207 * Get the static string to represent a client. 215 * Get the static string to represent a client.