dovecot: Further const'ification of struct mech_module.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 20 14:42:44 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/bdb16967be64
changeset: 5788:bdb16967be64
user: Andrey Panin <pazke at donpac.ru>
date: Sun Jun 10 12:58:06 2007 +0400
description:
Further const'ification of struct mech_module.
diffstat:
6 files changed, 8 insertions(+), 8 deletions(-)
src/auth/auth-request-handler.c | 2 +-
src/auth/auth-request.c | 2 +-
src/auth/auth-request.h | 4 ++--
src/auth/auth.c | 4 ++--
src/auth/mech.c | 2 +-
src/auth/mech.h | 2 +-
diffs (90 lines):
diff -r 01c94fef3578 -r bdb16967be64 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c Wed Jun 20 02:17:55 2007 +0300
+++ b/src/auth/auth-request-handler.c Sun Jun 10 12:58:06 2007 +0400
@@ -245,7 +245,7 @@ bool auth_request_handler_auth_begin(str
bool auth_request_handler_auth_begin(struct auth_request_handler *handler,
const char *args)
{
- struct mech_module *mech;
+ const struct mech_module *mech;
struct auth_request *request;
const char *const *list, *name, *arg, *initial_resp;
const void *initial_resp_data;
diff -r 01c94fef3578 -r bdb16967be64 src/auth/auth-request.c
--- a/src/auth/auth-request.c Wed Jun 20 02:17:55 2007 +0300
+++ b/src/auth/auth-request.c Sun Jun 10 12:58:06 2007 +0400
@@ -23,7 +23,7 @@
#include <stdlib.h>
struct auth_request *
-auth_request_new(struct auth *auth, struct mech_module *mech,
+auth_request_new(struct auth *auth, const struct mech_module *mech,
mech_callback_t *callback, void *context)
{
struct auth_request *request;
diff -r 01c94fef3578 -r bdb16967be64 src/auth/auth-request.h
--- a/src/auth/auth-request.h Wed Jun 20 02:17:55 2007 +0300
+++ b/src/auth/auth-request.h Sun Jun 10 12:58:06 2007 +0400
@@ -46,7 +46,7 @@ struct auth_request {
are supposed to be stored to auth cache. */
struct auth_stream_reply *extra_cache_fields;
- struct mech_module *mech;
+ const struct mech_module *mech;
struct auth *auth;
struct auth_passdb *passdb;
struct auth_userdb *userdb;
@@ -91,7 +91,7 @@ struct auth_request {
};
struct auth_request *
-auth_request_new(struct auth *auth, struct mech_module *mech,
+auth_request_new(struct auth *auth, const struct mech_module *mech,
mech_callback_t *callback, void *context);
struct auth_request *auth_request_new_dummy(struct auth *auth);
void auth_request_ref(struct auth_request *request);
diff -r 01c94fef3578 -r bdb16967be64 src/auth/auth.c
--- a/src/auth/auth.c Wed Jun 20 02:17:55 2007 +0300
+++ b/src/auth/auth.c Sun Jun 10 12:58:06 2007 +0400
@@ -94,7 +94,7 @@ const string_t *auth_mechanisms_get_list
return str;
}
-static void auth_mech_register(struct auth *auth, struct mech_module *mech)
+static void auth_mech_register(struct auth *auth, const struct mech_module *mech)
{
struct mech_module_list *list;
@@ -186,7 +186,7 @@ void auth_init(struct auth *auth)
{
struct auth_passdb *passdb;
struct auth_userdb *userdb;
- struct mech_module *mech;
+ const struct mech_module *mech;
const char *const *mechanisms;
const char *env;
diff -r 01c94fef3578 -r bdb16967be64 src/auth/mech.c
--- a/src/auth/mech.c Wed Jun 20 02:17:55 2007 +0300
+++ b/src/auth/mech.c Sun Jun 10 12:58:06 2007 +0400
@@ -35,7 +35,7 @@ void mech_unregister_module(const struct
}
}
-struct mech_module *mech_module_find(const char *name)
+const struct mech_module *mech_module_find(const char *name)
{
struct mech_module_list *list;
diff -r 01c94fef3578 -r bdb16967be64 src/auth/mech.h
--- a/src/auth/mech.h Wed Jun 20 02:17:55 2007 +0300
+++ b/src/auth/mech.h Sun Jun 10 12:58:06 2007 +0400
@@ -44,7 +44,7 @@ struct mech_module_list {
void mech_register_module(const struct mech_module *module);
void mech_unregister_module(const struct mech_module *module);
-struct mech_module *mech_module_find(const char *name);
+const struct mech_module *mech_module_find(const char *name);
void mech_generic_auth_initial(struct auth_request *request,
const unsigned char *data, size_t data_size);
More information about the dovecot-cvs
mailing list