Merge commit '06307114472bd8aad5ff18ccdb8e25f128ae6652'
[unleashed.git] / usr / src / lib / libresolv / crossl.h
blob647a807c539ee63d55ddb90d2a0c74ca4aaa039a
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.
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.
13 * Copyright 2015 Gary Mills
16 #ifndef _CROSSL_H
17 #define _CROSSL_H
20 * Definitions needed for cross-linkages between source files
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
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 *);
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);
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();
45 #ifdef __cplusplus
47 #endif
49 #endif /* _CROSSL_H */