diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:09:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:09:47 +0000 |
commit | 4917fb20a07aa3221683c8a2112c514f44594350 (patch) | |
tree | 3584e6988f6bcddd19ea9d77c040e02d659a79c9 /src/transport | |
parent | 636b3202c2ea8ebc6dd51a90c839a2e495ea0d27 (diff) | |
download | gnunet-4917fb20a07aa3221683c8a2112c514f44594350.tar.gz gnunet-4917fb20a07aa3221683c8a2112c514f44594350.zip |
introducing GNUNET_UNUSED macro instead of hard-coding gcc attribute all over the place; also some further documentation fixes
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 8 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.h | 2 | ||||
-rw-r--r-- | src/transport/gnunet-transport-wlan-helper.c | 9 | ||||
-rw-r--r-- | src/transport/gnunet-transport.c | 5 | ||||
-rw-r--r-- | src/transport/plugin_transport_sat_constants.h | 4 |
5 files changed, 21 insertions, 7 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 95efe44a1..6f1aa7431 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -1136,6 +1136,7 @@ static void send_outbound_quota (const struct GNUNET_PeerIdentity *target, struc | |||
1136 | * ATS to not use this address anymore (until it is re-validated). | 1136 | * ATS to not use this address anymore (until it is re-validated). |
1137 | * | 1137 | * |
1138 | * @param cls the 'struct GNUNET_HELLO_Address' of the address that was tried | 1138 | * @param cls the 'struct GNUNET_HELLO_Address' of the address that was tried |
1139 | * @param target peer to send the message to | ||
1139 | * @param success GNUNET_OK on success | 1140 | * @param success GNUNET_OK on success |
1140 | */ | 1141 | */ |
1141 | static void | 1142 | static void |
@@ -1190,11 +1191,13 @@ send_connect_continuation (void *cls, const struct GNUNET_PeerIdentity *target, | |||
1190 | GNUNET_free (cc); | 1191 | GNUNET_free (cc); |
1191 | } | 1192 | } |
1192 | 1193 | ||
1194 | |||
1193 | /** | 1195 | /** |
1194 | * We tried to switch addresses with an peer already connected. If it failed, | 1196 | * We tried to switch addresses with an peer already connected. If it failed, |
1195 | * we should tell ATS to not use this address anymore (until it is re-validated). | 1197 | * we should tell ATS to not use this address anymore (until it is re-validated). |
1196 | * | 1198 | * |
1197 | * @param cls the 'struct NeighbourMapEntry' | 1199 | * @param cls the 'struct NeighbourMapEntry' |
1200 | * @param target peer to send the message to | ||
1198 | * @param success GNUNET_OK on success | 1201 | * @param success GNUNET_OK on success |
1199 | */ | 1202 | */ |
1200 | static void | 1203 | static void |
@@ -1291,12 +1294,14 @@ send_switch_address_continuation (void *cls, | |||
1291 | GNUNET_free (cc); | 1294 | GNUNET_free (cc); |
1292 | } | 1295 | } |
1293 | 1296 | ||
1297 | |||
1294 | /** | 1298 | /** |
1295 | * We tried to send a SESSION_CONNECT message to another peer. If this | 1299 | * We tried to send a SESSION_CONNECT message to another peer. If this |
1296 | * succeeded, we change the state. If it failed, we should tell | 1300 | * succeeded, we change the state. If it failed, we should tell |
1297 | * ATS to not use this address anymore (until it is re-validated). | 1301 | * ATS to not use this address anymore (until it is re-validated). |
1298 | * | 1302 | * |
1299 | * @param cls the 'struct NeighbourMapEntry' | 1303 | * @param cls the 'struct NeighbourMapEntry' |
1304 | * @param target peer to send the message to | ||
1300 | * @param success GNUNET_OK on success | 1305 | * @param success GNUNET_OK on success |
1301 | */ | 1306 | */ |
1302 | static void | 1307 | static void |
@@ -1351,6 +1356,7 @@ send_connect_ack_continuation (void *cls, | |||
1351 | GNUNET_free (cc); | 1356 | GNUNET_free (cc); |
1352 | } | 1357 | } |
1353 | 1358 | ||
1359 | |||
1354 | /** | 1360 | /** |
1355 | * For an existing neighbour record, set the active connection to | 1361 | * For an existing neighbour record, set the active connection to |
1356 | * the given address. | 1362 | * the given address. |
@@ -1971,6 +1977,8 @@ GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour) | |||
1971 | * to this peer | 1977 | * to this peer |
1972 | * | 1978 | * |
1973 | * @param neighbour neighbour to keep alive | 1979 | * @param neighbour neighbour to keep alive |
1980 | * @param ats performance data | ||
1981 | * @param ats_count number of entries in ats | ||
1974 | */ | 1982 | */ |
1975 | void | 1983 | void |
1976 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, | 1984 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, |
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h index 7a79d5113..31777343d 100644 --- a/src/transport/gnunet-service-transport_neighbours.h +++ b/src/transport/gnunet-service-transport_neighbours.h | |||
@@ -129,6 +129,8 @@ GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour); | |||
129 | * to this peer | 129 | * to this peer |
130 | * | 130 | * |
131 | * @param neighbour neighbour to keep alive | 131 | * @param neighbour neighbour to keep alive |
132 | * @param ats performance data | ||
133 | * @param ats_count number of entries in ats | ||
132 | */ | 134 | */ |
133 | void | 135 | void |
134 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, | 136 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, |
diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c index 7be72482b..53e0efedd 100644 --- a/src/transport/gnunet-transport-wlan-helper.c +++ b/src/transport/gnunet-transport-wlan-helper.c | |||
@@ -543,16 +543,17 @@ ieee80211_radiotap_iterator_init (struct ieee80211_radiotap_iterator | |||
543 | 543 | ||
544 | 544 | ||
545 | /** | 545 | /** |
546 | * ieee80211_radiotap_iterator_next - return next radiotap parser iterator arg | 546 | * @brief ieee80211_radiotap_iterator_next - return next radiotap parser iterator arg |
547 | * @iterator: radiotap_iterator to move to next arg (if any) | ||
548 | * | ||
549 | * Returns: next present arg index on success or negative if no more or error | ||
550 | * | 547 | * |
551 | * This function returns the next radiotap arg index (IEEE80211_RADIOTAP_...) | 548 | * This function returns the next radiotap arg index (IEEE80211_RADIOTAP_...) |
552 | * and sets iterator->this_arg to point to the payload for the arg. It takes | 549 | * and sets iterator->this_arg to point to the payload for the arg. It takes |
553 | * care of alignment handling and extended present fields. interator->this_arg | 550 | * care of alignment handling and extended present fields. interator->this_arg |
554 | * can be changed by the caller. The args pointed to are in little-endian | 551 | * can be changed by the caller. The args pointed to are in little-endian |
555 | * format. | 552 | * format. |
553 | * | ||
554 | * @param iterator: radiotap_iterator to move to next arg (if any) | ||
555 | * | ||
556 | * @return next present arg index on success or negative if no more or error | ||
556 | */ | 557 | */ |
557 | static int | 558 | static int |
558 | ieee80211_radiotap_iterator_next (struct ieee80211_radiotap_iterator | 559 | ieee80211_radiotap_iterator_next (struct ieee80211_radiotap_iterator |
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 4d2912c34..4c9e8566c 100644 --- a/src/transport/gnunet-transport.c +++ b/src/transport/gnunet-transport.c | |||
@@ -437,7 +437,10 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
437 | * Function to call with a human-readable format of an address | 437 | * Function to call with a human-readable format of an address |
438 | * | 438 | * |
439 | * @param cls closure | 439 | * @param cls closure |
440 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string | 440 | * @param peer identity of the peer |
441 | * @param transport name of the plugin | ||
442 | * @param addr binary address | ||
443 | * @param addrlen number of bytes in addr | ||
441 | */ | 444 | */ |
442 | static void | 445 | static void |
443 | process_address (void *cls, const struct GNUNET_PeerIdentity *peer, | 446 | process_address (void *cls, const struct GNUNET_PeerIdentity *peer, |
diff --git a/src/transport/plugin_transport_sat_constants.h b/src/transport/plugin_transport_sat_constants.h index bd64c5d2b..b8202817f 100644 --- a/src/transport/plugin_transport_sat_constants.h +++ b/src/transport/plugin_transport_sat_constants.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet | 2 | This file is part of GNUnet |
3 | (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Christian Grothoff (and other contributing authors) | 3 | (C) 2011 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file transport/plugin_transport_sat_send.h | 22 | * @file transport/plugin_transport_sat_constants.h |
23 | * @brief header for transport plugin for satellite for send operations | 23 | * @brief header for transport plugin for satellite for send operations |
24 | * @author Christian Rupp | 24 | * @author Christian Rupp |
25 | */ | 25 | */ |