diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_local.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_local.h | 30 |
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 | */ |
82 | struct CadetChannel * | 82 | struct CadetChannel * |
83 | GML_channel_get (struct CadetClient *c, uint32_t chid); | 83 | GML_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 | */ |
92 | void | 93 | void |
93 | GML_channel_add (struct CadetClient *client, | 94 | GML_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 | */ |
104 | void | 105 | void |
105 | GML_channel_remove (struct CadetClient *client, | 106 | GML_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 | */ |
116 | CADET_ChannelNumber | 117 | struct GNUNET_CADET_ClientChannelNumber |
117 | GML_get_next_chid (struct CadetClient *c); | 118 | GML_get_next_chid (struct CadetClient *c); |
118 | 119 | ||
119 | /** | 120 | /** |
@@ -146,7 +147,7 @@ GML_client_get_by_port (const struct GNUNET_HashCode *port); | |||
146 | void | 147 | void |
147 | GML_client_delete_channel (struct CadetClient *c, | 148 | GML_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 | */ |
159 | void | 160 | void |
160 | GML_send_ack (struct CadetClient *c, CADET_ChannelNumber id); | 161 | GML_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 | */ |
171 | void | 173 | void |
172 | GML_send_channel_create (struct CadetClient *c, | 174 | GML_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 | */ |
182 | void | 186 | void |
183 | GML_send_channel_nack (struct CadetClient *c, CADET_ChannelNumber id); | 187 | GML_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 | */ |
191 | void | 197 | void |
192 | GML_send_channel_destroy (struct CadetClient *c, uint32_t id); | 198 | GML_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); | |||
201 | void | 209 | void |
202 | GML_send_data (struct CadetClient *c, | 210 | GML_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. |