summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-01-07 23:02:22 +0000
committerBenny Prijono <bennylp@teluu.com>2006-01-07 23:02:22 +0000
commit04154656f62797d41237611b9cf49dd3c24c21c4 (patch)
tree90dbec5ae1fa7551e7d6d4538c919d8941a3c328 /pjsip
parent4d13052a1303da4e4d0a376cf6b839ce9ebb6e7a (diff)
Added prev_state in tsx_state event
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@112 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/include/pjsip/sip_event.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pjsip/include/pjsip/sip_event.h b/pjsip/include/pjsip/sip_event.h
index 22b00727..03260a5f 100644
--- a/pjsip/include/pjsip/sip_event.h
+++ b/pjsip/include/pjsip/sip_event.h
@@ -122,7 +122,8 @@ struct pjsip_event
void *data; /**< Generic data. */
} src;
pjsip_transaction *tsx; /**< The transaction. */
- pjsip_event_id_e type; /**< Type of event source:
+ int prev_state; /**< Previous state. */
+ pjsip_event_id_e type; /**< Type of event source:
* - PJSIP_EVENT_TX_MSG
* - PJSIP_EVENT_RX_MSG,
* - PJSIP_EVENT_TRANSPORT_ERROR
@@ -204,12 +205,13 @@ struct pjsip_event
/**
* Init tsx state event.
*/
-#define PJSIP_EVENT_INIT_TSX_STATE(event,ptsx,ptype,pdata) \
+#define PJSIP_EVENT_INIT_TSX_STATE(event,ptsx,ptype,pdata,prev) \
do { \
(event).type = PJSIP_EVENT_TSX_STATE; \
(event).body.tsx_state.tsx = ptsx; \
(event).body.tsx_state.type = ptype; \
(event).body.tsx_state.src.data = pdata; \
+ (event).body.tsx_state.prev_state = prev; \
} while (0)
/**