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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23