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

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

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


Revision 1.11 - (hide annotations) (download) (as text)
Wed Sep 15 07:40:32 1999 UTC (20 years ago) by poptix
Branch: MAIN
Changes since 1.10: +2 -3 lines
File MIME type: text/x-csrc
bloat.diff, uhg.

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 poptix 1.11 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    
43     #endif
44     /* botcmd.c */
45     void bot_share(int, char *);
46     int base64_to_int(char *);
47    
48     /* botnet.c */
49     void answer_local_whom(int, int);
50     char *lastbot(char *);
51     int nextbot(char *);
52     int in_chain(char *);
53     void tell_bots(int);
54     void tell_bottree(int, int);
55     int botlink(char *, int, char *);
56     int botunlink(int, char *, char *);
57     void dump_links(int);
58     void addbot(char *, char *, char *, char, int);
59     void updatebot(int, char *, char, int);
60     void rembot(char *);
61     struct tand_t_struct *findbot(char *);
62     void unvia(int, struct tand_t_struct *);
63     void check_botnet_pings();
64     int partysock(char *, char *);
65     int addparty(char *, char *, int, char, int, char *, int *);
66     void remparty(char *, int);
67     void partystat(char *, int, int, int);
68     int partynick(char *, int, char *);
69     int partyidle(char *, char *);
70     void partysetidle(char *, int, int);
71     void partyaway(char *, int, char *);
72     void zapfbot(int);
73     void tandem_relay(int, char *, int);
74     int getparty(char *, int);
75    
76     /* botmsg.c */
77     int add_note(char *, char *, char *, int, int);
78     int simple_sprintf VARARGS(char *, arg1);
79     void tandout_but VARARGS(int, arg1);
80     char *int_to_base10(unsigned int);
81     char *int_to_base64(unsigned int);
82 poptix 1.9 extern int (*match_noterej) (struct userrec*, char *);
83 segfault 1.1
84     /* chanprog.c */
85 poptix 1.4 void tell_verbose_uptime(int);
86     void tell_verbose_status(int);
87 segfault 1.1 void tell_settings(int);
88     int logmodes(char *);
89     int isowner(char *);
90     char *masktype(int);
91     char *maskname(int);
92     void reaffirm_owners();
93     void rehash();
94     void reload();
95     void chanprog();
96     void check_timers();
97     void check_utimers();
98     void rmspace(char *);
99     void check_timers();
100     void set_chanlist(char *host, struct userrec *rec);
101     void clear_chanlist();
102    
103     /* cmds.c */
104     int check_dcc_attrs(struct userrec *, int);
105     int check_dcc_chanattrs(struct userrec *, char *, int, int);
106     int stripmodes(char *);
107     char *stripmasktype(int);
108    
109     /* dcc.c */
110     void failed_link(int);
111    
112     /* dccutil.c */
113     void dprintf VARARGS(int, arg1);
114     void chatout VARARGS(char *, arg1);
115     extern void (*shareout) ();
116     extern void (*sharein) (int, char *);
117     void chanout_but VARARGS(int, arg1);
118     void dcc_chatter(int);
119     void lostdcc(int);
120     void makepass(char *);
121     void tell_dcc(int);
122     void not_away(int);
123     void set_away(int, char *);
124     void *_get_data_ptr(int, char *, int);
125    
126     #define get_data_ptr(x) _get_data_ptr(x,__FILE__,__LINE__)
127     void flush_lines(int, struct chat_info *);
128     struct dcc_t *find_idx(int);
129     int new_dcc(struct dcc_table *, int);
130     void del_dcc(int);
131     char *add_cr(char *);
132    
133     /* gotdcc.c */
134     void gotdcc(char *, char *, struct userrec *, char *);
135     void do_boot(int, char *, char *);
136     int detect_dcc_flood(time_t *, struct chat_info *, int);
137    
138     /* language.c */
139     char *get_language(int);
140     int cmd_loadlanguage(struct userrec *, int, char *);
141 poptix 1.7 void add_lang_section(char *);
142 segfault 1.1
143     /* main.c */
144     void fatal(char *, int);
145     int expected_memory();
146     void backup_userfile();
147    
148     /* match.c */
149     int _wild_match(register unsigned char *, register unsigned char *);
150    
151     #define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))
152    
153     /* mem.c */
154     void *n_malloc(int, char *, int);
155     void *n_realloc(void *, int, char *, int);
156     void n_free(void *, char *, int);
157     void tell_mem_status(char *);
158     void tell_mem_status_dcc(int);
159     void debug_mem_to_dcc(int);
160    
161     /* misc.c */
162     int my_strcpy(char *, char *);
163     void putlog VARARGS(int, arg1);
164     void flushlogs();
165     void check_logsize();
166     void maskhost(char *, char *);
167     char *stristr(char *, char *);
168     void splitc(char *, char *, char);
169     char *newsplit(char **);
170     char *splitnick(char **);
171     void stridx(char *, char *, int);
172     void dumplots(int, char *, char *);
173     void daysago(time_t, time_t, char *);
174     void days(time_t, time_t, char *);
175     void daysdur(time_t, time_t, char *);
176     void help_subst(char *, char *, struct flag_record *, int, char *);
177     void sub_lang(int, char *);
178     void show_motd(int);
179     void tellhelp(int, char *, struct flag_record *, int);
180 poptix 1.5 void tellwildhelp(int, char *, struct flag_record *);
181 guppy 1.6 void tellallhelp(int, char *, struct flag_record *);
182 segfault 1.1 void showhelp(char *, char *, struct flag_record *, int);
183     int copyfile(char *, char *);
184     int movefile(char *, char *);
185     void rem_help_reference(char *file);
186     void add_help_reference(char *file);
187     void debug_help(int);
188     void reload_help_data(void);
189     void remove_gunk(char *);
190     char *extracthostname(char *);
191 segfault 1.2 void show_banner(int i);
192 poptix 1.10 void make_rand_str(char *, int);
193 segfault 1.1
194     /* net.c */
195     void my_memcpy(char *, char *, int);
196     IP my_atoul(char *);
197     unsigned long iptolong(IP);
198     IP getmyip();
199     void neterror(char *);
200     void setsock(int, int);
201     int getsock(int);
202     void killsock(int);
203     int answer(int, char *, unsigned long *, unsigned short *, int);
204     int open_listen(int *);
205     int open_telnet(char *, int);
206     int open_telnet_dcc(int, char *, char *);
207     int open_telnet_raw(int, char *, int);
208     void tputs(int, char *, unsigned int);
209     void dequeue_sockets();
210     int sockgets(char *, int *);
211     void tell_netdebug(int);
212     int sanitycheck_dcc(char *, char *, char *, char *);
213    
214     /* tcl.c */
215     void protect_tcl();
216     void unprotect_tcl();
217     void do_tcl(char *, char *);
218     void set_tcl_vars();
219     int readtclprog(char *);
220     int findidx(int);
221     int findanyidx(int);
222    
223     /* userent.c */
224     void list_type_kill(struct list_type *);
225     int list_type_expmem(struct list_type *);
226 poptix 1.9 int xtra_set();
227 segfault 1.1
228     /* userrec.c */
229     struct userrec *adduser(struct userrec *, char *, char *, char *, int);
230     void addhost_by_handle(char *, char *);
231 poptix 1.11 void clear_masks(struct maskrec *);
232 segfault 1.1 void clear_userlist(struct userrec *);
233     int u_pass_match(struct userrec *, char *);
234     int delhost_by_handle(char *, char *);
235     int ishost_for_handle(char *, char *);
236     int count_users(struct userrec *);
237     int deluser(char *);
238     void freeuser(struct userrec *);
239     int change_handle(struct userrec *, char *);
240     void correct_handle(char *);
241     int write_user(struct userrec *u, FILE * f, int shr);
242     void write_userfile(int);
243     struct userrec *check_dcclist_hand(char *);
244     void touch_laston(struct userrec *, char *, time_t);
245    
246     /* users.c */
247     void addignore(char *, char *, char *, time_t);
248     int delignore(char *);
249     void tell_ignores(int, char *);
250     int match_ignore(char *);
251     void check_expired_ignores();
252     void autolink_cycle(char *);
253     void tell_file_stats(int, char *);
254     void tell_user_ident(int, char *, int);
255     void tell_users_match(int, char *, int, int, int, char *);
256     int readuserfile(char *, struct userrec **);
257    
258     /* rfc1459.c */
259     int rfc_casecmp(char *, char *);
260     int rfc_ncasecmp(char *, char *, int);
261    
262     #endif

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23