]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/resolve.h
Remove INT, LONG, BOOLEAN, STATIC, CONST, CHAR datatypes.
[ngircd-alex.git] / src / ngircd / resolve.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
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 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * $Id: resolve.h,v 1.8 2005/03/19 18:43:49 fw Exp $
12  *
13  * Asynchronous resolver (header)
14  */
15
16
17 #ifndef __resolve_h__
18 #define __resolve_h__
19
20
21 #ifdef HAVE_SYS_SELECT_H
22 #       include <sys/select.h>
23 #endif
24 #include <sys/types.h>
25 #include <netinet/in.h>
26
27
28 typedef struct _Res_Stat
29 {
30         int pid;                        /* PID des Child-Prozess */
31         int pipe[2];                    /* Pipe fuer IPC */
32         int stage;                      /* Hostname/IP(0) or IDENT(1)? */
33         int bufpos;                     /* Position in buffer */
34         char buffer[HOST_LEN];          /* Buffer */
35 } RES_STAT;
36
37
38 GLOBAL fd_set Resolver_FDs;
39
40
41 GLOBAL void Resolve_Init PARAMS(( void ));
42
43 #ifdef IDENTAUTH
44 GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr, int Sock ));
45 #else
46 GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr ));
47 #endif
48
49 GLOBAL RES_STAT *Resolve_Name PARAMS(( char *Host ));
50
51
52 #endif
53
54
55 /* -eof- */