Sat Aug 6 00:39:28 2011

Asterisk developer's documentation


dnsmgr.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 1999 - 2005, Digium, Inc.
00005  *
00006  * Kevin P. Fleming <kpfleming@digium.com>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*! \file
00020  * \brief Background DNS update manager
00021  */
00022 
00023 #ifndef _ASTERISK_DNSMGR_H
00024 #define _ASTERISK_DNSMGR_H
00025 
00026 #if defined(__cplusplus) || defined(c_plusplus)
00027 extern "C" {
00028 #endif
00029 
00030 #include <netinet/in.h>
00031 
00032 struct ast_dnsmgr_entry;
00033 
00034 struct ast_dnsmgr_entry *ast_dnsmgr_get(const char *name, struct in_addr *result);
00035 
00036 void ast_dnsmgr_release(struct ast_dnsmgr_entry *entry);
00037 
00038 int ast_dnsmgr_lookup(const char *name, struct in_addr *result, struct ast_dnsmgr_entry **dnsmgr);
00039 
00040 /*!
00041  * \brief Force a refresh of a dnsmgr entry
00042  *
00043  * \retval non-zero if the result is different than the previous result
00044  * \retval zero if the result is the same as the previous result 
00045  */
00046 int ast_dnsmgr_refresh(struct ast_dnsmgr_entry *entry);
00047 
00048 /*!
00049  * \brief Check is see if a dnsmgr entry has changed
00050  *
00051  * \retval non-zero if the dnsmgr entry has changed since the last call to
00052  *                  this function
00053  * \retval zero     if the dnsmgr entry has not changed since the last call to
00054  *                  this function
00055  */
00056 int ast_dnsmgr_changed(struct ast_dnsmgr_entry *entry);
00057 
00058 #if defined(__cplusplus) || defined(c_plusplus)
00059 }
00060 #endif /* c_plusplus */
00061 
00062 #endif /* ASTERISK_DNSMGR_H */

Generated on Sat Aug 6 00:39:28 2011 for Asterisk - the Open Source PBX by  doxygen 1.4.7