Commit d3df2033 authored by Pekka Pessi's avatar Pekka Pessi

Added NUTAG_OFFER_RECV(), NUTAG_ANSWER_SENT(), NUTAG_OFFER_SENT(), NUTAG_ANSWER_RECV().

darcs-hash:20050929182419-65a35-166fae1f84f1150065b403a44508d30fc729e2bf.gz
parent 27b103bd
......@@ -63,6 +63,10 @@ tag_typedef_t nutag_media_subsystem = PTRTAG_TYPEDEF(media_session);
tag_typedef_t nutag_media_session = PTRTAG_TYPEDEF(media_session);
tag_typedef_t nutag_callstate = INTTAG_TYPEDEF(callstate);
tag_typedef_t nutag_offer_recv = BOOLTAG_TYPEDEF(offer_recv);
tag_typedef_t nutag_answer_recv = BOOLTAG_TYPEDEF(answer_recv);
tag_typedef_t nutag_offer_sent = BOOLTAG_TYPEDEF(offer_sent);
tag_typedef_t nutag_answer_sent = BOOLTAG_TYPEDEF(answer_sent);
tag_typedef_t nutag_substate = INTTAG_TYPEDEF(substate);
tag_typedef_t nutag_invite_timer = INTTAG_TYPEDEF(invite_timer);
tag_typedef_t nutag_session_timer = INTTAG_TYPEDEF(session_timer);
......
......@@ -1165,6 +1165,70 @@ extern tag_typedef_t nutag_media_enable;
nutag_media_enable_ref, tag_bool_vr(&(x))
extern tag_typedef_t nutag_media_enable_ref;
/** Indicate that SDP offer has been received.
*
* @par Used with
* #nua_i_state
*
* @par Parameter type
* boolean
*
* Corresponding tag taking reference parameter is NUTAG_OFFER_RECV_REF()
*/
#define NUTAG_OFFER_RECV(x) nutag_offer_recv, tag_bool_v(x)
extern tag_typedef_t nutag_offer_recv;
#define NUTAG_OFFER_RECV_REF(x) nutag_offer_recv_ref, tag_bool_vr(&(x))
extern tag_typedef_t nutag_offer_recv_ref;
/** Indicate that SDP answer has been received.
*
* @par Used with
* #nua_i_state
*
* @par Parameter type
* boolean
*
* Corresponding tag taking reference parameter is NUTAG_ANSWER_RECV_REF()
*/
#define NUTAG_ANSWER_RECV(x) nutag_answer_recv, tag_bool_v(x)
extern tag_typedef_t nutag_answer_recv;
#define NUTAG_ANSWER_RECV_REF(x) nutag_answer_recv_ref, tag_bool_vr(&(x))
extern tag_typedef_t nutag_answer_recv_ref;
/** Indicate that SDP offer has been sent.
*
* @par Used with
* #nua_i_state
*
* @par Parameter type
* boolean
*
* Corresponding tag taking reference parameter is NUTAG_OFFER_SENT_REF()
*/
#define NUTAG_OFFER_SENT(x) nutag_offer_sent, tag_bool_v(x)
extern tag_typedef_t nutag_offer_sent;
#define NUTAG_OFFER_SENT_REF(x) nutag_offer_sent_ref, tag_bool_vr(&(x))
extern tag_typedef_t nutag_offer_sent_ref;
/** Indicate that SDP answer has been sent.
*
* @par Used with
* #nua_i_state
*
* @par Parameter type
* boolean
*
* Corresponding tag taking reference parameter is NUTAG_ANSWER_SENT_REF()
*/
#define NUTAG_ANSWER_SENT(x) nutag_answer_sent, tag_bool_v(x)
extern tag_typedef_t nutag_answer_sent;
#define NUTAG_ANSWER_SENT_REF(x) nutag_answer_sent_ref, tag_bool_vr(&(x))
extern tag_typedef_t nutag_answer_sent_ref;
#if SU_HAVE_INLINE
su_inline tag_value_t nutag_handle_v(nua_handle_t *v) { return (tag_value_t)v; }
su_inline tag_value_t nutag_handle_vr(nua_handle_t **vp) {return(tag_value_t)vp;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment