summaryrefslogtreecommitdiff
path: root/include/asterisk/dnsmgr.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-03-14 21:20:36 +0000
committerRussell Bryant <russell@russellbryant.com>2008-03-14 21:20:36 +0000
commit928475694acb75e5cd7b503eb9213090ae3fe629 (patch)
tree591b3f1a83a7eecb0e6e5acd70faa7e9b70cb13d /include/asterisk/dnsmgr.h
parent1e5e1cbc0c9adeedafbd3d367821ab1dafe8c850 (diff)
Doxygenify dnsmgr.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108857 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/dnsmgr.h')
-rw-r--r--include/asterisk/dnsmgr.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/asterisk/dnsmgr.h b/include/asterisk/dnsmgr.h
index 33b9556e7..db8be1f3c 100644
--- a/include/asterisk/dnsmgr.h
+++ b/include/asterisk/dnsmgr.h
@@ -29,12 +29,52 @@ extern "C" {
#include "asterisk/network.h"
+/*!
+ * \brief A DNS manager entry
+ *
+ * This is an opaque type.
+ */
struct ast_dnsmgr_entry;
+/*!
+ * \brief Allocate a new DNS manager entry
+ *
+ * \arg name the hostname
+ * \arg result where the DNS manager should store the IP address as it refreshes it.
+ * it.
+ *
+ * This function allocates a new DNS manager entry object, and fills it with the
+ * provided hostname and IP address. This function does not force an initial lookup
+ * of the IP address. So, generally, this should be used when the initial address
+ * is already known.
+ *
+ * \return a DNS manager entry
+ */
struct ast_dnsmgr_entry *ast_dnsmgr_get(const char *name, struct in_addr *result);
+/*!
+ * \brief Free a DNS manager entry
+ *
+ * \arg entry the DNS manager entry to free
+ *
+ * \return nothing
+ */
void ast_dnsmgr_release(struct ast_dnsmgr_entry *entry);
+/*!
+ * \brief Allocate and initialize a DNS manager entry
+ *
+ * \arg name the hostname
+ * \arg result where to store the IP address as the DNS manager refreshes it
+ * \arg dnsmgr Where to store the allocate DNS manager entry
+ *
+ * This function allocates a new DNS manager entry object, and fills it with
+ * the provided hostname and IP address. This function _does_ force an initial
+ * lookup, so it may block for some period of time.
+ *
+ * \retval 0 success
+ * \retval non-zero failure
+ */
int ast_dnsmgr_lookup(const char *name, struct in_addr *result, struct ast_dnsmgr_entry **dnsmgr);
/*!