# will put a list of the files that are included by a file in the documentation
# of that file.
-SHOW_INCLUDE_FILES = YES
+SHOW_INCLUDE_FILES = NO
# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
# is inserted in the documentation for inline members.
# at the bottom of the documentation of classes and structs. If set to YES the
# list will mention the files that were used to generate the documentation.
-SHOW_USED_FILES = YES
+SHOW_USED_FILES = NO
# If the sources in your project are distributed over multiple directories
# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = .
+INPUT = . ldns/
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
# then for each documented function all documented
# functions referencing it will be listed.
-REFERENCED_BY_RELATION = YES
+REFERENCED_BY_RELATION = NO
# If the REFERENCES_RELATION tag is set to YES (the default)
# then for each documented function all documented entities
# called/used by that function will be listed.
-REFERENCES_RELATION = YES
+REFERENCES_RELATION = NO
# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
# will generate a verbatim copy of the header file for each class for
-/*
- * rr.c
- *
- * access function for ldns_rr
- *
- * a Net::DNS like library for C
+/** \file rr.c
*
+ * \brief access functions for ldns_rr -
+ * \brief a Net::DNS like library for C
+ * \author LibDNS Team @ NLnet Labs
+ * \version 0.01
+ */
+
+/*
* (c) NLnet Labs, 2004
- *
* See the file LICENSE for the license
*/
#include <config.h>
-
#include <limits.h>
-
#include <ldns/rr.h>
-
#include "util.h"
/**
- * create a new rr structure.
+ * \brief create a new rr structure.
+ * \return ldns_rr *
*/
ldns_rr *
ldns_rr_new(void)
}
/**
- * Frees the rr structure TODO
+ * \brief free a RR structure
+ * \param[in] *rr the RR to be freed
+ * \return void
*/
void
ldns_rr_free(ldns_rr *rr)
}
/**
- * set the owner in the rr structure
+ * \brief set the owner in the rr structure
+ * \param[in] *rr rr to operate on
+ * \param[in] *owner set to this owner
+ * \return void
*/
void
ldns_rr_set_owner(ldns_rr *rr, ldns_rdf *owner)
}
/**
- * set the owner in the rr structure
+ * \brief set the ttl in the rr structure
+ * \param[in] *rr rr to operate on
+ * \param[in] ttl set to this ttl
+ * \return void
*/
void
ldns_rr_set_ttl(ldns_rr *rr, uint32_t ttl)
}
/**
- * set the rd_count in the rr
+ * \brief set the rd_count in the rr
+ * \param[in] *rr rr to operate on
+ * \param[in] count set to this count
+ * \return void
*/
void
ldns_rr_set_rd_count(ldns_rr *rr, uint16_t count)
}
/**
- * set the type in the rr
+ * \brief set the type in the rr
+ * \param[in] *rr rr to operate on
+ * \param[in] tt_type set to this type
+ * \return void
*/
void
ldns_rr_set_type(ldns_rr *rr, ldns_rr_type rr_type)
}
/**
- * set the class in the rr
+ * \brief set the class in the rr
+ * \param[in] *rr rr to operate on
+ * \param[in] rr_class set to this class
+ * \return void
*/
void
ldns_rr_set_class(ldns_rr *rr, ldns_rr_class rr_class)
}
/**
- * set rd_field member in the rr, it will be
+ * set rd_field member, it will be
* placed in the next available spot
+ * \param[in] *rr rr to operate on
+ * \param[in] *f the data field member to set
+ * \return bool
*/
bool
ldns_rr_push_rdf(ldns_rr *rr, ldns_rdf *f)
}
/**
- *
+ * set the rdata field member counter
+ * \param[in] *rr rr to operate on
+ * \param[in] nr the number to set
+ * \return ldns_rdf *
*/
ldns_rdf *
ldns_rr_rdf(ldns_rr *rr, uint16_t nr)
/**
* return the owner name of an rr structure
+ * \param[in] *rr rr to operate on
+ * \return ldns_rdf *
*/
ldns_rdf *
ldns_rr_owner(ldns_rr *rr)
}
+/** \cond */
static const ldns_rdf_type type_0_wireformat[] = { LDNS_RDF_TYPE_UNKNOWN };
static const ldns_rdf_type type_a_wireformat[] = { LDNS_RDF_TYPE_A };
static const ldns_rdf_type type_ns_wireformat[] = { LDNS_RDF_TYPE_DNAME };
static const ldns_rdf_type type_dnskey_wireformat[] = {
LDNS_RDF_TYPE_INT16, LDNS_RDF_TYPE_INT8, LDNS_RDF_TYPE_ALG, LDNS_RDF_TYPE_B64
};
+/** \endcond */
+/** \cond */
static ldns_rr_descriptor rdata_field_descriptors[] = {
/* 0 */
{ 0, NULL, 1, 1, type_0_wireformat, LDNS_RDF_TYPE_NONE },
/* 48 */
{LDNS_RR_TYPE_DNSKEY, "DNSKEY", 4, 4, type_dnskey_wireformat, LDNS_RDF_TYPE_NONE }
};
+/** \endcond */
+/**
+ * \def RDATA_FIELD_DESCRIPTORS_COUNT
+ * computes the number of rdata fields
+ */
#define RDATA_FIELD_DESCRIPTORS_COUNT \
(sizeof(rdata_field_descriptors)/sizeof(rdata_field_descriptors[0]))