]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
add and fix doxygen comments for doxygen-1.7.1. (which reports lots of
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 13 Aug 2010 08:41:49 +0000 (08:41 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 13 Aug 2010 08:41:49 +0000 (08:41 +0000)
spurious items as well, by the way).

git-svn-id: file:///svn/unbound/trunk@2211 be551aaa-1e26-0410-a405-d3ace91eadb9

14 files changed:
daemon/worker.c
doc/Changelog
iterator/iter_delegpt.h
iterator/iter_utils.h
iterator/iterator.c
pythonmod/pythonmod_utils.h
testcode/fake_event.c
testcode/ldns-testpkts.c
testcode/testbound.c
testcode/unitmain.c
util/data/dname.h
util/net_help.h
validator/autotrust.h
validator/val_sigcrypt.c

index 210b2043594657bf3827840860275b8bf1016054..cfb484a6755d36e6f5e194f7e0027dbaaaab62a9 100644 (file)
@@ -283,9 +283,10 @@ worker_handle_service_reply(struct comm_point* c, void* arg, int error,
        return 0;
 }
 
-/** check request sanity. Returns error code, 0 OK, or -1 discard. 
+/** check request sanity.
  * @param pkt: the wire packet to examine for sanity.
  * @param worker: parameters for checking.
+ * @return error code, 0 OK, or -1 discard.
 */
 static int 
 worker_check_request(ldns_buffer* pkt, struct worker* worker)
index 766f329fd0e759c5714b97811228ba191e1fa36f..bd55f2a39464e681365ab61b293a99ff6e471ade 100644 (file)
@@ -1,5 +1,6 @@
 13 August 2010: Wouter
        - More pleasant remote control command parsing.
+       - documentation added for return values reported by doxygen 1.7.1.
 
 9 August 2010: Wouter
        - Fix name of rrset printed that failed validation.
index b779abc94eb450f40741971a2b83edbc6abd0f07..266322fb8eaace2c26b0e648d1532fdd4a9f7fec 100644 (file)
@@ -185,7 +185,7 @@ int delegpt_add_ns(struct delegpt* dp, struct regional* regional,
  * @param regional: where to allocate the info.
  * @param ns_rrset: NS rrset.
  * @param lame: rrset is lame, disprefer it.
- * return 0 on alloc error.
+ * @return 0 on alloc error.
  */
 int delegpt_rrset_add_ns(struct delegpt* dp, struct regional* regional,
        struct ub_packed_rrset_key* ns_rrset, int lame);
index 58ba5a9202c296b121a24331af788e8653002447..deddac666e3aca3c8026125a6ccb4c1475925445 100644 (file)
@@ -159,6 +159,7 @@ void iter_mark_pside_cycle_targets(struct module_qstate* qstate,
  * @param qinfo: query name and type
  * @param qflags: query flags with RD flag
  * @param dp: delegpt to check.
+ * @return true if dp is useless.
  */
 int iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags, 
        struct delegpt* dp);
index bd1fea1d7d78e959b0295902ef12067811af9f7e..e61829762772c1dc82bf327adc93618b5cf9b5f1 100644 (file)
@@ -534,6 +534,7 @@ generate_sub_request(uint8_t* qname, size_t qnamelen, uint16_t qtype,
  * @param ie: iterator global state.
  * @param id: module id.
  * @param qclass: the class to prime.
+ * @return 0 on failure
  */
 static int
 prime_root(struct module_qstate* qstate, struct iter_qstate* iq, 
index 2aa8f7572cc2ab5332a63a04a9406855ec6f3bf2..a1641d30858e1e66fea941262db24f65b41f03d3 100644 (file)
@@ -74,6 +74,7 @@ void invalidateQueryInCache(struct module_qstate* qstate, struct query_info* qin
  * 
  * @param qstate: module environment
  * @param pkt: a ldns_buffer which contains ldns_packet data
+ * @return 0 on failure, out of memory or parse error.
  */
 int createResponse(struct module_qstate* qstate, ldns_buffer* pkt);
 
index 15c1ef5270a8154ce10b27eeb102ef4104a9aea9..35fdf450789b20dcbf0017dd11ef355792887d97 100644 (file)
@@ -228,7 +228,7 @@ pending_find_match(struct replay_runtime* runtime, struct entry** entry,
  * @param runtime: runtime.
  * @param entry: if true, the entry that matches is returned.
  * @param pend: if true, the outgoing message that matches is returned.
- * return: true if pending query matches the now event.
+ * @return: true if pending query matches the now event.
  */
 static int 
 pending_matches_range(struct replay_runtime* runtime, 
index 32bfba501d308e6da09b6a6be9e74816b4e1872d..22d30b173543f0fcd38fb6c553665898f66eb27f 100644 (file)
@@ -258,8 +258,7 @@ static struct entry* new_entry()
  * @param buf: is the buffer to store the result in
  * @param offset: is the starting position in the result buffer
  * @param buf_len: is the length of buf.
- *
- * This function returns the length of the result
+ * @return This function returns the length of the result
  */
 static size_t
 hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len)
index 0f12c79969970be0ff91c280b935b4b253d69b92..5d16d55e8a423271ba28005f945777ca356df654 100644 (file)
@@ -251,6 +251,7 @@ void remove_configfile(void)
  * Main fake event test program. Setup, teardown and report errors.
  * @param argc: arg count.
  * @param argv: array of commandline arguments.
+ * @return program failure if test fails.
  */
 int 
 main(int argc, char* argv[])
index c0985106c337feedf178ba4169f90d1e42a711de..e9e28c53c52f1e3518f7e7f40702371ca3b009d1 100644 (file)
@@ -487,6 +487,7 @@ void unit_show_feature(const char* feature)
  * Main unit test program. Setup, teardown and report errors.
  * @param argc: arg count.
  * @param argv: array of commandline arguments.
+ * @return program failure if test fails.
  */
 int 
 main(int argc, char* argv[])
index 0a7803c18c3b54ab4d39167ecfbdb3e4942b7ceb..b942848a9dc7bb15e6c279bc16d653eb65a02c72 100644 (file)
@@ -257,6 +257,7 @@ void dname_remove_labels(uint8_t** dname, size_t* len, int n);
  * Count labels for the RRSIG signature label field.
  * Like a normal labelcount, but "*" wildcard and "." root are not counted.
  * @param dname: valid uncompressed wireformat.
+ * @return number of labels like in RRSIG; '*' and '.' are not counted.
  */
 int dname_signame_label_count(uint8_t* dname);
 
index 8afa84b269307256f6e45e333226459689cae12b..b0d2ed499abdcab02a51c254083ce63e9fdc9eb2 100644 (file)
@@ -233,7 +233,7 @@ int sockaddr_cmp_addr(struct sockaddr_storage* addr1, socklen_t len1,
  * Checkout address family.
  * @param addr: the sockaddr to examine.
  * @param len: the length of addr.
- * return: true if sockaddr is ip6.
+ * @return: true if sockaddr is ip6.
  */
 int addr_is_ip6(struct sockaddr_storage* addr, socklen_t len);
 
@@ -272,7 +272,7 @@ void addr_to_str(struct sockaddr_storage* addr, socklen_t addrlen,
        char* buf, size_t len);
 
 /**
- * See if sockaddr is an ipv6 mapped ipv4 address, ::ffff:0.0.0.0
+ * See if sockaddr is an ipv6 mapped ipv4 address, "::ffff:0.0.0.0"
  * @param addr: address
  * @param addrlen: length of address
  * @return true if so
index 61b6a9dc802b6f299b447282bf4e3c4840e0f7fe..4e88ed32042a35ddb9229563faeb3315e967340b 100644 (file)
@@ -141,6 +141,7 @@ void autr_global_delete(struct autr_global_data* global);
 /**
  * See if autotrust anchors are configured and how many.
  * @param anchors: the trust anchors structure.
+ * @return number of autotrust trust anchors
  */
 size_t autr_get_num_anchors(struct val_anchors* anchors);
 
index faddf5c4357330349c9fcfbb409ab2b07c19eaa3..25790f58302396db1273ea32bec100ae7c318918 100644 (file)
@@ -155,6 +155,7 @@ dnskey_get_flags(struct ub_packed_rrset_key* k, size_t idx)
  * Get DNSKEY protocol value from rdata
  * @param k: DNSKEY rrset.
  * @param idx: which key.
+ * @return protocol octet value
  */
 static int
 dnskey_get_protocol(struct ub_packed_rrset_key* k, size_t idx)