- Fix issue 59: Adds support for T.140 (rfc4103, rfc2198, rfc5194) - Thanks to IVèS (www.ives.fr/) for their contribution

- Make SWIG v2.0.8 the minimum version to generate bindings
This commit is contained in:
bossiel 2012-11-02 16:24:29 +00:00
parent b4398c3cd6
commit 348a1c7ee4
307 changed files with 8042 additions and 1451 deletions

View File

@ -21,25 +21,6 @@
#include "ActionConfig.h"
tmedia_type_t _get_media_type(twrap_media_type_t type){
int media_type = tmedia_none; // Use int because | operator not defined for enumerators
switch(type){
case twrap_media_msrp:
media_type |= tmedia_msrp;
break;
case twrap_media_audio:
media_type |= tmedia_audio;
break;
case twrap_media_video:
media_type |= tmedia_video;
break;
case twrap_media_audiovideo:
media_type |= tmedia_audiovideo;
break;
}
return (tmedia_type_t)media_type;
}
ActionConfig::ActionConfig()
{
m_pHandle = tsip_action_create(tsip_atype_config,
@ -76,7 +57,7 @@ ActionConfig* ActionConfig::setResponseLine(short code, const char* phrase)
ActionConfig* ActionConfig::setMediaString(twrap_media_type_t type, const char* key, const char* value)
{
tmedia_type_t media_type = _get_media_type(type);
tmedia_type_t media_type = twrap_get_media_type(type);
tsip_action_set(m_pHandle,
TSIP_ACTION_SET_MEDIA(
TMEDIA_SESSION_SET_STR(media_type, key, value),
@ -88,7 +69,7 @@ ActionConfig* ActionConfig::setMediaString(twrap_media_type_t type, const char*
ActionConfig* ActionConfig::setMediaInt(twrap_media_type_t type, const char* key, int value)
{
tmedia_type_t media_type = _get_media_type(type);
tmedia_type_t media_type = twrap_get_media_type(type);
tsip_action_set(m_pHandle,
TSIP_ACTION_SET_MEDIA(
TMEDIA_SESSION_SET_INT32(media_type, key, value),

View File

@ -22,6 +22,8 @@
#ifndef TINYWRAP_COMMON_H
#define TINYWRAP_COMMON_H
#include "tinyWRAP_config.h"
#if ANDROID
# define dyn_cast static_cast
# define __JNIENV JNIEnv
@ -37,11 +39,51 @@ typedef enum twrap_media_type_e
twrap_media_audio = 0x01,
twrap_media_video = 0x02,
twrap_media_audiovideo = 0x03,
twrap_media_msrp = 0x04,
twrap_media_t140 = 0x08,
twrap_media_msrp = 0x04
twrap_media_audio_t140 = 0x09,
twrap_media_video_t140 = 0x0a,
twrap_media_audiovideo = 0x03, /* @deprecated */
twrap_media_audio_video = twrap_media_audiovideo,
twrap_media_audio_video_t140 = 0x0b
}
twrap_media_type_t;
#if !defined(SWIG)
#include "tinymedia/tmedia_common.h"
static tmedia_type_t twrap_get_media_type(twrap_media_type_t type)
{
int media_type = tmedia_none; // Use int because | operator not defined for enumerators
switch(type){
case twrap_media_msrp:
media_type |= tmedia_msrp;
break;
case twrap_media_audio:
media_type |= tmedia_audio;
break;
case twrap_media_video:
media_type |= tmedia_video;
break;
case twrap_media_audio_video:
media_type |= (tmedia_audio | tmedia_video);
break;
case twrap_media_t140:
media_type |= tmedia_t140;
break;
case twrap_media_audio_t140:
media_type |= (tmedia_audio | tmedia_t140);
break;
case twrap_media_video_t140:
media_type |= (tmedia_video | tmedia_t140);
break;
case twrap_media_audio_video_t140:
media_type |= (tmedia_audio | tmedia_video | tmedia_t140);
break;
}
return (tmedia_type_t)media_type;
}
#endif
#endif /* TINYWRAP_COMMON_H */

View File

@ -21,8 +21,6 @@
*/
#include "MediaSessionMgr.h"
extern tmedia_type_t _get_media_type(twrap_media_type_t type);
#if ANDROID
static void *__droid_destroy_mgr(void *mgr){
TSK_OBJECT_SAFE_FREE(mgr);
@ -30,7 +28,6 @@ static void *__droid_destroy_mgr(void *mgr){
}
#endif
//
// Codec
//
@ -131,7 +128,7 @@ MediaSessionMgr::~MediaSessionMgr()
bool MediaSessionMgr::sessionSetInt32(twrap_media_type_t media, const char* key, int32_t value)
{
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
return (tmedia_session_mgr_set(m_pWrappedMgr,
TMEDIA_SESSION_SET_INT32(_media, key, value),
TMEDIA_SESSION_SET_NULL()) == 0);
@ -140,7 +137,7 @@ bool MediaSessionMgr::sessionSetInt32(twrap_media_type_t media, const char* key,
int32_t MediaSessionMgr::sessionGetInt32(twrap_media_type_t media, const char* key)
{
int32_t value = 0;
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
(tmedia_session_mgr_get(m_pWrappedMgr,
TMEDIA_SESSION_GET_INT32(_media, key, &value),
TMEDIA_SESSION_GET_NULL()));
@ -149,7 +146,7 @@ int32_t MediaSessionMgr::sessionGetInt32(twrap_media_type_t media, const char* k
bool MediaSessionMgr::consumerSetInt32(twrap_media_type_t media, const char* key, int32_t value)
{
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
return (tmedia_session_mgr_set(m_pWrappedMgr,
TMEDIA_SESSION_CONSUMER_SET_INT32(_media, key, value),
TMEDIA_SESSION_SET_NULL()) == 0);
@ -157,7 +154,7 @@ bool MediaSessionMgr::consumerSetInt32(twrap_media_type_t media, const char* key
bool MediaSessionMgr::consumerSetInt64(twrap_media_type_t media, const char* key, int64_t value)
{
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
return (tmedia_session_mgr_set(m_pWrappedMgr,
TMEDIA_SESSION_CONSUMER_SET_INT64(_media, key, value),
TMEDIA_SESSION_SET_NULL()) == 0);
@ -165,7 +162,7 @@ bool MediaSessionMgr::consumerSetInt64(twrap_media_type_t media, const char* key
bool MediaSessionMgr::producerSetInt32(twrap_media_type_t media, const char* key, int32_t value)
{
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
return (tmedia_session_mgr_set(m_pWrappedMgr,
TMEDIA_SESSION_PRODUCER_SET_INT32(_media, key, value),
TMEDIA_SESSION_SET_NULL()) == 0);
@ -173,7 +170,7 @@ bool MediaSessionMgr::producerSetInt32(twrap_media_type_t media, const char* key
bool MediaSessionMgr::producerSetInt64(twrap_media_type_t media, const char* key, int64_t value)
{
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
return (tmedia_session_mgr_set(m_pWrappedMgr,
TMEDIA_SESSION_PRODUCER_SET_INT64(_media, key, value),
TMEDIA_SESSION_SET_NULL()) == 0);
@ -182,7 +179,7 @@ bool MediaSessionMgr::producerSetInt64(twrap_media_type_t media, const char* key
Codec* MediaSessionMgr::producerGetCodec(twrap_media_type_t media)
{
tmedia_codec_t* _codec = tsk_null;
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
(tmedia_session_mgr_get(m_pWrappedMgr,
TMEDIA_SESSION_PRODUCER_GET_POBJECT(_media, "codec", &_codec),
TMEDIA_SESSION_GET_NULL()));
@ -211,7 +208,7 @@ const ProxyPlugin* MediaSessionMgr::findProxyPlugin(twrap_media_type_t media, bo
}
if(manager && m_pWrappedMgr){
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
tmedia_session_t* session = tmedia_session_mgr_find(m_pWrappedMgr, _media);
if(session){
if(session->plugin == tdav_session_audio_plugin_def_t){
@ -282,7 +279,7 @@ uint64_t MediaSessionMgr::getSessionId(twrap_media_type_t media)const
}
if(manager && m_pWrappedMgr){
tmedia_type_t _media = _get_media_type(media);
tmedia_type_t _media = twrap_get_media_type(media);
tmedia_session_t* session = tmedia_session_mgr_find(m_pWrappedMgr, _media);
if(session){
id = session->id;
@ -428,7 +425,7 @@ bool MediaSessionMgr::defaultsSetRtpPortRange(uint16_t range_start, uint16_t ran
bool MediaSessionMgr::defaultsSetMediaType(twrap_media_type_t media_type)
{
return (tmedia_defaults_set_media_type(_get_media_type(media_type)) == 0);
return (tmedia_defaults_set_media_type(twrap_get_media_type(media_type)) == 0);
}
bool MediaSessionMgr::defaultsSetVolume(int32_t volume)

View File

@ -81,6 +81,10 @@ public:
static unsigned int registerAudioPluginFromFile(const char* path);
uint64_t getSessionId(twrap_media_type_t media)const;
#if !defined(SWIG)
inline const tmedia_session_mgr_t* getWrappedMgr()const { return m_pWrappedMgr; }
#endif
// Defaults
static bool defaultsSetProfile(tmedia_profile_t profile);

View File

@ -117,14 +117,11 @@ twrap_media_type_t InviteEvent::getMediaType() const
return twrap_media_msrp;
}
else{
switch(type){
case tmedia_audio:
return twrap_media_audio;
case tmedia_video:
return twrap_media_video;
case tmedia_audiovideo:
return twrap_media_audiovideo;
}
twrap_media_type_t ret = twrap_media_none;
if(type & tmedia_audio) ret = (twrap_media_type_t)(ret | twrap_media_audio);
if(type & tmedia_video) ret = (twrap_media_type_t)(ret | twrap_media_video);
if(type & tmedia_t140) ret = (twrap_media_type_t)(ret | twrap_media_t140);
return ret;
}
}
return twrap_media_none;

View File

@ -367,6 +367,7 @@ CallSession::CallSession(SipStack* Stack)
CallSession::CallSession(SipStack* Stack, tsip_ssession_handle_t* handle)
: InviteSession(Stack, handle)
, m_pT140Callback(tsk_null)
{
}
@ -417,67 +418,54 @@ static bool __droid_call(tsip_ssession_handle_t * session_handle, tmedia_type_t
}
#endif
/* @deprecated */
bool CallSession::callAudio(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/)
{
if(!remoteUri){
TSK_DEBUG_ERROR("Invalid parameter");
return false;
}
tsip_ssession_set(m_pHandle,
TSIP_SSESSION_SET_TO_OBJ(remoteUri->getWrappedUri()),
TSIP_SSESSION_SET_NULL());
#if ANDROID
__droid_call(m_pHandle, tmedia_audio, config);
return true;
#else
const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null;
return (tsip_api_invite_send_invite(m_pHandle, tmedia_audio,
TSIP_ACTION_SET_CONFIG(action_cfg),
TSIP_ACTION_SET_NULL()) == 0);
#endif
return call(remoteUri, twrap_media_audio, config);
}
/* @deprecated */
bool CallSession::callAudio(const char* remoteUriString, ActionConfig* config/*=tsk_null*/)
{
SipUri sipUri(remoteUriString);
if(sipUri.isValid()){
return callAudio(&sipUri, config);
}
TSK_DEBUG_ERROR("Failed to parse sip uri=%s", remoteUriString);
return false;
return call(remoteUriString, twrap_media_audio, config);
}
/* @deprecated */
bool CallSession::callAudioVideo(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/)
{
if(!remoteUri){
TSK_DEBUG_ERROR("Invalid parameter");
return false;
}
tsip_ssession_set(m_pHandle,
TSIP_SSESSION_SET_TO_OBJ(remoteUri->getWrappedUri()),
TSIP_SSESSION_SET_NULL());
#if ANDROID
__droid_call(m_pHandle, (tmedia_type_t)(tmedia_audio | tmedia_video), config);
return true;
#else
const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null;
return (tsip_api_invite_send_invite(m_pHandle, (tmedia_type_t)(tmedia_audio | tmedia_video),
TSIP_ACTION_SET_CONFIG(action_cfg),
TSIP_ACTION_SET_NULL()) == 0);
#endif
return call(remoteUri, twrap_media_audio_video, config);
}
/* @deprecated */
bool CallSession::callAudioVideo(const char* remoteUriString, ActionConfig* config/*=tsk_null*/)
{
return call(remoteUriString, twrap_media_audio_video, config);
}
/* @deprecated */
bool CallSession::callVideo(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/)
{
return call(remoteUri, twrap_media_video, config);
}
/* @deprecated */
bool CallSession::callVideo(const char* remoteUriString, ActionConfig* config/*=tsk_null*/)
{
return call(remoteUriString, twrap_media_video, config);
}
bool CallSession::call(const char* remoteUriString, twrap_media_type_t media, ActionConfig* config/*=tsk_null*/)
{
SipUri sipUri(remoteUriString);
if(sipUri.isValid()){
return callAudioVideo(&sipUri, config);
return call(&sipUri, media, config);
}
TSK_DEBUG_ERROR("Failed to parse sip uri=%s", remoteUriString);
return false;
}
bool CallSession::callVideo(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/)
bool CallSession::call(const SipUri* remoteUri, twrap_media_type_t media, ActionConfig* config/*=tsk_null*/)
{
if(!remoteUri){
TSK_DEBUG_ERROR("Invalid parameter");
@ -487,26 +475,16 @@ bool CallSession::callVideo(const SipUri* remoteUri, ActionConfig* config/*=tsk_
TSIP_SSESSION_SET_TO_OBJ(remoteUri->getWrappedUri()),
TSIP_SSESSION_SET_NULL());
#if ANDROID
__droid_call(m_pHandle, tmedia_video, config);
__droid_call(m_pHandle, twrap_get_media_type(media), config);
return true;
#else
const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null;
return (tsip_api_invite_send_invite(m_pHandle, tmedia_video,
return (tsip_api_invite_send_invite(m_pHandle, twrap_get_media_type(media),
TSIP_ACTION_SET_CONFIG(action_cfg),
TSIP_ACTION_SET_NULL()) == 0);
#endif
}
bool CallSession::callVideo(const char* remoteUriString, ActionConfig* config/*=tsk_null*/)
{
SipUri sipUri(remoteUriString);
if(sipUri.isValid()){
return callVideo(&sipUri, config);
}
TSK_DEBUG_ERROR("Failed to parse sip uri=%s", remoteUriString);
return false;
}
bool CallSession::setSessionTimer(unsigned timeout, const char* refresher)
{
return (tsip_ssession_set(m_pHandle,
@ -627,6 +605,49 @@ unsigned CallSession::getSessionTransferId()
return (unsigned)tsip_ssession_get_id_parent(m_pHandle);
}
bool CallSession::sendT140Data(enum tmedia_t140_data_type_e data_type, const void* data_ptr /*= NULL*/, unsigned data_size /*= 0*/)
{
const tmedia_session_mgr_t* pWrappedMgr;
const MediaSessionMgr* pMgr;
if((pMgr = getMediaMgr()) && (pWrappedMgr = pMgr->getWrappedMgr())){
return (tmedia_session_mgr_send_t140_data((tmedia_session_mgr_t*)pWrappedMgr, data_type, data_ptr, data_size) == 0);
}
return false;
}
bool CallSession::setT140Callback(const T140Callback* pT140Callback)
{
const tmedia_session_mgr_t* pWrappedMgr;
const MediaSessionMgr* pMgr;
if((pMgr = getMediaMgr()) && (pWrappedMgr = pMgr->getWrappedMgr())){
if((m_pT140Callback = pT140Callback)){
return (tmedia_session_mgr_set_t140_ondata_cb((tmedia_session_mgr_t*)pWrappedMgr, this, &CallSession::t140OnDataCallback) == 0);
}
else{
return (tmedia_session_mgr_set_t140_ondata_cb((tmedia_session_mgr_t*)pWrappedMgr, this, tsk_null) == 0);
}
}
return false;
}
const T140Callback* CallSession::getT140Callback() const
{
return m_pT140Callback;
}
int CallSession::t140OnDataCallback(const void* context, enum tmedia_t140_data_type_e data_type, const void* data_ptr, unsigned data_size)
{
const CallSession* session = dyn_cast<const CallSession*>((const CallSession*)context);
if(session && session->getT140Callback()){
T140CallbackData* dataObj = new T140CallbackData(data_type, data_ptr, data_size);
if(dataObj){
int ret = const_cast<T140Callback*>(session->getT140Callback())->ondata(dataObj);
delete dataObj;
return ret;
}
}
return 0;
}
/* ======================== MsrpSession ========================*/

View File

@ -31,6 +31,45 @@ class SipStack;
class MsrpCallback;
class MediaSessionMgr;
/* ======================== T140Callback ========================*/
class T140CallbackData{
public:
#if !defined(SWIG)
T140CallbackData(enum tmedia_t140_data_type_e data_type, const void* data_ptr, unsigned data_size){
m_eType = data_type;
m_pPtr = data_ptr;
m_nSize = data_size;
}
#endif
virtual ~T140CallbackData(){}
enum tmedia_t140_data_type_e getType(){ return m_eType; }
unsigned getSize(){ return m_nSize; }
unsigned getData(void* pOutput, unsigned nMaxsize){
unsigned nRetsize = 0;
if(pOutput && nMaxsize && m_pPtr){
nRetsize = (m_nSize > nMaxsize) ? nMaxsize : m_nSize;
memcpy(pOutput, m_pPtr, nRetsize);
}
return nRetsize;
}
private:
enum tmedia_t140_data_type_e m_eType;
const void* m_pPtr;
unsigned m_nSize;
};
class T140Callback
{
public:
T140Callback() {}
virtual ~T140Callback(){}
virtual int ondata(const T140CallbackData* pData){ return 0; }
};
/* ======================== SipSession ========================*/
class SipSession
{
@ -103,12 +142,16 @@ public: /* ctor() and dtor() */
virtual ~CallSession();
public: /* Public functions */
bool callAudio(const char* remoteUriString, ActionConfig* config=tsk_null);
bool callAudio(const SipUri* remoteUri, ActionConfig* config=tsk_null);
bool callAudioVideo(const char* remoteUriString, ActionConfig* config=tsk_null);
bool callAudioVideo(const SipUri* remoteUri, ActionConfig* config=tsk_null);
bool callVideo(const char* remoteUriString, ActionConfig* config=tsk_null);
bool callVideo(const SipUri* remoteUri, ActionConfig* config=tsk_null);
bool callAudio(const char* remoteUriString, ActionConfig* config=tsk_null); /* @deprecated */
bool callAudio(const SipUri* remoteUri, ActionConfig* config=tsk_null); /* @deprecated */
bool callAudioVideo(const char* remoteUriString, ActionConfig* config=tsk_null); /* @deprecated */
bool callAudioVideo(const SipUri* remoteUri, ActionConfig* config=tsk_null); /* @deprecated */
bool callVideo(const char* remoteUriString, ActionConfig* config=tsk_null); /* @deprecated */
bool callVideo(const SipUri* remoteUri, ActionConfig* config=tsk_null); /* @deprecated */
bool call(const char* remoteUriString, twrap_media_type_t media, ActionConfig* config=tsk_null);
bool call(const SipUri* remoteUri, twrap_media_type_t media, ActionConfig* config=tsk_null);
bool setSessionTimer(unsigned timeout, const char* refresher);
bool set100rel(bool enabled);
bool setRtcp(bool enabled);
@ -122,6 +165,15 @@ public: /* Public functions */
bool rejectTransfer(ActionConfig* config=tsk_null);
bool sendDTMF(int number);
unsigned getSessionTransferId();
bool sendT140Data(enum tmedia_t140_data_type_e data_type, const void* data_ptr = NULL, unsigned data_size = 0);
bool setT140Callback(const T140Callback* pT140Callback);
#if !defined(SWIG)
const T140Callback* getT140Callback() const;
static int t140OnDataCallback(const void* context, enum tmedia_t140_data_type_e data_type, const void* data_ptr, unsigned data_size);
#endif
private:
const T140Callback* m_pT140Callback;
};
/* ======================== MsrpSession ========================*/

View File

@ -24,6 +24,7 @@
%feature("director") ProxyVideoConsumerCallback;
%feature("director") ProxyAudioProducerCallback;
%feature("director") ProxyVideoProducerCallback;
%feature("director") T140Callback;
%nodefaultctor;
%include "ActionConfig.h"
@ -260,6 +261,27 @@ typedef enum tmedia_srtp_mode_e
}
tmedia_srtp_mode_t;
/* ====== From "tinymedia/tmedia_common.h" ====== */
typedef enum tmedia_t140_data_type_e
{
tmedia_t140_data_type_utf8,
tmedia_t140_data_type_zero_width_no_break_space = 0xefbbbf,
tmedia_t140_data_type_backspace = 0x08,
tmedia_t140_data_type_esc = 0x1b,
tmedia_t140_data_type_cr = 0x0d,
tmedia_t140_data_type_lf = 0x0a,
tmedia_t140_data_type_cr_lf = 0x0d0a,
tmedia_t140_data_type_interrupt2 = 0x61,
tmedia_t140_data_type_bell = 0x07,
tmedia_t140_data_type_sos = 0x98,
tmedia_t140_data_type_string_term = 0x9c,
tmedia_t140_data_type_graphic_start = 0x9b,
tmedia_t140_data_type_graphic_end = 0x6d,
tmedia_t140_data_type_loss_char_char = 0xfffd,
tmedia_t140_data_type_loss_utf8 = 0xefbfbd,
}
tmedia_t140_data_type_t;
/* ====== From "tinymedia/tmedia_common.h" ====== */
typedef enum tmedia_profile_e
{
@ -316,7 +338,7 @@ typedef enum tdav_codec_id_e
tdav_codec_id_speex_uwb = 0x00000001<<10,
tdav_codec_id_bv16 = 0x00000001<<11,
tdav_codec_id_bv32 = 0x00000001<<12,
tdav_codec_id_evrc = 0x00000001<<13,
tdav_codec_id_opus = 0x00000001<<13,
tdav_codec_id_g729ab = 0x00000001<<14,
tdav_codec_id_g722 = 0x00000001<<15,
@ -336,5 +358,10 @@ typedef enum tdav_codec_id_e
tdav_codec_id_theora = 0x00010000<<8,
tdav_codec_id_mp4ves_es = 0x00010000<<9,
tdav_codec_id_vp8 = 0x00010000<<10,
/* room for new Video codecs */
tdav_codec_id_t140 = 0x00010000<<14,
tdav_codec_id_red = 0x00010000<<15,
}
tdav_codec_id_t;

View File

@ -14,17 +14,12 @@ echo "Java(Google Dalvik)..."
echo "Google Android special tasks"
swig -c++ -java -package org.doubango.tinyWRAP -outdir java/android -o java/android/tinyWRAP_wrap.cxx java/java.i
sed -i 's/dynamic_cast/static_cast/g' java/android/tinyWRAP_wrap.cxx
sed -i 's/AttachCurrentThread((void \*\*)/AttachCurrentThread((JNIEnv \*\*)/g' java/android/tinyWRAP_wrap.cxx
sed -i 's/AttachCurrentThreadAsDaemon((void \*\*)/AttachCurrentThreadAsDaemon((JNIEnv \*\*)/g' java/android/tinyWRAP_wrap.cxx
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/SipCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/DDebugCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/ProxyPluginMgrCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/ProxyAudioConsumerCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/ProxyAudioProducerCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/ProxyVideoProducerCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/ProxyVideoConsumerCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/XcapCallback.java
sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/MsrpCallback.java
#sed -i 's/AttachCurrentThread((void \*\*)/AttachCurrentThread((JNIEnv \*\*)/g' java/android/tinyWRAP_wrap.cxx
#sed -i 's/AttachCurrentThreadAsDaemon((void \*\*)/AttachCurrentThreadAsDaemon((JNIEnv \*\*)/g' java/android/tinyWRAP_wrap.cxx
#for f in SipCallback DDebugCallback ProxyPluginMgrCallback ProxyAudioConsumerCallback ProxyAudioProducerCallback ProxyVideoProducerCallback ProxyVideoConsumerCallback XcapCallback MsrpCallback T140Callback
#do
# sed -i 's/_director_connect(this, swigCPtr, swigCMemOwn, true)/_director_connect(this, swigCPtr, swigCMemOwn, false)/g' java/android/$f.java
#done
##### Python
echo "--->Python...<---"

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -49,7 +49,7 @@ public class ActionConfig : IDisposable {
return ret;
}
public bool addPayload(byte[] payload, uint len) {
public bool addPayload(IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.ActionConfig_addPayload(swigCPtr, payload, len);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -59,7 +59,7 @@ public class AudioResampler : IDisposable {
return ret;
}
public uint process(byte[] pInData, uint nInSizeInBytes, byte[] pOutData, uint nOutSizeInBytes) {
public uint process(IntPtr pInData, uint nInSizeInBytes, IntPtr pOutData, uint nOutSizeInBytes) {
uint ret = tinyWRAPPINVOKE.AudioResampler_process(swigCPtr, pInData, nInSizeInBytes, pOutData, nOutSizeInBytes);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -103,6 +103,26 @@ public class CallSession : InviteSession {
return ret;
}
public bool call(string remoteUriString, twrap_media_type_t media, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.CallSession_call__SWIG_0(swigCPtr, remoteUriString, (int)media, ActionConfig.getCPtr(config));
return ret;
}
public bool call(string remoteUriString, twrap_media_type_t media) {
bool ret = tinyWRAPPINVOKE.CallSession_call__SWIG_1(swigCPtr, remoteUriString, (int)media);
return ret;
}
public bool call(SipUri remoteUri, twrap_media_type_t media, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.CallSession_call__SWIG_2(swigCPtr, SipUri.getCPtr(remoteUri), (int)media, ActionConfig.getCPtr(config));
return ret;
}
public bool call(SipUri remoteUri, twrap_media_type_t media) {
bool ret = tinyWRAPPINVOKE.CallSession_call__SWIG_3(swigCPtr, SipUri.getCPtr(remoteUri), (int)media);
return ret;
}
public bool setSessionTimer(uint timeout, string refresher) {
bool ret = tinyWRAPPINVOKE.CallSession_setSessionTimer(swigCPtr, timeout, refresher);
return ret;
@ -193,6 +213,26 @@ public class CallSession : InviteSession {
return ret;
}
public bool sendT140Data(tmedia_t140_data_type_t data_type, IntPtr data_ptr, uint data_size) {
bool ret = tinyWRAPPINVOKE.CallSession_sendT140Data__SWIG_0(swigCPtr, (int)data_type, data_ptr, data_size);
return ret;
}
public bool sendT140Data(tmedia_t140_data_type_t data_type, IntPtr data_ptr) {
bool ret = tinyWRAPPINVOKE.CallSession_sendT140Data__SWIG_1(swigCPtr, (int)data_type, data_ptr);
return ret;
}
public bool sendT140Data(tmedia_t140_data_type_t data_type) {
bool ret = tinyWRAPPINVOKE.CallSession_sendT140Data__SWIG_2(swigCPtr, (int)data_type);
return ret;
}
public bool setT140Callback(T140Callback pT140Callback) {
bool ret = tinyWRAPPINVOKE.CallSession_setT140Callback(swigCPtr, T140Callback.getCPtr(pT140Callback));
return ret;
}
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -40,15 +40,23 @@ public class InfoSession : SipSession {
}
}
public bool send(byte[] buffer, ActionConfig config) {
IntPtr ptr = Marshal.AllocHGlobal(buffer.Length);
Marshal.Copy(buffer, 0, ptr, buffer.Length);
bool ret = this.send(ptr, (uint)buffer.Length, config);
Marshal.FreeHGlobal(ptr);
return ret;
}
public InfoSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_InfoSession(SipStack.getCPtr(pStack)), true) {
}
public bool send(byte[] payload, uint len, ActionConfig config) {
public bool send(IntPtr payload, uint len, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.InfoSession_send__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
return ret;
}
public bool send(byte[] payload, uint len) {
public bool send(IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.InfoSession_send__SWIG_1(swigCPtr, payload, len);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -73,12 +73,12 @@ public class InviteSession : SipSession {
return ret;
}
public bool sendInfo(byte[] payload, uint len, ActionConfig config) {
public bool sendInfo(IntPtr payload, uint len, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.InviteSession_sendInfo__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
return ret;
}
public bool sendInfo(byte[] payload, uint len) {
public bool sendInfo(IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.InviteSession_sendInfo__SWIG_1(swigCPtr, payload, len);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -44,8 +44,11 @@ public class MediaContent : IDisposable {
public byte[] getPayload() {
uint clen = this.getPayloadLength();
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getPayload(ptr, clen);
byte[] bytes = new byte[clen];
this.getPayload(bytes, clen);
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
@ -61,18 +64,18 @@ public class MediaContent : IDisposable {
return ret;
}
public virtual uint getData(byte[] pOutput, uint nMaxsize) {
public virtual uint getData(IntPtr pOutput, uint nMaxsize) {
uint ret = tinyWRAPPINVOKE.MediaContent_getData(swigCPtr, pOutput, nMaxsize);
return ret;
}
public static MediaContent parse(byte[] pData, uint nSize, string pType) {
public static MediaContent parse(IntPtr pData, uint nSize, string pType) {
IntPtr cPtr = tinyWRAPPINVOKE.MediaContent_parse__SWIG_0(pData, nSize, pType);
MediaContent ret = (cPtr == IntPtr.Zero) ? null : new MediaContent(cPtr, true);
return ret;
}
public static MediaContentCPIM parse(byte[] pData, uint nSize) {
public static MediaContentCPIM parse(IntPtr pData, uint nSize) {
IntPtr cPtr = tinyWRAPPINVOKE.MediaContent_parse__SWIG_1(pData, nSize);
MediaContentCPIM ret = (cPtr == IntPtr.Zero) ? null : new MediaContentCPIM(cPtr, true);
return ret;
@ -83,7 +86,7 @@ public class MediaContent : IDisposable {
return ret;
}
public virtual uint getPayload(byte[] pOutput, uint nMaxsize) {
public virtual uint getPayload(IntPtr pOutput, uint nMaxsize) {
uint ret = tinyWRAPPINVOKE.MediaContent_getPayload(swigCPtr, pOutput, nMaxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -45,7 +45,7 @@ public class MediaContentCPIM : MediaContent {
return ret;
}
public override uint getPayload(byte[] pOutput, uint nMaxsize) {
public override uint getPayload(IntPtr pOutput, uint nMaxsize) {
uint ret = tinyWRAPPINVOKE.MediaContentCPIM_getPayload(swigCPtr, pOutput, nMaxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -40,15 +40,23 @@ public class MessagingSession : SipSession {
}
}
public bool send(byte[] buffer) {
IntPtr ptr = Marshal.AllocHGlobal(buffer.Length);
Marshal.Copy(buffer, 0, ptr, buffer.Length);
bool ret = this.send(ptr, (uint)buffer.Length);
Marshal.FreeHGlobal(ptr);
return ret;
}
public MessagingSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_MessagingSession(SipStack.getCPtr(pStack)), true) {
}
public bool send(byte[] payload, uint len, ActionConfig config) {
public bool send(IntPtr payload, uint len, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.MessagingSession_send__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
return ret;
}
public bool send(byte[] payload, uint len) {
public bool send(IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.MessagingSession_send__SWIG_1(swigCPtr, payload, len);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -98,7 +98,7 @@ public class MsrpMessage : IDisposable {
return ret;
}
public uint getMsrpContent(byte[] output, uint maxsize) {
public uint getMsrpContent(IntPtr output, uint maxsize) {
uint ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpContent(swigCPtr, output, maxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -68,12 +68,12 @@ public class MsrpSession : InviteSession {
return ret;
}
public bool sendMessage(byte[] payload, uint len, ActionConfig config) {
public bool sendMessage(IntPtr payload, uint len, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.MsrpSession_sendMessage__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
return ret;
}
public bool sendMessage(byte[] payload, uint len) {
public bool sendMessage(IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.MsrpSession_sendMessage__SWIG_1(swigCPtr, payload, len);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -45,17 +45,17 @@ public class ProxyAudioConsumer : ProxyPlugin {
return ret;
}
public bool setPullBuffer(byte[] pPullBufferPtr, uint nPullBufferSize) {
public bool setPullBuffer(IntPtr pPullBufferPtr, uint nPullBufferSize) {
bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setPullBuffer(swigCPtr, pPullBufferPtr, nPullBufferSize);
return ret;
}
public uint pull(byte[] pOutput, uint nSize) {
public uint pull(IntPtr pOutput, uint nSize) {
uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, pOutput, nSize);
return ret;
}
public uint pull(byte[] pOutput) {
public uint pull(IntPtr pOutput) {
uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, pOutput);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -40,22 +40,22 @@ public class ProxyAudioProducer : ProxyPlugin {
}
}
public bool setPushBuffer(byte[] pPushBufferPtr, uint nPushBufferSize, bool bUsePushCallback) {
public bool setPushBuffer(IntPtr pPushBufferPtr, uint nPushBufferSize, bool bUsePushCallback) {
bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setPushBuffer__SWIG_0(swigCPtr, pPushBufferPtr, nPushBufferSize, bUsePushCallback);
return ret;
}
public bool setPushBuffer(byte[] pPushBufferPtr, uint nPushBufferSize) {
public bool setPushBuffer(IntPtr pPushBufferPtr, uint nPushBufferSize) {
bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, pPushBufferPtr, nPushBufferSize);
return ret;
}
public int push(byte[] pBuffer, uint nSize) {
public int push(IntPtr pBuffer, uint nSize) {
int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_0(swigCPtr, pBuffer, nSize);
return ret;
}
public int push(byte[] pBuffer) {
public int push(IntPtr pBuffer) {
int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_1(swigCPtr, pBuffer);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -55,6 +55,16 @@ public class ProxyVideoConsumer : ProxyPlugin {
return ret;
}
public uint getDecodedWidth() {
uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDecodedWidth(swigCPtr);
return ret;
}
public uint getDecodedHeight() {
uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDecodedHeight(swigCPtr);
return ret;
}
public void setCallback(ProxyVideoConsumerCallback pCallback) {
tinyWRAPPINVOKE.ProxyVideoConsumer_setCallback(swigCPtr, ProxyVideoConsumerCallback.getCPtr(pCallback));
}
@ -69,12 +79,12 @@ public class ProxyVideoConsumer : ProxyPlugin {
return ret;
}
public bool setConsumeBuffer(byte[] pConsumeBufferPtr, uint nConsumeBufferSize) {
public bool setConsumeBuffer(IntPtr pConsumeBufferPtr, uint nConsumeBufferSize) {
bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, pConsumeBufferPtr, nConsumeBufferSize);
return ret;
}
public uint pull(byte[] pOutput, uint nSize) {
public uint pull(IntPtr pOutput, uint nSize) {
uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_pull(swigCPtr, pOutput, nSize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -46,7 +46,7 @@ public class ProxyVideoFrame : IDisposable {
return ret;
}
public uint getContent(byte[] pOutput, uint nMaxsize) {
public uint getContent(IntPtr pOutput, uint nMaxsize) {
uint ret = tinyWRAPPINVOKE.ProxyVideoFrame_getContent(swigCPtr, pOutput, nMaxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -55,12 +55,12 @@ public class ProxyVideoProducer : ProxyPlugin {
return ret;
}
public int push(byte[] pBuffer, uint nSize) {
public int push(IntPtr pBuffer, uint nSize) {
int ret = tinyWRAPPINVOKE.ProxyVideoProducer_push(swigCPtr, pBuffer, nSize);
return ret;
}
public int send(byte[] pBuffer, uint nSize, uint nDuration, bool bMarker) {
public int send(IntPtr pBuffer, uint nSize, uint nDuration, bool bMarker) {
int ret = tinyWRAPPINVOKE.ProxyVideoProducer_send(swigCPtr, pBuffer, nSize, nDuration, bMarker);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -43,12 +43,12 @@ public class PublicationSession : SipSession {
public PublicationSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_PublicationSession(SipStack.getCPtr(pStack)), true) {
}
public bool publish(byte[] payload, uint len, ActionConfig config) {
public bool publish(IntPtr payload, uint len, ActionConfig config) {
bool ret = tinyWRAPPINVOKE.PublicationSession_publish__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config));
return ret;
}
public bool publish(byte[] payload, uint len) {
public bool publish(IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.PublicationSession_publish__SWIG_1(swigCPtr, payload, len);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -41,6 +41,19 @@ public class RPMessage : IDisposable {
}
}
public byte[] getPayload() {
uint clen = this.getPayloadLength();
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getPayload(ptr, clen);
byte[] bytes = new byte[clen];
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
}
public RPMessage() : this(tinyWRAPPINVOKE.new_RPMessage(), true) {
}
@ -54,7 +67,7 @@ public class RPMessage : IDisposable {
return ret;
}
public uint getPayload(byte[] output, uint maxsize) {
public uint getPayload(IntPtr output, uint maxsize) {
uint ret = tinyWRAPPINVOKE.RPMessage_getPayload(swigCPtr, output, maxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -41,6 +41,19 @@ public class SMSData : IDisposable {
}
}
public byte[] getPayload() {
uint clen = this.getPayloadLength();
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getPayload(ptr, clen);
byte[] bytes = new byte[clen];
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
}
public SMSData() : this(tinyWRAPPINVOKE.new_SMSData(), true) {
}
@ -59,7 +72,7 @@ public class SMSData : IDisposable {
return ret;
}
public uint getPayload(byte[] output, uint maxsize) {
public uint getPayload(IntPtr output, uint maxsize) {
uint ret = tinyWRAPPINVOKE.SMSData_getPayload(swigCPtr, output, maxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -65,7 +65,7 @@ public class SMSEncoder : IDisposable {
return ret;
}
public static SMSData decode(byte[] data, uint size, bool MobOrig) {
public static SMSData decode(IntPtr data, uint size, bool MobOrig) {
IntPtr cPtr = tinyWRAPPINVOKE.SMSEncoder_decode(data, size, MobOrig);
SMSData ret = (cPtr == IntPtr.Zero) ? null : new SMSData(cPtr, true);
return ret;

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -43,9 +43,12 @@ public class SipMessage : IDisposable {
public byte[] getSipContent() {
uint clen = this.getSipContentLength();
if(clen>0){
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getSipContent(ptr, clen);
byte[] bytes = new byte[clen];
this.getSipContent(bytes, clen);
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
@ -94,7 +97,7 @@ public class SipMessage : IDisposable {
return ret;
}
public uint getSipContent(byte[] output, uint maxsize) {
public uint getSipContent(IntPtr output, uint maxsize) {
uint ret = tinyWRAPPINVOKE.SipMessage_getSipContent(swigCPtr, output, maxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -0,0 +1,76 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace org.doubango.tinyWRAP {
using System;
using System.Runtime.InteropServices;
public class T140Callback : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal T140Callback(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(T140Callback obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~T140Callback() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPPINVOKE.delete_T140Callback(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public T140Callback() : this(tinyWRAPPINVOKE.new_T140Callback(), true) {
SwigDirectorConnect();
}
public virtual int ondata(T140CallbackData pData) {
int ret = (SwigDerivedClassHasMethod("ondata", swigMethodTypes0) ? tinyWRAPPINVOKE.T140Callback_ondataSwigExplicitT140Callback(swigCPtr, T140CallbackData.getCPtr(pData)) : tinyWRAPPINVOKE.T140Callback_ondata(swigCPtr, T140CallbackData.getCPtr(pData)));
return ret;
}
private void SwigDirectorConnect() {
if (SwigDerivedClassHasMethod("ondata", swigMethodTypes0))
swigDelegate0 = new SwigDelegateT140Callback_0(SwigDirectorondata);
tinyWRAPPINVOKE.T140Callback_director_connect(swigCPtr, swigDelegate0);
}
private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(T140Callback));
return hasDerivedMethod;
}
private int SwigDirectorondata(IntPtr pData) {
return ondata((pData == IntPtr.Zero) ? null : new T140CallbackData(pData, false));
}
public delegate int SwigDelegateT140Callback_0(IntPtr pData);
private SwigDelegateT140Callback_0 swigDelegate0;
private static Type[] swigMethodTypes0 = new Type[] { typeof(T140CallbackData) };
}
}

View File

@ -0,0 +1,61 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace org.doubango.tinyWRAP {
using System;
using System.Runtime.InteropServices;
public class T140CallbackData : IDisposable {
private HandleRef swigCPtr;
protected bool swigCMemOwn;
internal T140CallbackData(IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
}
internal static HandleRef getCPtr(T140CallbackData obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
~T140CallbackData() {
Dispose();
}
public virtual void Dispose() {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
tinyWRAPPINVOKE.delete_T140CallbackData(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}
public tmedia_t140_data_type_t getType() {
tmedia_t140_data_type_t ret = (tmedia_t140_data_type_t)tinyWRAPPINVOKE.T140CallbackData_getType(swigCPtr);
return ret;
}
public uint getSize() {
uint ret = tinyWRAPPINVOKE.T140CallbackData_getSize(swigCPtr);
return ret;
}
public uint getData(IntPtr pOutput, uint nMaxsize) {
uint ret = tinyWRAPPINVOKE.T140CallbackData_getData(swigCPtr, pOutput, nMaxsize);
return ret;
}
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -79,7 +79,7 @@ public class XcapMessage : IDisposable {
return ret;
}
public uint getXcapContent(byte[] output, uint maxsize) {
public uint getXcapContent(IntPtr output, uint maxsize) {
uint ret = tinyWRAPPINVOKE.XcapMessage_getXcapContent(swigCPtr, output, maxsize);
return ret;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -41,6 +41,30 @@ public class XcapStack : IDisposable {
}
}
public bool putElement(string url, byte[] payload) {
IntPtr ptr = Marshal.AllocHGlobal(payload.Length);
Marshal.Copy(payload, 0, ptr, payload.Length);
bool ret = this.putElement(url, ptr, (uint)payload.Length);
Marshal.FreeHGlobal(ptr);
return ret;
}
public bool putAttribute(string url, byte[] payload) {
IntPtr ptr = Marshal.AllocHGlobal(payload.Length);
Marshal.Copy(payload, 0, ptr, payload.Length);
bool ret = this.putAttribute(url, ptr, (uint)payload.Length);
Marshal.FreeHGlobal(ptr);
return ret;
}
public bool putDocument(string url, byte[] payload, string contentType) {
IntPtr ptr = Marshal.AllocHGlobal(payload.Length);
Marshal.Copy(payload, 0, ptr, payload.Length);
bool ret = this.putDocument(url, ptr, (uint)payload.Length, contentType);
Marshal.FreeHGlobal(ptr);
return ret;
}
public XcapStack(XcapCallback callback, string xui, string password, string xcap_root) : this(tinyWRAPPINVOKE.new_XcapStack(XcapCallback.getCPtr(callback), xui, password, xcap_root), true) {
}
@ -119,17 +143,17 @@ public class XcapStack : IDisposable {
return ret;
}
public bool putDocument(string url, byte[] payload, uint len, string contentType) {
public bool putDocument(string url, IntPtr payload, uint len, string contentType) {
bool ret = tinyWRAPPINVOKE.XcapStack_putDocument(swigCPtr, url, payload, len, contentType);
return ret;
}
public bool putElement(string url, byte[] payload, uint len) {
public bool putElement(string url, IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.XcapStack_putElement(swigCPtr, url, payload, len);
return ret;
}
public bool putAttribute(string url, byte[] payload, uint len) {
public bool putAttribute(string url, IntPtr payload, uint len) {
bool ret = tinyWRAPPINVOKE.XcapStack_putAttribute(swigCPtr, url, payload, len);
return ret;
}

View File

@ -12,14 +12,14 @@ inattributes="[MarshalAs(UnmanagedType.LPArray)]") TYPE[] "CSTYPE[]"
%typemap(csin) TYPE[] "$csinput"
%enddef
// Mapping void* as byte[]
%typemap(ctype) void * "void *"
%typemap(imtype) void * "byte[]"
%typemap(cstype) void * "byte[]"
%typemap(csin) void * "$csinput"
%typemap(csout) void * { return $imcall; }
%typemap(in) void * %{ $1 = $input; %}
%typemap(out) void * %{ $result = $1; %}
// Mapping void* as IntPtr
%typemap(ctype) void * "void *"
%typemap(imtype) void * "IntPtr"
%typemap(cstype) void * "IntPtr"
%typemap(csin) void * "$csinput"
%typemap(in) void * %{ $1 = $input; %}
%typemap(out) void * %{ $result = $1; %}
%typemap(csout) void * { return $imcall; }
%typemap(csdirectorin) void * "$iminput"
@ -27,27 +27,114 @@ inattributes="[MarshalAs(UnmanagedType.LPArray)]") TYPE[] "CSTYPE[]"
%typemap(cscode) SipMessage %{
public byte[] getSipContent() {
uint clen = this.getSipContentLength();
if(clen>0){
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getSipContent(ptr, clen);
byte[] bytes = new byte[clen];
this.getSipContent(bytes, clen);
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
}
%}
//======== MessagingSession ========//
%typemap(cscode) MessagingSession %{
public bool send(byte[] buffer) {
IntPtr ptr = Marshal.AllocHGlobal(buffer.Length);
Marshal.Copy(buffer, 0, ptr, buffer.Length);
bool ret = this.send(ptr, (uint)buffer.Length);
Marshal.FreeHGlobal(ptr);
return ret;
}
%}
//======== InfoSession ========//
%typemap(cscode) InfoSession %{
public bool send(byte[] buffer, ActionConfig config) {
IntPtr ptr = Marshal.AllocHGlobal(buffer.Length);
Marshal.Copy(buffer, 0, ptr, buffer.Length);
bool ret = this.send(ptr, (uint)buffer.Length, config);
Marshal.FreeHGlobal(ptr);
return ret;
}
%}
//======= MediaContent ========//
%typemap(cscode) MediaContent %{
public byte[] getPayload() {
uint clen = this.getPayloadLength();
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getPayload(ptr, clen);
byte[] bytes = new byte[clen];
this.getPayload(bytes, clen);
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
}
%}
//======= SMSData ========//
%typemap(cscode) SMSData %{
public byte[] getPayload() {
uint clen = this.getPayloadLength();
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getPayload(ptr, clen);
byte[] bytes = new byte[clen];
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
}
%}
//======= RPMessage ========//
%typemap(cscode) RPMessage %{
public byte[] getPayload() {
uint clen = this.getPayloadLength();
if(clen>0){
IntPtr ptr = Marshal.AllocHGlobal((int)clen);
this.getPayload(ptr, clen);
byte[] bytes = new byte[clen];
Marshal.Copy(ptr, bytes, 0, bytes.Length);
Marshal.FreeHGlobal(ptr);
return bytes;
}
return null;
}
%}
//======== XcapStack ========//
%typemap(cscode) XcapStack %{
public bool putElement(string url, byte[] payload) {
IntPtr ptr = Marshal.AllocHGlobal(payload.Length);
Marshal.Copy(payload, 0, ptr, payload.Length);
bool ret = this.putElement(url, ptr, (uint)payload.Length);
Marshal.FreeHGlobal(ptr);
return ret;
}
public bool putAttribute(string url, byte[] payload) {
IntPtr ptr = Marshal.AllocHGlobal(payload.Length);
Marshal.Copy(payload, 0, ptr, payload.Length);
bool ret = this.putAttribute(url, ptr, (uint)payload.Length);
Marshal.FreeHGlobal(ptr);
return ret;
}
public bool putDocument(string url, byte[] payload, string contentType) {
IntPtr ptr = Marshal.AllocHGlobal(payload.Length);
Marshal.Copy(payload, 0, ptr, payload.Length);
bool ret = this.putDocument(url, ptr, (uint)payload.Length, contentType);
Marshal.FreeHGlobal(ptr);
return ret;
}
%}
%include ../_common/tinyWRAP.i

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -23,7 +23,7 @@ public enum tdav_codec_id_t {
tdav_codec_id_speex_uwb = 0x00000001 << 10,
tdav_codec_id_bv16 = 0x00000001 << 11,
tdav_codec_id_bv32 = 0x00000001 << 12,
tdav_codec_id_evrc = 0x00000001 << 13,
tdav_codec_id_opus = 0x00000001 << 13,
tdav_codec_id_g729ab = 0x00000001 << 14,
tdav_codec_id_g722 = 0x00000001 << 15,
tdav_codec_id_h261 = 0x00010000 << 0,
@ -39,7 +39,9 @@ public enum tdav_codec_id_t {
tdav_codec_id_h264_svc = 0x00010000 << 7,
tdav_codec_id_theora = 0x00010000 << 8,
tdav_codec_id_mp4ves_es = 0x00010000 << 9,
tdav_codec_id_vp8 = 0x00010000 << 10
tdav_codec_id_vp8 = 0x00010000 << 10,
tdav_codec_id_t140 = 0x00010000 << 14,
tdav_codec_id_red = 0x00010000 << 15
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -238,7 +238,7 @@ class tinyWRAPPINVOKE {
public static extern uint AudioResampler_getInputRequiredSizeInShort(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_AudioResampler_process")]
public static extern uint AudioResampler_process(HandleRef jarg1, byte[] jarg2, uint jarg3, byte[] jarg4, uint jarg5);
public static extern uint AudioResampler_process(HandleRef jarg1, IntPtr jarg2, uint jarg3, IntPtr jarg4, uint jarg5);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_ActionConfig")]
public static extern IntPtr new_ActionConfig();
@ -250,7 +250,7 @@ class tinyWRAPPINVOKE {
public static extern bool ActionConfig_addHeader(HandleRef jarg1, string jarg2, string jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_addPayload")]
public static extern bool ActionConfig_addPayload(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool ActionConfig_addPayload(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_setResponseLine")]
public static extern IntPtr ActionConfig_setResponseLine(HandleRef jarg1, short jarg2, string jarg3);
@ -442,19 +442,19 @@ class tinyWRAPPINVOKE {
public static extern uint MediaContent_getDataLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_getData")]
public static extern uint MediaContent_getData(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint MediaContent_getData(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_parse__SWIG_0")]
public static extern IntPtr MediaContent_parse__SWIG_0(byte[] jarg1, uint jarg2, string jarg3);
public static extern IntPtr MediaContent_parse__SWIG_0(IntPtr jarg1, uint jarg2, string jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_parse__SWIG_1")]
public static extern IntPtr MediaContent_parse__SWIG_1(byte[] jarg1, uint jarg2);
public static extern IntPtr MediaContent_parse__SWIG_1(IntPtr jarg1, uint jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_getPayloadLength")]
public static extern uint MediaContent_getPayloadLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_getPayload")]
public static extern uint MediaContent_getPayload(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint MediaContent_getPayload(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_MediaContentCPIM")]
public static extern void delete_MediaContentCPIM(HandleRef jarg1);
@ -463,7 +463,7 @@ class tinyWRAPPINVOKE {
public static extern uint MediaContentCPIM_getPayloadLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContentCPIM_getPayload")]
public static extern uint MediaContentCPIM_getPayload(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint MediaContentCPIM_getPayload(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_MediaContentCPIM_getHeaderValue")]
public static extern string MediaContentCPIM_getHeaderValue(HandleRef jarg1, string jarg2);
@ -553,7 +553,7 @@ class tinyWRAPPINVOKE {
public static extern uint SipMessage_getSipContentLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipContent")]
public static extern uint SipMessage_getSipContent(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint SipMessage_getSipContent(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSdpMessage")]
public static extern IntPtr SipMessage_getSdpMessage(HandleRef jarg1);
@ -663,6 +663,33 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getSession")]
public static extern IntPtr SubscriptionEvent_getSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_T140CallbackData")]
public static extern void delete_T140CallbackData(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_T140CallbackData_getType")]
public static extern int T140CallbackData_getType(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_T140CallbackData_getSize")]
public static extern uint T140CallbackData_getSize(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_T140CallbackData_getData")]
public static extern uint T140CallbackData_getData(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_T140Callback")]
public static extern IntPtr new_T140Callback();
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_T140Callback")]
public static extern void delete_T140Callback(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_T140Callback_ondata")]
public static extern int T140Callback_ondata(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_T140Callback_ondataSwigExplicitT140Callback")]
public static extern int T140Callback_ondataSwigExplicitT140Callback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_T140Callback_director_connect")]
public static extern void T140Callback_director_connect(HandleRef jarg1, T140Callback.SwigDelegateT140Callback_0 delegate0);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SipSession")]
public static extern IntPtr new_SipSession(HandleRef jarg1);
@ -739,10 +766,10 @@ class tinyWRAPPINVOKE {
public static extern bool InviteSession_reject__SWIG_1(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_sendInfo__SWIG_0")]
public static extern bool InviteSession_sendInfo__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3, HandleRef jarg4);
public static extern bool InviteSession_sendInfo__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_sendInfo__SWIG_1")]
public static extern bool InviteSession_sendInfo__SWIG_1(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool InviteSession_sendInfo__SWIG_1(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_getMediaMgr")]
public static extern IntPtr InviteSession_getMediaMgr(HandleRef jarg1);
@ -789,6 +816,18 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callVideo__SWIG_3")]
public static extern bool CallSession_callVideo__SWIG_3(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_call__SWIG_0")]
public static extern bool CallSession_call__SWIG_0(HandleRef jarg1, string jarg2, int jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_call__SWIG_1")]
public static extern bool CallSession_call__SWIG_1(HandleRef jarg1, string jarg2, int jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_call__SWIG_2")]
public static extern bool CallSession_call__SWIG_2(HandleRef jarg1, HandleRef jarg2, int jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_call__SWIG_3")]
public static extern bool CallSession_call__SWIG_3(HandleRef jarg1, HandleRef jarg2, int jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setSessionTimer")]
public static extern bool CallSession_setSessionTimer(HandleRef jarg1, uint jarg2, string jarg3);
@ -843,6 +882,18 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_getSessionTransferId")]
public static extern uint CallSession_getSessionTransferId(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_sendT140Data__SWIG_0")]
public static extern bool CallSession_sendT140Data__SWIG_0(HandleRef jarg1, int jarg2, IntPtr jarg3, uint jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_sendT140Data__SWIG_1")]
public static extern bool CallSession_sendT140Data__SWIG_1(HandleRef jarg1, int jarg2, IntPtr jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_sendT140Data__SWIG_2")]
public static extern bool CallSession_sendT140Data__SWIG_2(HandleRef jarg1, int jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setT140Callback")]
public static extern bool CallSession_setT140Callback(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_MsrpSession")]
public static extern IntPtr new_MsrpSession(HandleRef jarg1, HandleRef jarg2);
@ -865,10 +916,10 @@ class tinyWRAPPINVOKE {
public static extern bool MsrpSession_callMsrp__SWIG_3(HandleRef jarg1, HandleRef jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_sendMessage__SWIG_0")]
public static extern bool MsrpSession_sendMessage__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3, HandleRef jarg4);
public static extern bool MsrpSession_sendMessage__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_sendMessage__SWIG_1")]
public static extern bool MsrpSession_sendMessage__SWIG_1(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool MsrpSession_sendMessage__SWIG_1(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_sendFile__SWIG_0")]
public static extern bool MsrpSession_sendFile__SWIG_0(HandleRef jarg1, HandleRef jarg2);
@ -883,10 +934,10 @@ class tinyWRAPPINVOKE {
public static extern void delete_MessagingSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_send__SWIG_0")]
public static extern bool MessagingSession_send__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3, HandleRef jarg4);
public static extern bool MessagingSession_send__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_send__SWIG_1")]
public static extern bool MessagingSession_send__SWIG_1(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool MessagingSession_send__SWIG_1(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_accept__SWIG_0")]
public static extern bool MessagingSession_accept__SWIG_0(HandleRef jarg1, HandleRef jarg2);
@ -907,10 +958,10 @@ class tinyWRAPPINVOKE {
public static extern void delete_InfoSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_send__SWIG_0")]
public static extern bool InfoSession_send__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3, HandleRef jarg4);
public static extern bool InfoSession_send__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_send__SWIG_1")]
public static extern bool InfoSession_send__SWIG_1(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool InfoSession_send__SWIG_1(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_accept__SWIG_0")]
public static extern bool InfoSession_accept__SWIG_0(HandleRef jarg1, HandleRef jarg2);
@ -955,10 +1006,10 @@ class tinyWRAPPINVOKE {
public static extern void delete_PublicationSession(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_publish__SWIG_0")]
public static extern bool PublicationSession_publish__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3, HandleRef jarg4);
public static extern bool PublicationSession_publish__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3, HandleRef jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_publish__SWIG_1")]
public static extern bool PublicationSession_publish__SWIG_1(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool PublicationSession_publish__SWIG_1(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_unPublish__SWIG_0")]
public static extern bool PublicationSession_unPublish__SWIG_0(HandleRef jarg1, HandleRef jarg2);
@ -1102,13 +1153,13 @@ class tinyWRAPPINVOKE {
public static extern bool ProxyAudioConsumer_queryForResampler(HandleRef jarg1, ushort jarg2, ushort jarg3, ushort jarg4, ushort jarg5, ushort jarg6);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_setPullBuffer")]
public static extern bool ProxyAudioConsumer_setPullBuffer(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool ProxyAudioConsumer_setPullBuffer(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_pull__SWIG_0")]
public static extern uint ProxyAudioConsumer_pull__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint ProxyAudioConsumer_pull__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_pull__SWIG_1")]
public static extern uint ProxyAudioConsumer_pull__SWIG_1(HandleRef jarg1, byte[] jarg2);
public static extern uint ProxyAudioConsumer_pull__SWIG_1(HandleRef jarg1, IntPtr jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_pull__SWIG_2")]
public static extern uint ProxyAudioConsumer_pull__SWIG_2(HandleRef jarg1);
@ -1188,6 +1239,12 @@ class tinyWRAPPINVOKE {
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_getDisplayHeight")]
public static extern uint ProxyVideoConsumer_getDisplayHeight(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_getDecodedWidth")]
public static extern uint ProxyVideoConsumer_getDecodedWidth(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_getDecodedHeight")]
public static extern uint ProxyVideoConsumer_getDecodedHeight(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setCallback")]
public static extern void ProxyVideoConsumer_setCallback(HandleRef jarg1, HandleRef jarg2);
@ -1198,10 +1255,10 @@ class tinyWRAPPINVOKE {
public static extern bool ProxyVideoConsumer_getAutoResizeDisplay(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setConsumeBuffer")]
public static extern bool ProxyVideoConsumer_setConsumeBuffer(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool ProxyVideoConsumer_setConsumeBuffer(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_pull")]
public static extern uint ProxyVideoConsumer_pull(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint ProxyVideoConsumer_pull(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_reset")]
public static extern bool ProxyVideoConsumer_reset(HandleRef jarg1);
@ -1225,7 +1282,7 @@ class tinyWRAPPINVOKE {
public static extern uint ProxyVideoFrame_getSize(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoFrame_getContent")]
public static extern uint ProxyVideoFrame_getContent(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint ProxyVideoFrame_getContent(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_ProxyAudioProducerCallback")]
public static extern IntPtr new_ProxyAudioProducerCallback();
@ -1270,16 +1327,16 @@ class tinyWRAPPINVOKE {
public static extern void delete_ProxyAudioProducer(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setPushBuffer__SWIG_0")]
public static extern bool ProxyAudioProducer_setPushBuffer__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3, bool jarg4);
public static extern bool ProxyAudioProducer_setPushBuffer__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3, bool jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setPushBuffer__SWIG_1")]
public static extern bool ProxyAudioProducer_setPushBuffer__SWIG_1(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern bool ProxyAudioProducer_setPushBuffer__SWIG_1(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_push__SWIG_0")]
public static extern int ProxyAudioProducer_push__SWIG_0(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern int ProxyAudioProducer_push__SWIG_0(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_push__SWIG_1")]
public static extern int ProxyAudioProducer_push__SWIG_1(HandleRef jarg1, byte[] jarg2);
public static extern int ProxyAudioProducer_push__SWIG_1(HandleRef jarg1, IntPtr jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_push__SWIG_2")]
public static extern int ProxyAudioProducer_push__SWIG_2(HandleRef jarg1);
@ -1345,10 +1402,10 @@ class tinyWRAPPINVOKE {
public static extern bool ProxyVideoProducer_setActualCameraOutputSize(HandleRef jarg1, uint jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_push")]
public static extern int ProxyVideoProducer_push(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern int ProxyVideoProducer_push(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_send")]
public static extern int ProxyVideoProducer_send(HandleRef jarg1, byte[] jarg2, uint jarg3, uint jarg4, bool jarg5);
public static extern int ProxyVideoProducer_send(HandleRef jarg1, IntPtr jarg2, uint jarg3, uint jarg4, bool jarg5);
[DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_setCallback")]
public static extern void ProxyVideoProducer_setCallback(HandleRef jarg1, HandleRef jarg2);
@ -1666,7 +1723,7 @@ class tinyWRAPPINVOKE {
public static extern uint XcapMessage_getXcapContentLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapContent")]
public static extern uint XcapMessage_getXcapContent(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint XcapMessage_getXcapContent(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_XcapEvent")]
public static extern void delete_XcapEvent(HandleRef jarg1);
@ -1744,13 +1801,13 @@ class tinyWRAPPINVOKE {
public static extern bool XcapStack_deleteAttribute(HandleRef jarg1, string jarg2);
[DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_putDocument")]
public static extern bool XcapStack_putDocument(HandleRef jarg1, string jarg2, byte[] jarg3, uint jarg4, string jarg5);
public static extern bool XcapStack_putDocument(HandleRef jarg1, string jarg2, IntPtr jarg3, uint jarg4, string jarg5);
[DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_putElement")]
public static extern bool XcapStack_putElement(HandleRef jarg1, string jarg2, byte[] jarg3, uint jarg4);
public static extern bool XcapStack_putElement(HandleRef jarg1, string jarg2, IntPtr jarg3, uint jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_putAttribute")]
public static extern bool XcapStack_putAttribute(HandleRef jarg1, string jarg2, byte[] jarg3, uint jarg4);
public static extern bool XcapStack_putAttribute(HandleRef jarg1, string jarg2, IntPtr jarg3, uint jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_stop")]
public static extern bool XcapStack_stop(HandleRef jarg1);
@ -1768,7 +1825,7 @@ class tinyWRAPPINVOKE {
public static extern uint RPMessage_getPayloadLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_RPMessage_getPayload")]
public static extern uint RPMessage_getPayload(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint RPMessage_getPayload(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_new_SMSData")]
public static extern IntPtr new_SMSData();
@ -1786,7 +1843,7 @@ class tinyWRAPPINVOKE {
public static extern uint SMSData_getPayloadLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getPayload")]
public static extern uint SMSData_getPayload(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint SMSData_getPayload(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getOA")]
public static extern string SMSData_getOA(HandleRef jarg1);
@ -1807,7 +1864,7 @@ class tinyWRAPPINVOKE {
public static extern IntPtr SMSEncoder_encodeError(int jarg1, string jarg2, string jarg3, bool jarg4);
[DllImport("tinyWRAP", EntryPoint="CSharp_SMSEncoder_decode")]
public static extern IntPtr SMSEncoder_decode(byte[] jarg1, uint jarg2, bool jarg3);
public static extern IntPtr SMSEncoder_decode(IntPtr jarg1, uint jarg2, bool jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_SMSEncoder")]
public static extern void delete_SMSEncoder(HandleRef jarg1);
@ -1852,7 +1909,7 @@ class tinyWRAPPINVOKE {
public static extern uint MsrpMessage_getMsrpContentLength(HandleRef jarg1);
[DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getMsrpContent")]
public static extern uint MsrpMessage_getMsrpContent(HandleRef jarg1, byte[] jarg2, uint jarg3);
public static extern uint MsrpMessage_getMsrpContent(HandleRef jarg1, IntPtr jarg2, uint jarg3);
[DllImport("tinyWRAP", EntryPoint="CSharp_delete_MsrpEvent")]
public static extern void delete_MsrpEvent(HandleRef jarg1);

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
@ -451,6 +451,38 @@ void SwigDirector_DDebugCallback::swig_init_callbacks() {
swig_callbackOnDebugFatal = 0;
}
SwigDirector_T140Callback::SwigDirector_T140Callback() : T140Callback(), Swig::Director() {
swig_init_callbacks();
}
SwigDirector_T140Callback::~SwigDirector_T140Callback() {
}
int SwigDirector_T140Callback::ondata(T140CallbackData const *pData) {
int c_result = SwigValueInit< int >() ;
int jresult = 0 ;
void * jpData = 0 ;
if (!swig_callbackondata) {
return T140Callback::ondata(pData);
} else {
jpData = (void *) pData;
jresult = (int) swig_callbackondata(jpData);
c_result = (int)jresult;
}
return c_result;
}
void SwigDirector_T140Callback::swig_connect_director(SWIG_Callback0_t callbackondata) {
swig_callbackondata = callbackondata;
}
void SwigDirector_T140Callback::swig_init_callbacks() {
swig_callbackondata = 0;
}
SwigDirector_ProxyPluginMgrCallback::SwigDirector_ProxyPluginMgrCallback() : ProxyPluginMgrCallback(), Swig::Director() {
swig_init_callbacks();
}
@ -3064,6 +3096,109 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_SubscriptionEvent_getSession(void * jarg1)
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_T140CallbackData(void * jarg1) {
T140CallbackData *arg1 = (T140CallbackData *) 0 ;
arg1 = (T140CallbackData *)jarg1;
delete arg1;
}
SWIGEXPORT int SWIGSTDCALL CSharp_T140CallbackData_getType(void * jarg1) {
int jresult ;
T140CallbackData *arg1 = (T140CallbackData *) 0 ;
enum tmedia_t140_data_type_e result;
arg1 = (T140CallbackData *)jarg1;
result = (enum tmedia_t140_data_type_e)(arg1)->getType();
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_T140CallbackData_getSize(void * jarg1) {
unsigned int jresult ;
T140CallbackData *arg1 = (T140CallbackData *) 0 ;
unsigned int result;
arg1 = (T140CallbackData *)jarg1;
result = (unsigned int)(arg1)->getSize();
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_T140CallbackData_getData(void * jarg1, void * jarg2, unsigned int jarg3) {
unsigned int jresult ;
T140CallbackData *arg1 = (T140CallbackData *) 0 ;
void *arg2 = (void *) 0 ;
unsigned int arg3 ;
unsigned int result;
arg1 = (T140CallbackData *)jarg1;
arg2 = jarg2;
arg3 = (unsigned int)jarg3;
result = (unsigned int)(arg1)->getData(arg2,arg3);
jresult = result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_T140Callback() {
void * jresult ;
T140Callback *result = 0 ;
result = (T140Callback *)new SwigDirector_T140Callback();
jresult = (void *)result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_delete_T140Callback(void * jarg1) {
T140Callback *arg1 = (T140Callback *) 0 ;
arg1 = (T140Callback *)jarg1;
delete arg1;
}
SWIGEXPORT int SWIGSTDCALL CSharp_T140Callback_ondata(void * jarg1, void * jarg2) {
int jresult ;
T140Callback *arg1 = (T140Callback *) 0 ;
T140CallbackData *arg2 = (T140CallbackData *) 0 ;
int result;
arg1 = (T140Callback *)jarg1;
arg2 = (T140CallbackData *)jarg2;
result = (int)(arg1)->ondata((T140CallbackData const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT int SWIGSTDCALL CSharp_T140Callback_ondataSwigExplicitT140Callback(void * jarg1, void * jarg2) {
int jresult ;
T140Callback *arg1 = (T140Callback *) 0 ;
T140CallbackData *arg2 = (T140CallbackData *) 0 ;
int result;
arg1 = (T140Callback *)jarg1;
arg2 = (T140CallbackData *)jarg2;
result = (int)(arg1)->T140Callback::ondata((T140CallbackData const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_T140Callback_director_connect(void *objarg, SwigDirector_T140Callback::SWIG_Callback0_t callback0) {
T140Callback *obj = (T140Callback *)objarg;
SwigDirector_T140Callback *director = dynamic_cast<SwigDirector_T140Callback *>(obj);
if (director) {
director->swig_connect_director(callback0);
}
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipSession(void * jarg1) {
void * jresult ;
SipStack *arg1 = (SipStack *) 0 ;
@ -3636,6 +3771,74 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callVideo__SWIG_3(void *
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_call__SWIG_0(void * jarg1, char * jarg2, int jarg3, void * jarg4) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
char *arg2 = (char *) 0 ;
twrap_media_type_t arg3 ;
ActionConfig *arg4 = (ActionConfig *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (char *)jarg2;
arg3 = (twrap_media_type_t)jarg3;
arg4 = (ActionConfig *)jarg4;
result = (bool)(arg1)->call((char const *)arg2,arg3,arg4);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_call__SWIG_1(void * jarg1, char * jarg2, int jarg3) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
char *arg2 = (char *) 0 ;
twrap_media_type_t arg3 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (char *)jarg2;
arg3 = (twrap_media_type_t)jarg3;
result = (bool)(arg1)->call((char const *)arg2,arg3);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_call__SWIG_2(void * jarg1, void * jarg2, int jarg3, void * jarg4) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
SipUri *arg2 = (SipUri *) 0 ;
twrap_media_type_t arg3 ;
ActionConfig *arg4 = (ActionConfig *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (SipUri *)jarg2;
arg3 = (twrap_media_type_t)jarg3;
arg4 = (ActionConfig *)jarg4;
result = (bool)(arg1)->call((SipUri const *)arg2,arg3,arg4);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_call__SWIG_3(void * jarg1, void * jarg2, int jarg3) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
SipUri *arg2 = (SipUri *) 0 ;
twrap_media_type_t arg3 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (SipUri *)jarg2;
arg3 = (twrap_media_type_t)jarg3;
result = (bool)(arg1)->call((SipUri const *)arg2,arg3);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setSessionTimer(void * jarg1, unsigned int jarg2, char * jarg3) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
@ -3884,6 +4087,68 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_getSessionTransferId(void
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_sendT140Data__SWIG_0(void * jarg1, int jarg2, void * jarg3, unsigned int jarg4) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
enum tmedia_t140_data_type_e arg2 ;
void *arg3 = (void *) 0 ;
unsigned int arg4 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (enum tmedia_t140_data_type_e)jarg2;
arg3 = jarg3;
arg4 = (unsigned int)jarg4;
result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_sendT140Data__SWIG_1(void * jarg1, int jarg2, void * jarg3) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
enum tmedia_t140_data_type_e arg2 ;
void *arg3 = (void *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (enum tmedia_t140_data_type_e)jarg2;
arg3 = jarg3;
result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_sendT140Data__SWIG_2(void * jarg1, int jarg2) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
enum tmedia_t140_data_type_e arg2 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (enum tmedia_t140_data_type_e)jarg2;
result = (bool)(arg1)->sendT140Data(arg2);
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setT140Callback(void * jarg1, void * jarg2) {
unsigned int jresult ;
CallSession *arg1 = (CallSession *) 0 ;
T140Callback *arg2 = (T140Callback *) 0 ;
bool result;
arg1 = (CallSession *)jarg1;
arg2 = (T140Callback *)jarg2;
result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2);
jresult = result;
return jresult;
}
SWIGEXPORT void * SWIGSTDCALL CSharp_new_MsrpSession(void * jarg1, void * jarg2) {
void * jresult ;
SipStack *arg1 = (SipStack *) 0 ;
@ -5357,6 +5622,30 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_getDisplayHeight(v
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_getDecodedWidth(void * jarg1) {
unsigned int jresult ;
ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
unsigned int result;
arg1 = (ProxyVideoConsumer *)jarg1;
result = (unsigned int)(arg1)->getDecodedWidth();
jresult = result;
return jresult;
}
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_getDecodedHeight(void * jarg1) {
unsigned int jresult ;
ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
unsigned int result;
arg1 = (ProxyVideoConsumer *)jarg1;
result = (unsigned int)(arg1)->getDecodedHeight();
jresult = result;
return jresult;
}
SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoConsumer_setCallback(void * jarg1, void * jarg2) {
ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ;
ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ;

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
@ -35,6 +35,21 @@ private:
void swig_init_callbacks();
};
class SwigDirector_T140Callback : public T140Callback, public Swig::Director {
public:
SwigDirector_T140Callback();
virtual ~SwigDirector_T140Callback();
virtual int ondata(T140CallbackData const *pData);
typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *);
void swig_connect_director(SWIG_Callback0_t callbackondata);
private:
SWIG_Callback0_t swig_callbackondata;
void swig_init_callbacks();
};
class SwigDirector_ProxyPluginMgrCallback : public ProxyPluginMgrCallback, public Swig::Director {
public:

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -0,0 +1,29 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
namespace org.doubango.tinyWRAP {
public enum tmedia_t140_data_type_t {
tmedia_t140_data_type_utf8,
tmedia_t140_data_type_zero_width_no_break_space = 0xefbbbf,
tmedia_t140_data_type_backspace = 0x08,
tmedia_t140_data_type_esc = 0x1b,
tmedia_t140_data_type_cr = 0x0d,
tmedia_t140_data_type_lf = 0x0a,
tmedia_t140_data_type_cr_lf = 0x0d0a,
tmedia_t140_data_type_interrupt2 = 0x61,
tmedia_t140_data_type_bell = 0x07,
tmedia_t140_data_type_sos = 0x98,
tmedia_t140_data_type_string_term = 0x9c,
tmedia_t140_data_type_graphic_start = 0x9b,
tmedia_t140_data_type_graphic_end = 0x6d,
tmedia_t140_data_type_loss_char_char = 0xfffd,
tmedia_t140_data_type_loss_utf8 = 0xefbfbd
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -12,8 +12,13 @@ public enum twrap_media_type_t {
twrap_media_none = 0x00,
twrap_media_audio = 0x01,
twrap_media_video = 0x02,
twrap_media_msrp = 0x04,
twrap_media_t140 = 0x08,
twrap_media_audio_t140 = 0x09,
twrap_media_video_t140 = 0x0a,
twrap_media_audiovideo = 0x03,
twrap_media_msrp = 0x04
twrap_media_audio_video = twrap_media_audiovideo,
twrap_media_audio_video_t140 = 0x0b
}
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -12,12 +12,12 @@ public class ActionConfig {
private long swigCPtr;
protected boolean swigCMemOwn;
public ActionConfig(long cPtr, boolean cMemoryOwn) {
protected ActionConfig(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public static long getCPtr(ActionConfig obj) {
protected static long getCPtr(ActionConfig obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -12,12 +12,12 @@ public class AudioResampler {
private long swigCPtr;
protected boolean swigCMemOwn;
public AudioResampler(long cPtr, boolean cMemoryOwn) {
protected AudioResampler(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public static long getCPtr(AudioResampler obj) {
protected static long getCPtr(AudioResampler obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}

View File

@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
* Version 2.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
@ -11,12 +11,12 @@ package org.doubango.tinyWRAP;
public class CallSession extends InviteSession {
private long swigCPtr;
public CallSession(long cPtr, boolean cMemoryOwn) {
protected CallSession(long cPtr, boolean cMemoryOwn) {
super(tinyWRAPJNI.CallSession_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
public static long getCPtr(CallSession obj) {
protected static long getCPtr(CallSession obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@ -87,6 +87,22 @@ public class CallSession extends InviteSession {
return tinyWRAPJNI.CallSession_callVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri);
}
public boolean call(String remoteUriString, twrap_media_type_t media, ActionConfig config) {
return tinyWRAPJNI.CallSession_call__SWIG_0(swigCPtr, this, remoteUriString, media.swigValue(), ActionConfig.getCPtr(config), config);
}
public boolean call(String remoteUriString, twrap_media_type_t media) {
return tinyWRAPJNI.CallSession_call__SWIG_1(swigCPtr, this, remoteUriString, media.swigValue());
}
public boolean call(SipUri remoteUri, twrap_media_type_t media, ActionConfig config) {
return tinyWRAPJNI.CallSession_call__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, media.swigValue(), ActionConfig.getCPtr(config), config);
}
public boolean call(SipUri remoteUri, twrap_media_type_t media) {
return tinyWRAPJNI.CallSession_call__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, media.swigValue());
}
public boolean setSessionTimer(long timeout, String refresher) {
return tinyWRAPJNI.CallSession_setSessionTimer(swigCPtr, this, timeout, refresher);
}
@ -159,4 +175,20 @@ public class CallSession extends InviteSession {
return tinyWRAPJNI.CallSession_getSessionTransferId(swigCPtr, this);
}
public boolean sendT140Data(tmedia_t140_data_type_t data_type, java.nio.ByteBuffer data_ptr, long data_size) {
return tinyWRAPJNI.CallSession_sendT140Data__SWIG_0(swigCPtr, this, data_type.swigValue(), data_ptr, data_size);
}
public boolean sendT140Data(tmedia_t140_data_type_t data_type, java.nio.ByteBuffer data_ptr) {
return tinyWRAPJNI.CallSession_sendT140Data__SWIG_1(swigCPtr, this, data_type.swigValue(), data_ptr);
}
public boolean sendT140Data(tmedia_t140_data_type_t data_type) {
return tinyWRAPJNI.CallSession_sendT140Data__SWIG_2(swigCPtr, this, data_type.swigValue());
}
public boolean setT140Callback(T140Callback pT140Callback) {
return tinyWRAPJNI.CallSession_setT140Callback(swigCPtr, this, T140Callback.getCPtr(pT140Callback), pT140Callback);
}
}

Some files were not shown because too many files have changed in this diff Show More