--- /dev/null
+#!/usr/bin/perl
+
+# this perl program takes the html output from
+# doxygen and creates and RFC like document
+# with the lDNS API. This document also has
+# some highlevel language in how to use
+# lDNS.
+
+use strict;
+
+# what to put in front and after
+my $func_head = "<t>
+<artwork>
+";
+my $func_foot = "</artwork>
+</t>
+";
+
+my $indoc = 0;
+my @current_func = ();
+while (<>) {
+ if (/^Function Documentation/) {
+ $indoc = 1;
+ next;
+ }
+ if ($indoc == 0) {
+ next;
+ }
+
+ if (/Definition at line/) {
+ # we are at the end of the current function
+ print $func_head;
+ print @current_func;
+ print $func_foot;
+ @current_func = ();
+ next;
+ }
+ push @current_func, $_;
+}
+
* the buffer, unlinke ldns_rdf_new()
* \param[in] s size of the buffer
* \param[in] t type of the rdf
- * \param[in] d pointer to the buffer to be copied
+ * \param[in] buf pointer to the buffer to be copied
* \return the new rdf structure or NULL on failure
*/
ldns_rdf *
* remove \\DDD, \\[space] and other escapes from the input
* See RFC 1035, section 5.1
* \param[in] word what to check
- * \param[in] lenght the string
+ * \param[in] length the string
* \return ldns_status mesg
*/
ldns_status
/**
* convert a string to a int16 in wireformat
* \param[in] rd the rdf where to put the data
- * \param[in] str the string to be converted
+ * \param[in] shortstr the string to be converted
* \return ldns_status
*/
ldns_status
/**
* convert a time string to a time value in wireformat
* \param[in] rd the rdf where to put the data
- * \param[in] str the string to be converted
+ * \param[in] time the string to be converted
* \return ldns_status
*/
ldns_status
/**
* convert a strings into a 4 byte int in wireformat
* \param[in] rd the rdf where to put the data
- * \param[in] str the string to be converted
+ * \param[in] longstr the string to be converted
* \return ldns_status
*/
ldns_status
/**
* convert a byte into wireformat
* \param[in] rd the rdf where to put the data
- * \param[in] str the string to be converted
+ * \param[in] bytestr the string to be converted
* \return ldns_status
*/
ldns_status