1 #ifndef MAIL_USER_H 2 #define MAIL_USER_H 3 4 struct stats; 5 6 extern struct mail_user *stable_mail_users; 7 8 struct mail_user *mail_user_login(const char *username); 9 void mail_user_disconnected(struct mail_user *user); 10 struct mail_user *mail_user_lookup(const char *username); 11 12 void mail_user_refresh(struct mail_user *user, 13 const struct stats *diff_stats) ATTR_NULL(2); 14 int mail_user_add_parse(const char *const *args, const char **error_r); 15 16 void mail_user_ref(struct mail_user *user); 17 void mail_user_unref(struct mail_user **user); 18 19 void mail_users_free_memory(void); 20 void mail_users_init(void); 21 void mail_users_deinit(void); 22 23 #endif 24