]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/resolve.h
Minimal changes (needed for merging resolver changes)
[ngircd-alex.git] / src / ngircd / resolve.h
index 596a0832bebbc01dd4152c9bfbf4f39acbfb2182..0791229123b47acf8833e466ceef3a57707b7b42 100644 (file)
@@ -8,7 +8,7 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: resolve.h,v 1.8 2005/03/19 18:43:49 fw Exp $
+ * $Id: resolve.h,v 1.10 2005/09/11 11:42:48 fw Exp $
  *
  * Asynchronous resolver (header)
  */
@@ -17,6 +17,7 @@
 #ifndef __resolve_h__
 #define __resolve_h__
 
+#include "array.h"
 
 #ifdef HAVE_SYS_SELECT_H
 #      include <sys/select.h>
 
 typedef struct _Res_Stat
 {
-       int pid;                        /* PID des Child-Prozess */
-       int pipe[2];                    /* Pipe fuer IPC */
+       int pid;                        /* PID of resolver process */
+       int pipe[2];                    /* pipe for lookup result */
        int stage;                      /* Hostname/IP(0) or IDENT(1)? */
-       int bufpos;                     /* Position in buffer */
-       char buffer[HOST_LEN];          /* Buffer */
+       array buffer;                   /* resolved hostname / ident result */
 } RES_STAT;
 
 
-GLOBAL fd_set Resolver_FDs;
-
-
-GLOBAL void Resolve_Init PARAMS(( void ));
-
 #ifdef IDENTAUTH
 GLOBAL RES_STAT *Resolve_Addr PARAMS(( struct sockaddr_in *Addr, int Sock ));
 #else
@@ -50,6 +45,4 @@ GLOBAL RES_STAT *Resolve_Name PARAMS(( char *Host ));
 
 
 #endif
-
-
 /* -eof- */