Lines Matching refs:ptxn

31 push_notification_transaction_init(struct push_notification_txn *ptxn)
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;
72 ptxn = p_new(pool, struct push_notification_txn, 1);
73 ptxn->mbox = box;
75 ptxn->muser = mail_storage_get_user(storage);
76 ptxn->pool = pool;
77 ptxn->puser = PUSH_NOTIFICATION_USER_CONTEXT(ptxn->muser);
78 ptxn->t = t;
79 ptxn->trigger = PUSH_NOTIFICATION_EVENT_TRIGGER_NONE;
81 p_array_init(&ptxn->drivers, pool, 4);
83 return ptxn;
87 (struct push_notification_txn *ptxn, bool success)
91 if (ptxn->initialized) {
92 array_foreach_modifiable(&ptxn->drivers, dtxn) {
99 pool_unref(&ptxn->pool);
105 struct push_notification_txn *ptxn = (struct push_notification_txn *)txn;
113 push_notification_txn_mbox_end(ptxn);
115 push_notification_txn_msg_end(ptxn, changes);
118 push_notification_transaction_end(ptxn, TRUE);
124 struct push_notification_txn *ptxn;
126 ptxn = push_notification_transaction_create(box, NULL);
127 push_notification_trigger_mbox_create(ptxn, box, NULL);
128 push_notification_transaction_commit(ptxn, NULL);
134 struct push_notification_txn *ptxn;
136 ptxn = push_notification_transaction_create(box, NULL);
137 push_notification_trigger_mbox_delete(ptxn, box, NULL);
138 push_notification_transaction_commit(ptxn, NULL);
144 struct push_notification_txn *ptxn;
146 ptxn = push_notification_transaction_create(dest, NULL);
147 push_notification_trigger_mbox_rename(ptxn, src, dest, NULL);
148 push_notification_transaction_commit(ptxn, NULL);
154 struct push_notification_txn *ptxn;
156 ptxn = push_notification_transaction_create(box, NULL);
157 push_notification_trigger_mbox_subscribe(ptxn, box, subscribed, NULL);
158 push_notification_transaction_commit(ptxn, NULL);
163 struct push_notification_txn *ptxn = txn;
165 push_notification_transaction_init(ptxn);
169 push_notification_trigger_msg_save_new(ptxn, mail, NULL);
171 push_notification_trigger_msg_save_append(ptxn, mail, NULL);
184 struct push_notification_txn *ptxn = txn;
186 push_notification_transaction_init(ptxn);
194 struct push_notification_txn *ptxn = txn;
196 push_notification_transaction_init(ptxn);
204 struct push_notification_txn *ptxn = txn;
206 push_notification_transaction_init(ptxn);
218 struct push_notification_txn *ptxn = txn;
220 push_notification_transaction_end(ptxn, FALSE);