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
  28 dn_comp(u_char *, u_char *, int, u_char **, u_char **);
  29 extern int
  30 dn_expand(u_char *, u_char *, u_char *, u_char *, int);
  31 extern int
  32 dn_skipname(u_char *, u_char *);
  33 
  34 extern int
  35 res_init(void);
  36 extern int
  37 res_mkquery(int, char *, int, int, char *, int, struct rrec *, char *, int);
  38 extern int
  39 res_query(char *, int, int, u_char *, int);
  40 extern int
  41 res_querydomain(char *, char *, int, int, u_char *, int);
  42 extern int
  43 res_search(char *, int, int, u_char *, int);
  44 extern int
  45 res_send(char *, int, char *, int);
  46 
  47 extern void
  48 putlong(u_long, u_char *);
  49 extern void
  50 putshort(u_short, u_char *);
  51 extern void
  52 p_query(char *);
  53 extern void
  54 _res_close();
  55 
  56 
  57 #ifdef __cplusplus
  58 }
  59 #endif
  60 
  61 #endif /* _CROSSL_H */