diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-23 01:24:17 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-23 01:24:17 +0000 |
commit | 35d4c57051574b33fd9b120932b385be35bd1f65 (patch) | |
tree | 40d87b1beee5f95daecd7ec58d0863b69878c1bf /ares/ares.h | |
parent | f6114f2ec4fcfe966cb4b30303aaa06666165798 (diff) | |
download | curl-35d4c57051574b33fd9b120932b385be35bd1f65.tar.gz |
- Jakub Hrozek renamed addrttl and addr6ttl structs to ares_addrttl and
ares_addr6ttl in order to prevent name space pollution, along with
necessary changes to code base and man pages.This change does not break
ABI, there is no need to recompile existing applications. But existing
applications using these structs with the old name will need source code
adjustments when recompiled using c-ares 1.6.1.
Diffstat (limited to 'ares/ares.h')
-rw-r--r-- | ares/ares.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ares/ares.h b/ares/ares.h index e79debddb..3e45a90f2 100644 --- a/ares/ares.h +++ b/ares/ares.h @@ -416,15 +416,12 @@ struct ares_in6_addr { } _S6_un; }; -/* - * TODO: the structs 'addrttl' and 'addr6ttl' really should get their names - * prefixed with ares_ to keep them in our own "name space". - */ -struct addrttl { +struct ares_addrttl { struct in_addr ipaddr; int ttl; }; -struct addr6ttl { + +struct ares_addr6ttl { struct ares_in6_addr ip6addr; int ttl; }; @@ -454,13 +451,13 @@ struct ares_txt_reply { CARES_EXTERN int ares_parse_a_reply(const unsigned char *abuf, int alen, struct hostent **host, - struct addrttl *addrttls, + struct ares_addrttl *addrttls, int *naddrttls); CARES_EXTERN int ares_parse_aaaa_reply(const unsigned char *abuf, int alen, struct hostent **host, - struct addr6ttl *addrttls, + struct ares_addr6ttl *addrttls, int *naddrttls); CARES_EXTERN int ares_parse_ptr_reply(const unsigned char *abuf, |