/[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.60 - (show annotations) (download) (as text)
Wed Dec 19 06:25:08 2001 UTC (17 years, 9 months ago) by guppy
Branch: MAIN
Changes since 1.59: +2 -1 lines
File MIME type: text/x-csrc
added Eule's membercheck 2 and 3 patches from eggdrop1.6 (Eule can you please check these over as the diff seemed to fail alot and I had to manually patch it)

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.59 2001/12/18 07:04:22 guppy 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 #include "misc_file.h"
36
37 #include "irccmp.h"
38 #include "match.h"
39
40 #ifdef HAVE_DPRINTF
41 #define dprintf dprintf_eggdrop
42 #endif
43
44 struct chanset_t; /* keeps the compiler warnings down :) */
45 struct userrec;
46 struct maskrec;
47 struct igrec;
48 struct flag_record;
49 struct list_type;
50 struct tand_t_struct;
51
52 #ifndef MAKING_MODS
53 extern void (*encrypt_pass) (char *, char *);
54 extern char *(*encrypt_string) (char *, char *);
55 extern char *(*decrypt_string) (char *, char *);
56 extern int (*match_noterej) (struct userrec *, char *);
57 #endif
58
59 /* botcmd.c */
60 void bot_share(int, char *);
61 int base64_to_int(char *);
62
63 /* botnet.c */
64 void answer_local_whom(int, int);
65 char *lastbot(char *);
66 int nextbot(char *);
67 int in_chain(char *);
68 void tell_bots(int);
69 void tell_bottree(int, int);
70 int botlink(char *, int, char *);
71 int botunlink(int, char *, char *);
72 void dump_links(int);
73 void addbot(char *, char *, char *, char, int);
74 void updatebot(int, char *, char, int);
75 void rembot(char *);
76 struct tand_t_struct *findbot(char *);
77 void unvia(int, struct tand_t_struct *);
78 void check_botnet_pings();
79 int partysock(char *, char *);
80 int addparty(char *, char *, int, char, int, char *, int *);
81 void remparty(char *, int);
82 void partystat(char *, int, int, int);
83 int partynick(char *, int, char *);
84 int partyidle(char *, char *);
85 void partysetidle(char *, int, int);
86 void partyaway(char *, int, char *);
87 void zapfbot(int);
88 void tandem_relay(int, char *, int);
89 int getparty(char *, int);
90
91 /* botmsg.c */
92 int add_note(char *, char *, char *, int, int);
93 int simple_sprintf EGG_VARARGS(char *, arg1);
94 void tandout_but EGG_VARARGS(int, arg1);
95 char *int_to_base10(int);
96 char *unsigned_int_to_base10(unsigned int);
97 char *int_to_base64(unsigned int);
98
99 /* chanprog.c */
100 void tell_verbose_status(int);
101 void tell_settings(int);
102 int logmodes(char *);
103 int isowner(char *);
104 char *masktype(int);
105 char *maskname(int);
106 void reaffirm_owners();
107 void rehash();
108 void reload();
109 void chanprog();
110 void check_timers();
111 void check_utimers();
112 void rmspace(char *s);
113 void check_timers();
114 void set_chanlist(const char *host, struct userrec *rec);
115 void clear_chanlist(void);
116 void clear_chanlist_member(const char *nick);
117
118 /* cmds.c */
119 int check_dcc_attrs(struct userrec *, int);
120 int check_dcc_chanattrs(struct userrec *, char *, int, int);
121 int stripmodes(char *);
122 char *stripmasktype(int);
123
124 /* dcc.c */
125 void failed_link(int);
126 void dupwait_notify(char *);
127
128 /* dccutil.c */
129 void dprintf EGG_VARARGS(int, arg1);
130 void chatout EGG_VARARGS(char *, arg1);
131 extern void (*shareout) ();
132 extern void (*sharein) (int, char *);
133 void chanout_but EGG_VARARGS(int, arg1);
134 void dcc_chatter(int);
135 void lostdcc(int);
136 void removedcc(int);
137 void makepass(char *);
138 void tell_dcc(int);
139 void not_away(int);
140 void set_away(int, char *);
141 void dcc_remove_lost(void);
142
143 void flush_lines(int, struct chat_info *);
144 struct dcc_t *find_idx(int);
145 int new_dcc(struct dcc_table *, int);
146 void del_dcc(int);
147 char *add_cr(char *);
148 void changeover_dcc(int, struct dcc_table *, int);
149
150 /* dns.c */
151 void dns_hostbyip(char *);
152 void dns_ipbyhost(char *);
153 void call_hostbyip(char *, char *, int);
154 void call_ipbyhost(char *, char *, int);
155 void dcc_dnshostbyip(char *);
156 void dcc_dnsipbyhost(char *);
157
158 /* gotdcc.c */
159 void gotdcc(char *, char *, struct userrec *, char *);
160 void do_boot(int, char *, char *);
161 int detect_dcc_flood(time_t *, struct chat_info *, int);
162
163 /* main.c */
164 void fatal(const char *, int);
165 void patch(const char *);
166 void backup_userfile(void);
167
168 /* misc.c */
169 int egg_strcatn(char *dst, const char *src, size_t max);
170 int my_strcpy(char *, char *);
171 int putlog EGG_VARARGS(int, arg1);
172 void flushlogs();
173 void check_logsize();
174 void maskhost(const char *, char *);
175 char *stristr(char *, char *);
176 void splitc(char *, char *, char);
177 void splitcn(char *, char *, char, size_t);
178 char *newsplit(char **);
179 void stridx(char *, char *, int);
180 void dumplots(int, const char *, char *);
181 void daysago(time_t, time_t, char *);
182 void days(time_t, time_t, char *);
183 void daysdur(time_t, time_t, char *);
184 void help_subst(char *, char *, struct flag_record *, int, char *);
185 void sub_lang(int, char *);
186 void show_motd(int);
187 void tellhelp(int, char *, struct flag_record *, int);
188 void tellwildhelp(int, char *, struct flag_record *);
189 void tellallhelp(int, char *, struct flag_record *);
190 void showhelp(char *, char *, struct flag_record *, int);
191 void rem_help_reference(char *file);
192 void add_help_reference(char *file);
193 void debug_help(int);
194 void reload_help_data(void);
195 char *extracthostname(char *);
196 void show_telnet_banner(int i);
197 void make_rand_str(char *, int);
198 int oatoi(const char *);
199 int is_file(const char *);
200 void logsuffix_change(char *);
201 char *str_escape(const char *str, const char div, const char mask);
202 char *strchr_unescape(char *str, const char div, register const char esc_char);
203 void str_unescape(char *str, register const char esc_char);
204 #if (TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 1) || (TCL_MAJOR_VERSION >= 9)
205 void str_nutf8tounicode(char *str, int len);
206 #endif
207 void kill_bot(char *, char *);
208
209 /* net.c */
210 unsigned long iptolong(IP);
211 IP getmyip();
212 struct in6_addr getmyip6();
213 void neterror(char *);
214 void setsock(int, int);
215 int allocsock(int, int);
216 int getsock(int);
217 void killsock(int);
218 int answer(int, char *, char *, unsigned short *, int);
219 inline int open_listen(int *, int);
220 int open_address_listen(char *, int *);
221 int open_telnet(char *, int);
222 int open_telnet_dcc(int, char *, char *);
223 int open_telnet_raw(int, char *, int);
224 void tputs(int, char *, unsigned int);
225 void dequeue_sockets();
226 int sockgets(char *, int *);
227 void tell_netdebug(int);
228 char *iptostr(IP);
229 char *getlocaladdr(int);
230 int sock_has_data(int, int);
231 int sockoptions(int sock, int operation, int sock_options);
232 int flush_inbuf(int idx);
233
234 /* tcl.c */
235 void protect_tcl();
236 void unprotect_tcl();
237 void do_tcl(char *, char *);
238 int readtclprog(char *fname);
239 int findidx(int);
240 int findanyidx(int);
241
242 /* userent.c */
243 void list_type_kill(struct list_type *);
244 int xtra_set();
245
246 /* userrec.c */
247 struct userrec *adduser(struct userrec *, char *, char *, char *, int);
248 void addhost_by_handle(char *, char *);
249 void clear_masks(struct maskrec *);
250 void clear_userlist(struct userrec *);
251 int u_pass_match(struct userrec *, char *);
252 int delhost_by_handle(char *, char *);
253 int ishost_for_handle(char *, char *);
254 int count_users(struct userrec *);
255 int deluser(char *);
256 void freeuser(struct userrec *);
257 int change_handle(struct userrec *, char *);
258 void correct_handle(char *);
259 int write_user(struct userrec *u, FILE * f, int shr);
260 void write_userfile(int);
261 struct userrec *check_dcclist_hand(char *);
262 void touch_laston(struct userrec *, char *, time_t);
263 void user_del_chan(char *);
264 char *fixfrom(char *);
265
266 /* users.c */
267 void addignore(char *, char *, char *, time_t);
268 int delignore(char *);
269 void tell_ignores(int, char *);
270 int match_ignore(char *);
271 void check_expired_ignores();
272 void autolink_cycle(char *);
273 void tell_file_stats(int, char *);
274 void tell_user_ident(int, char *, int);
275 void tell_users_match(int, char *, int, int, int, char *);
276 int readuserfile(char *, struct userrec **);
277
278 #endif /* _EGG_PROTO_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23