/* Event definition */
-extern struct push_notification_event push_notification_event_messagenew;
-
struct push_notification_event push_notification_event_messagenew = {
.name = EVENT_NAME,
.init = {
ARRAY_TYPE(push_notification_event) push_notification_events;
+ARRAY_TYPE(push_notification_event) *push_notification_get_events(void)
+{
+ return &push_notification_events;
+}
static bool
push_notification_event_find(const char *name, unsigned int *idx_r)
const struct push_notification_event *);
extern ARRAY_TYPE(push_notification_event) push_notification_events;
+ARRAY_TYPE(push_notification_event) *push_notification_get_events(void);
+
void
push_notification_event_init(struct push_notification_driver_txn *dtxn,
.name = "push_notification",
};
+struct event_category *push_notification_get_event_category(void)
+{
+ return &event_category_push_notification;
+}
+
+struct push_notification_event *
+push_notification_get_event_messagenew(void)
+{
+ return &push_notification_event_messagenew;
+}
+
static void
push_notification_transaction_init(struct push_notification_txn *ptxn)
{
extern const char *push_notification_plugin_dependencies[];
extern struct event_category event_category_push_notification;
+extern struct push_notification_event push_notification_event_messagenew;
struct module;
+struct event_category *push_notification_get_event_category(void);
+struct push_notification_event *push_notification_get_event_messagenew(void);
+
void push_notification_plugin_init(struct module *module);
void push_notification_plugin_deinit(void);