userrec.h 899 B

12345678910111213141516171819202122232425262728
  1. #ifndef _USERREC_H
  2. #define _USERREC_H
  3. namespace bd {
  4. class Stream;
  5. }
  6. struct userrec *adduser(struct userrec *, const char *, char *, char *, flag_t, int);
  7. void addhost_by_handle(char *, char *);
  8. void clear_masks(struct maskrec *);
  9. void clear_userlist(struct userrec *);
  10. int u_pass_match(struct userrec *, const char *);
  11. int delhost_by_handle(char *, char *);
  12. int count_users(struct userrec *);
  13. int deluser(char *);
  14. int change_handle(struct userrec *, char *);
  15. void correct_handle(char *);
  16. void stream_writeuserfile(bd::Stream&, const struct userrec *, int idx, bool = 0);
  17. int real_write_userfile(int);
  18. int write_userfile(int);
  19. void touch_laston(struct userrec *, char *, time_t);
  20. void user_del_chan(char *);
  21. struct userrec *host_conflicts(char *);
  22. extern struct userrec *userlist, *lastuser;
  23. extern int cache_hit, cache_miss, userfile_perm;
  24. extern bool noshare;
  25. #endif /* !_USERREC_H */