Searched refs:events (Results 1 - 17 of 17) sorted by relevance

/dovecot/src/lib/
H A Dioloop-epoll.c18 ARRAY(struct epoll_event) events; member in struct:ioloop_handler_context
27 i_array_init(&ctx->events, initial_fd_count);
55 array_free(&ioloop->handler_context->events);
65 int events = 0, i; local
75 events |= IO_EPOLL_INPUT;
77 events |= IO_EPOLL_OUTPUT;
79 events |= IO_EPOLL_ERROR;
82 return events;
101 event.events = epoll_event_mask(*list);
117 /* allow epoll_wait() to return the maximum number of events
166 struct epoll_event *events; local
[all...]
H A Dioloop-kqueue.c34 ARRAY(struct kevent) events; member in struct:ioloop_handler_context
47 i_array_init(&ctx->events, initial_fd_count);
54 array_free(&ioloop->handler_context->events);
74 /* allow kevent() to return the maximum number of events
79 array_append_zero(&ctx->events);
102 instead of appending to the events array */
113 struct kevent *events; local
126 /* wait for events */
127 events = array_get_modifiable(&ctx->events,
[all...]
H A Dioloop-poll.c83 ctx->fds[index].events = 0;
87 old_events = ctx->fds[index].events;
89 ctx->fds[index].events |= IO_POLL_INPUT;
91 ctx->fds[index].events |= IO_POLL_OUTPUT;
93 ctx->fds[index].events |= IO_POLL_ERROR;
94 i_assert(ctx->fds[index].events != old_events);
124 ctx->fds[index].events &= ~(POLLIN|POLLPRI);
128 ctx->fds[index].events &= ~POLLOUT;
132 if ((ctx->fds[index].events & (POLLIN|POLLOUT)) == 0) {
172 /* no I/O events */
[all...]
H A Dioloop-notify-kqueue.c55 struct kevent events[64]; local
62 ret = kevent(ctx->kq, NULL, 0, events, N_ELEMENTS(events), &ts);
75 io = (void *)events[i].udata;
80 io = (void *)events[i].udata;
81 /* there can be multiple events for a single io.
H A Dlib-event.c26 static struct event *events = NULL; variable in typeref:struct:event
69 DLLIST_PREPEND(&events, event);
81 i_panic("Can't create multiple passthrough events - finish the earlier with ->event()");
160 DLLIST_REMOVE(&events, event);
166 return events;
190 struct event *const *events = local
194 current_global_event = events[event_count-1];
899 for (struct event *event = events; event != NULL; event = event->next) {
/dovecot/src/plugins/push-notification/
H A Dpush-notification-events.c7 #include "push-notification-events.h"
17 const struct push_notification_event *const *events; local
19 events = array_get(&push_notification_events, &count);
21 if (strcasecmp(events[i]->name, name) == 0) {
52 if (!array_is_created(&dtxn->ptxn->events)) {
53 p_array_init(&dtxn->ptxn->events, dtxn->ptxn->pool, 4);
67 array_append(&dtxn->ptxn->events, &ec, 1);
H A Dpush-notification-triggers.c9 #include "push-notification-events.h"
38 if (array_is_created(&txn->events)) {
39 array_foreach_modifiable(&txn->events, ec) {
57 if (array_is_created(&txn->events)) {
58 array_foreach_modifiable(&txn->events, ec) {
77 if (array_is_created(&txn->events)) {
78 array_foreach_modifiable(&txn->events, ec) {
97 if (array_is_created(&txn->events)) {
98 array_foreach_modifiable(&txn->events, ec) {
135 if (array_is_created(&txn->events)) {
[all...]
H A Dpush-notification-drivers.h96 ARRAY(struct push_notification_event_config *) events; member in struct:push_notification_txn
98 /* Used with mailbox events. */
101 /* Used with mailbox events. */
104 /* Private (used with message events). */
H A Dpush-notification-driver-ox.c18 #include "push-notification-events.h"
205 /* Unused keys: events, expire, folder */
207 const char *const *events = default_events; local
256 for (; *events != NULL; events++) {
257 if (strcmp(*events, "MessageNew") == 0) {
/dovecot/src/imap/
H A Dimap-notify.c59 if ((rec->events & MAILBOX_LIST_NOTIFY_UIDVALIDITY) != 0) {
63 if ((rec->events & (MAILBOX_LIST_NOTIFY_APPENDS |
66 if ((rec->events & MAILBOX_LIST_NOTIFY_SEEN_CHANGES) != 0)
68 if ((rec->events & MAILBOX_LIST_NOTIFY_MODSEQ_CHANGES) != 0) {
94 if ((rec->events & MAILBOX_LIST_NOTIFY_CREATE) != 0) {
101 if ((rec->events & MAILBOX_LIST_NOTIFY_DELETE) != 0) {
105 if ((rec->events & MAILBOX_LIST_NOTIFY_RENAME) != 0) {
112 if ((rec->events & MAILBOX_LIST_NOTIFY_SUBSCRIBE) != 0) {
120 if ((rec->events & MAILBOX_LIST_NOTIFY_UNSUBSCRIBE) != 0) {
127 if ((rec->events
359 imap_events_to_notify(enum imap_notify_event events) argument
[all...]
H A Dcmd-notify.c52 const struct imap_arg *events)
60 if (imap_arg_get_atom(events, &str) &&
62 /* no events for selected mailbox. this is also the default
64 if (events[1].type != IMAP_ARG_EOL)
69 if (!imap_arg_get_list(events, &list))
71 if (events[1].type != IMAP_ARG_EOL)
130 enum imap_notify_event events)
136 notify_boxes->events == events)
141 notify_boxes->events
51 cmd_notify_set_selected(struct imap_notify_context *ctx, const struct imap_arg *events) argument
128 imap_notify_mailboxes_get(struct imap_notify_namespace *notify_ns, enum imap_notify_type type, enum imap_notify_event events) argument
147 cmd_notify_add_mailbox(struct imap_notify_context *ctx, struct mail_namespace *ns, const char *name, enum imap_notify_type type, enum imap_notify_event events) argument
205 cmd_notify_add_personal(struct imap_notify_context *ctx, enum imap_notify_event events) argument
240 cmd_notify_add_subscribed(struct imap_notify_context *ctx, enum imap_notify_event events) argument
253 cmd_notify_add_mailbox_namespaces(struct imap_notify_context *ctx, const char *name, enum imap_notify_type type, enum imap_notify_event events) argument
265 cmd_notify_add_mailboxes(struct imap_notify_context *ctx, const struct imap_arg *arg, enum imap_notify_type type, enum imap_notify_event events) argument
[all...]
H A Dimap-notify.h26 enum imap_notify_event events; member in struct:imap_notify_mailboxes
/dovecot/src/lib-storage/
H A Dmailbox-list-notify.h33 /* Each record can contain multiple events */
34 enum mailbox_list_notify_event events; member in struct:mailbox_list_notify_rec
36 /* For all events: */
H A Dmail-storage-service.c792 struct event *const *events; local
795 /* push the global events from stack in reverse order */
796 events = array_get(&user->event_stack, &count);
798 event_push_global(events[i-1]);
813 these global events back when the user's context is activated
815 global events have been popped.) */
1332 This event won't be a parent to any other events - mail_user.event
/dovecot/src/plugins/mail-log/
H A Dmail-log-plugin.c80 enum mail_log_event events; member in struct:mail_log_user
143 static enum mail_log_event event, events = 0; local
149 events |= event;
151 return events;
167 muser->events = str == NULL ? MAIL_LOG_DEFAULT_EVENTS :
331 if ((muser->events & event) == 0) {
482 if ((muser->events & MAIL_LOG_EVENT_MAILBOX_CREATE) == 0)
494 if ((muser->events & MAIL_LOG_EVENT_MAILBOX_DELETE) == 0)
506 if ((muser->events & MAIL_LOG_EVENT_MAILBOX_RENAME) == 0)
/dovecot/src/lib-storage/list/
H A Dmailbox-list-index-notify.c78 enum mailbox_list_notify_event events = 0; local
81 events |= MAILBOX_LIST_NOTIFY_UIDVALIDITY;
83 events |= MAILBOX_LIST_NOTIFY_APPENDS;
89 events |= MAILBOX_LIST_NOTIFY_EXPUNGES;
92 events |= MAILBOX_LIST_NOTIFY_SEEN_CHANGES;
94 events |= MAILBOX_LIST_NOTIFY_MODSEQ_CHANGES;
95 return events;
675 rec->events = MAILBOX_LIST_NOTIFY_RENAME;
691 rec->events = MAILBOX_LIST_NOTIFY_SUBSCRIBE;
707 rec->events
[all...]
/dovecot/src/stats/
H A Dclient-writer.c29 struct stats_event *events; member in struct:writer_client
75 for (event = client->events; event != NULL; event = next) {
165 DLLIST_PREPEND(&client->events, stats_event);
187 DLLIST_REMOVE(&client->events, stats_event);

Completed in 509 milliseconds