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

Contents of /eggdrop1.9/src/proto.h

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


Revision 1.66 - (show annotations) (download) (as text)
Wed Jan 23 22:18:15 2002 UTC (17 years, 4 months ago) by ite
Branch: MAIN
Changes since 1.65: +1 -5 lines
File MIME type: text/x-csrc
* moved rmspace() from the core to libeggdrop
* deleted a couple of prototypes missing the relative function definition
* strchr_unescape() was still exported

1 /*
2 * proto.h
3 * prototypes for every function used outside its own module
4 *
5 * (i guess i'm not very modular, cuz there are a LOT of these.)
6 * with full prototyping, some have been moved to other .h files
7 * because they use structures in those
8 * (saves including those .h files EVERY time) - Beldin
9 *
10 * $Id: proto.h,v 1.65 2002/01/19 20:08:58 ite Exp $
11 */
12 /*
13 * Copyright (C) 1997 Robey Pointer
14 * Copyright (C) 1999, 2000, 2001 Eggheads Development Team
15 *
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 */
30
31 #ifndef _EGG_PROTO_H
32 #define _EGG_PROTO_H
33
34 #include "lush.h"
35
36 #include "irccmp.h"
37 #include "match.h"
38
39 #ifdef HAVE_DPRINTF
40 #define dprintf dprintf_eggdrop
41 #endif
42
43 struct chanset_t; /* keeps the compiler warnings down :) */
44 struct userrec;
45 struct maskrec;
46 struct igrec;
47 struct flag_record;
48 struct list_type;
49 struct tand_t_struct;
50
51 #ifndef MAKING_MODS
52 extern void (*encrypt_pass) (char *, char *);
53 extern char *(*encrypt_string) (char *, char *);
54 extern char *(*decrypt_string) (char *, char *);
55 extern int (*match_noterej) (struct userrec *, char *);
56 #endif
57
58 /* botcmd.c */
59 void bot_share(int, char *);
60
61 /* botnet.c */
62 void answer_local_whom(int, int);
63 char *lastbot(char *);
64 int nextbot(char *);
65 int in_chain(char *);
66 void tell_bots(int);
67 void tell_bottree(int, int);
68 int botlink(char *, int, char *);
69 int botunlink(int, char *, char *);
70 void dump_links(int);
71 void addbot(char *, char *, char *, char, int);
72 void updatebot(int, char *, char, int);
73 void rembot(char *);
74 struct tand_t_struct *findbot(char *);
75 void unvia(int, struct tand_t_struct *);
76 void check_botnet_pings();
77 int partysock(char *, char *);
78 int addparty(char *, char *, int, char, int, char *, int *);
79 void remparty(char *, int);
80 void partystat(char *, int, int, int);
81 int partynick(char *, int, char *);
82 int partyidle(char *, char *);
83 void partysetidle(char *, int, int);
84 void partyaway(char *, int, char *);
85 void zapfbot(int);
86 void tandem_relay(int, char *, int);
87 int getparty(char *, int);
88
89 /* botmsg.c */
90 int add_note(char *, char *, char *, int, int);
91 void tandout_but EGG_VARARGS(int, arg1);
92
93 /* chanprog.c */
94 void tell_verbose_status(int);
95 void tell_settings(int);
96 int logmodes(char *);
97 int isowner(char *);
98 char *masktype(int);
99 char *maskname(int);
100 void reaffirm_owners();
101 void rehash();
102 void reload();
103 void chanprog();
104 void check_timers();
105 void check_utimers();
106 void set_chanlist(const char *host, struct userrec *rec);
107 void clear_chanlist(void);
108 void clear_chanlist_member(const char *nick);
109
110 /* cmds.c */
111 int check_dcc_attrs(struct userrec *, int);
112 int check_dcc_chanattrs(struct userrec *, char *, int, int);
113 int stripmodes(char *);
114 char *stripmasktype(int);
115
116 /* dcc.c */
117 void failed_link(int);
118 void dupwait_notify(char *);
119
120 /* dccutil.c */
121 void dprintf EGG_VARARGS(int, arg1);
122 void chatout EGG_VARARGS(char *, arg1);
123 extern void (*shareout) ();
124 extern void (*sharein) (int, char *);
125 void chanout_but EGG_VARARGS(int, arg1);
126 void dcc_chatter(int);
127 void lostdcc(int);
128 void removedcc(int);
129 void makepass(char *);
130 void tell_dcc(int);
131 void not_away(int);
132 void set_away(int, char *);
133 void dcc_remove_lost(void);
134
135 void flush_lines(int, struct chat_info *);
136 struct dcc_t *find_idx(int);
137 int new_dcc(struct dcc_table *, int);
138 void del_dcc(int);
139 char *add_cr(char *);
140 void changeover_dcc(int, struct dcc_table *, int);
141
142 /* gotdcc.c */
143 void gotdcc(char *, char *, struct userrec *, char *);
144 void do_boot(int, char *, char *);
145 int detect_dcc_flood(time_t *, struct chat_info *, int);
146
147 /* main.c */
148 void fatal(const char *, int);
149 void patch(const char *);
150 void backup_userfile(void);
151
152 /* net.c */
153 unsigned long iptolong(IP);
154 IP getmyip();
155 struct in6_addr getmyip6();
156 void neterror(char *);
157 void setsock(int, int);
158 int allocsock(int, int);
159 int getsock(int);
160 void killsock(int);
161 int answer(int, char *, char *, unsigned short *, int);
162 inline int open_listen(int *, int);
163 int open_address_listen(char *, int *);
164 int open_telnet(char *, int);
165 int open_telnet_dcc(int, char *, char *);
166 int open_telnet_raw(int, char *, int);
167 void tputs(int, char *, unsigned int);
168 void dequeue_sockets();
169 int sockgets(char *, int *);
170 void tell_netdebug(int);
171 char *iptostr(IP);
172 char *getlocaladdr(int);
173 int sock_has_data(int, int);
174 int sockoptions(int sock, int operation, int sock_options);
175 int flush_inbuf(int idx);
176
177 /* tcl.c */
178 void do_tcl(char *, char *);
179 int readtclprog(char *fname);
180 int findidx(int);
181 int findanyidx(int);
182
183 /* userent.c */
184 void list_type_kill(struct list_type *);
185 int xtra_set();
186
187 /* userrec.c */
188 struct userrec *adduser(struct userrec *, char *, char *, char *, int);
189 void addhost_by_handle(char *, char *);
190 void clear_masks(struct maskrec *);
191 void clear_userlist(struct userrec *);
192 int u_pass_match(struct userrec *, char *);
193 int delhost_by_handle(char *, char *);
194 int ishost_for_handle(char *, char *);
195 int count_users(struct userrec *);
196 int deluser(char *);
197 void freeuser(struct userrec *);
198 int change_handle(struct userrec *, char *);
199 void correct_handle(char *);
200 int write_user(struct userrec *u, FILE * f, int shr);
201 void write_userfile(int);
202 struct userrec *check_dcclist_hand(char *);
203 void touch_laston(struct userrec *, char *, time_t);
204 void user_del_chan(char *);
205 char *fixfrom(char *);
206
207 /* users.c */
208 void addignore(char *, char *, char *, time_t);
209 int delignore(char *);
210 void tell_ignores(int, char *);
211 int match_ignore(char *);
212 void check_expired_ignores();
213 void autolink_cycle(char *);
214 void tell_file_stats(int, char *);
215 void tell_user_ident(int, char *, int);
216 void tell_users_match(int, char *, int, int, int, char *);
217 int readuserfile(char *, struct userrec **);
218
219 #endif /* _EGG_PROTO_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23