ban.h 342 B

12345678910111213141516
  1. #ifndef _BAN_H_
  2. #define _BAN_H_
  3. /* defined in ban.c */
  4. int ban_init(char* file);
  5. void ban_exit(void);
  6. void ban_load(void);
  7. void ban_save(void);
  8. int ban_ipbanned(char* ip);
  9. int ban_description(char* ip_or_name, char* buff, int size);
  10. char* ban_ip2name(char* ip);
  11. void ban_add(char* ip, char* name);
  12. void ban_remove(char* ip_or_name);
  13. #endif