From: Timo Sirainen Date: Mon, 11 Nov 2024 13:23:07 +0000 (+0200) Subject: lib-storage: Make struct mail_storage_service_user public X-Git-Tag: 2.4.0~275 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37be50bfab5b1666314d8f1f501f72c6f0ce50ea;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Make struct mail_storage_service_user public Mainly to allow plugin-specific module_contexts in the next commit. --- diff --git a/src/lib-storage/mail-storage-service.c b/src/lib-storage/mail-storage-service.c index 12020ac3ea..5699e78950 100644 --- a/src/lib-storage/mail-storage-service.c +++ b/src/lib-storage/mail-storage-service.c @@ -54,33 +54,6 @@ struct mail_storage_service_ctx { bool log_initialized:1; }; -struct mail_storage_service_user { - pool_t pool; - int refcount; - - struct mail_storage_service_ctx *service_ctx; - struct mail_storage_service_input input; - enum mail_storage_service_flags flags; - - struct event *event; - struct ioloop_context *ioloop_ctx; - const char *log_prefix, *auth_mech, *auth_token, *auth_user; - const char *master_user; - const char *local_name; - - const char *system_groups_user, *uid_source, *gid_source; - const char *chdir_path; - const struct mail_user_settings *user_set; - struct settings_instance *set_instance; - - unsigned int session_id_counter; - - bool anonymous:1; - bool admin:1; - bool master_service_user_set:1; - bool home_from_userdb:1; -}; - struct mail_storage_service_init_var_expand_ctx { struct mail_storage_service_ctx *ctx; const struct mail_storage_service_input *input; diff --git a/src/lib-storage/mail-storage-service.h b/src/lib-storage/mail-storage-service.h index 2331988345..60f2d2b6ea 100644 --- a/src/lib-storage/mail-storage-service.h +++ b/src/lib-storage/mail-storage-service.h @@ -87,6 +87,33 @@ struct mail_storage_service_input { bool no_free_init_failure:1; }; +struct mail_storage_service_user { + pool_t pool; + int refcount; + + struct mail_storage_service_ctx *service_ctx; + struct mail_storage_service_input input; + enum mail_storage_service_flags flags; + + struct event *event; + struct ioloop_context *ioloop_ctx; + const char *log_prefix, *auth_mech, *auth_token, *auth_user; + const char *master_user; + const char *local_name; + + const char *system_groups_user, *uid_source, *gid_source; + const char *chdir_path; + const struct mail_user_settings *user_set; + struct settings_instance *set_instance; + + unsigned int session_id_counter; + + bool anonymous:1; + bool admin:1; + bool master_service_user_set:1; + bool home_from_userdb:1; +}; + extern struct module *mail_storage_service_modules; struct mail_storage_service_ctx *