From 2c776fc36328447eea694ce01401d57b414911e0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 26 Jul 2003 21:22:44 +0300 Subject: [PATCH] hook changes --HG-- branch : HEAD --- src/imap/client.c | 2 +- src/imap/common.h | 4 ++-- src/imap/main.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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 ? -- 2.47.3