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

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

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


Revision 1.2 - (show annotations) (download) (as text)
Thu Jun 24 19:54:57 1999 UTC (20 years, 5 months ago) by segfault
Branch: MAIN
Changes since 1.1: +1 -0 lines
File MIME type: text/x-csrc
Patch by Fabian to allow a customizable (by file) telnet banner handled
similarly to motd

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 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
83 /* chanprog.c */
84 void tell_verbose_uptime(int, int);
85 void tell_verbose_status(int, int);
86 void tell_settings(int);
87 int logmodes(char *);
88 int isowner(char *);
89 char *masktype(int);
90 char *maskname(int);
91 void reaffirm_owners();
92 void rehash();
93 void reload();
94 void chanprog();
95 void check_timers();
96 void check_utimers();
97 void rmspace(char *);
98 void check_timers();
99 void set_chanlist(char *host, struct userrec *rec);
100 void clear_chanlist();
101
102 /* cmds.c */
103 int check_dcc_attrs(struct userrec *, int);
104 int check_dcc_chanattrs(struct userrec *, char *, int, int);
105 int stripmodes(char *);
106 char *stripmasktype(int);
107
108 /* dcc.c */
109 void failed_link(int);
110
111 /* dccutil.c */
112 void dprintf VARARGS(int, arg1);
113 void chatout VARARGS(char *, arg1);
114 extern void (*shareout) ();
115 extern void (*sharein) (int, char *);
116 void chanout_but VARARGS(int, arg1);
117 void dcc_chatter(int);
118 void lostdcc(int);
119 void makepass(char *);
120 void tell_dcc(int);
121 void not_away(int);
122 void set_away(int, char *);
123 void *_get_data_ptr(int, char *, int);
124
125 #define get_data_ptr(x) _get_data_ptr(x,__FILE__,__LINE__)
126 void flush_lines(int, struct chat_info *);
127 struct dcc_t *find_idx(int);
128 int new_dcc(struct dcc_table *, int);
129 void del_dcc(int);
130 char *add_cr(char *);
131
132 /* gotdcc.c */
133 void gotdcc(char *, char *, struct userrec *, char *);
134 void do_boot(int, char *, char *);
135 int detect_dcc_flood(time_t *, struct chat_info *, int);
136
137 /* language.c */
138 char *get_language(int);
139 int cmd_loadlanguage(struct userrec *, int, char *);
140
141 /* main.c */
142 void fatal(char *, int);
143 int expected_memory();
144 void backup_userfile();
145
146 /* match.c */
147 int _wild_match(register unsigned char *, register unsigned char *);
148
149 #define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))
150
151 /* mem.c */
152 void *n_malloc(int, char *, int);
153 void *n_realloc(void *, int, char *, int);
154 void n_free(void *, char *, int);
155 void tell_mem_status(char *);
156 void tell_mem_status_dcc(int);
157 void debug_mem_to_dcc(int);
158
159 /* misc.c */
160 int my_strcpy(char *, char *);
161 void putlog VARARGS(int, arg1);
162 void flushlogs();
163 void check_logsize();
164 void maskhost(char *, char *);
165 char *stristr(char *, char *);
166 void splitc(char *, char *, char);
167 char *newsplit(char **);
168 char *splitnick(char **);
169 void stridx(char *, char *, int);
170 void dumplots(int, char *, char *);
171 void daysago(time_t, time_t, char *);
172 void days(time_t, time_t, char *);
173 void daysdur(time_t, time_t, char *);
174 void help_subst(char *, char *, struct flag_record *, int, char *);
175 void sub_lang(int, char *);
176 void show_motd(int);
177 void tellhelp(int, char *, struct flag_record *, int);
178 void showhelp(char *, char *, struct flag_record *, int);
179 int copyfile(char *, char *);
180 int movefile(char *, char *);
181 void rem_help_reference(char *file);
182 void add_help_reference(char *file);
183 void debug_help(int);
184 void reload_help_data(void);
185 void remove_gunk(char *);
186 char *extracthostname(char *);
187 void show_banner(int i);
188
189 /* net.c */
190 void my_memcpy(char *, char *, int);
191 IP my_atoul(char *);
192 unsigned long iptolong(IP);
193 IP getmyip();
194 void neterror(char *);
195 void setsock(int, int);
196 int getsock(int);
197 void killsock(int);
198 int answer(int, char *, unsigned long *, unsigned short *, int);
199 int open_listen(int *);
200 int open_telnet(char *, int);
201 int open_telnet_dcc(int, char *, char *);
202 int open_telnet_raw(int, char *, int);
203 void tputs(int, char *, unsigned int);
204 void dequeue_sockets();
205 int sockgets(char *, int *);
206 void tell_netdebug(int);
207 int sanitycheck_dcc(char *, char *, char *, char *);
208
209 /* tcl.c */
210 void protect_tcl();
211 void unprotect_tcl();
212 void do_tcl(char *, char *);
213 void set_tcl_vars();
214 int readtclprog(char *);
215 int findidx(int);
216 int findanyidx(int);
217
218 /* userent.c */
219 void list_type_kill(struct list_type *);
220 int list_type_expmem(struct list_type *);
221
222 /* userrec.c */
223 struct userrec *adduser(struct userrec *, char *, char *, char *, int);
224 void addhost_by_handle(char *, char *);
225 void clear_userlist(struct userrec *);
226 int u_pass_match(struct userrec *, char *);
227 int delhost_by_handle(char *, char *);
228 int ishost_for_handle(char *, char *);
229 int count_users(struct userrec *);
230 int deluser(char *);
231 void freeuser(struct userrec *);
232 int change_handle(struct userrec *, char *);
233 void correct_handle(char *);
234 int write_user(struct userrec *u, FILE * f, int shr);
235 void write_userfile(int);
236 struct userrec *check_dcclist_hand(char *);
237 void touch_laston(struct userrec *, char *, time_t);
238
239 /* users.c */
240 void addignore(char *, char *, char *, time_t);
241 int delignore(char *);
242 void tell_ignores(int, char *);
243 int match_ignore(char *);
244 void check_expired_ignores();
245 void autolink_cycle(char *);
246 void tell_file_stats(int, char *);
247 void tell_user_ident(int, char *, int);
248 void tell_users_match(int, char *, int, int, int, char *);
249 int readuserfile(char *, struct userrec **);
250
251 /* rfc1459.c */
252 int rfc_casecmp(char *, char *);
253 int rfc_ncasecmp(char *, char *, int);
254
255 #endif

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23