summaryrefslogtreecommitdiffstats
path: root/server/resolv/ares/ares_parse_txt_reply.h
blob: b1e326985939f4676c4d88f6e8a2326470c3170b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __ARES_PARSE_TXT_REPLY_H__
#define __ARES_PARSE_TXT_REPLY_H__

struct txt_reply {
    int length;         /* length of the text */
    unsigned char *txt; /* may contain nulls */
};

int _ares_parse_txt_reply(const unsigned char* abuf, int alen,
                          struct txt_reply **txt_out, int *ntxtreply);

#endif /* __ARES_PARSE_TXT_REPLY_H__ */