107 size_t record_size,
record_fn generate,
char *buffer);
Representation of a string in DNS.
int(* record_fn)(void *record, char *buf)
Callback to write specific DNS record to an answer.
int ast_dns_test_generate_result(struct ast_dns_query *query, void *records, size_t num_records, size_t record_size, record_fn generate, char *buffer)
Generate a full DNS response for the given DNS records.
int ast_dns_test_write_domain(const char *string, char *buf)
Write a DNS domain to a buffer.
int ast_dns_test_write_string(const struct ast_dns_test_string *string, char *buf)
Write a DNS string to a buffer.