/[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.10 - (hide annotations) (download) (as text)
Sat Dec 11 18:58:03 1999 UTC (19 years, 6 months ago) by fabian
Branch: MAIN
Changes since 1.9: +3 -1 lines
File MIME type: text/x-csrc
tothwolf's remove-context-bloat patch

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23