xref: /titanic_51/usr/src/lib/libresolv/crossl.h (revision c365cc98d1939449e0db2884c4fcb62728ee2e59)
1 /*
2  * This file and its contents are supplied under the terms of the
3  * Common Development and Distribution License ("CDDL"), version 1.0.
4  * You may only use this file in accordance with the terms of version
5  * 1.0 of the CDDL.
6  *
7  * A full copy of the text of the CDDL should have accompanied this
8  * source.  A copy of the CDDL is also available via the Internet at
9  * http://www.illumos.org/license/CDDL.
10  */
11 
12 /*
13  * Copyright 2015 Gary Mills
14  */
15 
16 #ifndef _CROSSL_H
17 #define	_CROSSL_H
18 
19 /*
20  * Definitions needed for cross-linkages between source files
21  */
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 extern int dn_comp(u_char *, u_char *, int, u_char **, u_char **);
28 extern int dn_expand(u_char *, u_char *, u_char *, u_char *, int);
29 extern int dn_skipname(u_char *, u_char *);
30 
31 extern int res_init(void);
32 extern int res_mkquery(int, char *, int, int, char *, int, struct rrec *,
33     char *, int);
34 extern int res_query(char *, int, int, u_char *, int);
35 extern int res_querydomain(char *, char *, int, int, u_char *, int);
36 extern int res_search(char *, int, int, u_char *, int);
37 extern int res_send(char *, int, char *, int);
38 
39 extern void putlong(u_long, u_char *);
40 extern void putshort(u_short, u_char *);
41 extern void p_query(char *);
42 extern void _res_close();
43 
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* _CROSSL_H */
50