summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/include/pjsip/sip_types.h')
-rw-r--r--pjsip/include/pjsip/sip_types.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/pjsip/include/pjsip/sip_types.h b/pjsip/include/pjsip/sip_types.h
index 33e8ca03..64f5f3ae 100644
--- a/pjsip/include/pjsip/sip_types.h
+++ b/pjsip/include/pjsip/sip_types.h
@@ -1,5 +1,4 @@
/* $Id$
- *
*/
#ifndef __PJSIP_SIP_TYPES_H__
#define __PJSIP_SIP_TYPES_H__
@@ -71,6 +70,11 @@ typedef struct pjsip_rx_data pjsip_rx_data;
* Forward declaration for message (sip_msg.h).
*/
typedef struct pjsip_msg pjsip_msg;
+
+/**
+ * Forward declaration for header field (sip_msg.h).
+ */
+typedef struct pjsip_hdr pjsip_hdr;
/**
* Forward declaration for URI (sip_uri.h).
@@ -132,7 +136,26 @@ typedef struct pjsip_host_port
pj_str_t host; /**< Host part. */
int port; /**< Port number. */
} pjsip_host_port;
-
+
+
+/**
+ * Convert exception ID into pj_status_t status.
+ *
+ * @param exception_id Exception Id.
+ *
+ * @return Error code for the specified exception Id.
+ */
+PJ_DECL(pj_status_t) pjsip_exception_to_status(int exception_id);
+
+/**
+ * Return standard pj_status_t status from current exception.
+ */
+#define PJSIP_RETURN_EXCEPTION() pjsip_exception_to_status(PJ_GET_EXCEPTION())
+
+/**
+ * Attributes to inform that the function may throw exceptions.
+ */
+#define PJSIP_THROW_SPEC(list)
#endif /* __PJSIP_SIP_TYPES_H__ */