From: Timo Sirainen Date: Sat, 26 Jul 2003 18:22:44 +0000 (+0300) Subject: hook changes X-Git-Tag: 1.1.alpha1~4463 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c776fc36328447eea694ce01401d57b414911e0;p=thirdparty%2Fdovecot%2Fcore.git hook changes --HG-- branch : HEAD --- diff --git a/src/imap/client.c b/src/imap/client.c index ee3ef354f0..09c53d8cbf 100644 --- a/src/imap/client.c +++ b/src/imap/client.c @@ -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; } diff --git a/src/imap/common.h b/src/imap/common.h index 817d3417b9..c19dfd4237 100644 --- a/src/imap/common.h +++ b/src/imap/common.h @@ -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 diff --git a/src/imap/main.c b/src/imap/main.c index 3704e89488..ded65e796f 100644 --- a/src/imap/main.c +++ b/src/imap/main.c @@ -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 ?