/[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.64 - (hide annotations) (download) (as text)
Sun Jan 13 19:13:23 2002 UTC (17 years, 9 months ago) by ite
Branch: MAIN
Changes since 1.63: +1 -3 lines
File MIME type: text/x-csrc
Moved copyfile(), movefile() and is_file() from the core to libeggdrop

1 guppy 1.42 /*
2 fabian 1.12 * proto.h
3     * prototypes for every function used outside its own module
4 guppy 1.42 *
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 guppy 1.42 *
10 ite 1.64 * $Id: proto.h,v 1.63 2002/01/06 06:21:09 ite Exp $
11 segfault 1.1 */
12 guppy 1.42 /*
13     * Copyright (C) 1997 Robey Pointer
14     * Copyright (C) 1999, 2000, 2001 Eggheads Development Team
15     *
16 fabian 1.12 * 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 guppy 1.42 *
21 fabian 1.12 * 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 guppy 1.42 *
26 fabian 1.12 * 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 segfault 1.1
36 tothwolf 1.53 #include "irccmp.h"
37     #include "match.h"
38    
39 segfault 1.1 #ifdef HAVE_DPRINTF
40     #define dprintf dprintf_eggdrop
41     #endif
42    
43     struct chanset_t; /* keeps the compiler warnings down :) */
44     struct userrec;
45 fabian 1.2 struct maskrec;
46 segfault 1.1 struct igrec;
47     struct flag_record;
48     struct list_type;
49     struct tand_t_struct;
50    
51 tothwolf 1.54 #ifndef MAKING_MODS
52 segfault 1.1 extern void (*encrypt_pass) (char *, char *);
53     extern char *(*encrypt_string) (char *, char *);
54     extern char *(*decrypt_string) (char *, char *);
55 fabian 1.2 extern int (*match_noterej) (struct userrec *, char *);
56 segfault 1.1 #endif
57 fabian 1.2
58 segfault 1.1 /* 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 fabian 1.4 void tandout_but EGG_VARARGS(int, arg1);
92 segfault 1.1
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 fabian 1.31 void rmspace(char *s);
107 segfault 1.1 void check_timers();
108 fabian 1.31 void set_chanlist(const char *host, struct userrec *rec);
109     void clear_chanlist(void);
110 fabian 1.32 void clear_chanlist_member(const char *nick);
111 segfault 1.1
112     /* cmds.c */
113     int check_dcc_attrs(struct userrec *, int);
114     int check_dcc_chanattrs(struct userrec *, char *, int, int);
115     int stripmodes(char *);
116     char *stripmasktype(int);
117    
118     /* dcc.c */
119     void failed_link(int);
120 fabian 1.8 void dupwait_notify(char *);
121 segfault 1.1
122     /* dccutil.c */
123 fabian 1.4 void dprintf EGG_VARARGS(int, arg1);
124     void chatout EGG_VARARGS(char *, arg1);
125 segfault 1.1 extern void (*shareout) ();
126     extern void (*sharein) (int, char *);
127 fabian 1.4 void chanout_but EGG_VARARGS(int, arg1);
128 segfault 1.1 void dcc_chatter(int);
129     void lostdcc(int);
130 fabian 1.13 void removedcc(int);
131 segfault 1.1 void makepass(char *);
132     void tell_dcc(int);
133     void not_away(int);
134     void set_away(int, char *);
135 fabian 1.14 void dcc_remove_lost(void);
136 fabian 1.6
137 segfault 1.1 void flush_lines(int, struct chat_info *);
138     struct dcc_t *find_idx(int);
139     int new_dcc(struct dcc_table *, int);
140     void del_dcc(int);
141     char *add_cr(char *);
142 fabian 1.3 void changeover_dcc(int, struct dcc_table *, int);
143    
144     /* dns.c */
145 drummer 1.45 void dns_hostbyip(char *);
146     void dns_ipbyhost(char *);
147     void call_hostbyip(char *, char *, int);
148     void call_ipbyhost(char *, char *, int);
149     void dcc_dnshostbyip(char *);
150 fabian 1.15 void dcc_dnsipbyhost(char *);
151 segfault 1.1
152     /* gotdcc.c */
153     void gotdcc(char *, char *, struct userrec *, char *);
154     void do_boot(int, char *, char *);
155     int detect_dcc_flood(time_t *, struct chat_info *, int);
156    
157     /* main.c */
158 fabian 1.33 void fatal(const char *, int);
159     void patch(const char *);
160     void backup_userfile(void);
161 segfault 1.1
162     /* misc.c */
163 stdarg 1.58 int putlog EGG_VARARGS(int, arg1);
164 segfault 1.1 void flushlogs();
165     void check_logsize();
166 fabian 1.29 void maskhost(const char *, char *);
167 segfault 1.1 char *stristr(char *, char *);
168     void stridx(char *, char *, int);
169 guppy 1.36 void dumplots(int, const char *, char *);
170 segfault 1.1 void daysago(time_t, time_t, char *);
171     void days(time_t, time_t, char *);
172     void daysdur(time_t, time_t, char *);
173     void help_subst(char *, char *, struct flag_record *, int, char *);
174     void sub_lang(int, char *);
175     void show_motd(int);
176     void tellhelp(int, char *, struct flag_record *, int);
177     void tellwildhelp(int, char *, struct flag_record *);
178     void tellallhelp(int, char *, struct flag_record *);
179     void showhelp(char *, char *, struct flag_record *, int);
180     void rem_help_reference(char *file);
181     void add_help_reference(char *file);
182     void debug_help(int);
183     void reload_help_data(void);
184     char *extracthostname(char *);
185 guppy 1.48 void show_telnet_banner(int i);
186 fabian 1.2 void make_rand_str(char *, int);
187 fabian 1.17 int oatoi(const char *);
188 fabian 1.26 void logsuffix_change(char *);
189 guppy 1.41 #if (TCL_MAJOR_VERSION >= 8 && TCL_MINOR_VERSION >= 1) || (TCL_MAJOR_VERSION >= 9)
190 guppy 1.40 void str_nutf8tounicode(char *str, int len);
191 guppy 1.39 #endif
192 guppy 1.46 void kill_bot(char *, char *);
193 segfault 1.1
194     /* net.c */
195     unsigned long iptolong(IP);
196     IP getmyip();
197 drummer 1.45 struct in6_addr getmyip6();
198 segfault 1.1 void neterror(char *);
199     void setsock(int, int);
200 fabian 1.3 int allocsock(int, int);
201 segfault 1.1 int getsock(int);
202     void killsock(int);
203 drummer 1.45 int answer(int, char *, char *, unsigned short *, int);
204     inline int open_listen(int *, int);
205     int open_address_listen(char *, int *);
206 segfault 1.1 int open_telnet(char *, int);
207     int open_telnet_dcc(int, char *, char *);
208     int open_telnet_raw(int, char *, int);
209     void tputs(int, char *, unsigned int);
210     void dequeue_sockets();
211     int sockgets(char *, int *);
212     void tell_netdebug(int);
213 fabian 1.3 char *iptostr(IP);
214 drummer 1.45 char *getlocaladdr(int);
215 fabian 1.19 int sock_has_data(int, int);
216 fabian 1.35 int sockoptions(int sock, int operation, int sock_options);
217 poptix 1.43 int flush_inbuf(int idx);
218 segfault 1.1
219     /* tcl.c */
220     void protect_tcl();
221     void unprotect_tcl();
222     void do_tcl(char *, char *);
223 guppy 1.37 int readtclprog(char *fname);
224 segfault 1.1 int findidx(int);
225     int findanyidx(int);
226    
227     /* userent.c */
228     void list_type_kill(struct list_type *);
229 fabian 1.2 int xtra_set();
230 segfault 1.1
231     /* userrec.c */
232     struct userrec *adduser(struct userrec *, char *, char *, char *, int);
233     void addhost_by_handle(char *, char *);
234 fabian 1.2 void clear_masks(struct maskrec *);
235 segfault 1.1 void clear_userlist(struct userrec *);
236     int u_pass_match(struct userrec *, char *);
237     int delhost_by_handle(char *, char *);
238     int ishost_for_handle(char *, char *);
239     int count_users(struct userrec *);
240     int deluser(char *);
241     void freeuser(struct userrec *);
242     int change_handle(struct userrec *, char *);
243     void correct_handle(char *);
244     int write_user(struct userrec *u, FILE * f, int shr);
245     void write_userfile(int);
246     struct userrec *check_dcclist_hand(char *);
247     void touch_laston(struct userrec *, char *, time_t);
248 fabian 1.9 void user_del_chan(char *);
249 guppy 1.60 char *fixfrom(char *);
250 segfault 1.1
251     /* users.c */
252     void addignore(char *, char *, char *, time_t);
253     int delignore(char *);
254     void tell_ignores(int, char *);
255     int match_ignore(char *);
256     void check_expired_ignores();
257     void autolink_cycle(char *);
258     void tell_file_stats(int, char *);
259     void tell_user_ident(int, char *, int);
260     void tell_users_match(int, char *, int, int, int, char *);
261     int readuserfile(char *, struct userrec **);
262    
263 fabian 1.12 #endif /* _EGG_PROTO_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23