]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
plugins: push-notification: Reformat push-notification-event-mailboxrename.c.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 1 Dec 2019 10:26:35 +0000 (11:26 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 6 Feb 2020 12:18:41 +0000 (12:18 +0000)
src/plugins/push-notification/push-notification-event-mailboxrename.c

index e34ad601ba4e20f49983d0c35f830380591f594a..e4c2cae06010ef54a76f5a6a69e239436cea2bb4 100644 (file)
@@ -8,45 +8,43 @@
 #include "push-notification-event-mailboxrename.h"
 #include "push-notification-txn-mbox.h"
 
-
 #define EVENT_NAME "MailboxRename"
 
-
-static void push_notification_event_mailboxrename_debug_mbox
-(struct push_notification_txn_event *event)
+static void
+push_notification_event_mailboxrename_debug_mbox(
+       struct push_notification_txn_event *event)
 {
-    struct push_notification_event_mailboxrename_data *data = event->data;
+       struct push_notification_event_mailboxrename_data *data = event->data;
 
-    i_debug("%s: Mailbox was renamed (old name: %s)",
-            EVENT_NAME, data->old_mbox);
+       i_debug("%s: Mailbox was renamed (old name: %s)",
+               EVENT_NAME, data->old_mbox);
 }
 
-static void push_notification_event_mailboxrename_event(
-    struct push_notification_txn *ptxn,
-    struct push_notification_event_config *ec,
-    struct push_notification_txn_mbox *mbox,
-    struct mailbox *old)
+static void
+push_notification_event_mailboxrename_event(
+       struct push_notification_txn *ptxn,
+       struct push_notification_event_config *ec,
+       struct push_notification_txn_mbox *mbox, struct mailbox *old)
 {
-    struct push_notification_event_mailboxrename_data *data;
+       struct push_notification_event_mailboxrename_data *data;
 
-    data = p_new(ptxn->pool,
-                 struct push_notification_event_mailboxrename_data, 1);
-    data->old_mbox = mailbox_get_vname(old);
+       data = p_new(ptxn->pool,
+                    struct push_notification_event_mailboxrename_data, 1);
+       data->old_mbox = mailbox_get_vname(old);
 
-    push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
+       push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
 }
 
-
 /* Event definition */
 
 extern struct push_notification_event push_notification_event_mailboxrename;
 
 struct push_notification_event push_notification_event_mailboxrename = {
-    .name = EVENT_NAME,
-    .mbox = {
-        .debug_mbox = push_notification_event_mailboxrename_debug_mbox
-    },
-    .mbox_triggers = {
-        .rename = push_notification_event_mailboxrename_event
-    }
+       .name = EVENT_NAME,
+       .mbox = {
+               .debug_mbox = push_notification_event_mailboxrename_debug_mbox,
+       },
+       .mbox_triggers = {
+               .rename = push_notification_event_mailboxrename_event,
+       },
 };