dns_naptr.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 2015, Digium, Inc.
00005  *
00006  * Joshua Colp <jcolp@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 DNS NAPTR Record Parsing API
00021  * \author Joshua Colp <jcolp@digium.com>
00022  */
00023 
00024 #ifndef _ASTERISK_DNS_NAPTR_H
00025 #define _ASTERISK_DNS_NAPTR_H
00026 
00027 #if defined(__cplusplus) || defined(c_plusplus)
00028 extern "C" {
00029 #endif
00030 
00031 /*!
00032  * \brief Get the flags from a NAPTR record
00033  *
00034  * \param record The DNS record
00035  *
00036  * \return the flags
00037  */
00038 const char *ast_dns_naptr_get_flags(const struct ast_dns_record *record);
00039 
00040 /*!
00041  * \brief Get the service from a NAPTR record
00042  *
00043  * \param record The DNS record
00044  *
00045  * \return the service
00046  */
00047 const char *ast_dns_naptr_get_service(const struct ast_dns_record *record);
00048 
00049 /*!
00050  * \brief Get the regular expression from a NAPTR record
00051  *
00052  * \param record The DNS record
00053  *
00054  * \return the regular expression
00055  */
00056 const char *ast_dns_naptr_get_regexp(const struct ast_dns_record *record);
00057 
00058 /*!
00059  * \brief Get the replacement value from a NAPTR record
00060  *
00061  * \param record The DNS record
00062  *
00063  * \return the replacement value
00064  */
00065 const char *ast_dns_naptr_get_replacement(const struct ast_dns_record *record);
00066 
00067 /*!
00068  * \brief Get the order from a NAPTR record
00069  *
00070  * \param record The DNS record
00071  *
00072  * \return the order
00073  */
00074 unsigned short ast_dns_naptr_get_order(const struct ast_dns_record *record);
00075 
00076 /*!
00077  * \brief Get the preference from a NAPTR record
00078  *
00079  * \param record The DNS record
00080  *
00081  * \return the preference
00082  */
00083 unsigned short ast_dns_naptr_get_preference(const struct ast_dns_record *record);
00084 
00085 #if defined(__cplusplus) || defined(c_plusplus)
00086 }
00087 #endif
00088 
00089 #endif /* _ASTERISK_DNS_NAPTR_H */

Generated on Thu Apr 16 06:27:33 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6