dccutil.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef _DCCUTIL_H
  2. #define _DCCUTIL_H
  3. #include "common.h"
  4. #include "dcc.h"
  5. #define dprintf dprintf_eggdrop
  6. /* Public structure for the listening port map */
  7. struct portmap {
  8. int realport;
  9. int mappedto;
  10. struct portmap *next;
  11. };
  12. /* Fake idx's for dprintf - these should be ridiculously large +ve nums
  13. */
  14. #define DP_STDOUT 0x7FF1
  15. #define DP_LOG 0x7FF2
  16. #define DP_SERVER 0x7FF3
  17. #define DP_HELP 0x7FF4
  18. #define DP_STDERR 0x7FF5
  19. #define DP_MODE 0x7FF6
  20. #define DP_MODE_NEXT 0x7FF7
  21. #define DP_SERVER_NEXT 0x7FF8
  22. #define DP_HELP_NEXT 0x7FF9
  23. #ifndef MAKING_MODS
  24. void dprintf (int, ...);
  25. void chatout (char *, ...);
  26. void chanout_but (int, ...);
  27. void dcc_chatter(int);
  28. void lostdcc(int);
  29. void makepass(char *);
  30. void tell_dcc(int);
  31. void not_away(int);
  32. void set_away(int, char *);
  33. void dcc_remove_lost(void);
  34. void flush_lines(int, struct chat_info *);
  35. struct dcc_t *find_idx(int);
  36. int new_dcc(struct dcc_table *, int);
  37. void del_dcc(int);
  38. char *add_cr(char *);
  39. void changeover_dcc(int, struct dcc_table *, int);
  40. void do_boot(int, char *, char *);
  41. int detect_dcc_flood(time_t *, struct chat_info *, int);
  42. #endif /* !MAKING_MODS */
  43. #endif /* !_DCCUTIL_H */