diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-23 21:18:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-23 21:18:08 +0000 |
commit | 51b6dbc56f910bbb3e9ed378a71ebb2c87340885 (patch) | |
tree | 4248c0e35baba943a1c726a5ba8d73d2bd86d5b4 /src/transport | |
parent | 3680b8b830e67040c33164ec0ad16df15546b4cf (diff) | |
download | gnunet-51b6dbc56f910bbb3e9ed378a71ebb2c87340885.tar.gz gnunet-51b6dbc56f910bbb3e9ed378a71ebb2c87340885.zip |
-move struct def to where it is used
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 68371703f..bb223263f 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -212,23 +212,6 @@ struct Session | |||
212 | 212 | ||
213 | 213 | ||
214 | /** | 214 | /** |
215 | * Closure for #session_cmp_it(). | ||
216 | */ | ||
217 | struct SessionCompareContext | ||
218 | { | ||
219 | /** | ||
220 | * Set to session matching the address. | ||
221 | */ | ||
222 | struct Session *res; | ||
223 | |||
224 | /** | ||
225 | * Address we are looking for. | ||
226 | */ | ||
227 | const struct GNUNET_HELLO_Address *address; | ||
228 | }; | ||
229 | |||
230 | |||
231 | /** | ||
232 | * Closure for #process_inbound_tokenized_messages(). | 215 | * Closure for #process_inbound_tokenized_messages(). |
233 | */ | 216 | */ |
234 | struct SourceInformation | 217 | struct SourceInformation |
@@ -1581,7 +1564,6 @@ create_session (struct Plugin *plugin, | |||
1581 | } | 1564 | } |
1582 | 1565 | ||
1583 | 1566 | ||
1584 | |||
1585 | /** | 1567 | /** |
1586 | * Function obtain the network type for a session | 1568 | * Function obtain the network type for a session |
1587 | * | 1569 | * |
@@ -1598,6 +1580,23 @@ udp_get_network (void *cls, | |||
1598 | 1580 | ||
1599 | 1581 | ||
1600 | /** | 1582 | /** |
1583 | * Closure for #session_cmp_it(). | ||
1584 | */ | ||
1585 | struct SessionCompareContext | ||
1586 | { | ||
1587 | /** | ||
1588 | * Set to session matching the address. | ||
1589 | */ | ||
1590 | struct Session *res; | ||
1591 | |||
1592 | /** | ||
1593 | * Address we are looking for. | ||
1594 | */ | ||
1595 | const struct GNUNET_HELLO_Address *address; | ||
1596 | }; | ||
1597 | |||
1598 | |||
1599 | /** | ||
1601 | * Find a session with a matching address. | 1600 | * Find a session with a matching address. |
1602 | * | 1601 | * |
1603 | * @param cls the `struct SessionCompareContext *` | 1602 | * @param cls the `struct SessionCompareContext *` |