dccutil.h 986 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _DCCUTIL_H
  2. #define _DCCUTIL_H
  3. #include "common.h"
  4. #include "dcc.h"
  5. #ifdef HAVE_DPRINTF
  6. # define dprintf dprintf_eggdrop
  7. #endif
  8. /* Public structure for the listening port map */
  9. struct portmap {
  10. int realport;
  11. int mappedto;
  12. struct portmap *next;
  13. };
  14. #ifndef MAKING_MODS
  15. void dprintf (int, ...);
  16. void chatout (char *, ...);
  17. extern void (*shareout) ();
  18. extern void (*sharein) (int, char *);
  19. extern void (*shareupdatein) (int, char *);
  20. void chanout_but (int, ...);
  21. void dcc_chatter(int);
  22. void lostdcc(int);
  23. void makepass(char *);
  24. void tell_dcc(int);
  25. void not_away(int);
  26. void set_away(int, char *);
  27. void dcc_remove_lost(void);
  28. void flush_lines(int, struct chat_info *);
  29. struct dcc_t *find_idx(int);
  30. int new_dcc(struct dcc_table *, int);
  31. void del_dcc(int);
  32. char *add_cr(char *);
  33. void changeover_dcc(int, struct dcc_table *, int);
  34. void do_boot(int, char *, char *);
  35. int detect_dcc_flood(time_t *, struct chat_info *, int);
  36. #endif /* !MAKING_MODS */
  37. #endif /* !_DCCUTIL_H */