]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
hook changes
authorTimo Sirainen <tss@iki.fi>
Sat, 26 Jul 2003 18:22:44 +0000 (21:22 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 26 Jul 2003 18:22:44 +0000 (21:22 +0300)
--HG--
branch : HEAD

src/imap/client.c
src/imap/common.h
src/imap/main.c

index ee3ef354f03fc3007507920f2c9236b3bead265c..09c53d8cbf54b4edb9e2261d186f0a85cbe47817 100644 (file)
@@ -72,7 +72,7 @@ struct client *client_create(int hin, int hout, struct mail_storage *storage)
        my_client = client;
 
        if (hook_client_created != NULL)
-               hook_client_created(client);
+               hook_client_created(&client);
        return client;
 }
 
index 817d3417b9a7499dac5291794132fb1df1462317..c19dfd423768f2bcd61bce42e7f5a07738026485 100644 (file)
@@ -21,7 +21,7 @@ extern enum mailbox_open_flags mailbox_open_flags;
 
 extern string_t *capability_string;
 
-extern void (*hook_mail_storage_created)(struct mail_storage *storage);
-extern void (*hook_client_created)(struct client *client);
+extern void (*hook_mail_storage_created)(struct mail_storage **storage);
+extern void (*hook_client_created)(struct client **client);
 
 #endif
index 3704e89488ccd97379331743685f8a2518855ed8..ded65e796fb48a2792cb8361b413fb70d943e33f 100644 (file)
@@ -29,8 +29,8 @@ enum mailbox_open_flags mailbox_open_flags;
 static struct module *modules;
 static char log_prefix[128]; /* syslog() needs this to be permanent */
 
-void (*hook_mail_storage_created)(struct mail_storage *storage) = NULL;
-void (*hook_client_created)(struct client *client) = NULL;
+void (*hook_mail_storage_created)(struct mail_storage **storage) = NULL;
+void (*hook_client_created)(struct client **client) = NULL;
 
 string_t *capability_string;
 
@@ -138,7 +138,7 @@ static void main_init(void)
        }
 
        if (hook_mail_storage_created != NULL)
-               hook_mail_storage_created(storage);
+               hook_mail_storage_created(&storage);
 
        str = getenv("IMAP_MAX_LINE_LENGTH");
        imap_max_line_length = str != NULL ?