/[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.13 - (hide annotations) (download) (as text)
Wed Dec 22 12:11:02 1999 UTC (19 years, 9 months ago) by fabian
Branch: MAIN
Changes since 1.12: +2 -1 lines
File MIME type: text/x-csrc
resync with 1.4.2, 1999/12/22

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23