push-notification-events.c revision 51ed197520dd9ea534fbc3bc1790ebe3cb5421e2
/* Copyright (c) 2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "push-notification-drivers.h"
#include "push-notification-events.h"
static bool
{
unsigned int count, i;
const struct push_notification_event *const *events;
for (i = 0; i < count; i++) {
*idx_r = i;
return TRUE;
}
}
return FALSE;
}
static const struct push_notification_event *
push_notification_event_find_class(const char *driver)
{
const struct push_notification_event *const *class_p;
unsigned int idx;
return NULL;
}
return *class_p;
}
void
const char *event_name, void *config)
{
const struct push_notification_event *event;
struct push_notification_event_config *ec;
}
}
}
}
(const struct push_notification_event *event)
{
unsigned int idx;
if (!array_is_created(&push_notification_events)) {
}
i_panic("push_notification_event_register(%s): duplicate event",
}
}
(const struct push_notification_event *event)
{
unsigned int idx;
i_panic("push_notification_event_register(%s): unknown event",
}
if (array_is_created(&push_notification_events)) {
if (array_is_empty(&push_notification_events)) {
}
}
}