diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-22 12:12:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-22 12:12:07 +0000 |
commit | 1032d765f4b8e009c04186a4c49d61a8eb414140 (patch) | |
tree | 5350bbd28134410b899a7ae963042ddde4916fcb | |
parent | b94ce15c0dd10f44f5e0c77a8270b4f75e0b322c (diff) | |
download | gnunet-1032d765f4b8e009c04186a4c49d61a8eb414140.tar.gz gnunet-1032d765f4b8e009c04186a4c49d61a8eb414140.zip |
-doxygen
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 26 | ||||
-rw-r--r-- | src/util/plugin.c | 2 |
2 files changed, 16 insertions, 12 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 91102af6e..030d8b643 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c | |||
@@ -382,7 +382,7 @@ peer_transmit_ready_cb (void *cls, | |||
382 | /** | 382 | /** |
383 | * Function called by core upon success or failure of our bandwidth reservation request. | 383 | * Function called by core upon success or failure of our bandwidth reservation request. |
384 | * | 384 | * |
385 | * @param cls the 'struct GSF_ConnectedPeer' of the peer for which we made the request | 385 | * @param cls the `struct GSF_ConnectedPeer` of the peer for which we made the request |
386 | * @param peer identifies the peer | 386 | * @param peer identifies the peer |
387 | * @param amount set to the amount that was actually reserved or unreserved; | 387 | * @param amount set to the amount that was actually reserved or unreserved; |
388 | * either the full requested amount or zero (no partial reservations) | 388 | * either the full requested amount or zero (no partial reservations) |
@@ -526,7 +526,7 @@ retry_reservation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
526 | /** | 526 | /** |
527 | * Function called by core upon success or failure of our bandwidth reservation request. | 527 | * Function called by core upon success or failure of our bandwidth reservation request. |
528 | * | 528 | * |
529 | * @param cls the 'struct GSF_ConnectedPeer' of the peer for which we made the request | 529 | * @param cls the `struct GSF_ConnectedPeer` of the peer for which we made the request |
530 | * @param peer identifies the peer | 530 | * @param peer identifies the peer |
531 | * @param amount set to the amount that was actually reserved or unreserved; | 531 | * @param amount set to the amount that was actually reserved or unreserved; |
532 | * either the full requested amount or zero (no partial reservations) | 532 | * either the full requested amount or zero (no partial reservations) |
@@ -534,8 +534,10 @@ retry_reservation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
534 | * long should the client wait until re-trying? | 534 | * long should the client wait until re-trying? |
535 | */ | 535 | */ |
536 | static void | 536 | static void |
537 | ats_reserve_callback (void *cls, const struct GNUNET_PeerIdentity *peer, | 537 | ats_reserve_callback (void *cls, |
538 | int32_t amount, struct GNUNET_TIME_Relative res_delay) | 538 | const struct GNUNET_PeerIdentity *peer, |
539 | int32_t amount, | ||
540 | struct GNUNET_TIME_Relative res_delay) | ||
539 | { | 541 | { |
540 | struct GSF_ConnectedPeer *cp = cls; | 542 | struct GSF_ConnectedPeer *cp = cls; |
541 | struct GSF_PeerTransmitHandle *pth; | 543 | struct GSF_PeerTransmitHandle *pth; |
@@ -730,7 +732,7 @@ GSF_handle_p2p_migration_stop_ (void *cls, | |||
730 | * @param cls the `struct PutMessage` | 732 | * @param cls the `struct PutMessage` |
731 | * @param buf_size number of bytes available in @a buf | 733 | * @param buf_size number of bytes available in @a buf |
732 | * @param buf where to copy the message, NULL on error (peer disconnect) | 734 | * @param buf where to copy the message, NULL on error (peer disconnect) |
733 | * @return number of bytes copied to 'buf', can be 0 (without indicating an error) | 735 | * @return number of bytes copied to @a buf, can be 0 (without indicating an error) |
734 | */ | 736 | */ |
735 | static size_t | 737 | static size_t |
736 | copy_reply (void *cls, size_t buf_size, void *buf) | 738 | copy_reply (void *cls, size_t buf_size, void *buf) |
@@ -832,7 +834,7 @@ peer_request_destroy (void *cls, | |||
832 | /** | 834 | /** |
833 | * The artificial delay is over, transmit the message now. | 835 | * The artificial delay is over, transmit the message now. |
834 | * | 836 | * |
835 | * @param cls the 'struct GSF_DelayedHandle' with the message | 837 | * @param cls the `struct GSF_DelayedHandle` with the message |
836 | * @param tc scheduler context | 838 | * @param tc scheduler context |
837 | */ | 839 | */ |
838 | static void | 840 | static void |
@@ -1342,7 +1344,7 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other, | |||
1342 | * Function called if there has been a timeout trying to satisfy | 1344 | * Function called if there has been a timeout trying to satisfy |
1343 | * a transmission request. | 1345 | * a transmission request. |
1344 | * | 1346 | * |
1345 | * @param cls the 'struct GSF_PeerTransmitHandle' of the request | 1347 | * @param cls the `struct GSF_PeerTransmitHandle` of the request |
1346 | * @param tc scheduler context | 1348 | * @param tc scheduler context |
1347 | */ | 1349 | */ |
1348 | static void | 1350 | static void |
@@ -1519,11 +1521,13 @@ GSF_peer_update_responder_peer_ (struct GSF_ConnectedPeer *cp, | |||
1519 | * | 1521 | * |
1520 | * @param cls unused | 1522 | * @param cls unused |
1521 | * @param key peer identity | 1523 | * @param key peer identity |
1522 | * @param value the 'struct GSF_ConnectedPeer' to flush | 1524 | * @param value the `struct GSF_ConnectedPeer` to flush |
1523 | * @return GNUNET_OK to continue iteration | 1525 | * @return #GNUNET_OK to continue iteration |
1524 | */ | 1526 | */ |
1525 | static int | 1527 | static int |
1526 | flush_respect (void *cls, const struct GNUNET_PeerIdentity * key, void *value) | 1528 | flush_respect (void *cls, |
1529 | const struct GNUNET_PeerIdentity *key, | ||
1530 | void *value) | ||
1527 | { | 1531 | { |
1528 | struct GSF_ConnectedPeer *cp = value; | 1532 | struct GSF_ConnectedPeer *cp = value; |
1529 | struct GNUNET_PeerIdentity pid; | 1533 | struct GNUNET_PeerIdentity pid; |
@@ -1874,7 +1878,7 @@ GSF_connected_peer_done_ () | |||
1874 | /** | 1878 | /** |
1875 | * Iterator to remove references to LC entry. | 1879 | * Iterator to remove references to LC entry. |
1876 | * | 1880 | * |
1877 | * @param cls the 'struct GSF_LocalClient*' to look for | 1881 | * @param cls the `struct GSF_LocalClient *` to look for |
1878 | * @param key current key code | 1882 | * @param key current key code |
1879 | * @param value value in the hash map (peer entry) | 1883 | * @param value value in the hash map (peer entry) |
1880 | * @return #GNUNET_YES (we should continue to iterate) | 1884 | * @return #GNUNET_YES (we should continue to iterate) |
diff --git a/src/util/plugin.c b/src/util/plugin.c index a1a8aa681..40319c737 100644 --- a/src/util/plugin.c +++ b/src/util/plugin.c | |||
@@ -278,7 +278,7 @@ GNUNET_PLUGIN_unload (const char *library_name, | |||
278 | plugins = pos->next; | 278 | plugins = pos->next; |
279 | else | 279 | else |
280 | prev->next = pos->next; | 280 | prev->next = pos->next; |
281 | lt_dlclose (pos->handle); | 281 | // lt_dlclose (pos->handle); |
282 | GNUNET_free (pos->name); | 282 | GNUNET_free (pos->name); |
283 | GNUNET_free (pos); | 283 | GNUNET_free (pos); |
284 | if (NULL == plugins) | 284 | if (NULL == plugins) |