-doxygen fixes
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 16:42:00 +0000 (16:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 Jan 2012 16:42:00 +0000 (16:42 +0000)
21 files changed:
src/dns/dns_api.c
src/dns/gnunet-dns-monitor.c
src/dns/gnunet-dns-redirector.c
src/dns/gnunet-service-dns.c
src/dns/plugin_block_dns.c
src/exit/gnunet-daemon-exit.c
src/fs/fs_dirmetascan.c
src/fs/gnunet-service-fs_cp.c
src/fs/gnunet-service-fs_pe.c
src/fs/gnunet-service-fs_pe.h
src/include/gnunet_common.h
src/include/gnunet_disk_lib.h
src/include/gnunet_dns_service.h
src/include/gnunet_dnsparser_lib.h
src/include/gnunet_tun_lib.h
src/testing/gnunet-testing.c
src/tun/tun.c
src/util/common_endian.c
src/util/disk.c
src/util/helper.c
src/vpn/gnunet-service-vpn.c

index dfce0af1bed7d9b982a28095eed8e1ad1e7ca54a..a280265da0d588297b83676b17caec384babb5ce 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 /**
- * @file dns/dns_api_new.c
+ * @file dns/dns_api.c
  * @brief API to access the DNS service. 
  * @author Christian Grothoff
  */
index 3c7f319857db3e073ab4ab3f65ce5cdf090197b7..82715aabc3d3a8b3e243879e9a3dc2ec481f773b 100644 (file)
@@ -119,9 +119,9 @@ display_query (const struct GNUNET_DNSPARSER_Query *query)
 
 
 /**
- * Output the given DNS query to stdout.
+ * Output the given DNS record to stdout.
  *
- * @param query query to display.
+ * @param record record to display.
  */
 static void
 display_record (const struct GNUNET_DNSPARSER_Record *record)
index cea8f5be946510152f23159ffe88d0e49e5c6336..a45b8960950acae8baf20b3960a96b34865df037 100644 (file)
@@ -56,9 +56,9 @@ static int verbosity;
 
 
 /**
- * Output the given DNS query to stdout.
+ * Modify the given DNS record.
  *
- * @param query query to display.
+ * @param record record to modify
  */
 static void
 modify_record (const struct GNUNET_DNSPARSER_Record *record)
index 6370e95a6f23384092bab62fe0310038cf238f36..17f60749efc57c755c6209da5f0b837c8ed75412 100644 (file)
@@ -1373,7 +1373,7 @@ receive_dns_request (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel,
  * @param cls closure
  * @param tunnel new handle to the tunnel
  * @param initiator peer that started the tunnel
- * @param atsi performance information for the tunnel
+ * @param ats performance information for the tunnel
  * @return initial tunnel context for the tunnel
  */
 static void *
index 34b054c8d699d83e3d8c86047db34d30c93e76d2..96a4dc04e76d5682091691f64262780fe845c8c1 100644 (file)
@@ -19,7 +19,7 @@
 */
 
 /**
- * @file vpn/plugin_block_dns.c
+ * @file dns/plugin_block_dns.c
  * @brief block plugin for storing .gnunet-bindings
  * @author Philipp Tölke
  */
index 61c719e5dd3b97abb22c7bf3cd730dc37d02b597..dc9991422a244fd516d1d40bbb8605db468d124c 100644 (file)
@@ -1263,6 +1263,7 @@ setup_state_record (struct TunnelState *state)
  *                TCP header, depending on protocol)
  * @param payload_length number of bytes in 'payload'
  * @param protocol IPPROTO_UDP or IPPROTO_TCP
+ * @param tcp_header skeleton of the TCP header, NULL for UDP
  * @param src_address source address to use (IP and port)
  * @param dst_address destination address to use (IP and port)
  * @param pkt6 where to write the assembled packet; must
@@ -1439,7 +1440,7 @@ prepare_ipv6_packet (const void *payload, size_t payload_length,
  *
  * @param destination_address IP and port to use for the TCP packet's destination
  * @param source_address IP and port to use for the TCP packet's source
- * @param tcp header template to use
+ * @param tcp_header header template to use
  * @param payload payload of the TCP packet
  * @param payload_length number of bytes in 'payload'
  */
@@ -1541,7 +1542,7 @@ send_tcp_packet_via_tun (const struct SocketAddress *destination_address,
  *         GNUNET_SYSERR to close it (signal serious error)
  */
 static int
-receive_tcp_service (void *unused GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel,
+receive_tcp_service (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel,
                      void **tunnel_ctx GNUNET_UNUSED,
                      const struct GNUNET_PeerIdentity *sender GNUNET_UNUSED,
                      const struct GNUNET_MessageHeader *message,
index 0459ca009cdf031e76be6f82eb10ccd9bd99dc21..8700a69f1fd624449d4296abe549fbf01ea5e94e 100644 (file)
@@ -341,7 +341,7 @@ should_stop (struct AddDirContext *adc)
 /**
  * Write progress message.
  * Format is:
- * <reason><filename length><filename><directory flag>
+ * "reason", "filename length", "filename", "directory flag"
  * If filename is NULL, filename is not written, and its length
  * is written as 0, and nothing else is written. It signals the initiator
  * thread that the scanner is finished, and that it can now join its thread.
@@ -540,7 +540,7 @@ make_item (struct GNUNET_FS_ShareTreeItem *parent)
 /**
  * Extract metadata from a file and add it to the share tree
  *
- * @param adc context to modify
+ * @param ads context to modify
  * @param filename name of the file to process
  */
 static void
index ba6a8ce87054e16bec7ece14615b06120947114e..86986b899e0263406897bb0be598ad05b5839c6e 100644 (file)
@@ -875,6 +875,7 @@ get_randomized_delay ()
  * @param pr handle to the original pending request
  * @param reply_anonymity_level anonymity level for the reply, UINT32_MAX for "unknown"
  * @param expiration when does 'data' expire?
+ * @param last_transmission when did we last transmit a request for this block
  * @param type type of the block
  * @param data response data, NULL on request expiration
  * @param data_len number of bytes in data
index 78769fa826d16a1f6e2c0036092fb40beea7d966..f1d87db01f4f0fddbae32bf966ba6c178169a5d7 100644 (file)
@@ -701,12 +701,12 @@ GSF_plan_notify_peer_disconnect_ (const struct GSF_ConnectedPeer *cp)
 
 /**
  * Get the last transmission attempt time for the request plan list
- * referenced by @rpr_head, that was sent to @sender
+ * referenced by 'rpr_head', that was sent to 'sender'
  *
  * @param rpr_head request plan reference list to check.
  * @param sender the peer that we've sent the request to.
  * @param result the timestamp to fill.
- * @return GNUNET_YES if @result was changed, GNUNET_NO otherwise.
+ * @return GNUNET_YES if 'result' was changed, GNUNET_NO otherwise.
  */
 int
 GSF_request_plan_reference_get_last_transmission_ (
index da20a7d7b9ba5f977b1851d7cf9cea2425e4eb79..3a18715ca0556b950c28754c08d377838db1748b 100644 (file)
@@ -60,12 +60,12 @@ GSF_plan_notify_request_done_ (struct GSF_PendingRequest *pr);
 
 /**
  * Get the last transmission attempt time for the request plan list
- * referenced by @rpr_head, that was sent to @sender
+ * referenced by 'rpr_head', that was sent to 'sender'
  *
  * @param rpr_head request plan reference list to check.
  * @param sender the peer that we've sent the request to.
  * @param result the timestamp to fill.
- * @return GNUNET_YES if @result was changed, GNUNET_NO otherwise.
+ * @return GNUNET_YES if 'result' was changed, GNUNET_NO otherwise.
  */
 int
 GSF_request_plan_reference_get_last_transmission_ (
index 7c587a782ccaf16226d4086ccdbdb9d01c5f5d59..04847ee5b05de5775a86fd87d0c6342468722e19 100644 (file)
@@ -507,7 +507,7 @@ GNUNET_htonll (uint64_t n);
  * @return the same value in host byte order
  */
 double 
-GNUNET_hton_double (double in);
+GNUNET_hton_double (double d);
 
 /**
  * Convert double to host-byte-order
@@ -515,7 +515,7 @@ GNUNET_hton_double (double in);
  * @return the same value in host byte order
  */
 double 
-GNUNET_ntoh_double (double in);
+GNUNET_ntoh_double (double d);
 
 /* ************************* allocation functions ****************** */
 
index 46dd7c4c40ab24bfd503ae40fe1986f0b6bafa17..25f972b5b39380c9e9f07c0d796571271f4bd7bb 100644 (file)
@@ -389,7 +389,9 @@ GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh,
 
 /**
  * Creates an interprocess channel
- * @param blocking creates an asynchronous pipe if set to GNUNET_NO
+ *
+ * @param blocking_read creates an asynchronous pipe for reading if set to GNUNET_NO
+ * @param blocking_write creates an asynchronous pipe for writing if set to GNUNET_NO
  * @param inherit_read 1 to make read handle inheritable, 0 otherwise (NT only)
  * @param inherit_write 1 to make write handle inheritable, 0 otherwise (NT only)
  * @return handle to the new pipe, NULL on error
index 3517a4609058ee9681e47008a39c7d75c1caf7ba..a822b06ae469a8f5cc725b4d453e62f0e15845b2 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 /**
- * @file include/gnunet_dns_service-new.h
+ * @file include/gnunet_dns_service.h
  * @brief API to access the DNS service. 
  * @author Christian Grothoff
  */
index a1fb920a7db27d9520c2cb492e1408ba2b099291..0c310ba003feb342e9fb77c74cfa1e244841d5c2 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 /**
- * @file include/gnunet_dnsparse_lib.h
+ * @file include/gnunet_dnsparser_lib.h
  * @brief API for helper library to parse DNS packets. 
  * @author Philipp Toelke
  * @author Christian Grothoff
index 9cc58e85cf7a2ef46725070f0d57e2556947a1e2..b02c6c02ea434cf084113501a43fe599cb5f54a1 100644 (file)
@@ -241,7 +241,7 @@ GNUNET_TUN_initialize_ipv6_header (struct GNUNET_TUN_IPv6Header *ip,
 /**
  * Calculate IPv4 TCP checksum.
  *
- * @param ipv4 header fully initialized
+ * @param ip ipv4 header fully initialized
  * @param tcp TCP header (initialized except for CRC)
  * @param payload the TCP payload
  * @param payload_length number of bytes of TCP payload
@@ -255,7 +255,7 @@ GNUNET_TUN_calculate_tcp4_checksum (const struct GNUNET_TUN_IPv4Header *ip,
 /**
  * Calculate IPv6 TCP checksum.
  *
- * @param ipv6 header fully initialized
+ * @param ip ipv6 header fully initialized
  * @param tcp TCP header (initialized except for CRC)
  * @param payload the TCP payload
  * @param payload_length number of bytes of TCP payload
@@ -269,7 +269,7 @@ GNUNET_TUN_calculate_tcp6_checksum (const struct GNUNET_TUN_IPv6Header *ip,
 /**
  * Calculate IPv4 UDP checksum.
  *
- * @param ipv4 header fully initialized
+ * @param ip ipv4 header fully initialized
  * @param udp UDP header (initialized except for CRC)
  * @param payload the UDP payload
  * @param payload_length number of bytes of UDP payload
@@ -284,7 +284,7 @@ GNUNET_TUN_calculate_udp4_checksum (const struct GNUNET_TUN_IPv4Header *ip,
 /**
  * Calculate IPv6 UDP checksum.
  *
- * @param ipv6 header fully initialized
+ * @param ip ipv6 header fully initialized
  * @param udp UDP header (initialized except for CRC)
  * @param payload the UDP payload
  * @param payload_length number of bytes of UDP payload
index 1c518fef97dac18220e8eddc6e791687bf47633b..f5d7ab36c1c1b6d07d238d1259ddcf5ba3f9ecc5 100644 (file)
@@ -19,7 +19,7 @@
 */
 
 /**
- * @file template/gnunet-testing.c
+ * @file testing/gnunet-testing.c
  * @brief tool to use testing functionality from cmd line
  * @author Christian Grothoff
  */
index 4c2ddf07aa08faceeff3372cee8d6cb60432728b..12781798cfcd269842fa898953462d8bea4d66b3 100644 (file)
@@ -99,7 +99,7 @@ GNUNET_TUN_initialize_ipv6_header (struct GNUNET_TUN_IPv6Header *ip,
 /**
  * Calculate IPv4 TCP checksum.
  *
- * @param ipv4 header fully initialized
+ * @param ip ipv4 header fully initialized
  * @param tcp TCP header (initialized except for CRC)
  * @param payload the TCP payload
  * @param payload_length number of bytes of TCP payload
@@ -132,7 +132,7 @@ GNUNET_TUN_calculate_tcp4_checksum (const struct GNUNET_TUN_IPv4Header *ip,
 /**
  * Calculate IPv6 TCP checksum.
  *
- * @param ipv6 header fully initialized
+ * @param ip ipv6 header fully initialized
  * @param tcp header (initialized except for CRC)
  * @param payload the TCP payload
  * @param payload_length number of bytes of TCP payload
@@ -165,7 +165,7 @@ GNUNET_TUN_calculate_tcp6_checksum (const struct GNUNET_TUN_IPv6Header *ip,
 /**
  * Calculate IPv4 UDP checksum.
  *
- * @param ipv4 header fully initialized
+ * @param ip ipv4 header fully initialized
  * @param udp UDP header (initialized except for CRC)
  * @param payload the UDP payload
  * @param payload_length number of bytes of UDP payload
@@ -208,7 +208,7 @@ GNUNET_TUN_calculate_udp4_checksum (const struct GNUNET_TUN_IPv4Header *ip,
 /**
  * Calculate IPv6 UDP checksum.
  *
- * @param ipv6 header fully initialized
+ * @param ip ipv6 header fully initialized
  * @param udp UDP header (initialized except for CRC)
  * @param payload the UDP payload
  * @param payload_length number of bytes of UDP payload
index 1a2ddd9c118d528d57bc9ca6932e5ad4eb725508..56aa7b0c4eca578b9ba40621fa6727ec289845d7 100644 (file)
@@ -52,7 +52,7 @@ GNUNET_htonll (uint64_t n)
 
 /**
  * Convert double to network-byte-order.
- * @param n the value in network byte order
+ * @param d the value in network byte order
  * @return the same value in host byte order
  */
 double 
index 7ce4f580877522e3d85cc90cea6b190fabba4228..a044482f1fccc13f21e0f1a4e19c78d29199aa29 100644 (file)
@@ -1252,7 +1252,7 @@ GNUNET_DISK_directory_iterator_next (struct GNUNET_DISK_DirectoryIterator *iter,
  * @param dirName the name of the directory
  * @param callback the method to call for each file
  * @param callback_cls closure for callback
- * @return GNUNET_YES if directory is not empty and @callback
+ * @return GNUNET_YES if directory is not empty and 'callback'
  *         will be called later, GNUNET_NO otherwise, GNUNET_SYSERR on error.
  */
 int
@@ -2113,10 +2113,10 @@ create_selectable_pipe (PHANDLE read_pipe_ptr, PHANDLE write_pipe_ptr,
 /**
  * Creates an interprocess channel
  *
- * @param blocking creates an asynchronous pipe if set to GNUNET_NO
+ * @param blocking_read creates an asynchronous pipe for reading if set to GNUNET_NO
+ * @param blocking_write creates an asynchronous pipe for writing if set to GNUNET_NO
  * @param inherit_read inherit the parent processes stdin (only for windows)
  * @param inherit_write inherit the parent processes stdout (only for windows)
- *
  * @return handle to the new pipe, NULL on error
  */
 struct GNUNET_DISK_PipeHandle *
index 6ebc3a444996dcfaf16e7d1888fc06ca947f6f68..c7e05923760be1897d0c13f1afa3904f9fb644fb 100644 (file)
@@ -216,14 +216,14 @@ restart_task (void *cls,
  */
 static void
 helper_read (void *cls,
-            const struct GNUNET_SCHEDULER_TaskContext *tsdkctx)
+            const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GNUNET_HELPER_Handle *h = cls;
   char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE];
   ssize_t t;
 
   h->read_task = GNUNET_SCHEDULER_NO_TASK;
-  if (0 != (tsdkctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
+  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
   {
     /* try again */
     h->read_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
@@ -404,7 +404,7 @@ GNUNET_HELPER_stop (struct GNUNET_HELPER_Handle *h)
  */
 static void
 helper_write (void *cls,
-            const struct GNUNET_SCHEDULER_TaskContext *tsdkctx)
+            const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GNUNET_HELPER_Handle *h = cls;
   struct HelperMessageQueueEntry *qe;
@@ -412,7 +412,7 @@ helper_write (void *cls,
   ssize_t t;
 
   h->write_task = GNUNET_SCHEDULER_NO_TASK;
-  if (0 != (tsdkctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
+  if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
   {
     /* try again */
     h->write_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
index 4db343f6ade3063b62ae14c99a6ef278df658789..8f4d11bc9f5a99d2a9fe6c53d6876ee9988fdab2 100644 (file)
@@ -565,7 +565,7 @@ free_tunnel_state (struct TunnelState *ts)
  * Destroy the mesh tunnel.
  *
  * @param cls the 'struct TunnelState' with the tunnel to destroy
- * @param ts schedule context
+ * @param tc scheduler context
  */
 static void
 destroy_tunnel_task (void *cls,
@@ -751,6 +751,7 @@ send_to_tunnel (struct TunnelMessageQueueEntry *tnq,
  *
  * @param de destination entry for which we need to setup a tunnel
  * @param client client to notify on successful tunnel setup, or NULL for none
+ * @param client_af address family of the address returned to the client
  * @param request_id request ID to send in client notification (unused if client is NULL)
  * @return tunnel state of the tunnel that was created
  */