Commit d58e989a authored by Pekka Pessi's avatar Pekka Pessi

Added SOATAG_ACTIVE_* stuff.

darcs-hash:20050929182116-65a35-0ff3ddbe43f8dc4af0d671a3240d77ac75f1d5e1.gz
parent 104c1905
......@@ -236,6 +236,104 @@ tag_typedef_t soatag_af = INTTAG_TYPEDEF(af);
*/
tag_typedef_t soatag_address = STRTAG_TYPEDEF(address);
/**@def SOATAG_ACTIVE_AUDIO(x)
*
* Audio session status
*
* @par Used with
*
* @par Parameter type
* enum { SOA_ACTIVE_DISABLED, SOA_ACTIVE_REJECTED,
* SOA_ACTIVE_INACTIVE, SOA_ACTIVE_SENDONLY,
* SOA_ACTIVE_RECVONLY, SOA_ACTIVE_SENDRECV }
*
* @par Values
* @c SOA_ACTIVE_INACTIVE (0) \n
* @c SOA_ACTIVE_SENDONLY (1) \n
* @c SOA_ACTIVE_RECVONLY (2) \n
* @c SOA_ACTIVE_SENDRECV (3) \n
*
* Corresponding tag taking reference parameter is SOATAG_ACTIVE_AUDIO_REF()
*
*/
tag_typedef_t soatag_active_audio = INTTAG_TYPEDEF(active_audio);
/**@def SOATAG_ACTIVE_VIDEO(x)
*
* Video session status
*
* @par Used with
*
* @par Parameter type
* enum { SOA_ACTIVE_DISABLED, SOA_ACTIVE_REJECTED,
* SOA_ACTIVE_INACTIVE, SOA_ACTIVE_SENDONLY,
* SOA_ACTIVE_RECVONLY, SOA_ACTIVE_SENDRECV }
*
* @par Values
* @c SOA_ACTIVE_INACTIVE (0) \n
* @c SOA_ACTIVE_SENDONLY (1) \n
* @c SOA_ACTIVE_RECVONLY (2) \n
* @c SOA_ACTIVE_SENDRECV (3) \n
*
* Corresponding tag taking reference parameter is SOATAG_ACTIVE_VIDEO_REF()
*/
tag_typedef_t soatag_active_video = INTTAG_TYPEDEF(active_video);
/**@def SOATAG_ACTIVE_IMAGE(x)
*
* Active image session status
*
* @par Used with
* #nua_i_active \n
* #nua_i_state \n
*
* @par Parameter type
* enum { SOA_ACTIVE_DISABLED, SOA_ACTIVE_REJECTED,
* SOA_ACTIVE_INACTIVE, SOA_ACTIVE_SENDONLY,
* SOA_ACTIVE_RECVONLY, SOA_ACTIVE_SENDRECV }
*
* @par Values
* @c SOA_ACTIVE_INACTIVE (0) \n
* @c SOA_ACTIVE_SENDONLY (1) \n
* @c SOA_ACTIVE_RECVONLY (2) \n
* @c SOA_ACTIVE_SENDRECV (3) \n
*
* @par Parameter type
* enum { SOA_ACTIVE_DISABLED, SOA_ACTIVE_REJECTED,
* SOA_ACTIVE_INACTIVE, SOA_ACTIVE_SENDONLY,
* SOA_ACTIVE_RECVONLY, SOA_ACTIVE_SENDRECV }
*
* @par Values
* @c SOA_ACTIVE_INACTIVE (0) \n
* @c SOA_ACTIVE_SENDONLY (1) \n
* @c SOA_ACTIVE_RECVONLY (2) \n
* @c SOA_ACTIVE_SENDRECV (3) \n
*
* Corresponding tag taking reference parameter is SOATAG_ACTIVE_IMAGE_REF()
*/
tag_typedef_t soatag_active_image = INTTAG_TYPEDEF(active_image);
/**@def SOATAG_ACTIVE_CHAT(x)
*
* Active chat session status
*
* @par Used with
*
* @par Parameter type
* enum { SOA_ACTIVE_DISABLED, SOA_ACTIVE_REJECTED,
* SOA_ACTIVE_INACTIVE, SOA_ACTIVE_SENDONLY,
* SOA_ACTIVE_RECVONLY, SOA_ACTIVE_SENDRECV }
*
* @par Values
* @c SOA_ACTIVE_INACTIVE (0) \n
* @c SOA_ACTIVE_SENDONLY (1) \n
* @c SOA_ACTIVE_RECVONLY (2) \n
* @c SOA_ACTIVE_SENDRECV (3) \n
*
* Corresponding tag taking reference parameter is SOATAG_ACTIVE_CHAT_REF()
*/
tag_typedef_t soatag_active_chat = INTTAG_TYPEDEF(active_chat);
/**@def SOATAG_SRTP_ENABLE(x)
*
* Enable SRTP
......
......@@ -51,6 +51,13 @@ enum {
SOA_ACTIVE_SENDRECV = SOA_ACTIVE_SENDONLY | SOA_ACTIVE_RECVONLY
};
#define SOA_ACTIVE_DISABLED SOA_ACTIVE_DISABLED
#define SOA_ACTIVE_REJECTED SOA_ACTIVE_REJECTED
#define SOA_ACTIVE_INACTIVE SOA_ACTIVE_INACTIVE
#define SOA_ACTIVE_SENDONLY SOA_ACTIVE_SENDONLY
#define SOA_ACTIVE_RECVONLY SOA_ACTIVE_RECVONLY
#define SOA_ACTIVE_SENDRECV SOA_ACTIVE_SENDRECV
/*
* SOA engine and media parameters set by soa_set_params(), get by
* soa_get_params() or soa_get_paramlist()
......@@ -141,6 +148,30 @@ extern tag_typedef_t soatag_address;
#define SOATAG_ADDRESS_REF(x) soatag_address_ref, tag_str_vr(&(x))
extern tag_typedef_t soatag_address_ref;
#define SOATAG_ACTIVE_AUDIO(x) soatag_active_audio, tag_int_v(x)
extern tag_typedef_t soatag_active_audio;
#define SOATAG_ACTIVE_AUDIO_REF(x) soatag_active_audio_ref, tag_int_vr(&(x))
extern tag_typedef_t soatag_active_audio_ref;
#define SOATAG_ACTIVE_VIDEO(x) soatag_active_video, tag_int_v(x)
extern tag_typedef_t soatag_active_video;
#define SOATAG_ACTIVE_VIDEO_REF(x) soatag_active_video_ref, tag_int_vr(&(x))
extern tag_typedef_t soatag_active_video_ref;
#define SOATAG_ACTIVE_IMAGE(x) soatag_active_image, tag_int_v(x)
extern tag_typedef_t soatag_active_image;
#define SOATAG_ACTIVE_IMAGE_REF(x) soatag_active_image_ref, tag_int_vr(&(x))
extern tag_typedef_t soatag_active_image_ref;
#define SOATAG_ACTIVE_CHAT(x) soatag_active_chat, tag_int_v(x)
extern tag_typedef_t soatag_active_chat;
#define SOATAG_ACTIVE_CHAT_REF(x) soatag_active_chat_ref, tag_int_vr(&(x))
extern tag_typedef_t soatag_active_chat_ref;
/** Enable SRTP */
#define SOATAG_SRTP_ENABLE(x) soatag_srtp_enable, tag_bool_v(x)
extern tag_typedef_t soatag_srtp_enable;
......
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