add and fix doxygen comments for doxygen-1.7.1. (which reports lots of

spurious items as well, by the way).


git-svn-id: file:///svn/unbound/trunk@2211 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2010-08-13 08:41:49 +00:00
parent 71cab42c9b
commit 40f8fe2815
14 changed files with 16 additions and 7 deletions

View file

@ -283,9 +283,10 @@ worker_handle_service_reply(struct comm_point* c, void* arg, int error,
return 0; 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 pkt: the wire packet to examine for sanity.
* @param worker: parameters for checking. * @param worker: parameters for checking.
* @return error code, 0 OK, or -1 discard.
*/ */
static int static int
worker_check_request(ldns_buffer* pkt, struct worker* worker) worker_check_request(ldns_buffer* pkt, struct worker* worker)

View file

@ -1,5 +1,6 @@
13 August 2010: Wouter 13 August 2010: Wouter
- More pleasant remote control command parsing. - More pleasant remote control command parsing.
- documentation added for return values reported by doxygen 1.7.1.
9 August 2010: Wouter 9 August 2010: Wouter
- Fix name of rrset printed that failed validation. - Fix name of rrset printed that failed validation.

View file

@ -185,7 +185,7 @@ int delegpt_add_ns(struct delegpt* dp, struct regional* regional,
* @param regional: where to allocate the info. * @param regional: where to allocate the info.
* @param ns_rrset: NS rrset. * @param ns_rrset: NS rrset.
* @param lame: rrset is lame, disprefer it. * @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, int delegpt_rrset_add_ns(struct delegpt* dp, struct regional* regional,
struct ub_packed_rrset_key* ns_rrset, int lame); struct ub_packed_rrset_key* ns_rrset, int lame);

View file

@ -159,6 +159,7 @@ void iter_mark_pside_cycle_targets(struct module_qstate* qstate,
* @param qinfo: query name and type * @param qinfo: query name and type
* @param qflags: query flags with RD flag * @param qflags: query flags with RD flag
* @param dp: delegpt to check. * @param dp: delegpt to check.
* @return true if dp is useless.
*/ */
int iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags, int iter_dp_is_useless(struct query_info* qinfo, uint16_t qflags,
struct delegpt* dp); struct delegpt* dp);

View file

@ -534,6 +534,7 @@ generate_sub_request(uint8_t* qname, size_t qnamelen, uint16_t qtype,
* @param ie: iterator global state. * @param ie: iterator global state.
* @param id: module id. * @param id: module id.
* @param qclass: the class to prime. * @param qclass: the class to prime.
* @return 0 on failure
*/ */
static int static int
prime_root(struct module_qstate* qstate, struct iter_qstate* iq, prime_root(struct module_qstate* qstate, struct iter_qstate* iq,

View file

@ -74,6 +74,7 @@ void invalidateQueryInCache(struct module_qstate* qstate, struct query_info* qin
* *
* @param qstate: module environment * @param qstate: module environment
* @param pkt: a ldns_buffer which contains ldns_packet data * @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); int createResponse(struct module_qstate* qstate, ldns_buffer* pkt);

View file

@ -228,7 +228,7 @@ pending_find_match(struct replay_runtime* runtime, struct entry** entry,
* @param runtime: runtime. * @param runtime: runtime.
* @param entry: if true, the entry that matches is returned. * @param entry: if true, the entry that matches is returned.
* @param pend: if true, the outgoing message 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 static int
pending_matches_range(struct replay_runtime* runtime, pending_matches_range(struct replay_runtime* runtime,

View file

@ -258,8 +258,7 @@ static struct entry* new_entry()
* @param buf: is the buffer to store the result in * @param buf: is the buffer to store the result in
* @param offset: is the starting position in the result buffer * @param offset: is the starting position in the result buffer
* @param buf_len: is the length of buf. * @param buf_len: is the length of buf.
* * @return This function returns the length of the result
* This function returns the length of the result
*/ */
static size_t static size_t
hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len) hexstr2bin(char *hexstr, int len, uint8_t *buf, size_t offset, size_t buf_len)

View file

@ -251,6 +251,7 @@ void remove_configfile(void)
* Main fake event test program. Setup, teardown and report errors. * Main fake event test program. Setup, teardown and report errors.
* @param argc: arg count. * @param argc: arg count.
* @param argv: array of commandline arguments. * @param argv: array of commandline arguments.
* @return program failure if test fails.
*/ */
int int
main(int argc, char* argv[]) main(int argc, char* argv[])

View file

@ -487,6 +487,7 @@ void unit_show_feature(const char* feature)
* Main unit test program. Setup, teardown and report errors. * Main unit test program. Setup, teardown and report errors.
* @param argc: arg count. * @param argc: arg count.
* @param argv: array of commandline arguments. * @param argv: array of commandline arguments.
* @return program failure if test fails.
*/ */
int int
main(int argc, char* argv[]) main(int argc, char* argv[])

View 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. * Count labels for the RRSIG signature label field.
* Like a normal labelcount, but "*" wildcard and "." root are not counted. * Like a normal labelcount, but "*" wildcard and "." root are not counted.
* @param dname: valid uncompressed wireformat. * @param dname: valid uncompressed wireformat.
* @return number of labels like in RRSIG; '*' and '.' are not counted.
*/ */
int dname_signame_label_count(uint8_t* dname); int dname_signame_label_count(uint8_t* dname);

View file

@ -233,7 +233,7 @@ int sockaddr_cmp_addr(struct sockaddr_storage* addr1, socklen_t len1,
* Checkout address family. * Checkout address family.
* @param addr: the sockaddr to examine. * @param addr: the sockaddr to examine.
* @param len: the length of addr. * @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); 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); 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 addr: address
* @param addrlen: length of address * @param addrlen: length of address
* @return true if so * @return true if so

View file

@ -141,6 +141,7 @@ void autr_global_delete(struct autr_global_data* global);
/** /**
* See if autotrust anchors are configured and how many. * See if autotrust anchors are configured and how many.
* @param anchors: the trust anchors structure. * @param anchors: the trust anchors structure.
* @return number of autotrust trust anchors
*/ */
size_t autr_get_num_anchors(struct val_anchors* anchors); size_t autr_get_num_anchors(struct val_anchors* anchors);

View file

@ -155,6 +155,7 @@ dnskey_get_flags(struct ub_packed_rrset_key* k, size_t idx)
* Get DNSKEY protocol value from rdata * Get DNSKEY protocol value from rdata
* @param k: DNSKEY rrset. * @param k: DNSKEY rrset.
* @param idx: which key. * @param idx: which key.
* @return protocol octet value
*/ */
static int static int
dnskey_get_protocol(struct ub_packed_rrset_key* k, size_t idx) dnskey_get_protocol(struct ub_packed_rrset_key* k, size_t idx)