diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 15:56:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 15:56:09 +0000 |
commit | 7860a8fa9e6cca9f59efbfee307a01545578f59f (patch) | |
tree | 5b67fbd18646dfa9d4ae472d6a995e86c384b5e7 /src/transport | |
parent | 26482491f9faa76ae8b98e27694c14d5140c1e69 (diff) | |
download | gnunet-7860a8fa9e6cca9f59efbfee307a01545578f59f.tar.gz gnunet-7860a8fa9e6cca9f59efbfee307a01545578f59f.zip |
-doxygen fixes
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-transport-wlan-helper.c | 41 | ||||
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 7 | ||||
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 | ||||
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 2 |
4 files changed, 39 insertions, 13 deletions
diff --git a/src/transport/gnunet-transport-wlan-helper.c b/src/transport/gnunet-transport-wlan-helper.c index 0e5d55b40..7be72482b 100644 --- a/src/transport/gnunet-transport-wlan-helper.c +++ b/src/transport/gnunet-transport-wlan-helper.c | |||
@@ -419,25 +419,48 @@ struct Hardware_Infos | |||
419 | 419 | ||
420 | 420 | ||
421 | /** | 421 | /** |
422 | * struct ieee80211_radiotap_iterator - tracks walk thru present radiotap args | 422 | * struct ieee80211_radiotap_iterator - tracks walk through present radiotap args |
423 | * @rtheader: pointer to the radiotap header we are walking through | ||
424 | * @max_length: length of radiotap header in cpu byte ordering | ||
425 | * @this_arg_index: IEEE80211_RADIOTAP_... index of current arg | ||
426 | * @this_arg: pointer to current radiotap arg | ||
427 | * @arg_index: internal next argument index | ||
428 | * @arg: internal next argument pointer | ||
429 | * @next_bitmap: internal pointer to next present uint32_t | ||
430 | * @bitmap_shifter: internal shifter for curr uint32_t bitmap, b0 set == arg present | ||
431 | */ | 423 | */ |
432 | struct ieee80211_radiotap_iterator | 424 | struct ieee80211_radiotap_iterator |
433 | { | 425 | { |
426 | /** | ||
427 | * pointer to the radiotap header we are walking through | ||
428 | */ | ||
434 | struct ieee80211_radiotap_header *rtheader; | 429 | struct ieee80211_radiotap_header *rtheader; |
430 | |||
431 | /** | ||
432 | * length of radiotap header in cpu byte ordering | ||
433 | */ | ||
435 | int max_length; | 434 | int max_length; |
435 | |||
436 | /** | ||
437 | * IEEE80211_RADIOTAP_... index of current arg | ||
438 | */ | ||
436 | int this_arg_index; | 439 | int this_arg_index; |
440 | |||
441 | /** | ||
442 | * pointer to current radiotap arg | ||
443 | */ | ||
437 | uint8_t *this_arg; | 444 | uint8_t *this_arg; |
445 | |||
446 | /** | ||
447 | * internal next argument index | ||
448 | */ | ||
438 | int arg_index; | 449 | int arg_index; |
450 | |||
451 | /** | ||
452 | * internal next argument pointer | ||
453 | */ | ||
439 | uint8_t *arg; | 454 | uint8_t *arg; |
455 | |||
456 | /** | ||
457 | * internal pointer to next present uint32_t | ||
458 | */ | ||
440 | uint32_t *next_bitmap; | 459 | uint32_t *next_bitmap; |
460 | |||
461 | /** | ||
462 | * internal shifter for curr uint32_t bitmap, b0 set == arg present | ||
463 | */ | ||
441 | uint32_t bitmap_shifter; | 464 | uint32_t bitmap_shifter; |
442 | }; | 465 | }; |
443 | 466 | ||
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 96bd176f4..013b3f544 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -75,6 +75,7 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
75 | * Function setting up file descriptors and scheduling task to run | 75 | * Function setting up file descriptors and scheduling task to run |
76 | * | 76 | * |
77 | * @param plugin plugin as closure | 77 | * @param plugin plugin as closure |
78 | * @param now schedule task in 1ms, regardless of what curl may say | ||
78 | * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok | 79 | * @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok |
79 | */ | 80 | */ |
80 | static int | 81 | static int |
@@ -115,7 +116,7 @@ client_schedule (struct Plugin *plugin, int now) | |||
115 | else | 116 | else |
116 | timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, to); | 117 | timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, to); |
117 | if (now == GNUNET_YES) | 118 | if (now == GNUNET_YES) |
118 | timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 1); | 119 | timeout = GNUNET_TIME_UNIT_MILLISECONDS; |
119 | 120 | ||
120 | if (mret != CURLM_OK) | 121 | if (mret != CURLM_OK) |
121 | { | 122 | { |
@@ -358,7 +359,7 @@ client_wake_up (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
358 | * @param stream pointer where to write data | 359 | * @param stream pointer where to write data |
359 | * @param size size of an individual element | 360 | * @param size size of an individual element |
360 | * @param nmemb count of elements that can be written to the buffer | 361 | * @param nmemb count of elements that can be written to the buffer |
361 | * @param ptr destination pointer, passed to the libcurl handle | 362 | * @param cls destination pointer, passed to the libcurl handle |
362 | * @return bytes read from stream | 363 | * @return bytes read from stream |
363 | */ | 364 | */ |
364 | static size_t | 365 | static size_t |
@@ -413,7 +414,7 @@ client_receive (void *stream, size_t size, size_t nmemb, void *cls) | |||
413 | * @param stream pointer where to write data | 414 | * @param stream pointer where to write data |
414 | * @param size size of an individual element | 415 | * @param size size of an individual element |
415 | * @param nmemb count of elements that can be written to the buffer | 416 | * @param nmemb count of elements that can be written to the buffer |
416 | * @param ptr source pointer, passed to the libcurl handle | 417 | * @param cls source pointer, passed to the libcurl handle |
417 | * @return bytes written to stream, returning 0 will terminate connection! | 418 | * @return bytes written to stream, returning 0 will terminate connection! |
418 | */ | 419 | */ |
419 | static size_t | 420 | static size_t |
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 87ee25005..a0d5072b8 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -461,6 +461,8 @@ inbound_session_iterator (void *cls, const GNUNET_HashCode * key, void *value) | |||
461 | * | 461 | * |
462 | * @param plugin the plugin | 462 | * @param plugin the plugin |
463 | * @param peer peer's identity | 463 | * @param peer peer's identity |
464 | * @param addr address | ||
465 | * @param addrlen address length | ||
464 | * @return NULL if we have no session | 466 | * @return NULL if we have no session |
465 | */ | 467 | */ |
466 | static struct Session * | 468 | static struct Session * |
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 714f23f19..c7029a579 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -2377,7 +2377,7 @@ free_macendpoint (struct Plugin *plugin, struct MacEndpoint *endpoint) | |||
2377 | * function to free a session | 2377 | * function to free a session |
2378 | * @param plugin pointer to the plugin | 2378 | * @param plugin pointer to the plugin |
2379 | * @param queue pointer to the sessionqueue element to free | 2379 | * @param queue pointer to the sessionqueue element to free |
2380 | * @param free_macendpoint if GNUNET_YES and mac endpoint would be empty, free mac endpoint | 2380 | * @param do_free_macendpoint if GNUNET_YES and mac endpoint would be empty, free mac endpoint |
2381 | */ | 2381 | */ |
2382 | static void | 2382 | static void |
2383 | free_session (struct Plugin *plugin, struct Sessionqueue *queue, | 2383 | free_session (struct Plugin *plugin, struct Sessionqueue *queue, |