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