dns_srv.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 SRV Record Parsing API
00021  * \author Joshua Colp <jcolp@digium.com>
00022  */
00023 
00024 #ifndef _ASTERISK_DNS_SRV_H
00025 #define _ASTERISK_DNS_SRV_H
00026 
00027 #if defined(__cplusplus) || defined(c_plusplus)
00028 extern "C" {
00029 #endif
00030 
00031 /*!
00032  * \brief Get the hostname from an SRV record
00033  *
00034  * \param record The DNS record
00035  *
00036  * \return the hostname
00037  */
00038 const char *ast_dns_srv_get_host(const struct ast_dns_record *record);
00039 
00040 /*!
00041  * \brief Get the priority from an SRV record
00042  *
00043  * \param record The DNS record
00044  *
00045  * \return the priority
00046  */
00047 unsigned short ast_dns_srv_get_priority(const struct ast_dns_record *record);
00048 
00049 /*!
00050  * \brief Get the weight from an SRV record
00051  *
00052  * \param record The DNS record
00053  *
00054  * \return the weight
00055  */
00056 unsigned short ast_dns_srv_get_weight(const struct ast_dns_record *record);
00057 
00058 /*!
00059  * \brief Get the port from an SRV record
00060  *
00061  * \param record The DNS record
00062  *
00063  * \return the port
00064  */
00065 unsigned short ast_dns_srv_get_port(const struct ast_dns_record *record);
00066 
00067 #if defined(__cplusplus) || defined(c_plusplus)
00068 }
00069 #endif
00070 
00071 #endif /* _ASTERISK_DNS_SRV_H */

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