1 /************************************************************************
2  *   IRC - Internet Relay Chat, ircd/res_comp_ext.h
3  *   Copyright (C) 1997 Alain Nissen
4  *
5  *   This program is free software; you can redistribute it and/or modify
6  *   it under the terms of the GNU General Public License as published by
7  *   the Free Software Foundation; either version 1, or (at your option)
8  *   any later version.
9  *
10  *   This program is distributed in the hope that it will be useful,
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *   GNU General Public License for more details.
14  *
15  *   You should have received a copy of the GNU General Public License
16  *   along with this program; if not, write to the Free Software
17  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 /*  This file contains external definitions for global variables and functions
21     defined in ircd/res_comp.c.
22  */
23 
24 /*  External definitions for global functions.
25  */
26 #ifndef RES_COMP_C
27 #define EXTERN extern
28 #else /* RES_COMP_C */
29 #define EXTERN
30 #endif /* RES_COMP_C */
31 EXTERN int ircd_dn_expand (const u_char *msg, const u_char *eomorig,
32 			       const u_char *comp_dn, char *exp_dn,
33 			       int length);
34 EXTERN int ircd_dn_comp (const char *exp_dn, u_char *comp_dn, int length,
35 			     u_char **dnptrs, u_char **lastdnptr);
36 EXTERN int __ircd_dn_skipname (const u_char *comp_dn, const u_char *eom);
37 EXTERN u_int16_t ircd_getshort (register const u_char *msgp);
38 EXTERN u_int32_t ircd_getlong (register const u_char *msgp);
39 EXTERN void ircd__putshort (register u_int16_t s, register u_char *msgp);
40 EXTERN void ircd__putlong (register u_int32_t l, register u_char *msgp);
41 #ifdef  NEXT
42 EXTERN u_int16_t res_getshort (register const u_char *msgp);
43 #endif /* NEXT */
44 #undef EXTERN
45