From: Stephan Bosch Date: Sun, 1 Dec 2019 10:30:09 +0000 (+0100) Subject: plugins: push-notification: Reformat push-notification-events-rfc5423.c. X-Git-Tag: 2.3.10~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=386f57c8eff1872c143e9dc0a1b82b09c29fc639;p=thirdparty%2Fdovecot%2Fcore.git plugins: push-notification: Reformat push-notification-events-rfc5423.c. --- diff --git a/src/plugins/push-notification/push-notification-events-rfc5423.c b/src/plugins/push-notification/push-notification-events-rfc5423.c index 3db512b3e7..10dd0c7e39 100644 --- a/src/plugins/push-notification/push-notification-events-rfc5423.c +++ b/src/plugins/push-notification/push-notification-events-rfc5423.c @@ -5,15 +5,14 @@ #include "push-notification-events.h" #include "push-notification-events-rfc5423.h" - /* These are the RFC 5423 Mail Store Events currently handled within the core - * push-notification code. - * - * @todo: These events are not currently handled: - * - Login - * - Logout - * - QuotaExceed - * - Quota Within + push-notification code. + + @todo: These events are not currently handled: + - Login + - Logout + - QuotaExceed + - Quota Within */ extern struct push_notification_event push_notification_event_flagsclear; extern struct push_notification_event push_notification_event_flagsset; @@ -29,30 +28,32 @@ extern struct push_notification_event push_notification_event_messageread; extern struct push_notification_event push_notification_event_messagetrash; static struct push_notification_event *rfc5423_events[] = { - &push_notification_event_flagsclear, - &push_notification_event_flagsset, - &push_notification_event_mailboxcreate, - &push_notification_event_mailboxdelete, - &push_notification_event_mailboxrename, - &push_notification_event_mailboxsubscribe, - &push_notification_event_mailboxunsubscribe, - &push_notification_event_messageappend, - &push_notification_event_messageexpunge, - &push_notification_event_messagenew, - &push_notification_event_messageread, - &push_notification_event_messagetrash + &push_notification_event_flagsclear, + &push_notification_event_flagsset, + &push_notification_event_mailboxcreate, + &push_notification_event_mailboxdelete, + &push_notification_event_mailboxrename, + &push_notification_event_mailboxsubscribe, + &push_notification_event_mailboxunsubscribe, + &push_notification_event_messageappend, + &push_notification_event_messageexpunge, + &push_notification_event_messagenew, + &push_notification_event_messageread, + &push_notification_event_messagetrash }; void push_notification_event_register_rfc5423_events(void) { - unsigned int i; - for (i = 0; i < N_ELEMENTS(rfc5423_events); i++) - push_notification_event_register(rfc5423_events[i]); + unsigned int i; + + for (i = 0; i < N_ELEMENTS(rfc5423_events); i++) + push_notification_event_register(rfc5423_events[i]); } void push_notification_event_unregister_rfc5423_events(void) { - unsigned int i; - for (i = 0; i < N_ELEMENTS(rfc5423_events); i++) - push_notification_event_unregister(rfc5423_events[i]); + unsigned int i; + + for (i = 0; i < N_ELEMENTS(rfc5423_events); i++) + push_notification_event_unregister(rfc5423_events[i]); }