]> git.sur5r.net Git - openldap/blob - libraries/msdos/winsock/include/krb/mit/wshelper.h
971c85a49082446fe4820ac76448f868cface8d9
[openldap] / libraries / msdos / winsock / include / krb / mit / wshelper.h
1 /*
2         WSHelper DNS/Hesiod Library for WINSOCK
3         wshelper.h
4 */
5
6 #ifndef _WSHELPER_
7 #define _WSHELPER_
8
9 #include <winsock.h>
10 #include <resolv.h>
11 #include <hesiod.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 int FAR PASCAL res_mkquery(int op, char FAR *dname, int qclass, int type,
18                            char FAR *data, int datalen, struct rrec FAR *newrr,
19                            char FAR *buf, int buflen);
20
21 int FAR PASCAL res_send(char FAR *msg, int msglen, char FAR *answer, int anslen);
22
23 int FAR PASCAL res_init();
24
25 int FAR PASCAL dn_comp(char FAR *exp_dn, char FAR *comp_dn, int length,
26                        char FAR * FAR *dnptrs, char FAR * FAR *lastdnptr);
27
28 int FAR PASCAL dn_expand(char FAR *msg, char FAR *eomorig, char FAR *comp_dn,
29                          char FAR *exp_dn, int length);
30
31 struct hostent FAR* FAR PASCAL rgethostbyname(char FAR *name);
32
33 struct hostent FAR* FAR PASCAL rgethostbyaddr(char FAR *addr, int len, int type);
34
35 LPSTR FAR PASCAL hes_to_bind(char FAR *HesiodName, char FAR *HesiodNameType);
36      
37 LPSTR * FAR PASCAL hes_resolve(char FAR *HesiodName, char FAR *HesiodNameType);
38
39 int FAR PASCAL hes_error(void);
40
41 void FAR PASCAL res_setopts(long opts);
42
43 long FAR PASCAL res_getopts(void);
44
45 unsigned long FAR PASCAL inet_aton(register const char *cp, struct in_addr *addr);
46
47 LPSTR FAR PASCAL gethinfobyname(LPSTR name);
48
49 LPSTR FAR PASCAL getmxbyname(LPSTR name);
50
51 LPSTR FAR PASCAL getrecordbyname(LPSTR name, int rectype);
52
53 DWORD FAR PASCAL rrhost( LPSTR lpHost );
54
55 struct servent FAR * FAR PASCAL rgetservbyname(LPSTR name, LPSTR proto);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif  /* _WSHELPER_ */
62