2 * Asterisk -- An open source telephony toolkit.
4 * Copyright (C) 1999 - 2005, Digium, Inc.
6 * Kevin P. Fleming <kpfleming@digium.com>
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
20 * \brief Background DNS update manager
23 #ifndef _ASTERISK_DNSMGR_H
24 #define _ASTERISK_DNSMGR_H
26 #if defined(__cplusplus) || defined(c_plusplus)
30 #include <netinet/in.h>
32 struct ast_dnsmgr_entry
;
34 struct ast_dnsmgr_entry
*ast_dnsmgr_get(const char *name
, struct in_addr
*result
);
36 void ast_dnsmgr_release(struct ast_dnsmgr_entry
*entry
);
38 int ast_dnsmgr_lookup(const char *name
, struct in_addr
*result
, struct ast_dnsmgr_entry
**dnsmgr
);
41 * \brief Force a refresh of a dnsmgr entry
43 * \retval non-zero if the result is different than the previous result
44 * \retval zero if the result is the same as the previous result
46 int ast_dnsmgr_refresh(struct ast_dnsmgr_entry
*entry
);
49 * \brief Check is see if a dnsmgr entry has changed
51 * \retval non-zero if the dnsmgr entry has changed since the last call to
53 * \retval zero if the dnsmgr entry has not changed since the last call to
56 int ast_dnsmgr_changed(struct ast_dnsmgr_entry
*entry
);
58 #if defined(__cplusplus) || defined(c_plusplus)
60 #endif /* c_plusplus */
62 #endif /* ASTERISK_DNSMGR_H */