dovecot: Added clients_init() and clients_deinit() back (for Man...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 7 12:49:44 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/c33c87781ab4
changeset: 7137:c33c87781ab4
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 07 12:49:40 2008 +0200
description:
Added clients_init() and clients_deinit() back (for Managesieve).

diffstat:

4 files changed, 25 insertions(+), 1 deletion(-)
src/imap-login/client.c          |   10 ++++++++++
src/login-common/client-common.h |    3 +++
src/login-common/main.c          |    3 ++-
src/pop3-login/client.c          |   10 ++++++++++

diffs (65 lines):

diff -r 24526ffec9a2 -r c33c87781ab4 src/imap-login/client.c
--- a/src/imap-login/client.c	Mon Jan 07 12:42:18 2008 +0200
+++ b/src/imap-login/client.c	Mon Jan 07 12:49:40 2008 +0200
@@ -630,3 +630,13 @@ void clients_destroy_all(void)
 		client_destroy(imap_client, "Disconnected: Shutting down");
 	}
 }
+
+void clients_init(void)
+{
+	/* Nothing to initialize for IMAP */
+}
+
+void clients_deinit(void)
+{
+	clients_destroy_all();
+}
diff -r 24526ffec9a2 -r c33c87781ab4 src/login-common/client-common.h
--- a/src/login-common/client-common.h	Mon Jan 07 12:42:18 2008 +0200
+++ b/src/login-common/client-common.h	Mon Jan 07 12:49:40 2008 +0200
@@ -47,4 +47,7 @@ void client_destroy_oldest(void);
 void client_destroy_oldest(void);
 void clients_destroy_all(void);
 
+void clients_init(void);
+void clients_deinit(void);
+
 #endif
diff -r 24526ffec9a2 -r c33c87781ab4 src/login-common/main.c
--- a/src/login-common/main.c	Mon Jan 07 12:42:18 2008 +0200
+++ b/src/login-common/main.c	Mon Jan 07 12:49:40 2008 +0200
@@ -337,6 +337,7 @@ static void main_init(void)
 
 	auth_client = auth_client_new(login_process_uid);
         auth_client_set_connect_notify(auth_client, auth_connect_notify, NULL);
+	clients_init();
 
 	value = getenv("LISTEN_FDS");
 	listen_count = value == NULL ? 0 : atoi(value);
@@ -367,7 +368,7 @@ static void main_deinit(void)
 
 	if (auth_client != NULL)
 		auth_client_free(&auth_client);
-	clients_destroy_all();
+	clients_deinit();
 	master_deinit();
 
 	lib_signals_deinit();
diff -r 24526ffec9a2 -r c33c87781ab4 src/pop3-login/client.c
--- a/src/pop3-login/client.c	Mon Jan 07 12:42:18 2008 +0200
+++ b/src/pop3-login/client.c	Mon Jan 07 12:49:40 2008 +0200
@@ -480,3 +480,13 @@ void clients_destroy_all(void)
 		client_destroy(pop3_client, "Disconnected: Shutting down");
 	}
 }
+
+void clients_init(void)
+{
+    /* Nothing to initialize for POP3 */
+}
+
+void clients_deinit(void)
+{
+	clients_destroy_all();
+}


More information about the dovecot-cvs mailing list