~ubuntu-branches/ubuntu/lucid/eggdrop/lucid

« back to all changes in this revision

Viewing changes to src/proto.h

  • Committer: Bazaar Package Importer
  • Author(s): Guilherme de S. Pastore
  • Date: 2004-06-17 09:15:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040617091528-64rrw1sa33lkfhmh
Tags: 1.6.16-2
* Fixed typo on README.Debian
* Fixed hyphens in manual page
* Converted debian/rules to CDBS
* Set path to binary on example config file
* Changed LANGDIR on src/eggdrop.h (Closes: #254824)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * because they use structures in those
8
8
 * (saves including those .h files EVERY time) - Beldin
9
9
 *
10
 
 * $Id: proto.h,v 1.48 2002/01/02 03:46:36 guppy Exp $
 
10
 * $Id: proto.h,v 1.62 2004/01/09 12:07:22 wcc Exp $
11
11
 */
12
12
/*
13
13
 * Copyright (C) 1997 Robey Pointer
14
 
 * Copyright (C) 1999, 2000, 2001, 2002 Eggheads Development Team
 
14
 * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
15
15
 *
16
16
 * This program is free software; you can redistribute it and/or
17
17
 * modify it under the terms of the GNU General Public License
38
38
#define dprintf dprintf_eggdrop
39
39
#endif
40
40
 
41
 
struct chanset_t;               /* keeps the compiler warnings down :) */
 
41
struct chanset_t;               /* keeps the compiler warnings down :) */
42
42
struct userrec;
43
43
struct maskrec;
44
44
struct igrec;
69
69
void tell_bots(int);
70
70
void tell_bottree(int, int);
71
71
int botlink(char *, int, char *);
72
 
int botunlink(int, char *, char *);
 
72
int botunlink(int, char *, char *, char *);
73
73
void dump_links(int);
74
74
void addbot(char *, char *, char *, char, int);
75
75
void updatebot(int, char *, char, int);
125
125
 
126
126
/* dcc.c */
127
127
void failed_link(int);
 
128
void strip_mirc_codes(int, char *);
 
129
int check_ansi(char *);
128
130
void dupwait_notify(char *);
129
131
 
130
132
/* dccutil.c */
135
137
void chanout_but EGG_VARARGS(int, arg1);
136
138
void dcc_chatter(int);
137
139
void lostdcc(int);
 
140
void killtransfer(int);
138
141
void removedcc(int);
139
142
void makepass(char *);
140
143
void tell_dcc(int);
184
187
 
185
188
/* match.c */
186
189
int _wild_match(register unsigned char *, register unsigned char *);
 
190
int _wild_match_per(register unsigned char *, register unsigned char *);
 
191
 
187
192
#define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))
 
193
#define wild_match_per(a,b) _wild_match_per((unsigned char *)(a),(unsigned char *)(b))
188
194
 
189
195
/* mem.c */
190
196
void *n_malloc(int, const char *, int);
195
201
void debug_mem_to_dcc(int);
196
202
 
197
203
/* misc.c */
198
 
int egg_strcatn(char *dst, const char *src, size_t max);
 
204
int egg_strcatn(char *, const char *, size_t);
199
205
int my_strcpy(char *, char *);
200
206
void putlog EGG_VARARGS(int, arg1);
201
207
void flushlogs();
202
208
void check_logsize();
203
 
void maskhost(const char *, char *);
204
209
char *stristr(char *, char *);
205
210
void splitc(char *, char *, char);
206
211
void splitcn(char *, char *, char, size_t);
 
212
void remove_crlf(char **);
207
213
char *newsplit(char **);
208
214
char *splitnick(char **);
209
215
void stridx(char *, char *, int);
218
224
void tellwildhelp(int, char *, struct flag_record *);
219
225
void tellallhelp(int, char *, struct flag_record *);
220
226
void showhelp(char *, char *, struct flag_record *, int);
221
 
void rem_help_reference(char *file);
222
 
void add_help_reference(char *file);
 
227
void rem_help_reference(char *);
 
228
void add_help_reference(char *);
223
229
void debug_help(int);
224
230
void reload_help_data(void);
225
231
char *extracthostname(char *);
228
234
int oatoi(const char *);
229
235
int is_file(const char *);
230
236
void logsuffix_change(char *);
231
 
char *str_escape(const char *str, const char div, const char mask);
232
 
char *strchr_unescape(char *str, const char div, register const char esc_char);
233
 
void str_unescape(char *str, register const char esc_char);
 
237
char *str_escape(const char *, const char, const char);
 
238
char *strchr_unescape(char *, const char, register const char);
 
239
void str_unescape(char *, register const char);
 
240
int str_isdigit(const char *);
234
241
void kill_bot(char *, char *);
235
242
 
 
243
void _maskhost(const char *, char *, int);
 
244
#define maskhost(a,b) _maskhost((a),(b),1)
 
245
#define maskban(a,b)  _maskhost((a),(b),0)
 
246
 
236
247
/* net.c */
237
248
IP my_atoul(char *);
238
249
unsigned long iptolong(IP);
245
256
void killsock(int);
246
257
int answer(int, char *, unsigned long *, unsigned short *, int);
247
258
inline int open_listen(int *);
248
 
int open_address_listen(IP addr, int *port);
 
259
int open_address_listen(IP addr, int *);
249
260
int open_telnet(char *, int);
250
261
int open_telnet_dcc(int, char *, char *);
251
262
int open_telnet_raw(int, char *, int);
286
297
void freeuser(struct userrec *);
287
298
int change_handle(struct userrec *, char *);
288
299
void correct_handle(char *);
289
 
int write_user(struct userrec *u, FILE * f, int shr);
 
300
int write_user(struct userrec *, FILE *, int);
 
301
int write_ignores(FILE *f, int);
290
302
void write_userfile(int);
291
303
struct userrec *check_dcclist_hand(char *);
292
304
void touch_laston(struct userrec *, char *, time_t);
311
323
int _rfc_toupper(int);
312
324
int _rfc_tolower(int);
313
325
 
314
 
#endif                          /* _EGG_PROTO_H */
 
326
#endif /* _EGG_PROTO_H */