| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
DNS TXT Record Parsing API. More...

Go to the source code of this file.
| Functions | |
| void | ast_dns_txt_free_strings (struct ast_vector_string *strings) | 
| Free strings returned by ast_dns_txt_get_strings. | |
| size_t | ast_dns_txt_get_count (const struct ast_dns_record *record) | 
| Get the number of character strings in a TXT record. | |
| struct ast_vector_string * | ast_dns_txt_get_strings (const struct ast_dns_record *record) | 
| Get the character strings from this TXT record. | |
DNS TXT Record Parsing API.
Definition in file dns_txt.h.
| void ast_dns_txt_free_strings | ( | struct ast_vector_string * | strings | ) | 
Free strings returned by ast_dns_txt_get_strings.
| strings | The vector to free | 
Definition at line 123 of file dns_txt.c.
References ast_free, AST_VECTOR_CALLBACK_VOID, and AST_VECTOR_PTR_FREE.
Referenced by ast_dns_txt_get_strings().
| size_t ast_dns_txt_get_count | ( | const struct ast_dns_record * | record | ) | 
Get the number of character strings in a TXT record.
| record | The DNS record | 
Definition at line 68 of file dns_txt.c.
References ast_assert, ast_dns_record_get_rr_type(), and ast_dns_txt_record::count.
Referenced by ast_dns_txt_get_strings().
| struct ast_vector_string * ast_dns_txt_get_strings | ( | const struct ast_dns_record * | record | ) | 
Get the character strings from this TXT record.
| record | The DNS record | 
| NULL | Unable to allocate memory | 
Definition at line 75 of file dns_txt.c.
References ast_assert, ast_dns_record_get_data(), ast_dns_record_get_data_size(), ast_dns_record_get_rr_type(), ast_dns_txt_free_strings(), ast_dns_txt_get_count(), ast_free, ast_malloc, AST_VECTOR_APPEND, AST_VECTOR_INIT, and NULL.