{
}
-static void mail_user_stats_fill_base(struct mail_user *user ATTR_UNUSED,
- struct stats *stats ATTR_UNUSED)
-{
-}
-
static struct mail_user *
mail_user_alloc_int(struct event *parent_event,
const char *username,
user->v.deinit = mail_user_deinit_base;
user->v.deinit_pre = mail_user_deinit_pre_base;
- user->v.stats_fill = mail_user_stats_fill_base;
p_array_init(&user->module_contexts, user->pool, 5);
return user;
}
mail_user_init_ssl_client_settings(user, ssl_set_r);
}
-void mail_user_stats_fill(struct mail_user *user, struct stats *stats)
-{
- user->v.stats_fill(user, stats);
-}
-
static int
mail_user_home_mkdir_try_ns(struct mail_namespace *ns, const char *home)
{
#include "process-stat.h"
struct module;
-struct stats;
struct fs_settings;
struct ssl_iostream_settings;
struct master_service_anvil_session;
struct mail_user_vfuncs {
void (*deinit)(struct mail_user *user);
void (*deinit_pre)(struct mail_user *user);
- void (*stats_fill)(struct mail_user *user, struct stats *stats);
};
struct mail_user_connection_data {
struct fs_settings *fs_set,
struct ssl_iostream_settings *ssl_set_r);
-/* Fill statistics for user. By default there are no statistics, so stats
- plugin must be loaded to have anything filled. */
-void mail_user_stats_fill(struct mail_user *user, struct stats *stats);
-
/* Try to mkdir() user's home directory. Ideally this should be called only
after the caller tries to create a file to the home directory, but it fails
with ENOENT. This way it avoids unnecessary disk IO to the home. */