summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_types.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2005-12-26 12:52:19 +0000
committerBenny Prijono <bennylp@teluu.com>2005-12-26 12:52:19 +0000
commit9b86a2145e18cb843e69167b10f3c7414c11c634 (patch)
treeaf539d9ce30ccd8f1d60cca5916496c442499375 /pjsip/include/pjsip/sip_types.h
parent346427b7dc57954f772beb165ef320c1639ba223 (diff)
Modify transport to use generic sockaddr address
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@105 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_types.h')
-rw-r--r--pjsip/include/pjsip/sip_types.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/pjsip/include/pjsip/sip_types.h b/pjsip/include/pjsip/sip_types.h
index 2f8f2d13..516d50d5 100644
--- a/pjsip/include/pjsip/sip_types.h
+++ b/pjsip/include/pjsip/sip_types.h
@@ -145,12 +145,20 @@ typedef struct pjsip_buffer
*/
typedef struct pjsip_host_port
{
- unsigned flag; /**< Flags of pjsip_transport_flags_e (not used in Via). */
- unsigned type; /**< Transport type (pjsip_transport_type_e), or zero. */
- pj_str_t host; /**< Host part. */
+ pj_str_t host; /**< Host part or IP address. */
int port; /**< Port number. */
} pjsip_host_port;
+/**
+ * Host information.
+ */
+typedef struct pjsip_host_info
+{
+ unsigned flag; /**< Flags of pjsip_transport_flags_e. */
+ pjsip_transport_type_e type; /**< Transport type. */
+ pjsip_host_port addr; /**< Address information. */
+} pjsip_host_info;
+
/**
* Convert exception ID into pj_status_t status.