dovecot-2.0: lib-auth: Added auth_master_user_list_count().

dovecot at dovecot.org dovecot at dovecot.org
Fri May 15 23:47:20 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/602adc1f2f83
changeset: 9299:602adc1f2f83
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 15 16:46:51 2009 -0400
description:
lib-auth: Added auth_master_user_list_count().

diffstat:

2 files changed, 6 insertions(+)
src/lib-auth/auth-master.c |    5 +++++
src/lib-auth/auth-master.h |    1 +

diffs (26 lines):

diff -r 468273e27777 -r 602adc1f2f83 src/lib-auth/auth-master.c
--- a/src/lib-auth/auth-master.c	Fri May 15 16:25:29 2009 -0400
+++ b/src/lib-auth/auth-master.c	Fri May 15 16:46:51 2009 -0400
@@ -473,6 +473,11 @@ const char *auth_master_user_list_next(s
 	return ctx->user_strings[ctx->idx++];
 }
 
+unsigned int auth_master_user_list_count(struct auth_master_user_list_ctx *ctx)
+{
+	return ctx->user_count;
+}
+
 int auth_master_user_list_deinit(struct auth_master_user_list_ctx **_ctx)
 {
 	struct auth_master_user_list_ctx *ctx = *_ctx;
diff -r 468273e27777 -r 602adc1f2f83 src/lib-auth/auth-master.h
--- a/src/lib-auth/auth-master.h	Fri May 15 16:25:29 2009 -0400
+++ b/src/lib-auth/auth-master.h	Fri May 15 16:46:51 2009 -0400
@@ -21,6 +21,7 @@ struct auth_master_user_list_ctx *
 struct auth_master_user_list_ctx *
 auth_master_user_list_init(struct auth_master_connection *conn);
 const char *auth_master_user_list_next(struct auth_master_user_list_ctx *ctx);
+unsigned int auth_master_user_list_count(struct auth_master_user_list_ctx *ctx);
 /* Returns -1 if anything failed, 0 if ok */
 int auth_master_user_list_deinit(struct auth_master_user_list_ctx **ctx);
 


More information about the dovecot-cvs mailing list