ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/firedns.h
(Generate patch)

Comparing hopm/trunk/src/firedns.h (file contents):
Revision 5390 by michael, Sun Jan 18 14:13:05 2015 UTC vs.
Revision 8153 by michael, Fri Apr 7 18:09:43 2017 UTC

# Line 29 | Line 29 | Foundation, Inc., 59 Temple Place, Suite
29   #define FDNS_CONFIG_PREF     HOPM_ETCDIR "/firedns.conf"
30   /* fallback config file */
31   #define FDNS_CONFIG_FBCK     "/etc/resolv.conf"
32 /* Number of seconds to wait for a reply */
33 #define FDNS_TIMEOUT         5
32   /* DNS well known port */
33   #define FDNS_PORT            53
34   /* name to IPv4 address */
# Line 73 | Line 71 | struct firedns_result
71   };
72  
73   /* non-blocking functions */
74 < extern int firedns_getip(int type, const char * const name, void *info);
75 < extern struct firedns_result *firedns_getresult(const int fd);
74 > extern int firedns_getip(int, const char *const, void *);
75 > extern struct firedns_result *firedns_getresult(const int);
76  
77   /* low-timeout blocking functions */
78 < extern char *firedns_resolveip(int type, const char * const name);
79 < extern struct in_addr *firedns_resolveip4(const char * const name);
80 < extern struct in6_addr *firedns_resolveip6(const char * const name);
78 > extern void *firedns_resolveip(int, const char *const);
79 > extern struct in_addr *firedns_resolveip4(const char *const);
80 > extern struct in6_addr *firedns_resolveip6(const char *const);
81  
82   extern void firedns_init(void);
83   extern void firedns_cycle(void);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)