dccutil.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. port_t realport;
  9. port_t 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. void dprintf(int, const char *, ...) __attribute__((format(printf, 2, 3)));
  24. void chatout(const char *, ...) __attribute__((format(printf, 1, 2)));
  25. void chanout_but(int, int, const char *, ...) __attribute__((format(printf, 3, 4)));
  26. void dcc_chatter(int);
  27. void lostdcc(int);
  28. void makepass(char *);
  29. void tell_dcc(int);
  30. void not_away(int);
  31. void set_away(int, char *);
  32. void dcc_remove_lost(void);
  33. void flush_lines(int, struct chat_info *);
  34. struct dcc_t *find_idx(int);
  35. int new_dcc(struct dcc_table *, int);
  36. void del_dcc(int);
  37. char *add_cr(char *);
  38. void changeover_dcc(int, struct dcc_table *, int);
  39. void do_boot(int, char *, char *);
  40. int detect_dcc_flood(time_t *, struct chat_info *, int);
  41. void identd_open();
  42. void identd_close();
  43. extern int max_dcc, connect_timeout;
  44. #endif /* !_DCCUTIL_H */