Asterisk - The Open Source Telephony Project  18.5.0
dns_naptr.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2015, Digium, Inc.
5  *
6  * Joshua Colp <[email protected]>
7  *
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.
13  *
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.
17  */
18 
19 /*! \file
20  * \brief DNS NAPTR Record Parsing API
21  * \author Joshua Colp <[email protected]>
22  */
23 
24 #ifndef _ASTERISK_DNS_NAPTR_H
25 #define _ASTERISK_DNS_NAPTR_H
26 
27 #if defined(__cplusplus) || defined(c_plusplus)
28 extern "C" {
29 #endif
30 
31 /*!
32  * \brief Get the flags from a NAPTR record
33  *
34  * \param record The DNS record
35  *
36  * \return the flags
37  */
38 const char *ast_dns_naptr_get_flags(const struct ast_dns_record *record);
39 
40 /*!
41  * \brief Get the service from a NAPTR record
42  *
43  * \param record The DNS record
44  *
45  * \return the service
46  */
47 const char *ast_dns_naptr_get_service(const struct ast_dns_record *record);
48 
49 /*!
50  * \brief Get the regular expression from a NAPTR record
51  *
52  * \param record The DNS record
53  *
54  * \return the regular expression
55  */
56 const char *ast_dns_naptr_get_regexp(const struct ast_dns_record *record);
57 
58 /*!
59  * \brief Get the replacement value from a NAPTR record
60  *
61  * \param record The DNS record
62  *
63  * \return the replacement value
64  */
65 const char *ast_dns_naptr_get_replacement(const struct ast_dns_record *record);
66 
67 /*!
68  * \brief Get the order from a NAPTR record
69  *
70  * \param record The DNS record
71  *
72  * \return the order
73  */
74 unsigned short ast_dns_naptr_get_order(const struct ast_dns_record *record);
75 
76 /*!
77  * \brief Get the preference from a NAPTR record
78  *
79  * \param record The DNS record
80  *
81  * \return the preference
82  */
83 unsigned short ast_dns_naptr_get_preference(const struct ast_dns_record *record);
84 
85 #if defined(__cplusplus) || defined(c_plusplus)
86 }
87 #endif
88 
89 #endif /* _ASTERISK_DNS_NAPTR_H */
For AST_LIST.
Definition: dns_internal.h:39
const char * ast_dns_naptr_get_regexp(const struct ast_dns_record *record)
Get the regular expression from a NAPTR record.
Definition: dns_naptr.c:616
unsigned short ast_dns_naptr_get_preference(const struct ast_dns_record *record)
Get the preference from a NAPTR record.
Definition: dns_naptr.c:640
const char * ast_dns_naptr_get_service(const struct ast_dns_record *record)
Get the service from a NAPTR record.
Definition: dns_naptr.c:608
const char * ast_dns_naptr_get_flags(const struct ast_dns_record *record)
Get the flags from a NAPTR record.
Definition: dns_naptr.c:600
unsigned short ast_dns_naptr_get_order(const struct ast_dns_record *record)
Get the order from a NAPTR record.
Definition: dns_naptr.c:632
const char * ast_dns_naptr_get_replacement(const struct ast_dns_record *record)
Get the replacement value from a NAPTR record.
Definition: dns_naptr.c:624