Searched refs:ptxn (Results 1 - 21 of 21) sorted by relevance

/dovecot/src/plugins/push-notification/
H A Dpush-notification-plugin.c31 push_notification_transaction_init(struct push_notification_txn *ptxn) argument
37 if (ptxn->initialized) {
41 ptxn->initialized = TRUE;
43 storage = mailbox_get_storage(ptxn->mbox);
50 array_foreach_modifiable(&ptxn->puser->driverlist->drivers, duser) {
51 dtxn = p_new(ptxn->pool, struct push_notification_driver_txn, 1);
53 dtxn->ptxn = ptxn;
57 array_append(&ptxn->drivers, &dtxn, 1);
67 struct push_notification_txn *ptxn; local
86 push_notification_transaction_end(struct push_notification_txn *ptxn, bool success) argument
105 struct push_notification_txn *ptxn = (struct push_notification_txn *)txn; local
124 struct push_notification_txn *ptxn; local
134 struct push_notification_txn *ptxn; local
144 struct push_notification_txn *ptxn; local
154 struct push_notification_txn *ptxn; local
163 struct push_notification_txn *ptxn = txn; local
184 struct push_notification_txn *ptxn = txn; local
194 struct push_notification_txn *ptxn = txn; local
204 struct push_notification_txn *ptxn = txn; local
218 struct push_notification_txn *ptxn = txn; local
[all...]
H A Dpush-notification-event-mailboxcreate.c22 struct push_notification_txn *ptxn,
29 if (mailbox_get_status(ptxn->mbox, STATUS_UIDVALIDITY, &status) < 0) {
31 mailbox_get_vname(ptxn->mbox),
32 mailbox_get_last_internal_error(ptxn->mbox, NULL));
36 data = p_new(ptxn->pool,
40 push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
21 push_notification_event_mailboxcreate_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_mbox *mbox) argument
H A Dpush-notification-event-mailboxdelete.c21 struct push_notification_txn *ptxn,
27 data = p_new(ptxn->pool,
31 push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
20 push_notification_event_mailboxdelete_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_mbox *mbox) argument
H A Dpush-notification-event-mailboxsubscribe.c22 struct push_notification_txn *ptxn,
28 data = p_new(ptxn->pool,
32 push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
21 push_notification_event_mailboxsubscribe_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_mbox *mbox) argument
H A Dpush-notification-event-mailboxunsubscribe.c22 struct push_notification_txn *ptxn,
28 data = p_new(ptxn->pool,
32 push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
21 push_notification_event_mailboxunsubscribe_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_mbox *mbox) argument
H A Dpush-notification-events.h32 void (*create)(struct push_notification_txn *ptxn,
36 void (*delete)(struct push_notification_txn *ptxn,
40 void (*rename)(struct push_notification_txn *ptxn,
45 void (*subscribe)(struct push_notification_txn *ptxn,
49 void (*unsubscribe)(struct push_notification_txn *ptxn,
63 void (*save)(struct push_notification_txn *ptxn,
68 void (*append)(struct push_notification_txn *ptxn,
73 void (*expunge)(struct push_notification_txn *ptxn,
77 void (*flagchange)(struct push_notification_txn *ptxn,
83 void (*keywordchange)(struct push_notification_txn *ptxn,
[all...]
H A Dpush-notification-event-mailboxrename.c25 struct push_notification_txn *ptxn,
32 data = p_new(ptxn->pool,
36 push_notification_txn_mbox_set_eventdata(ptxn, mbox, ec, data);
24 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) argument
H A Dpush-notification-event-messageexpunge.c27 struct push_notification_txn *ptxn,
35 data = p_new(ptxn->pool,
38 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
26 push_notification_event_messageexpunge_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg) argument
H A Dpush-notification-event-messageappend.c51 push_notification_event_messageappend_event(struct push_notification_txn *ptxn, argument
67 data = p_new(ptxn->pool,
69 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
75 data->to = p_strdup(ptxn->pool, value);
81 data->from = p_strdup(ptxn->pool, value);
87 data->subject = p_strdup(ptxn->pool, value);
95 data->snippet = p_strdup(ptxn->pool, value + 1);
H A Dpush-notification-event-flagsset.c54 push_notification_event_flagsset_get_data(struct push_notification_txn *ptxn, argument
62 data = p_new(ptxn->pool,
65 p_array_init(&data->keywords_set, ptxn->pool, 4);
67 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
74 struct push_notification_txn *ptxn,
114 data = push_notification_event_flagsset_get_data(ptxn, msg, ec);
120 struct push_notification_txn *ptxn,
129 data = push_notification_event_flagsset_get_data(ptxn, msg, ec);
140 k = p_strdup(ptxn->pool, *keywords);
73 push_notification_event_flagsset_flags_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
119 push_notification_event_flagsset_keywords_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, const char *const *old_keywords) argument
H A Dpush-notification-event-messageread.c23 struct push_notification_txn *ptxn,
37 data = p_new(ptxn->pool,
40 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
22 push_notification_event_messageread_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
H A Dpush-notification-event-messagetrash.c23 struct push_notification_txn *ptxn,
37 data = p_new(ptxn->pool,
40 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
22 push_notification_event_messagetrash_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
H A Dpush-notification-event-flagsclear.c54 push_notification_event_flagsclear_get_data(struct push_notification_txn *ptxn, argument
64 data = p_new(ptxn->pool,
68 p_array_init(&data->keywords_clear, ptxn->pool, 4);
70 p_array_init(&data->keywords_old, ptxn->pool, 4);
73 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
80 struct push_notification_txn *ptxn,
99 data = push_notification_event_flagsclear_get_data(ptxn, msg, ec);
115 struct push_notification_txn *ptxn,
126 data = push_notification_event_flagsclear_get_data(ptxn, msg, ec);
137 ok = p_strdup(ptxn
79 push_notification_event_flagsclear_flags_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, enum mail_flags old_flags) argument
114 push_notification_event_flagsclear_keywords_event( struct push_notification_txn *ptxn, struct push_notification_event_config *ec, struct push_notification_txn_msg *msg, struct mail *mail, const char *const *old_keywords) argument
[all...]
H A Dpush-notification-txn-mbox.h20 push_notification_txn_mbox_end(struct push_notification_txn *ptxn);
H A Dpush-notification-event-messagenew.c61 push_notification_event_messagenew_event(struct push_notification_txn *ptxn, argument
79 data = p_new(ptxn->pool,
83 push_notification_txn_msg_set_eventdata(ptxn, msg, ec, data);
89 data->to = p_strdup(ptxn->pool, value);
95 data->from = p_strdup(ptxn->pool, value);
101 data->subject = p_strdup(ptxn->pool, value);
116 data->snippet = p_strdup(ptxn->pool, value + 1);
H A Dpush-notification-txn-msg.c40 push_notification_txn_msg_end(struct push_notification_txn *ptxn, argument
51 if (!hash_table_is_created(ptxn->messages)) {
55 hiter = hash_table_iterate_init(ptxn->messages);
60 mailbox_get_open_status(ptxn->mbox, STATUS_UIDVALIDITY, &status);
66 while (hash_table_iterate(hiter, ptxn->messages, &key, &value)) {
74 array_foreach_modifiable(&ptxn->drivers, dtxn) {
84 hash_table_destroy(&ptxn->messages);
H A Dpush-notification-events.c52 if (!array_is_created(&dtxn->ptxn->events)) {
53 p_array_init(&dtxn->ptxn->events, dtxn->ptxn->pool, 4);
63 ec = p_new(dtxn->ptxn->pool, struct push_notification_event_config, 1);
67 array_append(&dtxn->ptxn->events, &ec, 1);
H A Dpush-notification-txn-mbox.c25 push_notification_txn_mbox_end(struct push_notification_txn *ptxn) argument
29 if (ptxn->mbox_txn != NULL) {
30 array_foreach_modifiable(&ptxn->drivers, dtxn) {
32 (*dtxn)->duser->driver->v.process_mbox(*dtxn, ptxn->mbox_txn);
36 push_notification_txn_mbox_deinit_eventdata(ptxn->mbox_txn);
H A Dpush-notification-driver-ox.c157 if ((dtxn->ptxn->t != NULL) && dtxn->ptxn->mbox->inbox_user) {
158 inbox = dtxn->ptxn->mbox;
161 ns = mail_namespace_find_inbox(dtxn->ptxn->muser->namespaces);
171 push_notification_driver_debug(OX_LOG_LABEL, dtxn->ptxn->muser,
203 struct mail_user *user = dtxn->ptxn->muser;
218 mbox_curr = mailbox_get_vname(dtxn->ptxn->mbox);
233 txn = p_new(dtxn->ptxn->pool, struct push_notification_driver_ox_txn, 1);
244 txn->unsafe_user = p_strdup(dtxn->ptxn->pool, value);
258 config = p_new(dtxn->ptxn
[all...]
H A Dpush-notification-txn-msg.h28 push_notification_txn_msg_end(struct push_notification_txn *ptxn,
H A Dpush-notification-drivers.h65 struct push_notification_txn *ptxn; member in struct:push_notification_driver_txn

Completed in 16 milliseconds