/[cvs]/eggdrop1.9/src/tclhash.h
ViewVC logotype

Annotation of /eggdrop1.9/src/tclhash.h

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


Revision 1.27 - (hide annotations) (download) (as text)
Thu Feb 7 22:19:05 2002 UTC (17 years, 8 months ago) by wcc
Branch: MAIN
Changes since 1.26: +2 -2 lines
File MIME type: text/x-csrc
Updated copyright info for 2002

1 guppy 1.8 /*
2 fabian 1.3 * tclhash.h
3 guppy 1.8 *
4 wcc 1.27 * $Id: tclhash.h,v 1.26 2001/12/09 03:55:58 stdarg Exp $
5 fabian 1.3 */
6 guppy 1.8 /*
7     * Copyright (C) 1997 Robey Pointer
8 wcc 1.27 * Copyright (C) 1999, 2000, 2001, 2002 Eggheads Development Team
9 guppy 1.8 *
10 fabian 1.3 * This program is free software; you can redistribute it and/or
11     * modify it under the terms of the GNU General Public License
12     * as published by the Free Software Foundation; either version 2
13     * of the License, or (at your option) any later version.
14 guppy 1.8 *
15 fabian 1.3 * This program is distributed in the hope that it will be useful,
16     * but WITHOUT ANY WARRANTY; without even the implied warranty of
17     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18     * GNU General Public License for more details.
19 guppy 1.8 *
20 fabian 1.3 * You should have received a copy of the GNU General Public License
21     * along with this program; if not, write to the Free Software
22     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23     */
24    
25     #ifndef _EGG_TCLHASH_H
26     #define _EGG_TCLHASH_H
27 segfault 1.1
28 stdarg 1.14 /* Flags for bind entries */
29 stdarg 1.12 /* Does the callback want their client_data inserted as the first argument? */
30     #define BIND_WANTS_CD 1
31 fabian 1.7
32 stdarg 1.14 /* Flags for bind tables */
33     #define BIND_STRICT_ATTR 0x80
34 stdarg 1.15 #define BIND_BREAKABLE 0x100
35 stdarg 1.16
36     /* Flags for return values from bind callbacks */
37     #define BIND_RET_LOG 1
38     #define BIND_RET_BREAK 2
39    
40 stdarg 1.10 /* This holds the final information for a function listening on a bind
41     table. */
42 stdarg 1.9 typedef struct bind_entry_b {
43     struct bind_entry_b *next;
44     struct flag_record user_flags;
45     char *function_name;
46     Function callback;
47     void *client_data;
48     int hits;
49     int bind_flags;
50     } bind_entry_t;
51    
52 stdarg 1.10 /* This is the list of bind masks in a given table.
53     For instance, in the "msg" table you might have "pass", "op",
54     and "invite". */
55 stdarg 1.9 typedef struct bind_chain_b {
56 stdarg 1.11 struct bind_chain_b *next;
57 stdarg 1.9 bind_entry_t *entries;
58     char *mask;
59     int flags;
60     } bind_chain_t;
61    
62 stdarg 1.10 /* This is the highest-level structure. It's like the "msg" table
63     or the "pubm" table. */
64 stdarg 1.9 typedef struct bind_table_b {
65 stdarg 1.11 struct bind_table_b *next;
66 stdarg 1.9 bind_chain_t *chains;
67     char *name;
68 stdarg 1.13 char *syntax;
69 stdarg 1.14 int nargs;
70     int match_type;
71 stdarg 1.9 int flags;
72     } bind_table_t;
73 fabian 1.7
74 segfault 1.1 #ifndef MAKING_MODS
75 fabian 1.5
76 tothwolf 1.17 void kill_bind2(void);
77 fabian 1.7
78 stdarg 1.19 void check_tcl_dcc(const char *, int, const char *);
79 fabian 1.7 void check_tcl_chjn(const char *, const char *, int, char, int, const char *);
80     void check_tcl_chpt(const char *, const char *, int, int);
81     void check_tcl_bot(const char *, const char *, const char *);
82     void check_tcl_link(const char *, const char *);
83     void check_tcl_disc(const char *);
84     const char *check_tcl_filt(int, const char *);
85     int check_tcl_note(const char *, const char *, const char *);
86     void check_tcl_listen(const char *, int);
87 segfault 1.1 void check_tcl_time(struct tm *);
88 fabian 1.7 void check_tcl_nkch(const char *, const char *);
89     void check_tcl_away(const char *, int, const char *);
90     void check_tcl_event(const char *);
91 stdarg 1.24 int check_tcl_chat(const char *, int, const char *);
92 stdarg 1.23 void check_tcl_act(const char *, int, const char *);
93     void check_tcl_bcst(const char *, int, const char *);
94 stdarg 1.24 void check_tcl_chon(char *, int);
95     void check_tcl_chof(char *, int);
96 fabian 1.7
97 stdarg 1.14 int check_bind(bind_table_t *table, const char *match, struct flag_record *_flags, ...);
98    
99     bind_table_t *add_bind_table2(const char *name, int nargs, const char *syntax, int match_type, int flags);
100    
101     void del_bind_table2(bind_table_t *table);
102    
103     bind_table_t *find_bind_table2(const char *name);
104    
105     int add_bind_entry(bind_table_t *table, const char *flags, const char *mask, const char *function_name, int bind_flags, Function callback, void *client_data);
106    
107 stdarg 1.26 int del_bind_entry(bind_table_t *table, const char *flags, const char *mask, const char *function_name, void *cdata);
108 stdarg 1.14
109     void add_builtins2(bind_table_t *table, cmd_t *cmds);
110    
111     void rem_builtins2(bind_table_t *table, cmd_t *cmds);
112 segfault 1.1
113     #endif
114 fabian 1.3
115     #endif /* _EGG_TCLHASH_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23