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

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

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

revision 1.1.1.1 by segfault, Wed Jun 23 19:51:31 1999 UTC revision 1.25 by guppy, Thu Dec 21 20:03:49 2000 UTC
# Line 1  Line 1 
1  /*  /*
2   * prototypes!  for every function used outside its own module   * proto.h
3     *   prototypes for every function used outside its own module
4     *
5   * (i guess i'm not very modular, cuz there are a LOT of these.)   * (i guess i'm not very modular, cuz there are a LOT of these.)
6   * with full prototyping, some have been moved to other .h files   * with full prototyping, some have been moved to other .h files
7   * because they use structures in those (saves including those   * because they use structures in those
8   * .h files EVERY time) - Beldin   * (saves including those .h files EVERY time) - Beldin
9     *
10     * $Id$
11   */   */
12  /*  /*
13   * This file is part of the eggdrop source code   * Copyright (C) 1997  Robey Pointer
14   * copyright (c) 1997 Robey Pointer   * Copyright (C) 1999, 2000  Eggheads
15   * and is distributed according to the GNU general public license.   *
16   * For full details, read the top of 'main.c' or the file called   * This program is free software; you can redistribute it and/or
17   * COPYING that was distributed with this code.   * modify it under the terms of the GNU General Public License
18     * as published by the Free Software Foundation; either version 2
19     * of the License, or (at your option) any later version.
20     *
21     * This program is distributed in the hope that it will be useful,
22     * but WITHOUT ANY WARRANTY; without even the implied warranty of
23     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24     * GNU General Public License for more details.
25     *
26     * You should have received a copy of the GNU General Public License
27     * along with this program; if not, write to the Free Software
28     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
29   */   */
30    
31  #ifndef _H_PROTO  #ifndef _EGG_PROTO_H
32  #define _H_PROTO  #define _EGG_PROTO_H
33    
34  #include "../lush.h"  #include "../lush.h"
35    
# Line 29  void bzero(char *, int); Line 44  void bzero(char *, int);
44    
45  struct chanset_t;       /* keeps the compiler warnings down :) */  struct chanset_t;       /* keeps the compiler warnings down :) */
46  struct userrec;  struct userrec;
47  struct banrec;  struct maskrec;
48  struct igrec;  struct igrec;
49  struct flag_record;  struct flag_record;
50  struct list_type;  struct list_type;
# Line 39  struct tand_t_struct; Line 54  struct tand_t_struct;
54  extern void (*encrypt_pass) (char *, char *);  extern void (*encrypt_pass) (char *, char *);
55  extern char *(*encrypt_string) (char *, char *);  extern char *(*encrypt_string) (char *, char *);
56  extern char *(*decrypt_string) (char *, char *);  extern char *(*decrypt_string) (char *, char *);
57    extern int (*rfc_casecmp) (const char *, const char *);
58    extern int (*rfc_ncasecmp) (const char *, const char *, int);
59    extern int (*rfc_toupper) (int);
60    extern int (*rfc_tolower) (int);
61    extern int (*match_noterej) (struct userrec *, char *);
62    
63  #endif  #endif
64    
65  /* botcmd.c */  /* botcmd.c */
66  void bot_share(int, char *);  void bot_share(int, char *);
67  int base64_to_int(char *);  int base64_to_int(char *);
# Line 75  int getparty(char *, int); Line 96  int getparty(char *, int);
96    
97  /* botmsg.c */  /* botmsg.c */
98  int add_note(char *, char *, char *, int, int);  int add_note(char *, char *, char *, int, int);
99  int simple_sprintf VARARGS(char *, arg1);  int simple_sprintf EGG_VARARGS(char *, arg1);
100  void tandout_but VARARGS(int, arg1);  void tandout_but EGG_VARARGS(int, arg1);
101  char *int_to_base10(unsigned int);  char *int_to_base10(int);
102    char *unsigned_int_to_base10(unsigned int);
103  char *int_to_base64(unsigned int);  char *int_to_base64(unsigned int);
104    
105  /* chanprog.c */  /* chanprog.c */
106  void tell_verbose_uptime(int, int);  void tell_verbose_uptime(int);
107  void tell_verbose_status(int, int);  void tell_verbose_status(int);
108  void tell_settings(int);  void tell_settings(int);
109  int logmodes(char *);  int logmodes(char *);
110  int isowner(char *);  int isowner(char *);
# Line 109  char *stripmasktype(int); Line 131  char *stripmasktype(int);
131  void failed_link(int);  void failed_link(int);
132    
133  /* dccutil.c */  /* dccutil.c */
134  void dprintf VARARGS(int, arg1);  void dprintf EGG_VARARGS(int, arg1);
135  void chatout VARARGS(char *, arg1);  void chatout EGG_VARARGS(char *, arg1);
136  extern void (*shareout) ();  extern void (*shareout) ();
137  extern void (*sharein) (int, char *);  extern void (*sharein) (int, char *);
138  void chanout_but VARARGS(int, arg1);  void chanout_but EGG_VARARGS(int, arg1);
139  void dcc_chatter(int);  void dcc_chatter(int);
140  void lostdcc(int);  void lostdcc(int);
141    void removedcc(int);
142  void makepass(char *);  void makepass(char *);
143  void tell_dcc(int);  void tell_dcc(int);
144  void not_away(int);  void not_away(int);
145  void set_away(int, char *);  void set_away(int, char *);
146  void *_get_data_ptr(int, char *, int);  void *_get_data_ptr(int, char *, int);
147    void dcc_remove_lost(void);
148    
149  #define get_data_ptr(x) _get_data_ptr(x,__FILE__,__LINE__)  #define get_data_ptr(x) _get_data_ptr(x,__FILE__,__LINE__)
150  void flush_lines(int, struct chat_info *);  void flush_lines(int, struct chat_info *);
# Line 137  int detect_dcc_flood(time_t *, struct ch Line 161  int detect_dcc_flood(time_t *, struct ch
161  /* language.c */  /* language.c */
162  char *get_language(int);  char *get_language(int);
163  int cmd_loadlanguage(struct userrec *, int, char *);  int cmd_loadlanguage(struct userrec *, int, char *);
164    void add_lang_section(char *);
165    int del_lang_section(char *);
166    int exist_lang_section(char *);
167    
168  /* main.c */  /* main.c */
169  void fatal(char *, int);  void fatal(char *, int);
170  int expected_memory();  int expected_memory();
171    void patch(char *);
172    void eggContext(char *, int, char *);
173    void eggContextNote(char *, int, char *, char *);
174    void eggAssert(char *, int, char *, int);
175  void backup_userfile();  void backup_userfile();
176    
177  /* match.c */  /* match.c */
178  int _wild_match(register unsigned char *, register unsigned char *);  int _wild_match(register unsigned char *, register unsigned char *);
   
179  #define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))  #define wild_match(a,b) _wild_match((unsigned char *)(a),(unsigned char *)(b))
180    
181  /* mem.c */  /* mem.c */
# Line 158  void debug_mem_to_dcc(int); Line 188  void debug_mem_to_dcc(int);
188    
189  /* misc.c */  /* misc.c */
190  int my_strcpy(char *, char *);  int my_strcpy(char *, char *);
191  void putlog VARARGS(int, arg1);  void putlog EGG_VARARGS(int, arg1);
192  void flushlogs();  void flushlogs();
193  void check_logsize();  void check_logsize();
194  void maskhost(char *, char *);  void maskhost(char *, char *);
# Line 175  void help_subst(char *, char *, struct f Line 205  void help_subst(char *, char *, struct f
205  void sub_lang(int, char *);  void sub_lang(int, char *);
206  void show_motd(int);  void show_motd(int);
207  void tellhelp(int, char *, struct flag_record *, int);  void tellhelp(int, char *, struct flag_record *, int);
208    void tellwildhelp(int, char *, struct flag_record *);
209    void tellallhelp(int, char *, struct flag_record *);
210  void showhelp(char *, char *, struct flag_record *, int);  void showhelp(char *, char *, struct flag_record *, int);
211  int copyfile(char *, char *);  int copyfile(char *, char *);
212  int movefile(char *, char *);  int movefile(char *, char *);
# Line 184  void debug_help(int); Line 216  void debug_help(int);
216  void reload_help_data(void);  void reload_help_data(void);
217  void remove_gunk(char *);  void remove_gunk(char *);
218  char *extracthostname(char *);  char *extracthostname(char *);
219    void show_banner(int i);
220    void make_rand_str(char *, int);
221    
222  /* net.c */  /* net.c */
223  void my_memcpy(char *, char *, int);  void my_memcpy(char *, char *, int);
# Line 209  int sanitycheck_dcc(char *, char *, char Line 243  int sanitycheck_dcc(char *, char *, char
243  void protect_tcl();  void protect_tcl();
244  void unprotect_tcl();  void unprotect_tcl();
245  void do_tcl(char *, char *);  void do_tcl(char *, char *);
246  void set_tcl_vars();  int readtclprog(char *fname);
 int readtclprog(char *);  
247  int findidx(int);  int findidx(int);
248  int findanyidx(int);  int findanyidx(int);
249    
250  /* userent.c */  /* userent.c */
251  void list_type_kill(struct list_type *);  void list_type_kill(struct list_type *);
252  int list_type_expmem(struct list_type *);  int list_type_expmem(struct list_type *);
253    int xtra_set();
254    
255  /* userrec.c */  /* userrec.c */
256  struct userrec *adduser(struct userrec *, char *, char *, char *, int);  struct userrec *adduser(struct userrec *, char *, char *, char *, int);
257  void addhost_by_handle(char *, char *);  void addhost_by_handle(char *, char *);
258    void clear_masks(struct maskrec *);
259  void clear_userlist(struct userrec *);  void clear_userlist(struct userrec *);
260  int u_pass_match(struct userrec *, char *);  int u_pass_match(struct userrec *, char *);
261  int delhost_by_handle(char *, char *);  int delhost_by_handle(char *, char *);
# Line 234  int write_user(struct userrec *u, FILE * Line 269  int write_user(struct userrec *u, FILE *
269  void write_userfile(int);  void write_userfile(int);
270  struct userrec *check_dcclist_hand(char *);  struct userrec *check_dcclist_hand(char *);
271  void touch_laston(struct userrec *, char *, time_t);  void touch_laston(struct userrec *, char *, time_t);
272    void user_del_chan(char *);
273    
274  /* users.c */  /* users.c */
275  void addignore(char *, char *, char *, time_t);  void addignore(char *, char *, char *, time_t);
# Line 248  void tell_users_match(int, char *, int, Line 284  void tell_users_match(int, char *, int,
284  int readuserfile(char *, struct userrec **);  int readuserfile(char *, struct userrec **);
285    
286  /* rfc1459.c */  /* rfc1459.c */
287  int rfc_casecmp(char *, char *);  int _rfc_casecmp(const char *, const char *);
288  int rfc_ncasecmp(char *, char *, int);  int _rfc_ncasecmp(const char *, const char *, int);
289    int _rfc_toupper(int);
290    int _rfc_tolower(int);
291    
292  #endif  #endif              /* _EGG_PROTO_H */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.25

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23