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

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

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


Revision 1.23 - (hide annotations) (download) (as text)
Wed Apr 5 19:35:44 2000 UTC (19 years, 6 months ago) by fabian
Branch: MAIN
Changes since 1.22: +2 -1 lines
File MIME type: text/x-csrc
make_quiet_lang patch

1 fabian 1.12 /*
2     * proto.h
3     * prototypes for every function used outside its own module
4     *
5 segfault 1.1 * (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 fabian 1.12 * because they use structures in those
8     * (saves including those .h files EVERY time) - Beldin
9     *
10 fabian 1.23 * $Id: proto.h,v 1.22 2000/03/23 23:17:55 fabian Exp $
11 segfault 1.1 */
12 fabian 1.12 /*
13     * Copyright (C) 1997 Robey Pointer
14 fabian 1.18 * Copyright (C) 1999, 2000 Eggheads
15 fabian 1.12 *
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 segfault 1.1 */
30    
31 fabian 1.12 #ifndef _EGG_PROTO_H
32     #define _EGG_PROTO_H
33 segfault 1.1
34 fabian 1.21 #include "lush.h"
35     #include "misc_file.h"
36 segfault 1.1
37     #ifdef HAVE_DPRINTF
38     #define dprintf dprintf_eggdrop
39     #endif
40    
41     struct chanset_t; /* keeps the compiler warnings down :) */
42     struct userrec;
43 fabian 1.2 struct maskrec;
44 segfault 1.1 struct igrec;
45     struct flag_record;
46     struct list_type;
47     struct tand_t_struct;
48    
49     #if !defined(MAKING_MODS)
50     extern void (*encrypt_pass) (char *, char *);
51     extern char *(*encrypt_string) (char *, char *);
52     extern char *(*decrypt_string) (char *, char *);
53 fabian 1.2 extern int (*rfc_casecmp) (const char *, const char *);
54     extern int (*rfc_ncasecmp) (const char *, const char *, int);
55     extern int (*rfc_toupper) (int);
56     extern int (*rfc_tolower) (int);
57     extern int (*match_noterej) (struct userrec *, char *);
58 segfault 1.1 #endif
59 fabian 1.2
60 segfault 1.1 /* botcmd.c */
61     void bot_share(int, char *);
62     int base64_to_int(char *);
63    
64     /* botnet.c */
65     void answer_local_whom(int, int);
66     char *lastbot(char *);
67     int nextbot(char *);
68     int in_chain(char *);
69     void tell_bots(int);
70     void tell_bottree(int, int);
71     int botlink(char *, int, char *);
72     int botunlink(int, char *, char *);
73     void dump_links(int);
74     void addbot(char *, char *, char *, char, int);
75     void updatebot(int, char *, char, int);
76     void rembot(char *);
77     struct tand_t_struct *findbot(char *);
78     void unvia(int, struct tand_t_struct *);
79     void check_botnet_pings();
80     int partysock(char *, char *);
81     int addparty(char *, char *, int, char, int, char *, int *);
82     void remparty(char *, int);
83     void partystat(char *, int, int, int);
84     int partynick(char *, int, char *);
85     int partyidle(char *, char *);
86     void partysetidle(char *, int, int);
87     void partyaway(char *, int, char *);
88     void zapfbot(int);
89     void tandem_relay(int, char *, int);
90     int getparty(char *, int);
91    
92     /* botmsg.c */
93     int add_note(char *, char *, char *, int, int);
94 fabian 1.4 int simple_sprintf EGG_VARARGS(char *, arg1);
95     void tandout_but EGG_VARARGS(int, arg1);
96 fabian 1.2 char *int_to_base10(int);
97     char *unsigned_int_to_base10(unsigned int);
98 segfault 1.1 char *int_to_base64(unsigned int);
99    
100     /* chanprog.c */
101     void tell_verbose_uptime(int);
102     void tell_verbose_status(int);
103     void tell_settings(int);
104     int logmodes(char *);
105     int isowner(char *);
106     char *masktype(int);
107     char *maskname(int);
108     void reaffirm_owners();
109     void rehash();
110     void reload();
111     void chanprog();
112     void check_timers();
113     void check_utimers();
114     void rmspace(char *);
115     void check_timers();
116     void set_chanlist(char *host, struct userrec *rec);
117     void clear_chanlist();
118    
119     /* cmds.c */
120     int check_dcc_attrs(struct userrec *, int);
121     int check_dcc_chanattrs(struct userrec *, char *, int, int);
122     int stripmodes(char *);
123     char *stripmasktype(int);
124    
125     /* dcc.c */
126     void failed_link(int);
127 fabian 1.8 void dupwait_notify(char *);
128 segfault 1.1
129     /* dccutil.c */
130 fabian 1.4 void dprintf EGG_VARARGS(int, arg1);
131     void chatout EGG_VARARGS(char *, arg1);
132 segfault 1.1 extern void (*shareout) ();
133     extern void (*sharein) (int, char *);
134 fabian 1.4 void chanout_but EGG_VARARGS(int, arg1);
135 segfault 1.1 void dcc_chatter(int);
136     void lostdcc(int);
137 fabian 1.13 void removedcc(int);
138 segfault 1.1 void makepass(char *);
139     void tell_dcc(int);
140     void not_away(int);
141     void set_away(int, char *);
142     void *_get_data_ptr(int, char *, int);
143 fabian 1.14 void dcc_remove_lost(void);
144 fabian 1.6
145 segfault 1.1 #define get_data_ptr(x) _get_data_ptr(x,__FILE__,__LINE__)
146     void flush_lines(int, struct chat_info *);
147     struct dcc_t *find_idx(int);
148     int new_dcc(struct dcc_table *, int);
149     void del_dcc(int);
150     char *add_cr(char *);
151 fabian 1.3 void changeover_dcc(int, struct dcc_table *, int);
152    
153     /* dns.c */
154     extern void (*dns_hostbyip) (IP);
155     extern void (*dns_ipbyhost) (char *);
156     void block_dns_hostbyip(IP);
157     void block_dns_ipbyhost(char *);
158     void call_hostbyip(IP, char *, int);
159     void call_ipbyhost(char *, IP, int);
160 fabian 1.15 void dcc_dnshostbyip(IP);
161     void dcc_dnsipbyhost(char *);
162 segfault 1.1
163     /* gotdcc.c */
164     void gotdcc(char *, char *, struct userrec *, char *);
165     void do_boot(int, char *, char *);
166     int detect_dcc_flood(time_t *, struct chat_info *, int);
167    
168     /* language.c */
169     char *get_language(int);
170     int cmd_loadlanguage(struct userrec *, int, char *);
171     void add_lang_section(char *);
172 fabian 1.7 int del_lang_section(char *);
173 fabian 1.23 int exist_lang_section(char *);
174 segfault 1.1
175     /* main.c */
176     void fatal(char *, int);
177     int expected_memory();
178 fabian 1.11 void patch(char *);
179 fabian 1.10 void eggContext(char *, int, char *);
180     void eggContextNote(char *, int, char *, char *);
181     void eggAssert(char *, int, char *, int);
182 segfault 1.1 void backup_userfile();
183    
184     /* match.c */
185     int _wild_match(register unsigned char *, register unsigned char *);
186     #define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))
187    
188     /* mem.c */
189     void *n_malloc(int, char *, int);
190     void *n_realloc(void *, int, char *, int);
191     void n_free(void *, char *, int);
192     void tell_mem_status(char *);
193     void tell_mem_status_dcc(int);
194     void debug_mem_to_dcc(int);
195    
196     /* misc.c */
197     int my_strcpy(char *, char *);
198 fabian 1.4 void putlog EGG_VARARGS(int, arg1);
199 segfault 1.1 void flushlogs();
200     void check_logsize();
201     void maskhost(char *, char *);
202     char *stristr(char *, char *);
203     void splitc(char *, char *, char);
204     char *newsplit(char **);
205     char *splitnick(char **);
206     void stridx(char *, char *, int);
207     void dumplots(int, char *, char *);
208     void daysago(time_t, time_t, char *);
209     void days(time_t, time_t, char *);
210     void daysdur(time_t, time_t, char *);
211     void help_subst(char *, char *, struct flag_record *, int, char *);
212     void sub_lang(int, char *);
213     void show_motd(int);
214     void tellhelp(int, char *, struct flag_record *, int);
215     void tellwildhelp(int, char *, struct flag_record *);
216     void tellallhelp(int, char *, struct flag_record *);
217     void showhelp(char *, char *, struct flag_record *, int);
218     void rem_help_reference(char *file);
219     void add_help_reference(char *file);
220     void debug_help(int);
221     void reload_help_data(void);
222     void remove_gunk(char *);
223     char *extracthostname(char *);
224     void show_banner(int i);
225 fabian 1.2 void make_rand_str(char *, int);
226 fabian 1.17 int oatoi(const char *);
227 segfault 1.1
228     /* net.c */
229     IP my_atoul(char *);
230     unsigned long iptolong(IP);
231     IP getmyip();
232     void neterror(char *);
233     void setsock(int, int);
234 fabian 1.3 int allocsock(int, int);
235 segfault 1.1 int getsock(int);
236 fabian 1.3 char *hostnamefromip(unsigned long);
237 segfault 1.1 void killsock(int);
238     int answer(int, char *, unsigned long *, unsigned short *, int);
239     int open_listen(int *);
240     int open_telnet(char *, int);
241     int open_telnet_dcc(int, char *, char *);
242     int open_telnet_raw(int, char *, int);
243     void tputs(int, char *, unsigned int);
244     void dequeue_sockets();
245     int sockgets(char *, int *);
246     void tell_netdebug(int);
247     int sanitycheck_dcc(char *, char *, char *, char *);
248 fabian 1.3 int hostsanitycheck_dcc(char *, char *, IP, char *, char *);
249     char *iptostr(IP);
250 fabian 1.19 int sock_has_data(int, int);
251 segfault 1.1
252     /* tcl.c */
253     void protect_tcl();
254     void unprotect_tcl();
255     void do_tcl(char *, char *);
256     int readtclprog(char *);
257     int findidx(int);
258     int findanyidx(int);
259    
260     /* userent.c */
261     void list_type_kill(struct list_type *);
262     int list_type_expmem(struct list_type *);
263 fabian 1.2 int xtra_set();
264 segfault 1.1
265     /* userrec.c */
266     struct userrec *adduser(struct userrec *, char *, char *, char *, int);
267     void addhost_by_handle(char *, char *);
268 fabian 1.2 void clear_masks(struct maskrec *);
269 segfault 1.1 void clear_userlist(struct userrec *);
270     int u_pass_match(struct userrec *, char *);
271     int delhost_by_handle(char *, char *);
272     int ishost_for_handle(char *, char *);
273     int count_users(struct userrec *);
274     int deluser(char *);
275     void freeuser(struct userrec *);
276     int change_handle(struct userrec *, char *);
277     void correct_handle(char *);
278     int write_user(struct userrec *u, FILE * f, int shr);
279     void write_userfile(int);
280     struct userrec *check_dcclist_hand(char *);
281     void touch_laston(struct userrec *, char *, time_t);
282 fabian 1.9 void user_del_chan(char *);
283 segfault 1.1
284     /* users.c */
285     void addignore(char *, char *, char *, time_t);
286     int delignore(char *);
287     void tell_ignores(int, char *);
288     int match_ignore(char *);
289     void check_expired_ignores();
290     void autolink_cycle(char *);
291     void tell_file_stats(int, char *);
292     void tell_user_ident(int, char *, int);
293     void tell_users_match(int, char *, int, int, int, char *);
294     int readuserfile(char *, struct userrec **);
295    
296     /* rfc1459.c */
297 fabian 1.2 int _rfc_casecmp(const char *, const char *);
298     int _rfc_ncasecmp(const char *, const char *, int);
299     int _rfc_toupper(int);
300     int _rfc_tolower(int);
301 segfault 1.1
302 fabian 1.12 #endif /* _EGG_PROTO_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23