/[cvs]/eggdrop1.8/src/dns.h
ViewVC logotype

Contents of /eggdrop1.8/src/dns.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Aug 5 18:12:05 2010 UTC (8 years, 10 months ago) by pseudo
Branch: MAIN
CVS Tags: HEAD
Branch point for: gettext
Changes since 1.1: +4 -3 lines
File MIME type: text/x-csrc
Added new, full IPv6 support to eggdrop.

1 /*
2 * dns.h
3 * stuff used by dns.c
4 *
5 * $Id: dns.h,v 1.1.1.1 2010/07/26 21:11:06 simple Exp $
6 */
7 /*
8 * Written by Fabian Knittel <fknittel@gmx.de>
9 *
10 * Copyright (C) 1999 - 2010 Eggheads Development Team
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
27 #ifndef _EGG_DNS_H
28 #define _EGG_DNS_H
29
30 typedef struct {
31 char *name;
32 int (*expmem) (void *);
33 void (*event) (sockname_t *, char *, int, void *);
34 } devent_type;
35
36 typedef struct {
37 char *proc; /* Tcl proc */
38 char *paras; /* Additional parameters */
39 sockname_t sockname;
40 } devent_tclinfo_t;
41
42 typedef struct devent_str {
43 struct devent_str *next; /* Pointer to next dns_event */
44 devent_type *type;
45 u_8bit_t lookup; /* RES_IPBYHOST or RES_HOSTBYIP */
46 union {
47 sockname_t *ip_addr; /* Pointer to address placeholder */
48 char *hostname; /* Hostname */
49 } res_data;
50 void *other; /* Data specific to the event type */
51 } devent_t;
52
53 #endif /* _EGG_DNS_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23