changeset 4230:8bf51d76a01d HEAD

hook_mail_storage_created: Make it compatible with imap and lda by not taking a pointer to pointer to storage.
author Timo Sirainen <tss@iki.fi>
date Thu, 27 Apr 2006 15:29:14 +0300
parents 58d4413314a4
children 8ac54879ca92
files src/pop3/common.h src/pop3/main.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3/common.h	Thu Apr 27 15:26:34 2006 +0300
+++ b/src/pop3/common.h	Thu Apr 27 15:29:14 2006 +0300
@@ -22,7 +22,7 @@
 extern const char *uidl_format, *logout_format;
 extern enum uidl_keys uidl_keymask;
 
-extern void (*hook_mail_storage_created)(struct mail_storage **storage);
+extern void (*hook_mail_storage_created)(struct mail_storage *storage);
 extern void (*hook_client_created)(struct client **client);
 
 #endif
--- a/src/pop3/main.c	Thu Apr 27 15:26:34 2006 +0300
+++ b/src/pop3/main.c	Thu Apr 27 15:29:14 2006 +0300
@@ -34,7 +34,7 @@
 
 struct ioloop *ioloop;
 
-void (*hook_mail_storage_created)(struct mail_storage **storage) = NULL;
+void (*hook_mail_storage_created)(struct mail_storage *storage) = NULL;
 void (*hook_client_created)(struct client **client) = NULL;
 
 static struct module *modules;
@@ -240,7 +240,7 @@
 	}
 
 	if (hook_mail_storage_created != NULL)
-		hook_mail_storage_created(&storage);
+		hook_mail_storage_created(storage);
 
 	return client_create(0, 1, storage) != NULL;
 }