Lines Matching refs:msg
9 #include "push-notification-txn-msg.h"
16 struct push_notification_txn_msg *msg = NULL;
19 msg = hash_table_lookup(txn->messages,
25 if (msg == NULL) {
26 msg = p_new(txn->pool, struct push_notification_txn_msg, 1);
27 msg->mailbox = mailbox_get_vname(mail->box);
29 msg->seq = txn->t->save_count;
30 msg->uid = mail->uid;
33 msg);
36 return msg;
88 push_notification_txn_msg_get_eventdata(struct push_notification_txn_msg *msg,
93 if (array_is_created(&msg->eventdata)) {
94 array_foreach_modifiable(&msg->eventdata, mevent) {
106 struct push_notification_txn_msg *msg,
112 if (!array_is_created(&msg->eventdata)) {
113 p_array_init(&msg->eventdata, txn->pool, 4);
120 array_append(&msg->eventdata, &mevent, 1);
124 push_notification_txn_msg_deinit_eventdata(struct push_notification_txn_msg *msg)
128 if (array_is_created(&msg->eventdata)) {
129 array_foreach_modifiable(&msg->eventdata, mevent) {
131 ((*mevent)->event->event->msg.free_msg != NULL)) {
132 (*mevent)->event->event->msg.free_msg(*mevent);