diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-05-28 12:58:57 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-05-28 12:58:57 +0000 |
commit | 6a45ddbfa87978d32e35656f947e6ef8da9f1faf (patch) | |
tree | 9c75638a58fc7178d24aacc01fb1cc88ae5c5c36 /pjsip/include | |
parent | 0b62c939eabed42c3abb87f5ed35dadfed47fc35 (diff) |
Fixed ticket #306: Error in SIP transport lookup because of memory alignment problem (thanks Samuel Vinson)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1310 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_transport.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/pjsip/include/pjsip/sip_transport.h b/pjsip/include/pjsip/sip_transport.h index aadd51ea..a86a0319 100644 --- a/pjsip/include/pjsip/sip_transport.h +++ b/pjsip/include/pjsip/sip_transport.h @@ -605,8 +605,29 @@ PJ_DECL(pj_status_t) pjsip_tx_data_set_transport(pjsip_tx_data *tdata, * TRANSPORT * *****************************************************************************/ +/** + * Type of callback to receive transport operation status. + */ typedef void (*pjsip_transport_callback)(pjsip_transport *tp, void *token, pj_ssize_t sent_bytes); + +/** + * This structure describes transport key to be registered to hash table. + */ +typedef struct pjsip_transport_key +{ + /** + * Transport type. + */ + long type; + + /** + * Destination address. + */ + pj_sockaddr rem_addr; + +} pjsip_transport_key; + /** * This structure represent the "public" interface of a SIP transport. * Applications normally extend this structure to include transport @@ -623,10 +644,7 @@ struct pjsip_transport pj_bool_t is_shutdown; /**< Being shutdown? */ /** Key for indexing this transport in hash table. */ - struct { - pjsip_transport_type_e type; /**< Transport type. */ - pj_sockaddr rem_addr; /**< Remote addr (zero for UDP) */ - } key; + pjsip_transport_key key; char *type_name; /**< Type name. */ unsigned flag; /**< #pjsip_transport_flags_e */ |