/[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.9 - (hide annotations) (download) (as text)
Wed Sep 15 06:04:08 1999 UTC (20 years, 2 months ago) by poptix
Branch: MAIN
Changes since 1.8: +2 -4 lines
File MIME type: text/x-csrc

notesignore3 and notesignore4.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     struct banrec;
33     struct igrec;
34 arthur2 1.3 struct exemptrec;
35     struct inviterec;
36 segfault 1.1 struct flag_record;
37     struct list_type;
38     struct tand_t_struct;
39    
40     #if !defined(MAKING_MODS)
41     extern void (*encrypt_pass) (char *, char *);
42     extern char *(*encrypt_string) (char *, char *);
43     extern char *(*decrypt_string) (char *, char *);
44    
45     #endif
46     /* botcmd.c */
47     void bot_share(int, char *);
48     int base64_to_int(char *);
49    
50     /* botnet.c */
51     void answer_local_whom(int, int);
52     char *lastbot(char *);
53     int nextbot(char *);
54     int in_chain(char *);
55     void tell_bots(int);
56     void tell_bottree(int, int);
57     int botlink(char *, int, char *);
58     int botunlink(int, char *, char *);
59     void dump_links(int);
60     void addbot(char *, char *, char *, char, int);
61     void updatebot(int, char *, char, int);
62     void rembot(char *);
63     struct tand_t_struct *findbot(char *);
64     void unvia(int, struct tand_t_struct *);
65     void check_botnet_pings();
66     int partysock(char *, char *);
67     int addparty(char *, char *, int, char, int, char *, int *);
68     void remparty(char *, int);
69     void partystat(char *, int, int, int);
70     int partynick(char *, int, char *);
71     int partyidle(char *, char *);
72     void partysetidle(char *, int, int);
73     void partyaway(char *, int, char *);
74     void zapfbot(int);
75     void tandem_relay(int, char *, int);
76     int getparty(char *, int);
77    
78     /* botmsg.c */
79     int add_note(char *, char *, char *, int, int);
80     int simple_sprintf VARARGS(char *, arg1);
81     void tandout_but VARARGS(int, arg1);
82     char *int_to_base10(unsigned int);
83     char *int_to_base64(unsigned int);
84 poptix 1.9 extern int (*match_noterej) (struct userrec*, char *);
85 segfault 1.1
86     /* chanprog.c */
87 poptix 1.4 void tell_verbose_uptime(int);
88     void tell_verbose_status(int);
89 segfault 1.1 void tell_settings(int);
90     int logmodes(char *);
91     int isowner(char *);
92     char *masktype(int);
93     char *maskname(int);
94     void reaffirm_owners();
95     void rehash();
96     void reload();
97     void chanprog();
98     void check_timers();
99     void check_utimers();
100     void rmspace(char *);
101     void check_timers();
102     void set_chanlist(char *host, struct userrec *rec);
103     void clear_chanlist();
104    
105     /* cmds.c */
106     int check_dcc_attrs(struct userrec *, int);
107     int check_dcc_chanattrs(struct userrec *, char *, int, int);
108     int stripmodes(char *);
109     char *stripmasktype(int);
110    
111     /* dcc.c */
112     void failed_link(int);
113    
114     /* dccutil.c */
115     void dprintf VARARGS(int, arg1);
116     void chatout VARARGS(char *, arg1);
117     extern void (*shareout) ();
118     extern void (*sharein) (int, char *);
119     void chanout_but VARARGS(int, arg1);
120     void dcc_chatter(int);
121     void lostdcc(int);
122     void makepass(char *);
123     void tell_dcc(int);
124     void not_away(int);
125     void set_away(int, char *);
126     void *_get_data_ptr(int, char *, int);
127    
128     #define get_data_ptr(x) _get_data_ptr(x,__FILE__,__LINE__)
129     void flush_lines(int, struct chat_info *);
130     struct dcc_t *find_idx(int);
131     int new_dcc(struct dcc_table *, int);
132     void del_dcc(int);
133     char *add_cr(char *);
134    
135     /* gotdcc.c */
136     void gotdcc(char *, char *, struct userrec *, char *);
137     void do_boot(int, char *, char *);
138     int detect_dcc_flood(time_t *, struct chat_info *, int);
139    
140     /* language.c */
141     char *get_language(int);
142     int cmd_loadlanguage(struct userrec *, int, char *);
143 poptix 1.7 void add_lang_section(char *);
144 segfault 1.1
145     /* main.c */
146     void fatal(char *, int);
147     int expected_memory();
148     void backup_userfile();
149    
150     /* match.c */
151     int _wild_match(register unsigned char *, register unsigned char *);
152    
153     #define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))
154    
155     /* mem.c */
156     void *n_malloc(int, char *, int);
157     void *n_realloc(void *, int, char *, int);
158     void n_free(void *, char *, int);
159     void tell_mem_status(char *);
160     void tell_mem_status_dcc(int);
161     void debug_mem_to_dcc(int);
162    
163     /* misc.c */
164     int my_strcpy(char *, char *);
165     void putlog VARARGS(int, arg1);
166     void flushlogs();
167     void check_logsize();
168     void maskhost(char *, char *);
169     char *stristr(char *, char *);
170     void splitc(char *, char *, char);
171     char *newsplit(char **);
172     char *splitnick(char **);
173     void stridx(char *, char *, int);
174     void dumplots(int, char *, char *);
175     void daysago(time_t, time_t, char *);
176     void days(time_t, time_t, char *);
177     void daysdur(time_t, time_t, char *);
178     void help_subst(char *, char *, struct flag_record *, int, char *);
179     void sub_lang(int, char *);
180     void show_motd(int);
181     void tellhelp(int, char *, struct flag_record *, int);
182 poptix 1.5 void tellwildhelp(int, char *, struct flag_record *);
183 guppy 1.6 void tellallhelp(int, char *, struct flag_record *);
184 segfault 1.1 void showhelp(char *, char *, struct flag_record *, int);
185     int copyfile(char *, char *);
186     int movefile(char *, char *);
187     void rem_help_reference(char *file);
188     void add_help_reference(char *file);
189     void debug_help(int);
190     void reload_help_data(void);
191     void remove_gunk(char *);
192     char *extracthostname(char *);
193 segfault 1.2 void show_banner(int i);
194 segfault 1.1
195     /* net.c */
196     void my_memcpy(char *, char *, int);
197     IP my_atoul(char *);
198     unsigned long iptolong(IP);
199     IP getmyip();
200     void neterror(char *);
201     void setsock(int, int);
202     int getsock(int);
203     void killsock(int);
204     int answer(int, char *, unsigned long *, unsigned short *, int);
205     int open_listen(int *);
206     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     int sanitycheck_dcc(char *, char *, char *, char *);
214    
215     /* tcl.c */
216     void protect_tcl();
217     void unprotect_tcl();
218     void do_tcl(char *, char *);
219     void set_tcl_vars();
220     int readtclprog(char *);
221     int findidx(int);
222     int findanyidx(int);
223    
224     /* userent.c */
225     void list_type_kill(struct list_type *);
226     int list_type_expmem(struct list_type *);
227 poptix 1.9 int xtra_set();
228 segfault 1.1
229     /* userrec.c */
230     struct userrec *adduser(struct userrec *, char *, char *, char *, int);
231     void addhost_by_handle(char *, char *);
232     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