From 631fffee8a28b1bec5ed1f1d26a20e0135967f99 Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Mon, 17 Aug 2015 01:56:35 +0200 Subject: - --- bindings/Makefile.am | 129 + bindings/_common/ActionConfig.cxx | 88 + bindings/_common/ActionConfig.h | 52 + bindings/_common/AudioResampler.cxx | 73 + bindings/_common/AudioResampler.h | 56 + bindings/_common/Common.h | 98 + bindings/_common/DDebug.cxx | 142 + bindings/_common/DDebug.h | 49 + bindings/_common/MediaContent.cxx | 178 + bindings/_common/MediaContent.h | 76 + bindings/_common/MediaSessionMgr.cxx | 559 + bindings/_common/MediaSessionMgr.h | 169 + bindings/_common/Msrp.cxx | 283 + bindings/_common/Msrp.h | 97 + bindings/_common/Msrp.i | 34 + bindings/_common/ProxyConsumer.cxx | 815 + bindings/_common/ProxyConsumer.h | 211 + bindings/_common/ProxyPluginMgr.cxx | 306 + bindings/_common/ProxyPluginMgr.h | 128 + bindings/_common/ProxyProducer.cxx | 626 + bindings/_common/ProxyProducer.h | 168 + bindings/_common/SMS.i | 7 + bindings/_common/SMSEncoder.cxx | 376 + bindings/_common/SMSEncoder.h | 115 + bindings/_common/SafeObject.cxx | 42 + bindings/_common/SafeObject.h | 43 + bindings/_common/SipCallback.cxx | 31 + bindings/_common/SipCallback.h | 56 + bindings/_common/SipEvent.cxx | 284 + bindings/_common/SipEvent.h | 216 + bindings/_common/SipMessage.cxx | 289 + bindings/_common/SipMessage.h | 78 + bindings/_common/SipSession.cxx | 1044 + bindings/_common/SipSession.h | 358 + bindings/_common/SipStack.cxx | 620 + bindings/_common/SipStack.h | 123 + bindings/_common/SipStack.i | 457 + bindings/_common/SipUri.cxx | 102 + bindings/_common/SipUri.h | 57 + bindings/_common/Xcap.cxx | 563 + bindings/_common/Xcap.h | 165 + bindings/_common/Xcap.i | 22 + bindings/_common/tinyWRAP.i | 72 + bindings/_common/tinyWRAP_config.h | 72 + bindings/autogen.sh | 34 + bindings/csharp/ActionConfig.cs | 82 + bindings/csharp/AudioResampler.cs | 69 + bindings/csharp/CallSession.cs | 288 + bindings/csharp/Codec.cs | 81 + bindings/csharp/DDebugCallback.cs | 118 + bindings/csharp/DialogEvent.cs | 45 + bindings/csharp/InfoEvent.cs | 62 + bindings/csharp/InfoSession.cs | 86 + bindings/csharp/InviteEvent.cs | 73 + bindings/csharp/InviteSession.cs | 94 + bindings/csharp/MediaContent.cs | 96 + bindings/csharp/MediaContentCPIM.cs | 60 + bindings/csharp/MediaSessionMgr.cs | 444 + bindings/csharp/MessagingEvent.cs | 62 + bindings/csharp/MessagingSession.cs | 86 + bindings/csharp/MsrpCallback.cs | 76 + bindings/csharp/MsrpEvent.cs | 63 + bindings/csharp/MsrpMessage.cs | 108 + bindings/csharp/MsrpSession.cs | 93 + bindings/csharp/OptionsEvent.cs | 62 + bindings/csharp/OptionsSession.cs | 78 + bindings/csharp/ProxyAudioConsumer.cs | 104 + bindings/csharp/ProxyAudioConsumerCallback.cs | 118 + bindings/csharp/ProxyAudioProducer.cs | 99 + bindings/csharp/ProxyAudioProducerCallback.cs | 132 + bindings/csharp/ProxyPlugin.cs | 56 + bindings/csharp/ProxyPluginMgr.cs | 88 + bindings/csharp/ProxyPluginMgrCallback.cs | 90 + bindings/csharp/ProxyVideoConsumer.cs | 117 + bindings/csharp/ProxyVideoConsumerCallback.cs | 146 + bindings/csharp/ProxyVideoFrame.cs | 66 + bindings/csharp/ProxyVideoProducer.cs | 93 + bindings/csharp/ProxyVideoProducerCallback.cs | 118 + bindings/csharp/PublicationEvent.cs | 62 + bindings/csharp/PublicationSession.cs | 68 + bindings/csharp/RPMessage.cs | 77 + bindings/csharp/RegistrationEvent.cs | 62 + bindings/csharp/RegistrationSession.cs | 88 + bindings/csharp/SMSData.cs | 92 + bindings/csharp/SMSEncoder.cs | 76 + bindings/csharp/SafeObject.cs | 59 + bindings/csharp/SdpMessage.cs | 64 + bindings/csharp/SipCallback.cs | 188 + bindings/csharp/SipEvent.cs | 68 + bindings/csharp/SipMessage.cs | 118 + bindings/csharp/SipSession.cs | 124 + bindings/csharp/SipStack.cs | 296 + bindings/csharp/SipUri.cs | 101 + bindings/csharp/StackEvent.cs | 45 + bindings/csharp/SubscriptionEvent.cs | 62 + bindings/csharp/SubscriptionSession.cs | 58 + bindings/csharp/T140Callback.cs | 76 + bindings/csharp/T140CallbackData.cs | 61 + bindings/csharp/XcapCallback.cs | 76 + bindings/csharp/XcapEvent.cs | 57 + bindings/csharp/XcapMessage.cs | 89 + bindings/csharp/XcapSelector.cs | 94 + bindings/csharp/XcapStack.cs | 168 + bindings/csharp/csharp.i | 147 + bindings/csharp/tdav_codec_id_t.cs | 48 + bindings/csharp/thttp_event_type_t.cs | 20 + bindings/csharp/tinyWRAP.cs | 35 + bindings/csharp/tinyWRAP.sln | 530 + bindings/csharp/tinyWRAP.vcproj | 412 + bindings/csharp/tinyWRAPPINVOKE.cs | 2203 ++ bindings/csharp/tinyWRAP_wrap.cxx | 9552 ++++++ bindings/csharp/tinyWRAP_wrap.h | 246 + bindings/csharp/tmedia_bandwidth_level_t.cs | 18 + bindings/csharp/tmedia_chroma_t.cs | 27 + bindings/csharp/tmedia_codec_id_t.cs | 47 + bindings/csharp/tmedia_mode_t.cs | 17 + bindings/csharp/tmedia_pref_video_size_t.cs | 29 + bindings/csharp/tmedia_profile_t.cs | 16 + bindings/csharp/tmedia_qos_strength_t.cs | 19 + bindings/csharp/tmedia_qos_stype_t.cs | 17 + bindings/csharp/tmedia_srtp_mode_t.cs | 17 + bindings/csharp/tmedia_srtp_type_t.cs | 18 + bindings/csharp/tmedia_t140_data_type_t.cs | 29 + bindings/csharp/tmsrp_event_type_t.cs | 18 + bindings/csharp/tmsrp_request_type_t.cs | 18 + bindings/csharp/tsip_event_type_t.cs | 22 + bindings/csharp/tsip_info_event_type_t.cs | 16 + bindings/csharp/tsip_invite_event_type_t.cs | 36 + bindings/csharp/tsip_message_event_type_t.cs | 16 + bindings/csharp/tsip_options_event_type_t.cs | 16 + bindings/csharp/tsip_publish_event_type_t.cs | 18 + bindings/csharp/tsip_register_event_type_t.cs | 19 + bindings/csharp/tsip_request_type_t.cs | 29 + bindings/csharp/tsip_stack_mode_t.cs | 18 + bindings/csharp/tsip_subscribe_event_type_t.cs | 20 + bindings/csharp/twrap_media_type_t.cs | 24 + bindings/csharp/twrap_proxy_plugin_type_t.cs | 18 + bindings/csharp/twrap_rpmessage_type_t.cs | 19 + bindings/csharp/twrap_sms_type_t.cs | 19 + bindings/java/ActionConfig.java | 69 + bindings/java/AudioResampler.java | 58 + bindings/java/CallSession.java | 234 + bindings/java/Codec.java | 66 + bindings/java/DDebugCallback.java | 74 + bindings/java/DialogEvent.java | 38 + bindings/java/InfoEvent.java | 52 + bindings/java/InfoSession.java | 66 + bindings/java/InviteEvent.java | 61 + bindings/java/InviteSession.java | 79 + bindings/java/MediaContent.java | 68 + bindings/java/MediaContentCPIM.java | 50 + bindings/java/MediaSessionMgr.java | 357 + bindings/java/MessagingEvent.java | 52 + bindings/java/MessagingSession.java | 66 + bindings/java/MsrpCallback.java | 62 + bindings/java/MsrpEvent.java | 52 + bindings/java/MsrpMessage.java | 90 + bindings/java/MsrpSession.java | 78 + bindings/java/OptionsEvent.java | 52 + bindings/java/OptionsSession.java | 66 + bindings/java/ProxyAudioConsumer.java | 86 + bindings/java/ProxyAudioConsumerCallback.java | 74 + bindings/java/ProxyAudioProducer.java | 82 + bindings/java/ProxyAudioProducerCallback.java | 78 + bindings/java/ProxyPlugin.java | 46 + bindings/java/ProxyPluginMgr.java | 73 + bindings/java/ProxyPluginMgrCallback.java | 66 + bindings/java/ProxyVideoConsumer.java | 98 + bindings/java/ProxyVideoConsumerCallback.java | 82 + bindings/java/ProxyVideoFrame.java | 54 + bindings/java/ProxyVideoProducer.java | 78 + bindings/java/ProxyVideoProducerCallback.java | 74 + bindings/java/PublicationEvent.java | 52 + bindings/java/PublicationSession.java | 66 + bindings/java/RPMessage.java | 54 + bindings/java/RegistrationEvent.java | 52 + bindings/java/RegistrationSession.java | 74 + bindings/java/SMSData.java | 66 + bindings/java/SMSEncoder.java | 63 + bindings/java/SafeObject.java | 50 + bindings/java/SdpMessage.java | 54 + bindings/java/SipCallback.java | 94 + bindings/java/SipEvent.java | 56 + bindings/java/SipMessage.java | 99 + bindings/java/SipSession.java | 111 + bindings/java/SipStack.java | 242 + bindings/java/SipUri.java | 86 + bindings/java/StackEvent.java | 38 + bindings/java/SubscriptionEvent.java | 52 + bindings/java/SubscriptionSession.java | 50 + bindings/java/T140Callback.java | 62 + bindings/java/T140CallbackData.java | 62 + bindings/java/XcapCallback.java | 62 + bindings/java/XcapEvent.java | 47 + bindings/java/XcapMessage.java | 86 + bindings/java/XcapSelector.java | 80 + bindings/java/XcapStack.java | 118 + bindings/java/android/ActionConfig.java | 69 + bindings/java/android/AudioResampler.java | 58 + bindings/java/android/CallSession.java | 234 + bindings/java/android/Codec.java | 66 + bindings/java/android/DDebugCallback.java | 74 + bindings/java/android/DialogEvent.java | 38 + bindings/java/android/InfoEvent.java | 52 + bindings/java/android/InfoSession.java | 66 + bindings/java/android/InviteEvent.java | 61 + bindings/java/android/InviteSession.java | 79 + bindings/java/android/MediaContent.java | 68 + bindings/java/android/MediaContentCPIM.java | 50 + bindings/java/android/MediaSessionMgr.java | 357 + bindings/java/android/MessagingEvent.java | 52 + bindings/java/android/MessagingSession.java | 66 + bindings/java/android/MsrpCallback.java | 62 + bindings/java/android/MsrpEvent.java | 52 + bindings/java/android/MsrpMessage.java | 90 + bindings/java/android/MsrpSession.java | 78 + bindings/java/android/OptionsEvent.java | 52 + bindings/java/android/OptionsSession.java | 66 + bindings/java/android/ProxyAudioConsumer.java | 86 + .../java/android/ProxyAudioConsumerCallback.java | 74 + bindings/java/android/ProxyAudioProducer.java | 82 + .../java/android/ProxyAudioProducerCallback.java | 78 + bindings/java/android/ProxyPlugin.java | 46 + bindings/java/android/ProxyPluginMgr.java | 73 + bindings/java/android/ProxyPluginMgrCallback.java | 66 + bindings/java/android/ProxyVideoConsumer.java | 98 + .../java/android/ProxyVideoConsumerCallback.java | 82 + bindings/java/android/ProxyVideoFrame.java | 54 + bindings/java/android/ProxyVideoProducer.java | 78 + .../java/android/ProxyVideoProducerCallback.java | 74 + bindings/java/android/PublicationEvent.java | 52 + bindings/java/android/PublicationSession.java | 66 + bindings/java/android/RPMessage.java | 54 + bindings/java/android/RegistrationEvent.java | 52 + bindings/java/android/RegistrationSession.java | 74 + bindings/java/android/SMSData.java | 66 + bindings/java/android/SMSEncoder.java | 63 + bindings/java/android/SafeObject.java | 50 + bindings/java/android/SdpMessage.java | 54 + bindings/java/android/SipCallback.java | 94 + bindings/java/android/SipEvent.java | 56 + bindings/java/android/SipMessage.java | 99 + bindings/java/android/SipSession.java | 111 + bindings/java/android/SipStack.java | 242 + bindings/java/android/SipUri.java | 86 + bindings/java/android/StackEvent.java | 38 + bindings/java/android/SubscriptionEvent.java | 52 + bindings/java/android/SubscriptionSession.java | 50 + bindings/java/android/T140Callback.java | 62 + bindings/java/android/T140CallbackData.java | 62 + bindings/java/android/XcapCallback.java | 62 + bindings/java/android/XcapEvent.java | 47 + bindings/java/android/XcapMessage.java | 86 + bindings/java/android/XcapSelector.java | 80 + bindings/java/android/XcapStack.java | 118 + bindings/java/android/buildAll.sh | 14 + bindings/java/android/commercial.sh | 28 + bindings/java/android/droid-makefile | 146 + bindings/java/android/gpl.sh | 30 + bindings/java/android/lgpl.sh | 28 + bindings/java/android/minimal.sh | 27 + bindings/java/android/tdav_codec_id_t.java | 83 + bindings/java/android/thttp_event_type_t.java | 56 + bindings/java/android/tinyWRAP.java | 12 + bindings/java/android/tinyWRAPConstants.java | 30 + bindings/java/android/tinyWRAPJNI.java | 791 + bindings/java/android/tinyWRAP_wrap.cxx | 13579 +++++++++ bindings/java/android/tinyWRAP_wrap.h | 192 + .../java/android/tmedia_bandwidth_level_t.java | 54 + bindings/java/android/tmedia_chroma_t.java | 63 + bindings/java/android/tmedia_codec_id_t.java | 83 + bindings/java/android/tmedia_mode_t.java | 53 + .../java/android/tmedia_pref_video_size_t.java | 65 + bindings/java/android/tmedia_profile_t.java | 52 + bindings/java/android/tmedia_qos_strength_t.java | 55 + bindings/java/android/tmedia_qos_stype_t.java | 53 + bindings/java/android/tmedia_srtp_mode_t.java | 53 + bindings/java/android/tmedia_srtp_type_t.java | 54 + bindings/java/android/tmedia_t140_data_type_t.java | 65 + bindings/java/android/tmsrp_event_type_t.java | 54 + bindings/java/android/tmsrp_request_type_t.java | 54 + bindings/java/android/tsip_event_type_t.java | 58 + bindings/java/android/tsip_info_event_type_t.java | 52 + .../java/android/tsip_invite_event_type_t.java | 72 + .../java/android/tsip_message_event_type_t.java | 52 + .../java/android/tsip_options_event_type_t.java | 52 + .../java/android/tsip_publish_event_type_t.java | 54 + .../java/android/tsip_register_event_type_t.java | 55 + bindings/java/android/tsip_request_type_t.java | 65 + bindings/java/android/tsip_stack_mode_t.java | 54 + .../java/android/tsip_subscribe_event_type_t.java | 56 + bindings/java/android/twrap_media_type_t.java | 60 + .../java/android/twrap_proxy_plugin_type_t.java | 54 + bindings/java/android/twrap_rpmessage_type_t.java | 55 + bindings/java/android/twrap_sms_type_t.java | 55 + bindings/java/java.i | 93 + bindings/java/tdav_codec_id_t.java | 83 + bindings/java/thttp_event_type_t.java | 56 + bindings/java/tinyWRAP.java | 12 + bindings/java/tinyWRAP.sln | 374 + bindings/java/tinyWRAP.vcproj | 394 + bindings/java/tinyWRAPConstants.java | 30 + bindings/java/tinyWRAPJNI.java | 791 + bindings/java/tinyWRAP_wrap.cxx | 13579 +++++++++ bindings/java/tinyWRAP_wrap.h | 192 + bindings/java/tmedia_bandwidth_level_t.java | 54 + bindings/java/tmedia_chroma_t.java | 63 + bindings/java/tmedia_codec_id_t.java | 83 + bindings/java/tmedia_mode_t.java | 53 + bindings/java/tmedia_pref_video_size_t.java | 65 + bindings/java/tmedia_profile_t.java | 52 + bindings/java/tmedia_qos_strength_t.java | 55 + bindings/java/tmedia_qos_stype_t.java | 53 + bindings/java/tmedia_srtp_mode_t.java | 53 + bindings/java/tmedia_srtp_type_t.java | 54 + bindings/java/tmedia_t140_data_type_t.java | 65 + bindings/java/tmsrp_event_type_t.java | 54 + bindings/java/tmsrp_request_type_t.java | 54 + bindings/java/tsip_event_type_t.java | 58 + bindings/java/tsip_info_event_type_t.java | 52 + bindings/java/tsip_invite_event_type_t.java | 72 + bindings/java/tsip_message_event_type_t.java | 52 + bindings/java/tsip_options_event_type_t.java | 52 + bindings/java/tsip_publish_event_type_t.java | 54 + bindings/java/tsip_register_event_type_t.java | 55 + bindings/java/tsip_request_type_t.java | 65 + bindings/java/tsip_stack_mode_t.java | 54 + bindings/java/tsip_subscribe_event_type_t.java | 56 + bindings/java/twrap_media_type_t.java | 60 + bindings/java/twrap_proxy_plugin_type_t.java | 54 + bindings/java/twrap_rpmessage_type_t.java | 55 + bindings/java/twrap_sms_type_t.java | 55 + bindings/objc/objc.i | 7 + bindings/perl/perl.i | 7 + bindings/perl/tinyWRAP.pm | 2739 ++ bindings/perl/tinyWRAP_wrap.cxx | 30071 +++++++++++++++++++ bindings/python/python.i | 7 + bindings/python/tinyWRAP.py | 2148 ++ bindings/python/tinyWRAP_wrap.cxx | 28268 +++++++++++++++++ bindings/python/tinyWRAP_wrap.h | 495 + bindings/ruby/ruby.i | 7 + bindings/ruby/tinyWRAP_wrap.cxx | 4293 +++ bindings/ruby/tinyWRAP_wrap.h | 28 + bindings/tinyWRAP.pc.in | 15 + bindings/version.rc | 102 + bindings/vs_2005/csharp/test/Form1.Designer.cs | 137 + bindings/vs_2005/csharp/test/Form1.cs | 245 + bindings/vs_2005/csharp/test/Form1.resx | 120 + bindings/vs_2005/csharp/test/Program.cs | 42 + .../vs_2005/csharp/test/Properties/AssemblyInfo.cs | 33 + .../csharp/test/Properties/Resources.Designer.cs | 71 + .../vs_2005/csharp/test/Properties/Resources.resx | 117 + .../csharp/test/Properties/Settings.Designer.cs | 30 + .../csharp/test/Properties/Settings.settings | 7 + bindings/vs_2005/csharp/test/test.csproj | 189 + bindings/vs_2005/csharp/tinyWRAP.sln | 246 + bindings/vs_2005/csharp/tinyWRAP.vcproj | 329 + bindings/winrt/HandleRef.cs | 55 + bindings/winrt/doubango_rt/doubango_rt.vcxproj | 232 + .../winrt/doubango_rt/doubango_rt.vcxproj.filters | 112 + .../winrt/doubango_rt/include/rt_ActionConfig.h | 53 + bindings/winrt/doubango_rt/include/rt_Config.h | 31 + bindings/winrt/doubango_rt/include/rt_DDebug.h | 53 + bindings/winrt/doubango_rt/include/rt_Enums.h | 333 + .../winrt/doubango_rt/include/rt_MediaContent.h | 18 + .../winrt/doubango_rt/include/rt_MediaSessionMgr.h | 130 + bindings/winrt/doubango_rt/include/rt_Msrp.h | 109 + bindings/winrt/doubango_rt/include/rt_SMSEncoder.h | 18 + .../winrt/doubango_rt/include/rt_SipCallback.h | 70 + bindings/winrt/doubango_rt/include/rt_SipEvent.h | 244 + bindings/winrt/doubango_rt/include/rt_SipMessage.h | 78 + bindings/winrt/doubango_rt/include/rt_SipSession.h | 510 + bindings/winrt/doubango_rt/include/rt_SipStack.h | 120 + bindings/winrt/doubango_rt/include/rt_SipUri.h | 60 + bindings/winrt/doubango_rt/include/rt_String.h | 33 + bindings/winrt/doubango_rt/include/rt_Xcap.h | 18 + bindings/winrt/doubango_rt/src/rt_ActionConfig.cxx | 76 + bindings/winrt/doubango_rt/src/rt_DDebug.cxx | 78 + bindings/winrt/doubango_rt/src/rt_Enums.cxx | 17 + bindings/winrt/doubango_rt/src/rt_MediaContent.cxx | 17 + .../winrt/doubango_rt/src/rt_MediaSessionMgr.cxx | 374 + bindings/winrt/doubango_rt/src/rt_Msrp.cxx | 194 + bindings/winrt/doubango_rt/src/rt_SMSEncoder.cxx | 17 + bindings/winrt/doubango_rt/src/rt_SipCallback.cxx | 135 + bindings/winrt/doubango_rt/src/rt_SipEvent.cxx | 239 + bindings/winrt/doubango_rt/src/rt_SipMessage.cxx | 171 + bindings/winrt/doubango_rt/src/rt_SipSession.cxx | 662 + bindings/winrt/doubango_rt/src/rt_SipStack.cxx | 390 + bindings/winrt/doubango_rt/src/rt_SipUri.cxx | 103 + bindings/winrt/doubango_rt/src/rt_String.cxx | 58 + bindings/winrt/doubango_rt/src/rt_Xcap.cxx | 17 + bindings/winrt/tinyWRAP.sln | 229 + bindings/winrt/tinyWRAP.vcxproj | 204 + bindings/winrt/tinyWRAP.vcxproj.filters | 139 + 394 files changed, 147106 insertions(+) create mode 100644 bindings/Makefile.am create mode 100644 bindings/_common/ActionConfig.cxx create mode 100644 bindings/_common/ActionConfig.h create mode 100644 bindings/_common/AudioResampler.cxx create mode 100644 bindings/_common/AudioResampler.h create mode 100644 bindings/_common/Common.h create mode 100644 bindings/_common/DDebug.cxx create mode 100644 bindings/_common/DDebug.h create mode 100644 bindings/_common/MediaContent.cxx create mode 100644 bindings/_common/MediaContent.h create mode 100644 bindings/_common/MediaSessionMgr.cxx create mode 100644 bindings/_common/MediaSessionMgr.h create mode 100644 bindings/_common/Msrp.cxx create mode 100644 bindings/_common/Msrp.h create mode 100644 bindings/_common/Msrp.i create mode 100644 bindings/_common/ProxyConsumer.cxx create mode 100644 bindings/_common/ProxyConsumer.h create mode 100644 bindings/_common/ProxyPluginMgr.cxx create mode 100644 bindings/_common/ProxyPluginMgr.h create mode 100644 bindings/_common/ProxyProducer.cxx create mode 100644 bindings/_common/ProxyProducer.h create mode 100644 bindings/_common/SMS.i create mode 100644 bindings/_common/SMSEncoder.cxx create mode 100644 bindings/_common/SMSEncoder.h create mode 100644 bindings/_common/SafeObject.cxx create mode 100644 bindings/_common/SafeObject.h create mode 100644 bindings/_common/SipCallback.cxx create mode 100644 bindings/_common/SipCallback.h create mode 100644 bindings/_common/SipEvent.cxx create mode 100644 bindings/_common/SipEvent.h create mode 100644 bindings/_common/SipMessage.cxx create mode 100644 bindings/_common/SipMessage.h create mode 100644 bindings/_common/SipSession.cxx create mode 100644 bindings/_common/SipSession.h create mode 100644 bindings/_common/SipStack.cxx create mode 100644 bindings/_common/SipStack.h create mode 100644 bindings/_common/SipStack.i create mode 100644 bindings/_common/SipUri.cxx create mode 100644 bindings/_common/SipUri.h create mode 100644 bindings/_common/Xcap.cxx create mode 100644 bindings/_common/Xcap.h create mode 100644 bindings/_common/Xcap.i create mode 100644 bindings/_common/tinyWRAP.i create mode 100644 bindings/_common/tinyWRAP_config.h create mode 100644 bindings/autogen.sh create mode 100644 bindings/csharp/ActionConfig.cs create mode 100644 bindings/csharp/AudioResampler.cs create mode 100644 bindings/csharp/CallSession.cs create mode 100644 bindings/csharp/Codec.cs create mode 100644 bindings/csharp/DDebugCallback.cs create mode 100644 bindings/csharp/DialogEvent.cs create mode 100644 bindings/csharp/InfoEvent.cs create mode 100644 bindings/csharp/InfoSession.cs create mode 100644 bindings/csharp/InviteEvent.cs create mode 100644 bindings/csharp/InviteSession.cs create mode 100644 bindings/csharp/MediaContent.cs create mode 100644 bindings/csharp/MediaContentCPIM.cs create mode 100644 bindings/csharp/MediaSessionMgr.cs create mode 100644 bindings/csharp/MessagingEvent.cs create mode 100644 bindings/csharp/MessagingSession.cs create mode 100644 bindings/csharp/MsrpCallback.cs create mode 100644 bindings/csharp/MsrpEvent.cs create mode 100644 bindings/csharp/MsrpMessage.cs create mode 100644 bindings/csharp/MsrpSession.cs create mode 100644 bindings/csharp/OptionsEvent.cs create mode 100644 bindings/csharp/OptionsSession.cs create mode 100644 bindings/csharp/ProxyAudioConsumer.cs create mode 100644 bindings/csharp/ProxyAudioConsumerCallback.cs create mode 100644 bindings/csharp/ProxyAudioProducer.cs create mode 100644 bindings/csharp/ProxyAudioProducerCallback.cs create mode 100644 bindings/csharp/ProxyPlugin.cs create mode 100644 bindings/csharp/ProxyPluginMgr.cs create mode 100644 bindings/csharp/ProxyPluginMgrCallback.cs create mode 100644 bindings/csharp/ProxyVideoConsumer.cs create mode 100644 bindings/csharp/ProxyVideoConsumerCallback.cs create mode 100644 bindings/csharp/ProxyVideoFrame.cs create mode 100644 bindings/csharp/ProxyVideoProducer.cs create mode 100644 bindings/csharp/ProxyVideoProducerCallback.cs create mode 100644 bindings/csharp/PublicationEvent.cs create mode 100644 bindings/csharp/PublicationSession.cs create mode 100644 bindings/csharp/RPMessage.cs create mode 100644 bindings/csharp/RegistrationEvent.cs create mode 100644 bindings/csharp/RegistrationSession.cs create mode 100644 bindings/csharp/SMSData.cs create mode 100644 bindings/csharp/SMSEncoder.cs create mode 100644 bindings/csharp/SafeObject.cs create mode 100644 bindings/csharp/SdpMessage.cs create mode 100644 bindings/csharp/SipCallback.cs create mode 100644 bindings/csharp/SipEvent.cs create mode 100644 bindings/csharp/SipMessage.cs create mode 100644 bindings/csharp/SipSession.cs create mode 100644 bindings/csharp/SipStack.cs create mode 100644 bindings/csharp/SipUri.cs create mode 100644 bindings/csharp/StackEvent.cs create mode 100644 bindings/csharp/SubscriptionEvent.cs create mode 100644 bindings/csharp/SubscriptionSession.cs create mode 100644 bindings/csharp/T140Callback.cs create mode 100644 bindings/csharp/T140CallbackData.cs create mode 100644 bindings/csharp/XcapCallback.cs create mode 100644 bindings/csharp/XcapEvent.cs create mode 100644 bindings/csharp/XcapMessage.cs create mode 100644 bindings/csharp/XcapSelector.cs create mode 100644 bindings/csharp/XcapStack.cs create mode 100644 bindings/csharp/csharp.i create mode 100644 bindings/csharp/tdav_codec_id_t.cs create mode 100644 bindings/csharp/thttp_event_type_t.cs create mode 100644 bindings/csharp/tinyWRAP.cs create mode 100644 bindings/csharp/tinyWRAP.sln create mode 100644 bindings/csharp/tinyWRAP.vcproj create mode 100644 bindings/csharp/tinyWRAPPINVOKE.cs create mode 100644 bindings/csharp/tinyWRAP_wrap.cxx create mode 100644 bindings/csharp/tinyWRAP_wrap.h create mode 100644 bindings/csharp/tmedia_bandwidth_level_t.cs create mode 100644 bindings/csharp/tmedia_chroma_t.cs create mode 100644 bindings/csharp/tmedia_codec_id_t.cs create mode 100644 bindings/csharp/tmedia_mode_t.cs create mode 100644 bindings/csharp/tmedia_pref_video_size_t.cs create mode 100644 bindings/csharp/tmedia_profile_t.cs create mode 100644 bindings/csharp/tmedia_qos_strength_t.cs create mode 100644 bindings/csharp/tmedia_qos_stype_t.cs create mode 100644 bindings/csharp/tmedia_srtp_mode_t.cs create mode 100644 bindings/csharp/tmedia_srtp_type_t.cs create mode 100644 bindings/csharp/tmedia_t140_data_type_t.cs create mode 100644 bindings/csharp/tmsrp_event_type_t.cs create mode 100644 bindings/csharp/tmsrp_request_type_t.cs create mode 100644 bindings/csharp/tsip_event_type_t.cs create mode 100644 bindings/csharp/tsip_info_event_type_t.cs create mode 100644 bindings/csharp/tsip_invite_event_type_t.cs create mode 100644 bindings/csharp/tsip_message_event_type_t.cs create mode 100644 bindings/csharp/tsip_options_event_type_t.cs create mode 100644 bindings/csharp/tsip_publish_event_type_t.cs create mode 100644 bindings/csharp/tsip_register_event_type_t.cs create mode 100644 bindings/csharp/tsip_request_type_t.cs create mode 100644 bindings/csharp/tsip_stack_mode_t.cs create mode 100644 bindings/csharp/tsip_subscribe_event_type_t.cs create mode 100644 bindings/csharp/twrap_media_type_t.cs create mode 100644 bindings/csharp/twrap_proxy_plugin_type_t.cs create mode 100644 bindings/csharp/twrap_rpmessage_type_t.cs create mode 100644 bindings/csharp/twrap_sms_type_t.cs create mode 100644 bindings/java/ActionConfig.java create mode 100644 bindings/java/AudioResampler.java create mode 100644 bindings/java/CallSession.java create mode 100644 bindings/java/Codec.java create mode 100644 bindings/java/DDebugCallback.java create mode 100644 bindings/java/DialogEvent.java create mode 100644 bindings/java/InfoEvent.java create mode 100644 bindings/java/InfoSession.java create mode 100644 bindings/java/InviteEvent.java create mode 100644 bindings/java/InviteSession.java create mode 100644 bindings/java/MediaContent.java create mode 100644 bindings/java/MediaContentCPIM.java create mode 100644 bindings/java/MediaSessionMgr.java create mode 100644 bindings/java/MessagingEvent.java create mode 100644 bindings/java/MessagingSession.java create mode 100644 bindings/java/MsrpCallback.java create mode 100644 bindings/java/MsrpEvent.java create mode 100644 bindings/java/MsrpMessage.java create mode 100644 bindings/java/MsrpSession.java create mode 100644 bindings/java/OptionsEvent.java create mode 100644 bindings/java/OptionsSession.java create mode 100644 bindings/java/ProxyAudioConsumer.java create mode 100644 bindings/java/ProxyAudioConsumerCallback.java create mode 100644 bindings/java/ProxyAudioProducer.java create mode 100644 bindings/java/ProxyAudioProducerCallback.java create mode 100644 bindings/java/ProxyPlugin.java create mode 100644 bindings/java/ProxyPluginMgr.java create mode 100644 bindings/java/ProxyPluginMgrCallback.java create mode 100644 bindings/java/ProxyVideoConsumer.java create mode 100644 bindings/java/ProxyVideoConsumerCallback.java create mode 100644 bindings/java/ProxyVideoFrame.java create mode 100644 bindings/java/ProxyVideoProducer.java create mode 100644 bindings/java/ProxyVideoProducerCallback.java create mode 100644 bindings/java/PublicationEvent.java create mode 100644 bindings/java/PublicationSession.java create mode 100644 bindings/java/RPMessage.java create mode 100644 bindings/java/RegistrationEvent.java create mode 100644 bindings/java/RegistrationSession.java create mode 100644 bindings/java/SMSData.java create mode 100644 bindings/java/SMSEncoder.java create mode 100644 bindings/java/SafeObject.java create mode 100644 bindings/java/SdpMessage.java create mode 100644 bindings/java/SipCallback.java create mode 100644 bindings/java/SipEvent.java create mode 100644 bindings/java/SipMessage.java create mode 100644 bindings/java/SipSession.java create mode 100644 bindings/java/SipStack.java create mode 100644 bindings/java/SipUri.java create mode 100644 bindings/java/StackEvent.java create mode 100644 bindings/java/SubscriptionEvent.java create mode 100644 bindings/java/SubscriptionSession.java create mode 100644 bindings/java/T140Callback.java create mode 100644 bindings/java/T140CallbackData.java create mode 100644 bindings/java/XcapCallback.java create mode 100644 bindings/java/XcapEvent.java create mode 100644 bindings/java/XcapMessage.java create mode 100644 bindings/java/XcapSelector.java create mode 100644 bindings/java/XcapStack.java create mode 100644 bindings/java/android/ActionConfig.java create mode 100644 bindings/java/android/AudioResampler.java create mode 100644 bindings/java/android/CallSession.java create mode 100644 bindings/java/android/Codec.java create mode 100644 bindings/java/android/DDebugCallback.java create mode 100644 bindings/java/android/DialogEvent.java create mode 100644 bindings/java/android/InfoEvent.java create mode 100644 bindings/java/android/InfoSession.java create mode 100644 bindings/java/android/InviteEvent.java create mode 100644 bindings/java/android/InviteSession.java create mode 100644 bindings/java/android/MediaContent.java create mode 100644 bindings/java/android/MediaContentCPIM.java create mode 100644 bindings/java/android/MediaSessionMgr.java create mode 100644 bindings/java/android/MessagingEvent.java create mode 100644 bindings/java/android/MessagingSession.java create mode 100644 bindings/java/android/MsrpCallback.java create mode 100644 bindings/java/android/MsrpEvent.java create mode 100644 bindings/java/android/MsrpMessage.java create mode 100644 bindings/java/android/MsrpSession.java create mode 100644 bindings/java/android/OptionsEvent.java create mode 100644 bindings/java/android/OptionsSession.java create mode 100644 bindings/java/android/ProxyAudioConsumer.java create mode 100644 bindings/java/android/ProxyAudioConsumerCallback.java create mode 100644 bindings/java/android/ProxyAudioProducer.java create mode 100644 bindings/java/android/ProxyAudioProducerCallback.java create mode 100644 bindings/java/android/ProxyPlugin.java create mode 100644 bindings/java/android/ProxyPluginMgr.java create mode 100644 bindings/java/android/ProxyPluginMgrCallback.java create mode 100644 bindings/java/android/ProxyVideoConsumer.java create mode 100644 bindings/java/android/ProxyVideoConsumerCallback.java create mode 100644 bindings/java/android/ProxyVideoFrame.java create mode 100644 bindings/java/android/ProxyVideoProducer.java create mode 100644 bindings/java/android/ProxyVideoProducerCallback.java create mode 100644 bindings/java/android/PublicationEvent.java create mode 100644 bindings/java/android/PublicationSession.java create mode 100644 bindings/java/android/RPMessage.java create mode 100644 bindings/java/android/RegistrationEvent.java create mode 100644 bindings/java/android/RegistrationSession.java create mode 100644 bindings/java/android/SMSData.java create mode 100644 bindings/java/android/SMSEncoder.java create mode 100644 bindings/java/android/SafeObject.java create mode 100644 bindings/java/android/SdpMessage.java create mode 100644 bindings/java/android/SipCallback.java create mode 100644 bindings/java/android/SipEvent.java create mode 100644 bindings/java/android/SipMessage.java create mode 100644 bindings/java/android/SipSession.java create mode 100644 bindings/java/android/SipStack.java create mode 100644 bindings/java/android/SipUri.java create mode 100644 bindings/java/android/StackEvent.java create mode 100644 bindings/java/android/SubscriptionEvent.java create mode 100644 bindings/java/android/SubscriptionSession.java create mode 100644 bindings/java/android/T140Callback.java create mode 100644 bindings/java/android/T140CallbackData.java create mode 100644 bindings/java/android/XcapCallback.java create mode 100644 bindings/java/android/XcapEvent.java create mode 100644 bindings/java/android/XcapMessage.java create mode 100644 bindings/java/android/XcapSelector.java create mode 100644 bindings/java/android/XcapStack.java create mode 100644 bindings/java/android/buildAll.sh create mode 100644 bindings/java/android/commercial.sh create mode 100644 bindings/java/android/droid-makefile create mode 100644 bindings/java/android/gpl.sh create mode 100644 bindings/java/android/lgpl.sh create mode 100644 bindings/java/android/minimal.sh create mode 100644 bindings/java/android/tdav_codec_id_t.java create mode 100644 bindings/java/android/thttp_event_type_t.java create mode 100644 bindings/java/android/tinyWRAP.java create mode 100644 bindings/java/android/tinyWRAPConstants.java create mode 100644 bindings/java/android/tinyWRAPJNI.java create mode 100644 bindings/java/android/tinyWRAP_wrap.cxx create mode 100644 bindings/java/android/tinyWRAP_wrap.h create mode 100644 bindings/java/android/tmedia_bandwidth_level_t.java create mode 100644 bindings/java/android/tmedia_chroma_t.java create mode 100644 bindings/java/android/tmedia_codec_id_t.java create mode 100644 bindings/java/android/tmedia_mode_t.java create mode 100644 bindings/java/android/tmedia_pref_video_size_t.java create mode 100644 bindings/java/android/tmedia_profile_t.java create mode 100644 bindings/java/android/tmedia_qos_strength_t.java create mode 100644 bindings/java/android/tmedia_qos_stype_t.java create mode 100644 bindings/java/android/tmedia_srtp_mode_t.java create mode 100644 bindings/java/android/tmedia_srtp_type_t.java create mode 100644 bindings/java/android/tmedia_t140_data_type_t.java create mode 100644 bindings/java/android/tmsrp_event_type_t.java create mode 100644 bindings/java/android/tmsrp_request_type_t.java create mode 100644 bindings/java/android/tsip_event_type_t.java create mode 100644 bindings/java/android/tsip_info_event_type_t.java create mode 100644 bindings/java/android/tsip_invite_event_type_t.java create mode 100644 bindings/java/android/tsip_message_event_type_t.java create mode 100644 bindings/java/android/tsip_options_event_type_t.java create mode 100644 bindings/java/android/tsip_publish_event_type_t.java create mode 100644 bindings/java/android/tsip_register_event_type_t.java create mode 100644 bindings/java/android/tsip_request_type_t.java create mode 100644 bindings/java/android/tsip_stack_mode_t.java create mode 100644 bindings/java/android/tsip_subscribe_event_type_t.java create mode 100644 bindings/java/android/twrap_media_type_t.java create mode 100644 bindings/java/android/twrap_proxy_plugin_type_t.java create mode 100644 bindings/java/android/twrap_rpmessage_type_t.java create mode 100644 bindings/java/android/twrap_sms_type_t.java create mode 100644 bindings/java/java.i create mode 100644 bindings/java/tdav_codec_id_t.java create mode 100644 bindings/java/thttp_event_type_t.java create mode 100644 bindings/java/tinyWRAP.java create mode 100644 bindings/java/tinyWRAP.sln create mode 100644 bindings/java/tinyWRAP.vcproj create mode 100644 bindings/java/tinyWRAPConstants.java create mode 100644 bindings/java/tinyWRAPJNI.java create mode 100644 bindings/java/tinyWRAP_wrap.cxx create mode 100644 bindings/java/tinyWRAP_wrap.h create mode 100644 bindings/java/tmedia_bandwidth_level_t.java create mode 100644 bindings/java/tmedia_chroma_t.java create mode 100644 bindings/java/tmedia_codec_id_t.java create mode 100644 bindings/java/tmedia_mode_t.java create mode 100644 bindings/java/tmedia_pref_video_size_t.java create mode 100644 bindings/java/tmedia_profile_t.java create mode 100644 bindings/java/tmedia_qos_strength_t.java create mode 100644 bindings/java/tmedia_qos_stype_t.java create mode 100644 bindings/java/tmedia_srtp_mode_t.java create mode 100644 bindings/java/tmedia_srtp_type_t.java create mode 100644 bindings/java/tmedia_t140_data_type_t.java create mode 100644 bindings/java/tmsrp_event_type_t.java create mode 100644 bindings/java/tmsrp_request_type_t.java create mode 100644 bindings/java/tsip_event_type_t.java create mode 100644 bindings/java/tsip_info_event_type_t.java create mode 100644 bindings/java/tsip_invite_event_type_t.java create mode 100644 bindings/java/tsip_message_event_type_t.java create mode 100644 bindings/java/tsip_options_event_type_t.java create mode 100644 bindings/java/tsip_publish_event_type_t.java create mode 100644 bindings/java/tsip_register_event_type_t.java create mode 100644 bindings/java/tsip_request_type_t.java create mode 100644 bindings/java/tsip_stack_mode_t.java create mode 100644 bindings/java/tsip_subscribe_event_type_t.java create mode 100644 bindings/java/twrap_media_type_t.java create mode 100644 bindings/java/twrap_proxy_plugin_type_t.java create mode 100644 bindings/java/twrap_rpmessage_type_t.java create mode 100644 bindings/java/twrap_sms_type_t.java create mode 100644 bindings/objc/objc.i create mode 100644 bindings/perl/perl.i create mode 100644 bindings/perl/tinyWRAP.pm create mode 100644 bindings/perl/tinyWRAP_wrap.cxx create mode 100644 bindings/python/python.i create mode 100644 bindings/python/tinyWRAP.py create mode 100644 bindings/python/tinyWRAP_wrap.cxx create mode 100644 bindings/python/tinyWRAP_wrap.h create mode 100644 bindings/ruby/ruby.i create mode 100644 bindings/ruby/tinyWRAP_wrap.cxx create mode 100644 bindings/ruby/tinyWRAP_wrap.h create mode 100644 bindings/tinyWRAP.pc.in create mode 100644 bindings/version.rc create mode 100644 bindings/vs_2005/csharp/test/Form1.Designer.cs create mode 100644 bindings/vs_2005/csharp/test/Form1.cs create mode 100644 bindings/vs_2005/csharp/test/Form1.resx create mode 100644 bindings/vs_2005/csharp/test/Program.cs create mode 100644 bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs create mode 100644 bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs create mode 100644 bindings/vs_2005/csharp/test/Properties/Resources.resx create mode 100644 bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs create mode 100644 bindings/vs_2005/csharp/test/Properties/Settings.settings create mode 100644 bindings/vs_2005/csharp/test/test.csproj create mode 100644 bindings/vs_2005/csharp/tinyWRAP.sln create mode 100644 bindings/vs_2005/csharp/tinyWRAP.vcproj create mode 100644 bindings/winrt/HandleRef.cs create mode 100644 bindings/winrt/doubango_rt/doubango_rt.vcxproj create mode 100644 bindings/winrt/doubango_rt/doubango_rt.vcxproj.filters create mode 100644 bindings/winrt/doubango_rt/include/rt_ActionConfig.h create mode 100644 bindings/winrt/doubango_rt/include/rt_Config.h create mode 100644 bindings/winrt/doubango_rt/include/rt_DDebug.h create mode 100644 bindings/winrt/doubango_rt/include/rt_Enums.h create mode 100644 bindings/winrt/doubango_rt/include/rt_MediaContent.h create mode 100644 bindings/winrt/doubango_rt/include/rt_MediaSessionMgr.h create mode 100644 bindings/winrt/doubango_rt/include/rt_Msrp.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SMSEncoder.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SipCallback.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SipEvent.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SipMessage.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SipSession.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SipStack.h create mode 100644 bindings/winrt/doubango_rt/include/rt_SipUri.h create mode 100644 bindings/winrt/doubango_rt/include/rt_String.h create mode 100644 bindings/winrt/doubango_rt/include/rt_Xcap.h create mode 100644 bindings/winrt/doubango_rt/src/rt_ActionConfig.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_DDebug.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_Enums.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_MediaContent.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_MediaSessionMgr.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_Msrp.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SMSEncoder.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SipCallback.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SipEvent.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SipMessage.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SipSession.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SipStack.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_SipUri.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_String.cxx create mode 100644 bindings/winrt/doubango_rt/src/rt_Xcap.cxx create mode 100644 bindings/winrt/tinyWRAP.sln create mode 100644 bindings/winrt/tinyWRAP.vcxproj create mode 100644 bindings/winrt/tinyWRAP.vcxproj.filters (limited to 'bindings') diff --git a/bindings/Makefile.am b/bindings/Makefile.am new file mode 100644 index 0000000..c9fce51 --- /dev/null +++ b/bindings/Makefile.am @@ -0,0 +1,129 @@ +lib_LTLIBRARIES = libtinyWRAP.la +libtinyWRAP_la_LIBADD = \ + ../tinySIP/libtinySIP.la \ + ../tinyDAV/libtinyDAV.la \ + ../tinyRTP/libtinyRTP.la \ + ../tinyMEDIA/libtinyMEDIA.la \ + ../tinyMSRP/libtinyMSRP.la \ + ../tinySDP/libtinySDP.la \ + ../tinySIGCOMP/libtinySIGCOMP.la \ + ../tinySMS/libtinySMS.la \ + ../tinyIPSec/libtinyIPSec.la \ + ../tinyXCAP/libtinyXCAP.la \ + ../tinyHTTP/libtinyHTTP.la \ + ../tinyBFCP/libtinyBFCP.la \ + ../tinyNET/libtinyNET.la \ + ../tinySAK/libtinySAK.la +libtinyWRAP_la_CPPFLAGS = \ + -I_common \ + -I. \ + -I../tinySAK/src \ + -I../tinyNET/src \ + -I../tinyHTTP/include\ + -I../tinyXCAP/include \ + -I../tinySMS/include \ + -I../tinySDP/include \ + -I../tinyMEDIA/include \ + -I../tinyMSRP/include \ + -I../tinyDAV/include \ + -I../tinySIP/include + +libtinyWRAP_la_LDFLAGS = ${LDFLAGS} + +if TARGET_OS_IS_ANDROID +libtinyWRAP_la_CPPFLAGS += -DANDROID=1 -Iandroid -fno-rtti -fno-exceptions +libtinyWRAP_la_LDFLAGS += -Wl,-shared,-Bsymbolic,--no-undefined,--whole-archive -lm -lstdc++ -lgcc -llog -ldl +else +libtinyWRAP_la_LDFLAGS += +endif + +if USE_SRTP +libtinyWRAP_la_LIBADD += ${LIBSRTP_LIBADD} +endif + +if USE_SSL +libtinyWRAP_la_LIBADD += ${LIBSSL_LIBADD} +endif + +if USE_FFMPEG +libtinyWRAP_la_LIBADD += ${LIBFFMPEG_LIBADD} +endif + +if USE_X264 +libtinyWRAP_la_LIBADD += ${LIBX264_LIBADD} +endif + +if USE_OPENH264 +libtinyWRAP_la_LIBADD += ${LIBOPENH264_LIBADD} +endif + +if USE_VPX +libtinyWRAP_la_LIBADD += ${LIBVPX_LIBADD} +endif + +if USE_YUV +libtinyWRAP_la_LIBADD += ${LIBYUV_LIB} ${LIBYUV_LIBADD} +endif + +if USE_OPUS +libtinyWRAP_la_LIBADD += ${LIBOPUS_LIBADD} +endif + +if USE_AMR +libtinyWRAP_la_LIBADD += ${LIBAMR_LIBADD} +endif + +if USE_SPEEX +libtinyWRAP_la_LIBADD += ${LIBSPEEX_LIBADD} +endif + +if USE_SPEEXDSP +libtinyWRAP_la_LIBADD += ${LIBSPEEXDSP_LIBADD} +endif + +if USE_GSM +libtinyWRAP_la_LIBADD += ${LIBGSM_LIBADD} +endif + +if USE_G729 +libtinyWRAP_la_LIBADD += ${LIBG729_LIBADD} +endif + +if USE_ILBC +libtinyWRAP_la_LIBADD += ${LIBILBC_LIBADD} +endif + +if USE_WEBRTC +libtinyWRAP_la_LIBADD += ${LIBWEBRTC_LIBADD} +endif + +if USE_ALSA +libtinyWRAP_la_LIBADD += ${LIBASOUND_LIBADD} +endif + +libtinyWRAP_la_SOURCES = \ + _common/ActionConfig.cxx \ + _common/AudioResampler.cxx \ + _common/DDebug.cxx \ + _common/MediaContent.cxx \ + _common/MediaSessionMgr.cxx \ + _common/Msrp.cxx \ + _common/ProxyConsumer.cxx \ + _common/ProxyPluginMgr.cxx \ + _common/ProxyProducer.cxx \ + _common/SafeObject.cxx \ + _common/SipCallback.cxx \ + _common/SipEvent.cxx \ + _common/SipMessage.cxx \ + _common/SipSession.cxx \ + _common/SipStack.cxx \ + _common/SipUri.cxx \ + _common/SMSEncoder.cxx \ + _common/Xcap.cxx + +if TARGET_OS_IS_ANDROID +libtinyWRAP_la_SOURCES += java/android/tinyWRAP_wrap.cxx +endif + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = tinyWRAP.pc diff --git a/bindings/_common/ActionConfig.cxx b/bindings/_common/ActionConfig.cxx new file mode 100644 index 0000000..0c1f9a4 --- /dev/null +++ b/bindings/_common/ActionConfig.cxx @@ -0,0 +1,88 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ + +#include "ActionConfig.h" + +ActionConfig::ActionConfig() +{ + m_pHandle = tsip_action_create(tsip_atype_config, + TSIP_ACTION_SET_NULL()); +} + +ActionConfig::~ActionConfig() +{ + TSK_OBJECT_SAFE_FREE(m_pHandle); +} + +bool ActionConfig::addHeader(const char* name, const char* value) +{ + return (tsip_action_set(m_pHandle, + TSIP_ACTION_SET_HEADER(name, value), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool ActionConfig::addPayload(const void* payload, unsigned len) +{ + return (tsip_action_set(m_pHandle, + TSIP_ACTION_SET_PAYLOAD(payload, len), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool ActionConfig::setActiveMedia(twrap_media_type_t type) +{ + tmedia_type_t media_type = twrap_get_native_media_type(type); + return (tsip_action_set(m_pHandle, + TSIP_ACTION_SET_MEDIA_TYPE(media_type), + TSIP_ACTION_SET_NULL()) == 0); +} + +ActionConfig* ActionConfig::setResponseLine(short code, const char* phrase) +{ + int32_t _code = code; + tsip_action_set(m_pHandle, + TSIP_ACTION_SET_RESP_LINE(_code, phrase), + TSIP_ACTION_SET_NULL()); + return this; +} + +ActionConfig* ActionConfig::setMediaString(twrap_media_type_t type, const char* key, const char* value) +{ + tmedia_type_t media_type = twrap_get_native_media_type(type); + tsip_action_set(m_pHandle, + TSIP_ACTION_SET_MEDIA( + TMEDIA_SESSION_SET_STR(media_type, key, value), + TMEDIA_SESSION_SET_NULL()), + TSIP_ACTION_SET_NULL()); + + return this; +} + +ActionConfig* ActionConfig::setMediaInt(twrap_media_type_t type, const char* key, int value) +{ + tmedia_type_t media_type = twrap_get_native_media_type(type); + tsip_action_set(m_pHandle, + TSIP_ACTION_SET_MEDIA( + TMEDIA_SESSION_SET_INT32(media_type, key, value), + TMEDIA_SESSION_SET_NULL()), + TSIP_ACTION_SET_NULL()); + + return this; +} \ No newline at end of file diff --git a/bindings/_common/ActionConfig.h b/bindings/_common/ActionConfig.h new file mode 100644 index 0000000..ab8ad73 --- /dev/null +++ b/bindings/_common/ActionConfig.h @@ -0,0 +1,52 @@ +/* Copyright (C) 2010-2011 Mamadou Diop. +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#ifndef TINYWRAP_ACTIONCONFIG_H +#define TINYWRAP_ACTIONCONFIG_H + +#include "tinyWRAP_config.h" + +#include "tinysip.h" +#include "Common.h" + +class TINYWRAP_API ActionConfig +{ +public: + ActionConfig(); + virtual ~ActionConfig(); + + bool addHeader(const char* name, const char* value); + bool addPayload(const void* payload, unsigned len); + bool setActiveMedia(twrap_media_type_t type); + + ActionConfig* setResponseLine(short code, const char* phrase); + ActionConfig* setMediaString(twrap_media_type_t type, const char* key, const char* value); + ActionConfig* setMediaInt(twrap_media_type_t type, const char* key, int value); + +private: + tsip_action_handle_t* m_pHandle; + +#if !defined(SWIG) +public: + const inline tsip_action_handle_t* getHandle()const{ + return m_pHandle; + } +#endif +}; + + +#endif /* TINYWRAP_ACTIONCONFIG_H */ diff --git a/bindings/_common/AudioResampler.cxx b/bindings/_common/AudioResampler.cxx new file mode 100644 index 0000000..519376d --- /dev/null +++ b/bindings/_common/AudioResampler.cxx @@ -0,0 +1,73 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +/**@file AudioResampler.cxx + * @brief Audio resampler + * + * @author Mamadou Diop + */ +#include "AudioResampler.h" + +#include "tinymedia/tmedia_resampler.h" + +#include "tsk_debug.h" + +AudioResampler::AudioResampler(uint32_t nInFreq, uint32_t nOutFreq, uint32_t nFrameDuration, uint32_t nChannels, uint32_t nQuality): +m_nOutFreq(nOutFreq), +m_nInFreq(nInFreq), +m_nFrameDuration(nFrameDuration), +m_nChannels(nChannels), +m_nQuality(nQuality) +{ + if ((m_pWrappedResampler = tmedia_resampler_create())) { + int ret; + if ((ret = tmedia_resampler_open(m_pWrappedResampler, nInFreq, nOutFreq, nFrameDuration, nChannels, nChannels, m_nQuality, 16))){ + TSK_DEBUG_ERROR("Failed to open audio resampler (%d)", ret); + TSK_OBJECT_SAFE_FREE(m_pWrappedResampler); + } + } + else { + TSK_DEBUG_ERROR("No audio resampler could be found. Did you forget to call tdav_init()?"); + } +} + +AudioResampler::~AudioResampler() +{ + TSK_OBJECT_SAFE_FREE(m_pWrappedResampler); +} + +uint32_t AudioResampler::process(const void* pInData, uint32_t nInSizeInBytes, void* pOutData, uint32_t nOutSizeInBytes) +{ + if(!m_pWrappedResampler){ + TSK_DEBUG_ERROR("Embedded resampler is invalid"); + return 0; + } + if(nInSizeInBytes < getInputRequiredSizeInShort()/2){ + TSK_DEBUG_ERROR("Input buffer is too short"); + return 0; + } + if(nOutSizeInBytes < getOutputRequiredSizeInShort()/2){ + TSK_DEBUG_ERROR("Output buffer is too short"); + return 0; + } + return 2*tmedia_resampler_process(m_pWrappedResampler, (uint16_t*)pInData, nInSizeInBytes/2, (uint16_t*)pOutData, nOutSizeInBytes/2); +} diff --git a/bindings/_common/AudioResampler.h b/bindings/_common/AudioResampler.h new file mode 100644 index 0000000..5f597fd --- /dev/null +++ b/bindings/_common/AudioResampler.h @@ -0,0 +1,56 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +/**@file AudioResampler.h + * @brief Audio resampler + * + * @author Mamadou Diop + */ +#ifndef TINYWRAP_AUDIO_RESAMPLER_H +#define TINYWRAP_AUDIO_RESAMPLER_H + +#include "tinyWRAP_config.h" +#include "tsk_common.h" + +class AudioResampler +{ +public: + AudioResampler(uint32_t nInFreq, uint32_t nOutFreq, uint32_t nFrameDuration, uint32_t nChannels, uint32_t nQuality); + ~AudioResampler(); + +public: + inline bool isValid(){ return (m_pWrappedResampler != tsk_null); } + inline uint32_t getOutputRequiredSizeInShort(){ return (m_nOutFreq * m_nFrameDuration)/1000; } + inline uint32_t getInputRequiredSizeInShort(){ return (m_nInFreq * m_nFrameDuration)/1000; } + uint32_t process(const void* pInData, uint32_t nInSizeInBytes, void* pOutData, uint32_t nOutSizeInBytes); + +private: + struct tmedia_resampler_s* m_pWrappedResampler; + uint32_t m_nOutFreq; + uint32_t m_nInFreq; + uint32_t m_nFrameDuration; + uint32_t m_nChannels; + uint32_t m_nQuality; +}; + + +#endif /* TINYWRAP_AUDIO_RESAMPLER_H */ diff --git a/bindings/_common/Common.h b/bindings/_common/Common.h new file mode 100644 index 0000000..ca299c0 --- /dev/null +++ b/bindings/_common/Common.h @@ -0,0 +1,98 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_COMMON_H +#define TINYWRAP_COMMON_H + +#include "tinyWRAP_config.h" + +#if ANDROID +# define dyn_cast static_cast +# define __JNIENV JNIEnv +#else +# define dyn_cast dynamic_cast +# define __JNIENV void +#endif + +typedef enum twrap_media_type_e +{ + // because of Java don't use OR + twrap_media_none = 0x00, + + twrap_media_audio = 0x01, // (0x01 << 0) + twrap_media_video = 0x02, // (0x01 << 1) + twrap_media_msrp = 0x04, // (0x01 << 2) + twrap_media_t140 = 0x08, // (0x01 << 3) + twrap_media_bfcp = 0x10, // (0x01 << 4) + twrap_media_bfcp_audio = 0x30, // (0x01 << 5) | twrap_media_bfcp; + twrap_media_bfcp_video = 0x50, // (0x01 << 6) | twrap_media_bfcp; + + twrap_media_audiovideo = 0x03, /* @deprecated */ + twrap_media_audio_video = twrap_media_audiovideo, +} +twrap_media_type_t; + +#if !defined(SWIG) +#include "tinymedia/tmedia_common.h" + +struct media_type_bind_s +{ + twrap_media_type_t twrap; + tmedia_type_t tnative; +}; +static const struct media_type_bind_s __media_type_binds[] = +{ + { twrap_media_msrp, tmedia_msrp }, + { twrap_media_audio , tmedia_audio }, + { twrap_media_video, tmedia_video }, + { twrap_media_audio_video, (tmedia_type_t)(tmedia_audio | tmedia_video) }, + { twrap_media_t140, tmedia_t140 }, + { twrap_media_bfcp, tmedia_bfcp }, + { twrap_media_bfcp_audio, tmedia_bfcp_audio }, + { twrap_media_bfcp_video, tmedia_bfcp_video }, +}; +static const tsk_size_t __media_type_binds_count = sizeof(__media_type_binds)/sizeof(__media_type_binds[0]); +static tmedia_type_t twrap_get_native_media_type(twrap_media_type_t type) +{ + tsk_size_t u; + tmedia_type_t t = tmedia_none; + for (u = 0; u < __media_type_binds_count; ++u) { + if ((__media_type_binds[u].twrap & type) == __media_type_binds[u].twrap) { + t = (tmedia_type_t)(t | __media_type_binds[u].tnative); + } + } + return t; +} +static twrap_media_type_t twrap_get_wrapped_media_type(tmedia_type_t type) +{ + twrap_media_type_t t = twrap_media_none; + tsk_size_t u; + for (u = 0; u < __media_type_binds_count; ++u) { + if ((__media_type_binds[u].tnative & type) == __media_type_binds[u].tnative) { + t = (twrap_media_type_t)(t | __media_type_binds[u].twrap); + } + } + return t; +} +#endif + +#endif /* TINYWRAP_COMMON_H */ + diff --git a/bindings/_common/DDebug.cxx b/bindings/_common/DDebug.cxx new file mode 100644 index 0000000..d00efad --- /dev/null +++ b/bindings/_common/DDebug.cxx @@ -0,0 +1,142 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "DDebug.h" + +#include "SipStack.h" + +#include "Common.h" + +#if ANDROID /* callbacks will fail with jni */ +# include +# define ANDROID_DEBUG_TAG "tinyWRAP" +#endif + +/* Very Important ==> never call functions which could raise debug callbacks into callback functions +* Callbacks should not be used with Android (JNI). +*/ + +enum cb_type{ + cb_info, + cb_warn, + cb_error, + cb_fatal +}; + +int debug_xxx_cb(const void* arg, const char* fmt, enum cb_type type, va_list *app) +{ + int ret = -1; + if(!arg){ + return -1; + } + + const SipStack* stack = dyn_cast((const SipStack*)arg); + + if(stack && stack->getDebugCallback()){ + char* message = tsk_null; + tsk_sprintf_2(&message, fmt, app); + + switch(type){ + case cb_info: + ret= +#if ANDROID + __android_log_write(ANDROID_LOG_INFO, ANDROID_DEBUG_TAG, message); +#else + stack->getDebugCallback()-> OnDebugInfo(message); +#endif + break; + case cb_warn: + ret= +#if ANDROID + __android_log_write(ANDROID_LOG_WARN, ANDROID_DEBUG_TAG, message); +#else + stack->getDebugCallback()-> OnDebugWarn(message); +#endif + break; + case cb_error: + ret= +#if ANDROID + __android_log_write(ANDROID_LOG_ERROR, ANDROID_DEBUG_TAG, message); +#else + stack->getDebugCallback()-> OnDebugError(message); +#endif + break; + case cb_fatal: + ret= +#if ANDROID + __android_log_write(ANDROID_LOG_FATAL, ANDROID_DEBUG_TAG, message); +#else + stack->getDebugCallback()-> OnDebugFatal(message); +#endif + break; + } + + TSK_FREE(message); + } + + return ret; +} + +int DDebugCallback::debug_info_cb(const void* arg, const char* fmt, ...) +{ + va_list ap; + int ret; + + va_start(ap, fmt); + ret = debug_xxx_cb(arg, fmt, cb_info, &ap); + va_end(ap); + + return ret; +} + +int DDebugCallback::debug_warn_cb(const void* arg, const char* fmt, ...){ + va_list ap; + int ret; + + va_start(ap, fmt); + ret = debug_xxx_cb(arg, fmt, cb_warn, &ap); + va_end(ap); + + return ret; +} + +int DDebugCallback::debug_error_cb(const void* arg, const char* fmt, ...){ + va_list ap; + int ret; + + va_start(ap, fmt); + ret = debug_xxx_cb(arg, fmt, cb_error, &ap); + va_end(ap); + + return ret; +} + +int DDebugCallback::debug_fatal_cb(const void* arg, const char* fmt, ...){ + va_list ap; + int ret; + + va_start(ap, fmt); + ret = debug_xxx_cb(arg, fmt, cb_fatal, &ap); + va_end(ap); + + return ret; +} + diff --git a/bindings/_common/DDebug.h b/bindings/_common/DDebug.h new file mode 100644 index 0000000..94f2f5f --- /dev/null +++ b/bindings/_common/DDebug.h @@ -0,0 +1,49 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIP_DEBUG_H +#define TINYWRAP_SIP_DEBUG_H + +class DDebugCallback +{ +public: + DDebugCallback() { } + virtual ~DDebugCallback() {} + + + virtual int OnDebugInfo(const char* message) { return -1; } + virtual int OnDebugWarn(const char* message) { return -1; } + virtual int OnDebugError(const char* message) { return -1; } + virtual int OnDebugFatal(const char* message) { return -1; } + +#if !defined(SWIG) +public: + static int debug_info_cb(const void* arg, const char* fmt, ...); + static int debug_warn_cb(const void* arg, const char* fmt, ...); + static int debug_error_cb(const void* arg, const char* fmt, ...); + static int debug_fatal_cb(const void* arg, const char* fmt, ...); +#endif + +private: + +}; + +#endif /* TINYWRAP_SIP_DEBUG_H */ diff --git a/bindings/_common/MediaContent.cxx b/bindings/_common/MediaContent.cxx new file mode 100644 index 0000000..1929898 --- /dev/null +++ b/bindings/_common/MediaContent.cxx @@ -0,0 +1,178 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "MediaContent.h" + + + +MediaContent::MediaContent(tmedia_content_t* pContent) +: m_pData(tsk_null) +{ + m_pContent = (tmedia_content_t*)tsk_object_ref(pContent); +} + +MediaContent::~MediaContent() +{ + TSK_OBJECT_SAFE_FREE(m_pContent); + TSK_OBJECT_SAFE_FREE(m_pData); +} + +const char* MediaContent::getType() +{ + if(m_pContent){ + return m_pContent->type; + } + return tsk_null; +} + +unsigned MediaContent::getDataLength() +{ + if(!m_pContent){ + TSK_DEBUG_ERROR("Invalid internal object"); + return 0; + } + + if(!m_pData){ + m_pData = tmedia_content_get_data(m_pContent); + } + + return (m_pData ? m_pData->size : 0); +} + +unsigned MediaContent::getData(void* pOutput, unsigned nMaxsize) +{ + unsigned nRetsize = 0; + + if(!m_pContent){ + TSK_DEBUG_ERROR("Invalid internal object"); + return 0; + } + + if(!m_pData){ + m_pData = tmedia_content_get_data(m_pContent); + } + + if(pOutput && nMaxsize && m_pData){ + nRetsize = (m_pData->size > nMaxsize) ? nMaxsize : m_pData->size; + memcpy(pOutput, m_pData->data, nRetsize); + } + + return nRetsize; +} + +MediaContent* MediaContent::parse(const void* pData, unsigned nSize, const char* pType) +{ + MediaContent* pMediaContent = tsk_null; + + tmedia_content_t* pContent = tmedia_content_parse(pData, (tsk_size_t)nSize, pType); + if(pContent){ + if(TMEDIA_CONTENT_IS_CPIM(pContent)){ + pMediaContent = new MediaContentCPIM(pContent); + } + else if(TMEDIA_CONTENT_IS_DUMMY(pContent)){ + // Todo + } + TSK_OBJECT_SAFE_FREE(pContent); + } + + return pMediaContent; +} + +MediaContentCPIM* MediaContent::parse(const void* pData, unsigned nSize) +{ + MediaContent* pMediaContent; + if((pMediaContent = MediaContent::parse(pData, nSize, TMEDIA_CONTENT_CPIM_TYPE))){ + return dyn_cast(pMediaContent); + } + return tsk_null; +} + +/* ============ message/CPIM ================= */ + +MediaContentCPIM::MediaContentCPIM(tmedia_content_t* pContent) +: MediaContent(pContent) +{ +} + +MediaContentCPIM::~MediaContentCPIM() +{ +} + +unsigned MediaContentCPIM::getPayloadLength() +{ + if(!m_pContent || !TMEDIA_CONTENT_IS_CPIM(m_pContent)){ + TSK_DEBUG_ERROR("Invalid internal object"); + return 0; + } + + return (TMEDIA_CONTENT_CPIM(m_pContent)->e ? TMEDIA_CONTENT_CPIM(m_pContent)->e->size : 0); +} + +unsigned MediaContentCPIM::getPayload(void* pOutput, unsigned nMaxsize) +{ + unsigned nRetsize = 0; + + if(!m_pContent || !TMEDIA_CONTENT_IS_CPIM(m_pContent)){ + TSK_DEBUG_ERROR("Invalid internal object"); + return 0; + } + + if(pOutput && nMaxsize && TMEDIA_CONTENT_CPIM(m_pContent)->e){ + nRetsize = (TMEDIA_CONTENT_CPIM(m_pContent)->e->size > nMaxsize) ? nMaxsize : TMEDIA_CONTENT_CPIM(m_pContent)->e->size; + memcpy(pOutput, TMEDIA_CONTENT_CPIM(m_pContent)->e->data, nRetsize); + } + + return nRetsize; +} + +const void* MediaContentCPIM::getPayloadPtr(){ + if(!m_pContent || !TMEDIA_CONTENT_IS_CPIM(m_pContent)){ + TSK_DEBUG_ERROR("Invalid internal object"); + return tsk_null; + } + + return TMEDIA_CONTENT_CPIM(m_pContent)->e ? TMEDIA_CONTENT_CPIM(m_pContent)->e->data : tsk_null; +} + +const char* MediaContentCPIM::getHeaderValue(const char* name) +{ + const tmedia_content_cpim_t* cpim; + const tsk_list_item_t* item; + + if(!m_pContent || !TMEDIA_CONTENT_IS_CPIM(m_pContent)){ + TSK_DEBUG_ERROR("Invalid internal object"); + return tsk_null; + } + + cpim = TMEDIA_CONTENT_CPIM(m_pContent); + tsk_list_foreach(item, cpim->h_headers){ + if(tsk_striequals(name, TMEDIA_CONTENT_HEADER(item->data)->name)){ + return TMEDIA_CONTENT_HEADER(item->data)->value; + } + } + tsk_list_foreach(item, cpim->m_headers){ + if(tsk_striequals(name, TMEDIA_CONTENT_HEADER(item->data)->name)){ + return TMEDIA_CONTENT_HEADER(item->data)->value; + } + } + + return tsk_null; +} \ No newline at end of file diff --git a/bindings/_common/MediaContent.h b/bindings/_common/MediaContent.h new file mode 100644 index 0000000..36bf929 --- /dev/null +++ b/bindings/_common/MediaContent.h @@ -0,0 +1,76 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_MEDIA_CONTENT_H +#define TINYWRAP_MEDIA_CONTENT_H + +#include "tinymedia.h" +#include "Common.h" + +class MediaContentCPIM; + +class MediaContent +{ +public: +#if !defined(SWIG) + MediaContent(tmedia_content_t* content); +#endif + virtual ~MediaContent(); + +public: + const char* getType(); + virtual unsigned getDataLength(); + virtual unsigned getData(void* pOutput, unsigned nMaxsize); + + // SWIG %newobject() + static MediaContent* parse(const void* pData, unsigned nSize, const char* pType); + static MediaContentCPIM* parse(const void* pData, unsigned nSize); + + virtual unsigned getPayloadLength() = 0; + virtual unsigned getPayload(void* pOutput, unsigned nMaxsize) = 0; + +protected: + tmedia_content_t* m_pContent; + +private: + tsk_buffer_t* m_pData; +}; + + +/* ============ message/CPIM ================= */ +class MediaContentCPIM : public MediaContent +{ +public: +#if !defined(SWIG) + MediaContentCPIM(tmedia_content_t* pContent); +#endif + virtual ~MediaContentCPIM(); + +public: + virtual unsigned getPayloadLength(); + virtual unsigned getPayload(void* pOutput, unsigned nMaxsize); +#if !defined(SWIG) + const void* getPayloadPtr(); +#endif + const char* getHeaderValue(const char* pName); +}; + +#endif /*TINYWRAP_MEDIA_CONTENT_H*/ diff --git a/bindings/_common/MediaSessionMgr.cxx b/bindings/_common/MediaSessionMgr.cxx new file mode 100644 index 0000000..5561e3c --- /dev/null +++ b/bindings/_common/MediaSessionMgr.cxx @@ -0,0 +1,559 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "MediaSessionMgr.h" + +// +// Codec +// +Codec::Codec(const struct tmedia_codec_s* pWrappedCodec) +{ + m_pWrappedCodec = (struct tmedia_codec_s*)tsk_object_ref(TSK_OBJECT(pWrappedCodec)); +} + +Codec::~Codec() +{ + TSK_OBJECT_SAFE_FREE(m_pWrappedCodec); +} + +twrap_media_type_t Codec::getMediaType() +{ + if(m_pWrappedCodec){ + switch(m_pWrappedCodec->type){ + case tmedia_audio: return twrap_media_audio; + case tmedia_video: return twrap_media_video; + case tmedia_msrp: return twrap_media_msrp; + default: break; + } + } + return twrap_media_none; +} + +const char* Codec::getName() +{ + if(m_pWrappedCodec){ + return m_pWrappedCodec->name; + } + return tsk_null; +} + +const char* Codec::getDescription() +{ + if(m_pWrappedCodec){ + return m_pWrappedCodec->desc; + } + return tsk_null; +} + +const char* Codec::getNegFormat() +{ + if(m_pWrappedCodec){ + return m_pWrappedCodec->neg_format ? m_pWrappedCodec->neg_format : m_pWrappedCodec->format; + } + return tsk_null; +} + +int Codec::getAudioSamplingRate() +{ + if(m_pWrappedCodec && m_pWrappedCodec->plugin){ + return m_pWrappedCodec->plugin->rate; + } + return 0; +} + +int Codec::getAudioChannels() +{ + if(m_pWrappedCodec && (m_pWrappedCodec->type & tmedia_audio) && m_pWrappedCodec->plugin){ + return m_pWrappedCodec->plugin->audio.channels; + } + return 0; +} + +int Codec::getAudioPTime() +{ + if(m_pWrappedCodec && (m_pWrappedCodec->type & tmedia_audio) && m_pWrappedCodec->plugin){ + return m_pWrappedCodec->plugin->audio.ptime; + } + return 0; +} + +// +// MediaSessionMgr +// +MediaSessionMgr::MediaSessionMgr(tmedia_session_mgr_t* pWrappedMgr) +{ + m_pWrappedMgr = (tmedia_session_mgr_t*)tsk_object_ref(pWrappedMgr); +} + +MediaSessionMgr::~MediaSessionMgr() +{ + TSK_OBJECT_SAFE_FREE(m_pWrappedMgr); +} + +bool MediaSessionMgr::sessionSetInt32(twrap_media_type_t media, const char* key, int32_t value) +{ + tmedia_type_t _media = twrap_get_native_media_type(media); + return (tmedia_session_mgr_set(m_pWrappedMgr, + TMEDIA_SESSION_SET_INT32(_media, key, value), + TMEDIA_SESSION_SET_NULL()) == 0); +} + +int32_t MediaSessionMgr::sessionGetInt32(twrap_media_type_t media, const char* key) +{ + int32_t value = 0; + tmedia_type_t _media = twrap_get_native_media_type(media); + (tmedia_session_mgr_get(m_pWrappedMgr, + TMEDIA_SESSION_GET_INT32(_media, key, &value), + TMEDIA_SESSION_GET_NULL())); + return value; +} + +bool MediaSessionMgr::consumerSetInt32(twrap_media_type_t media, const char* key, int32_t value) +{ + tmedia_type_t _media = twrap_get_native_media_type(media); + return (tmedia_session_mgr_set(m_pWrappedMgr, + TMEDIA_SESSION_CONSUMER_SET_INT32(_media, key, value), + TMEDIA_SESSION_SET_NULL()) == 0); +} + +bool MediaSessionMgr::consumerSetInt64(twrap_media_type_t media, const char* key, int64_t value) +{ + tmedia_type_t _media = twrap_get_native_media_type(media); + return (tmedia_session_mgr_set(m_pWrappedMgr, + TMEDIA_SESSION_CONSUMER_SET_INT64(_media, key, value), + TMEDIA_SESSION_SET_NULL()) == 0); +} + +bool MediaSessionMgr::producerSetInt32(twrap_media_type_t media, const char* key, int32_t value) +{ + tmedia_type_t _media = twrap_get_native_media_type(media); + return (tmedia_session_mgr_set(m_pWrappedMgr, + TMEDIA_SESSION_PRODUCER_SET_INT32(_media, key, value), + TMEDIA_SESSION_SET_NULL()) == 0); +} + +bool MediaSessionMgr::producerSetInt64(twrap_media_type_t media, const char* key, int64_t value) +{ + tmedia_type_t _media = twrap_get_native_media_type(media); + return (tmedia_session_mgr_set(m_pWrappedMgr, + TMEDIA_SESSION_PRODUCER_SET_INT64(_media, key, value), + TMEDIA_SESSION_SET_NULL()) == 0); +} + +Codec* MediaSessionMgr::producerGetCodec(twrap_media_type_t media) +{ + tmedia_codec_t* _codec = tsk_null; + tmedia_type_t _media = twrap_get_native_media_type(media); + (tmedia_session_mgr_get(m_pWrappedMgr, + TMEDIA_SESSION_PRODUCER_GET_POBJECT(_media, "codec", &_codec), + TMEDIA_SESSION_GET_NULL())); + + if(_codec){ + Codec* pCodec = new Codec(_codec); + TSK_OBJECT_SAFE_FREE(_codec); + return pCodec; + } + return tsk_null; +} + +#include "tinydav/audio/tdav_session_audio.h" +#include "tinydav/video/tdav_session_video.h" +#include "ProxyPluginMgr.h" + + +const ProxyPlugin* MediaSessionMgr::findProxyPlugin(twrap_media_type_t media, bool consumer)const +{ + const ProxyPlugin* plugin = tsk_null; + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + + if(media != twrap_media_audio && media != twrap_media_video){ + TSK_DEBUG_ERROR("Invalid media type"); + return tsk_null; + } + + if(manager && m_pWrappedMgr){ + tmedia_type_t _media = twrap_get_native_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){ + if(consumer){ + plugin = manager->findPlugin(TDAV_SESSION_AV(session)->consumer); + } + else{ + plugin = manager->findPlugin(TDAV_SESSION_AV(session)->producer); + } + } + else if(session->plugin == tdav_session_video_plugin_def_t){ + if(consumer){ + plugin = manager->findPlugin(TDAV_SESSION_AV(session)->consumer); + } + else{ + plugin = manager->findPlugin(TDAV_SESSION_AV(session)->producer); + } + } + else{ + TSK_DEBUG_ERROR("Unknown session with media type = %d", _media); + } + tsk_object_unref(session); + } + } + else{ + TSK_DEBUG_ERROR("Invalid state"); + } + + return plugin; +} + +// FIXME: create generic function to register any kind and number of plugin from a file +unsigned int MediaSessionMgr::registerAudioPluginFromFile(const char* path) +{ + static struct tsk_plugin_s* __plugin = tsk_null; + if(__plugin){ + TSK_DEBUG_ERROR("Audio plugin already registered"); + return 0; + } + if((__plugin = tsk_plugin_create(path))){ + unsigned int count = 0; + tsk_plugin_def_ptr_const_t plugin_def_ptr_const; + if((plugin_def_ptr_const = tsk_plugin_get_def(__plugin, tsk_plugin_def_type_consumer, tsk_plugin_def_media_type_audio))){ + if(tmedia_consumer_plugin_register((const tmedia_consumer_plugin_def_t*)plugin_def_ptr_const) == 0){ + ++count; + } + } + if((plugin_def_ptr_const = tsk_plugin_get_def(__plugin, tsk_plugin_def_type_producer, tsk_plugin_def_media_type_audio))){ + if(tmedia_producer_plugin_register((const tmedia_producer_plugin_def_t*)plugin_def_ptr_const) == 0){ + ++count; + } + } + return count; + } + TSK_DEBUG_ERROR("Failed to create plugin with path=%s", path); + return 0; +} + +uint64_t MediaSessionMgr::getSessionId(twrap_media_type_t media)const +{ + //const ProxyPlugin* plugin = tsk_null; + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + uint64_t id = 0; + + if (media != twrap_media_audio && media != twrap_media_video) { + TSK_DEBUG_ERROR("Invalid media type"); + return 0; + } + + if (manager && m_pWrappedMgr) { + tmedia_type_t _media = twrap_get_native_media_type(media); + tmedia_session_t* session = tmedia_session_mgr_find(m_pWrappedMgr, _media); + if (session) { + id = session->id; + } + tsk_object_unref(session); + } + else { + TSK_DEBUG_ERROR("Invalid state"); + } + + return id; +} + +bool MediaSessionMgr::defaultsSetProfile(tmedia_profile_t profile) +{ + return (tmedia_defaults_set_profile(profile) == 0); +} + +tmedia_profile_t MediaSessionMgr::defaultsGetProfile() +{ + return tmedia_defaults_get_profile(); +} + +bool MediaSessionMgr::defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) // @deprecated +{ + return tmedia_defaults_set_bl(bl) == 0; +} +tmedia_bandwidth_level_t MediaSessionMgr::defaultsGetBandwidthLevel() // @deprecated +{ + return tmedia_defaults_get_bl(); +} +bool MediaSessionMgr::defaultsSetCongestionCtrlEnabled(bool enabled) +{ + return tmedia_defaults_set_congestion_ctrl_enabled(enabled ? tsk_true : tsk_false) == 0; +} +bool MediaSessionMgr::defaultsSetVideoMotionRank(int32_t video_motion_rank) +{ + return (tmedia_defaults_set_video_motion_rank(video_motion_rank) == 0); +} +bool MediaSessionMgr::defaultsSetVideoFps(int32_t video_fps) +{ + return (tmedia_defaults_set_video_fps(video_fps) == 0); +} +bool MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(int32_t bw_video_up_max_kbps) +{ + return (tmedia_defaults_set_bandwidth_video_upload_max(bw_video_up_max_kbps) == 0); +} +bool MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(int32_t bw_video_down_max_kbps) +{ + return (tmedia_defaults_set_bandwidth_video_download_max(bw_video_down_max_kbps) == 0); +} + +bool MediaSessionMgr::defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) +{ + return tmedia_defaults_set_pref_video_size(pref_video_size) == 0; +} + +bool MediaSessionMgr::defaultsSetJbMargin(uint32_t jb_margin_ms) +{ + return tmedia_defaults_set_jb_margin(jb_margin_ms) == 0; +} + +bool MediaSessionMgr::defaultsSetJbMaxLateRate(uint32_t jb_late_rate_percent) +{ + return tmedia_defaults_set_jb_max_late_rate(jb_late_rate_percent) == 0; +} + +bool MediaSessionMgr::defaultsSetEchoTail(uint32_t echo_tail) +{ + return tmedia_defaults_set_echo_tail(echo_tail) == 0; +} + +uint32_t MediaSessionMgr::defaultsGetEchoTail() +{ + return tmedia_defaults_get_echo_tail(); +} + +bool MediaSessionMgr::defaultsSetEchoSkew(uint32_t echo_skew) +{ + return tmedia_defaults_set_echo_skew(echo_skew) == 0; +} + +bool MediaSessionMgr::defaultsSetEchoSuppEnabled(bool echo_supp_enabled) +{ + return tmedia_defaults_set_echo_supp_enabled(echo_supp_enabled ? tsk_true : tsk_false) == 0; +} + +bool MediaSessionMgr::defaultsGetEchoSuppEnabled() +{ + return tmedia_defaults_get_echo_supp_enabled() ? true : false; +} + +bool MediaSessionMgr::defaultsSetAgcEnabled(bool agc_enabled) +{ + return tmedia_defaults_set_agc_enabled(agc_enabled ? tsk_true : tsk_false) == 0; +} + +bool MediaSessionMgr::defaultsGetAgcEnabled() +{ + return tmedia_defaults_get_agc_enabled() ? true : false; +} + +bool MediaSessionMgr::defaultsSetAgcLevel(float agc_level) +{ + return tmedia_defaults_set_agc_level(agc_level) == 0; +} + +float MediaSessionMgr::defaultsGetAgcLevel() +{ + return tmedia_defaults_get_agc_level(); +} + +bool MediaSessionMgr::defaultsSetVadEnabled(bool vad_enabled) +{ + return tmedia_defaults_set_vad_enabled(vad_enabled ? tsk_true : tsk_false) == 0; +} + +bool MediaSessionMgr::defaultsGetGetVadEnabled() +{ + return tmedia_defaults_get_vad_enabled() ? true : false; +} + +bool MediaSessionMgr::defaultsSetNoiseSuppEnabled(bool noise_supp_enabled) +{ + return tmedia_defaults_set_noise_supp_enabled(noise_supp_enabled ? tsk_true : tsk_false) == 0; +} + +bool MediaSessionMgr::defaultsGetNoiseSuppEnabled() +{ + return tmedia_defaults_get_noise_supp_enabled() ? true : false; +} + +bool MediaSessionMgr::defaultsSetNoiseSuppLevel(int32_t noise_supp_level) +{ + return tmedia_defaults_set_noise_supp_level(noise_supp_level) == 0; +} + +int32_t MediaSessionMgr::defaultsGetNoiseSuppLevel() +{ + return tmedia_defaults_get_noise_supp_level(); +} + +bool MediaSessionMgr::defaultsSet100relEnabled(bool _100rel_enabled){ + return tmedia_defaults_set_100rel_enabled(_100rel_enabled ? tsk_true : tsk_false) == 0; +} + +bool MediaSessionMgr::defaultsGet100relEnabled(){ + return tmedia_defaults_get_100rel_enabled() == 0; +} + +bool MediaSessionMgr::defaultsSetScreenSize(int32_t sx, int32_t sy){ + return tmedia_defaults_set_screen_size(sx, sy) == 0; +} + +bool MediaSessionMgr::defaultsSetAudioGain(int32_t producer_gain, int32_t consumer_gain){ + return tmedia_defaults_set_audio_gain(producer_gain, consumer_gain) == 0; +} + +bool MediaSessionMgr::defaultsSetAudioPtime(int32_t ptime){ + return tmedia_defaults_set_audio_ptime(ptime) == 0; +} +bool MediaSessionMgr::defaultsSetAudioChannels(int32_t channel_playback, int32_t channel_record){ + return tmedia_defaults_set_audio_channels(channel_playback, channel_record) == 0; +} + +bool MediaSessionMgr::defaultsSetRtpPortRange(uint16_t range_start, uint16_t range_stop){ + return tmedia_defaults_set_rtp_port_range(range_start, range_stop) == 0; +} + +bool MediaSessionMgr::defaultsSetRtpSymetricEnabled(bool enabled){ + return tmedia_defaults_set_rtp_symetric_enabled(enabled ? tsk_true : tsk_false) == 0; +} + +bool MediaSessionMgr::defaultsSetMediaType(twrap_media_type_t media_type) +{ + return (tmedia_defaults_set_media_type(twrap_get_native_media_type(media_type)) == 0); +} + +bool MediaSessionMgr::defaultsSetVolume(int32_t volume) +{ + return (tmedia_defaults_set_volume(volume) == 0); +} + +int32_t MediaSessionMgr::defaultsGetVolume() +{ + return tmedia_defaults_get_volume(); +} + +bool MediaSessionMgr::defaultsSetInviteSessionTimers(int32_t timeout, const char* refresher) +{ + int ret = tmedia_defaults_set_inv_session_expires(timeout); + ret &= tmedia_defaults_set_inv_session_refresher(refresher); + return (ret == 0); +} + +bool MediaSessionMgr::defaultsSetSRtpMode(tmedia_srtp_mode_t mode){ + return (tmedia_defaults_set_srtp_mode(mode) == 0); +} +tmedia_srtp_mode_t MediaSessionMgr::defaultsGetSRtpMode(){ + return tmedia_defaults_get_srtp_mode(); +} + +bool MediaSessionMgr::defaultsSetSRtpType(tmedia_srtp_type_t srtp_type){ + return (tmedia_defaults_set_srtp_type(srtp_type) == 0); +} +tmedia_srtp_type_t MediaSessionMgr::defaultsGetSRtpType(){ + return tmedia_defaults_get_srtp_type(); +} + +bool MediaSessionMgr::defaultsSetRtcpEnabled(bool enabled){ + return (tmedia_defaults_set_rtcp_enabled(enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsGetRtcpEnabled(){ + return (tmedia_defaults_get_rtcp_enabled() == tsk_true); +} + +bool MediaSessionMgr::defaultsSetRtcpMuxEnabled(bool enabled){ + return (tmedia_defaults_set_rtcpmux_enabled(enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsGetRtcpMuxEnabled(){ + return (tmedia_defaults_get_rtcpmux_enabled() == tsk_true); +} + + +bool MediaSessionMgr::defaultsSetStunEnabled(bool stun_enabled){ + return (tmedia_defaults_set_stun_enabled(stun_enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsSetIceStunEnabled(bool icestun_enabled){ + return (tmedia_defaults_set_icestun_enabled(icestun_enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsSetIceTurnEnabled(bool iceturn_enabled){ + return (tmedia_defaults_set_iceturn_enabled(iceturn_enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsSetStunServer(const char* server_ip, uint16_t server_port){ + return (tmedia_defaults_set_stun_server(server_ip, server_port) == 0); +} +bool MediaSessionMgr::defaultsSetStunCred(const char* username, const char* password){ + return (tmedia_defaults_set_stun_cred(username, password) == 0); +} +bool MediaSessionMgr::defaultsSetIceEnabled(bool ice_enabled){ + return (tmedia_defaults_set_ice_enabled(ice_enabled ? tsk_true : tsk_false) == 0); +} + +bool MediaSessionMgr::defaultsSetByPassEncoding(bool enabled){ + return (tmedia_defaults_set_bypass_encoding(enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsGetByPassEncoding(){ + return (tmedia_defaults_get_bypass_encoding() == tsk_true); +} +bool MediaSessionMgr::defaultsSetByPassDecoding(bool enabled){ + return (tmedia_defaults_set_bypass_decoding(enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsGetByPassDecoding(){ + return (tmedia_defaults_get_bypass_decoding() == tsk_true); +} + +bool MediaSessionMgr::defaultsSetVideoJbEnabled(bool enabled){ + return (tmedia_defaults_set_videojb_enabled(enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsGetVideoJbEnabled(){ + return (tmedia_defaults_get_videojb_enabled() == tsk_true); +} + +bool MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(bool enabled){ + return (tmedia_defaults_set_video_zeroartifacts_enabled(enabled ? tsk_true : tsk_false) == 0); +} +bool MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled(){ + return (tmedia_defaults_get_video_zeroartifacts_enabled() == tsk_true); +} + +bool MediaSessionMgr::defaultsSetRtpBuffSize(unsigned buffSize){ + return (tmedia_defaults_set_rtpbuff_size(buffSize) == 0); +} +unsigned MediaSessionMgr::defaultsGetRtpBuffSize(){ + return tmedia_defaults_get_rtpbuff_size(); +} + +bool MediaSessionMgr::defaultsSetAvpfTail(unsigned tail_min, unsigned tail_max){ + return (tmedia_defaults_set_avpf_tail(tail_min, tail_max) == 0); +} + +bool MediaSessionMgr::defaultsSetAvpfMode(enum tmedia_mode_e mode){ + return (tmedia_defaults_set_avpf_mode(mode) == 0); +} + +bool MediaSessionMgr::defaultsSetOpusMaxCaptureRate(uint32_t opus_maxcapturerate){ + return (tmedia_defaults_set_opus_maxcapturerate(opus_maxcapturerate) == 0); +} +bool MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(uint32_t opus_maxplaybackrate){ + return (tmedia_defaults_set_opus_maxplaybackrate(opus_maxplaybackrate) == 0); +} + +bool MediaSessionMgr::defaultsSetMaxFds(int32_t max_fds) { + return (tmedia_defaults_set_max_fds(max_fds) == 0); +} \ No newline at end of file diff --git a/bindings/_common/MediaSessionMgr.h b/bindings/_common/MediaSessionMgr.h new file mode 100644 index 0000000..5c28769 --- /dev/null +++ b/bindings/_common/MediaSessionMgr.h @@ -0,0 +1,169 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_MEDIA_SESSIONMGR_H +#define TINYWRAP_MEDIA_SESSIONMGR_H + +#include "tinyWRAP_config.h" + +#include "tinymedia.h" +#include "Common.h" + +class ProxyPlugin; + +class TINYWRAP_API Codec +{ +public: +#if !defined(SWIG) + Codec(const struct tmedia_codec_s* pWrappedCodec); +#endif + virtual ~Codec(); + +public: +#if !defined(SWIG) + const struct tmedia_codec_s* getWrappedCodec(){ return m_pWrappedCodec; } + inline bool isOpened(){ return (m_pWrappedCodec && (m_pWrappedCodec->opened == tsk_true)); } +#endif + twrap_media_type_t getMediaType(); + const char* getName(); + const char* getDescription(); + const char* getNegFormat(); + int getAudioSamplingRate(); + int getAudioChannels(); + int getAudioPTime(); + +private: + struct tmedia_codec_s* m_pWrappedCodec; +}; + +class TINYWRAP_API MediaSessionMgr +{ +public: +#if !defined(SWIG) + MediaSessionMgr(tmedia_session_mgr_t* pWrappedMgr); +#endif + virtual ~MediaSessionMgr(); + +public: + bool sessionSetInt32(twrap_media_type_t media, const char* key, int32_t value); + int32_t sessionGetInt32(twrap_media_type_t media, const char* key); + + bool consumerSetInt32(twrap_media_type_t media, const char* key, int32_t value); + bool consumerSetInt64(twrap_media_type_t media, const char* key, int64_t value); + + bool producerSetInt32(twrap_media_type_t media, const char* key, int32_t value); + bool producerSetInt64(twrap_media_type_t media, const char* key, int64_t value); + Codec* producerGetCodec(twrap_media_type_t media); + +#if !defined(SWIG) + const ProxyPlugin* findProxyPlugin(twrap_media_type_t media, bool consumer)const; +#endif + + const ProxyPlugin* findProxyPluginConsumer(twrap_media_type_t media)const{ + return this->findProxyPlugin(media, true); + } + const ProxyPlugin* findProxyPluginProducer(twrap_media_type_t media)const{ + return this->findProxyPlugin(media, false); + } + + 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); + static tmedia_profile_t defaultsGetProfile(); + static bool defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl); // @deprecated + static tmedia_bandwidth_level_t defaultsGetBandwidthLevel(); // @deprecated + static bool defaultsSetCongestionCtrlEnabled(bool enabled); + static bool defaultsSetVideoMotionRank(int32_t video_motion_rank); + static bool defaultsSetVideoFps(int32_t video_fps); + static bool defaultsSetBandwidthVideoUploadMax(int32_t bw_video_up_max_kbps); + static bool defaultsSetBandwidthVideoDownloadMax(int32_t bw_video_down_max_kbps); + static bool defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size); + static bool defaultsSetJbMargin(uint32_t jb_margin_ms); + static bool defaultsSetJbMaxLateRate(uint32_t jb_late_rate_percent); + static bool defaultsSetEchoTail(uint32_t echo_tail); + static uint32_t defaultsGetEchoTail(); + static bool defaultsSetEchoSkew(uint32_t echo_skew); + static bool defaultsSetEchoSuppEnabled(bool echo_supp_enabled); + static bool defaultsGetEchoSuppEnabled(); + static bool defaultsSetAgcEnabled(bool agc_enabled); + static bool defaultsGetAgcEnabled(); + static bool defaultsSetAgcLevel(float agc_level); + static float defaultsGetAgcLevel(); + static bool defaultsSetVadEnabled(bool vad_enabled); + static bool defaultsGetGetVadEnabled(); + static bool defaultsSetNoiseSuppEnabled(bool noise_supp_enabled); + static bool defaultsGetNoiseSuppEnabled(); + static bool defaultsSetNoiseSuppLevel(int32_t noise_supp_level); + static int32_t defaultsGetNoiseSuppLevel(); + static bool defaultsSet100relEnabled(bool _100rel_enabled); + static bool defaultsGet100relEnabled(); + static bool defaultsSetScreenSize(int32_t sx, int32_t sy); + static bool defaultsSetAudioGain(int32_t producer_gain, int32_t consumer_gain); + static bool defaultsSetAudioPtime(int32_t ptime); + static bool defaultsSetAudioChannels(int32_t channel_playback, int32_t channel_record); + static bool defaultsSetRtpPortRange(uint16_t range_start, uint16_t range_stop); + static bool defaultsSetRtpSymetricEnabled(bool enabled); + static bool defaultsSetMediaType(twrap_media_type_t media_type); + static bool defaultsSetVolume(int32_t volume); + static int32_t defaultsGetVolume(); + static bool defaultsSetInviteSessionTimers(int32_t timeout, const char* refresher); + static bool defaultsSetSRtpMode(tmedia_srtp_mode_t mode); + static tmedia_srtp_mode_t defaultsGetSRtpMode(); + static bool defaultsSetSRtpType(tmedia_srtp_type_t srtp_type); + static tmedia_srtp_type_t defaultsGetSRtpType(); + static bool defaultsSetRtcpEnabled(bool enabled); + static bool defaultsGetRtcpEnabled(); + static bool defaultsSetRtcpMuxEnabled(bool enabled); + static bool defaultsGetRtcpMuxEnabled(); + static bool defaultsSetStunEnabled(bool stun_enabled); + static bool defaultsSetIceStunEnabled(bool icestun_enabled); + static bool defaultsSetIceTurnEnabled(bool iceturn_enabled); + static bool defaultsSetStunServer(const char* server_ip, uint16_t server_port); + static bool defaultsSetStunCred(const char* username, const char* password); + static bool defaultsSetIceEnabled(bool ice_enabled); + static bool defaultsSetByPassEncoding(bool enabled); + static bool defaultsGetByPassEncoding(); + static bool defaultsSetByPassDecoding(bool enabled); + static bool defaultsGetByPassDecoding(); + static bool defaultsSetVideoJbEnabled(bool enabled); + static bool defaultsGetVideoJbEnabled(); + static bool defaultsSetVideoZeroArtifactsEnabled(bool enabled); + static bool defaultsGetVideoZeroArtifactsEnabled(); + static bool defaultsSetRtpBuffSize(unsigned buffSize); + static unsigned defaultsGetRtpBuffSize(); + static bool defaultsSetAvpfTail(unsigned tail_min, unsigned tail_max); + static bool defaultsSetAvpfMode(enum tmedia_mode_e mode); + static bool defaultsSetOpusMaxCaptureRate(uint32_t opus_maxcapturerate); + static bool defaultsSetOpusMaxPlaybackRate(uint32_t opus_maxplaybackrate); + static bool defaultsSetMaxFds(int32_t max_fds); + +private: + tmedia_session_mgr_t* m_pWrappedMgr; +}; + +#endif /* TINYWRAP_MEDIA_SESSIONMGR_H */ diff --git a/bindings/_common/Msrp.cxx b/bindings/_common/Msrp.cxx new file mode 100644 index 0000000..a1d0992 --- /dev/null +++ b/bindings/_common/Msrp.cxx @@ -0,0 +1,283 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "Msrp.h" + +#include "SipSession.h" +#include "Common.h" + +/* ======================== MsrpMessage ========================*/ +MsrpMessage::MsrpMessage() +:m_pMessage(tsk_null) +{ +} + +MsrpMessage::MsrpMessage(tmsrp_message_t *_message) +{ + m_pMessage = (tmsrp_message_t *)tsk_object_ref(_message); +} + +MsrpMessage::~MsrpMessage() +{ + TSK_OBJECT_SAFE_FREE(m_pMessage); +} + +bool MsrpMessage::isRequest() +{ + return (m_pMessage->type == tmsrp_request); +} + +short MsrpMessage::getCode() +{ + return TMSRP_RESPONSE_CODE(m_pMessage); +} + +const char* MsrpMessage::getPhrase() +{ + return TMSRP_RESPONSE_PHRASE(m_pMessage); +} + +tmsrp_request_type_t MsrpMessage::getRequestType() +{ + if(TMSRP_MESSAGE_IS_REQUEST(m_pMessage)){ + return m_pMessage->line.request.type; + } + return tmsrp_NONE; +} + +void MsrpMessage::getByteRange(int64_t* start, int64_t* end, int64_t* total) +{ + if(m_pMessage->ByteRange){ + *start = m_pMessage->ByteRange->start; + *end = m_pMessage->ByteRange->end; + *total = m_pMessage->ByteRange->total; + } + else{ + *start = *end = *total = -1; + } +} + +bool MsrpMessage::isLastChunck() +{ + if(TMSRP_MESSAGE_IS_REQUEST(m_pMessage)){ + return (m_pMessage->end_line.cflag == '$'); + } + else{ + if(m_pMessage->ByteRange){ + return (m_pMessage->ByteRange->end >= m_pMessage->ByteRange->total); + } + } + return false; +} + +bool MsrpMessage::isSuccessReport() +{ + if(TMSRP_REQUEST_IS_REPORT(m_pMessage)){ + if(m_pMessage->Status){ + return m_pMessage->Status->code >= 200 && m_pMessage->Status->code <= 299; + } + } + return false; +} + +bool MsrpMessage::isFirstChunck() +{ + return (m_pMessage && m_pMessage->ByteRange->start == 1); +} + +char* MsrpMessage::getMsrpHeaderValue(const char* name) +{ + const tmsrp_header_t* header = this->getMsrpHeader(name, 0); + if(header){ + return tmsrp_header_tostring(header); + } + return tsk_null; +} + +char* MsrpMessage::getMsrpHeaderParamValue(const char* name, const char* param) +{ + return tsk_null; +} + +unsigned MsrpMessage::getMsrpContentLength() +{ + if(m_pMessage && + m_pMessage->Content && + m_pMessage->Content->data && + m_pMessage->Content->size){ + return m_pMessage->Content->size; + } + return 0; +} + +unsigned MsrpMessage::getMsrpContent(void* output, unsigned maxsize) +{ + unsigned retsize = 0; + if(!output || + !m_pMessage || + !m_pMessage->Content || + !m_pMessage->Content->data || + !m_pMessage->Content->size){ + return 0; + } + + + retsize = (m_pMessage->Content->size > maxsize) ? maxsize : m_pMessage->Content->size; + memcpy(output, m_pMessage->Content->data, retsize); + return retsize; +} + +const tmsrp_header_t* MsrpMessage::getMsrpHeader(const char* name, unsigned index /*= 0*/) +{ + tsk_size_t pos = 0; + const tmsrp_header_t* hdr = tsk_null; + const tsk_list_item_t *item; + + /* From tmsrp_message_get_headerAt() */ + if(!m_pMessage || !name){ + return tsk_null; + } + + if(tsk_striequals(name, "To-Path")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->To; + goto bail; + }else pos++; } + if(tsk_striequals(name, "From-Path")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->From; + goto bail; + }else pos++; } + if(tsk_striequals(name, "Message-ID")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->MessageID; + goto bail; + }else pos++; } + if(tsk_striequals(name, "Byte-Range")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->ByteRange; + goto bail; + }else pos++; } + if(tsk_striequals(name, "Failure-Report")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->FailureReport; + goto bail; + }else pos++; } + if(tsk_striequals(name, "Success-Report")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->SuccessReport; + goto bail; + }else pos++; } + if(tsk_striequals(name, "Status")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->Status; + goto bail; + }else pos++; } + if(tsk_striequals(name, "Content-Type")){ + if(index == 0){ + hdr = (const tmsrp_header_t*)m_pMessage->ContentType; + goto bail; + }else pos++; } + + + /* All other headers */ + tsk_list_foreach(item, m_pMessage->headers){ + if(tsk_striequals(tmsrp_header_get_nameex(TMSRP_HEADER(item->data)), name)){ + if(pos++ >= index){ + hdr = (const tmsrp_header_t*)item->data; + break; + } + } + } + + +bail: + return hdr; + +} + + + +/* ======================== MsrpEvent ========================*/ +MsrpEvent::MsrpEvent(const tmsrp_event_t *_msrpevent) +{ + this->_event = _msrpevent; + if(this->_event && this->_event->message){ + m_pMessage = new MsrpMessage((tmsrp_message_t *)this->_event->message); + } + else{ + m_pMessage = tsk_null; + } +} + +MsrpEvent::~MsrpEvent() +{ + if(m_pMessage){ + delete m_pMessage; + } +} + +tmsrp_event_type_t MsrpEvent::getType() +{ + if(this->_event){ + return this->_event->type; + } + return tmsrp_event_type_none; +} + +const MsrpSession* MsrpEvent::getSipSession() +{ + if(this->_event && this->_event->callback_data){ + return dyn_cast((const MsrpSession*)this->_event->callback_data); + } + return tsk_null; +} + +const MsrpMessage* MsrpEvent::getMessage() const +{ + return m_pMessage; +} + + + + +int twrap_msrp_cb(const tmsrp_event_t* _event) +{ + const MsrpSession* session = (const MsrpSession*)_event->callback_data; + MsrpCallback* callback; + int ret = -1; + + if(session){ + if((callback = session->getCallback())){ + MsrpEvent* e = new MsrpEvent(_event); + ret = callback->OnEvent(e); + delete e; + } + else{ + return 0; + } + } + else{ + TSK_DEBUG_ERROR("Invalid parameter"); + } + + return ret; +} \ No newline at end of file diff --git a/bindings/_common/Msrp.h b/bindings/_common/Msrp.h new file mode 100644 index 0000000..9013abb --- /dev/null +++ b/bindings/_common/Msrp.h @@ -0,0 +1,97 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_MSRP_H +#define TINYWRAP_MSRP_H + +#include "tinyWRAP_config.h" + +#include "tinymsrp.h" + +class MsrpSession; + +class TINYWRAP_API MsrpMessage +{ +public: + MsrpMessage(); +#if !defined(SWIG) + MsrpMessage(tmsrp_message_t *message); +#endif + virtual ~MsrpMessage(); + + bool isRequest(); + short getCode(); + const char* getPhrase(); + tmsrp_request_type_t getRequestType(); +#if defined(SWIG) + void getByteRange(int64_t* OUTPUT, int64_t* OUTPUT, int64_t* OUTPUT); +#else + void getByteRange(int64_t* start, int64_t* end, int64_t* total); +#endif + bool isLastChunck(); + bool isFirstChunck(); + bool isSuccessReport(); + char* getMsrpHeaderValue(const char* name); + char* getMsrpHeaderParamValue(const char* name, const char* param); + unsigned getMsrpContentLength(); + unsigned getMsrpContent(void* output, unsigned maxsize); +#if !defined(SWIG) + const tmsrp_message_t* getWrappedMsrpMessage() { return m_pMessage; } +#endif + +private: + const tmsrp_header_t* getMsrpHeader(const char* name, unsigned index = 0); + +private: + tmsrp_message_t *m_pMessage; +}; + +class TINYWRAP_API MsrpEvent +{ +public: +#if !defined(SWIG) + MsrpEvent(const tmsrp_event_t *_event); +#endif + virtual ~MsrpEvent(); + + tmsrp_event_type_t getType(); + const MsrpSession* getSipSession(); + const MsrpMessage* getMessage() const; + +protected: + const tmsrp_event_t *_event; + MsrpMessage* m_pMessage; +}; + +class TINYWRAP_API MsrpCallback +{ +public: + MsrpCallback() { } + virtual ~MsrpCallback() {} + virtual int OnEvent(const MsrpEvent* e) { return -1; } +}; + + +#if !defined(SWIG) +int twrap_msrp_cb(const tmsrp_event_t* _event); +#endif + +#endif /* TINYWRAP_MSRP_H */ diff --git a/bindings/_common/Msrp.i b/bindings/_common/Msrp.i new file mode 100644 index 0000000..7924073 --- /dev/null +++ b/bindings/_common/Msrp.i @@ -0,0 +1,34 @@ +%{ +#include "Msrp.h" +%} + +/* Callbacks */ +%feature("director") MsrpCallback; + + +%nodefaultctor; +%include "Msrp.h" +%clearnodefaultctor; + +/* From tinyMSRP/tmsrp_message.h */ +typedef enum tmsrp_request_type_e +{ + tmsrp_NONE = 0, + + tmsrp_SEND, + tmsrp_REPORT, + tmsrp_AUTH + //... +} +tmsrp_request_type_t; + + +/* From tinyMSRP/tmsrp_event.h */ +typedef enum tmsrp_event_type_e +{ + tmsrp_event_type_none, + tmsrp_event_type_connected, + tmsrp_event_type_disconnected, + tmsrp_event_type_message, +} +tmsrp_event_type_t; \ No newline at end of file diff --git a/bindings/_common/ProxyConsumer.cxx b/bindings/_common/ProxyConsumer.cxx new file mode 100644 index 0000000..2150654 --- /dev/null +++ b/bindings/_common/ProxyConsumer.cxx @@ -0,0 +1,815 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +/**@file ProxyConsumer.c + * @brief Audio/Video proxy consumers. + * + * @author Mamadou Diop + * + + */ +#include "ProxyConsumer.h" + +#include "AudioResampler.h" + +#include "tsk_memory.h" +#include "tsk_debug.h" + +#include "tinydav/audio/tdav_consumer_audio.h" +#include "tinydav/video/tdav_consumer_video.h" + + +/* ============ Audio Consumer Interface ================= */ + +typedef struct twrap_consumer_proxy_audio_s +{ + TDAV_DECLARE_CONSUMER_AUDIO; + + uint64_t id; + tsk_bool_t started; + const ProxyAudioConsumer* pcConsumer; // thread-safe and will be destroyed at the time as the "struct" +} +twrap_consumer_proxy_audio_t; +#define TWRAP_CONSUMER_PROXY_AUDIO(self) ((twrap_consumer_proxy_audio_t*)(self)) + +int twrap_consumer_proxy_audio_set(tmedia_consumer_t* _self, const tmedia_param_t* param) +{ + twrap_consumer_proxy_audio_t* self = (twrap_consumer_proxy_audio_t*)_self; + if(param->plugin_type == tmedia_ppt_consumer){ + // specific proxy consumer + } + return tdav_consumer_audio_set(TDAV_CONSUMER_AUDIO(self), param); +} + +int twrap_consumer_proxy_audio_prepare(tmedia_consumer_t* self, const tmedia_codec_t* codec) +{ + twrap_consumer_proxy_audio_t* audio = TWRAP_CONSUMER_PROXY_AUDIO(self); + ProxyPluginMgr* manager = NULL; + int ret = -1; + if(codec && (manager = ProxyPluginMgr::getInstance())){ + if((audio->pcConsumer = manager->findAudioConsumer(audio->id)) && audio->pcConsumer->getCallback()){ + self->audio.ptime = TMEDIA_CODEC_PTIME_AUDIO_DECODING(codec); + self->audio.in.channels = TMEDIA_CODEC_CHANNELS_AUDIO_DECODING(codec); + self->audio.in.rate = TMEDIA_CODEC_RATE_DECODING(codec); + + ret = audio->pcConsumer->getCallback()->prepare((int)self->audio.ptime, self->audio.in.rate, self->audio.in.channels); + if(ret == 0 && !audio->pcConsumer->getCallback()->isPivotSettings()){ + // say consumer can output these params + // Out "rate" and "channels" must be defined regardless previous values (already the case in other back-ends) to avoid issues on reINVITE with rate change (e.g. Opus -> PCMA). + /*if(!self->audio.out.rate)*/ self->audio.out.rate = self->audio.in.rate; + /*if(!self->audio.out.channels)*/ self->audio.out.channels = self->audio.in.channels; + } + } + } + else { + TSK_DEBUG_ERROR("Invalid parameter/state: codec=%d, manager=%s", codec, manager ? "no-null" : "null"); + } + + return ret; +} + +int twrap_consumer_proxy_audio_start(tmedia_consumer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioConsumer* audioConsumer; + if((audioConsumer = manager->findAudioConsumer(TWRAP_CONSUMER_PROXY_AUDIO(self)->id)) && audioConsumer->getCallback()){ + ret = audioConsumer->getCallback()->start(); + } + } + + TWRAP_CONSUMER_PROXY_AUDIO(self)->started = (ret == 0); + return ret; +} + +int twrap_consumer_proxy_audio_consume(tmedia_consumer_t* self, const void* buffer, tsk_size_t size, const tsk_object_t* proto_hdr) +{ + twrap_consumer_proxy_audio_t* audio = TWRAP_CONSUMER_PROXY_AUDIO(self); + + if(!audio->pcConsumer){ + ProxyPluginMgr* manager; + if((manager = ProxyPluginMgr::getInstance())){ + audio->pcConsumer = manager->findAudioConsumer(audio->id); + } + } + + ProxyAudioConsumerCallback* callback; + int ret = -1; + if(audio->pcConsumer && (callback = audio->pcConsumer->getCallback())){ + if(callback->putInJitterBuffer()){ + ret = tdav_consumer_audio_put(TDAV_CONSUMER_AUDIO(self), buffer, size, proto_hdr); + } + else{ + ret = callback->consume(buffer, size, proto_hdr); + } + } + + return ret; +} + +int twrap_consumer_proxy_audio_pause(tmedia_consumer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioConsumer* audioConsumer; + if((audioConsumer = manager->findAudioConsumer(TWRAP_CONSUMER_PROXY_AUDIO(self)->id)) && audioConsumer->getCallback()){ + ret = audioConsumer->getCallback()->pause(); + } + } + + return ret; +} + +int twrap_consumer_proxy_audio_stop(tmedia_consumer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioConsumer* audioConsumer; + if((audioConsumer = manager->findAudioConsumer(TWRAP_CONSUMER_PROXY_AUDIO(self)->id)) && audioConsumer->getCallback()){ + ret = audioConsumer->getCallback()->stop(); + } + } + + TWRAP_CONSUMER_PROXY_AUDIO(self)->started = (ret == 0) ? tsk_false : tsk_true; + return ret; +} + + +// +// Audio consumer object definition +// +/* constructor */ +static tsk_object_t* twrap_consumer_proxy_audio_ctor(tsk_object_t * self, va_list * app) +{ + twrap_consumer_proxy_audio_t *consumer = (twrap_consumer_proxy_audio_t *)self; + if(consumer){ + /* init base */ + tdav_consumer_audio_init(TDAV_CONSUMER_AUDIO(consumer)); + /* init self */ + + /* Add the plugin to the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + ProxyPlugin* proxyConsumer = new ProxyAudioConsumer(consumer); + uint64_t id = proxyConsumer->getId(); + manager->addPlugin(&proxyConsumer); + manager->getCallback()->OnPluginCreated(id, twrap_proxy_plugin_audio_consumer); + } + } + return self; +} +/* destructor */ +static tsk_object_t* twrap_consumer_proxy_audio_dtor(tsk_object_t * self) +{ + twrap_consumer_proxy_audio_t *consumer = (twrap_consumer_proxy_audio_t *)self; + if(consumer){ + /* stop */ + if(consumer->started){ + twrap_consumer_proxy_audio_stop(TMEDIA_CONSUMER(consumer)); + } + + /* deinit base */ + tdav_consumer_audio_deinit(TDAV_CONSUMER_AUDIO(consumer)); + /* deinit self */ + + + /* Remove plugin from the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + manager->getCallback()->OnPluginDestroyed(consumer->id, twrap_proxy_plugin_audio_consumer); + manager->removePlugin(consumer->id); + } + } + + return self; +} +/* object definition */ +static const tsk_object_def_t twrap_consumer_proxy_audio_def_s = +{ + sizeof(twrap_consumer_proxy_audio_t), + twrap_consumer_proxy_audio_ctor, + twrap_consumer_proxy_audio_dtor, + tdav_consumer_audio_cmp, +}; +/* plugin definition*/ +static const tmedia_consumer_plugin_def_t twrap_consumer_proxy_audio_plugin_def_s = +{ + &twrap_consumer_proxy_audio_def_s, + + tmedia_audio, + "Audio Proxy Consumer", + + twrap_consumer_proxy_audio_set, + twrap_consumer_proxy_audio_prepare, + twrap_consumer_proxy_audio_start, + twrap_consumer_proxy_audio_consume, + twrap_consumer_proxy_audio_pause, + twrap_consumer_proxy_audio_stop +}; + +/*TINYWRAP_GEXTERN*/ const tmedia_consumer_plugin_def_t *twrap_consumer_proxy_audio_plugin_def_t = &twrap_consumer_proxy_audio_plugin_def_s; + + + +/* ============ ProxyAudioConsumer Class ================= */ +ProxyAudioConsumer::ProxyAudioConsumer(twrap_consumer_proxy_audio_t* pConsumer) +:ProxyPlugin(twrap_proxy_plugin_audio_consumer), +m_pWrappedPlugin(pConsumer), +m_pCallback(tsk_null) +{ + memset(&m_PullBuffer, 0, sizeof(m_PullBuffer)); + memset(&m_Resampler, 0, sizeof(m_Resampler)); + + if(m_pWrappedPlugin){ + m_pWrappedPlugin->id = this->getId(); + } +} + +ProxyAudioConsumer::~ProxyAudioConsumer() +{ + TSK_FREE(m_Resampler.pInBufferPtr); + m_Resampler.nInBufferSizeInByte = 0; + if(m_Resampler.pResampler){ + delete m_Resampler.pResampler, m_Resampler.pResampler = tsk_null; + } +} + +// Use this function to request resampling when your sound card can't honor negotaited record parameters +bool ProxyAudioConsumer::setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) +{ + if(m_pWrappedPlugin){ + TSK_DEBUG_INFO("ProxyAudioConsumer::setActualSndCardRecordParams(ptime=%d, rate=%d, channels=%d)", nPtime, nRate, nChannels); + TMEDIA_CONSUMER(m_pWrappedPlugin)->audio.ptime = nPtime; + TMEDIA_CONSUMER(m_pWrappedPlugin)->audio.out.rate = nRate; + TMEDIA_CONSUMER(m_pWrappedPlugin)->audio.out.channels = nChannels; + return true; + } + else{ + TSK_DEBUG_ERROR("Invalid state"); + return false; + } +} + +bool ProxyAudioConsumer::queryForResampler(uint16_t nInFreq, uint16_t nOutFreq, uint16_t nFrameDuration, uint16_t nChannels, uint16_t nResamplerQuality) +{ + TSK_DEBUG_INFO("queryForResampler(%hu,%hu,%hu,%hu,%hu)", nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality); + if(nResamplerQuality > 10){ + TSK_DEBUG_WARN("%d is invalid value for quality", nResamplerQuality); + } + m_Resampler.pResampler = new AudioResampler(nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality); + if(!m_Resampler.pResampler){ + TSK_DEBUG_ERROR("Failed to create new 'AudioResampler' object"); + return false; + } + bool bOK = m_Resampler.pResampler->isValid(); + if(!bOK){ + goto bail; + } + m_Resampler.nInBufferSizeInByte = m_Resampler.pResampler->getInputRequiredSizeInShort() * 2; + m_Resampler.pInBufferPtr = tsk_calloc(m_Resampler.nInBufferSizeInByte, 1); + bOK = (m_Resampler.pInBufferPtr != tsk_null); + +bail: + if(!bOK){ + if(m_Resampler.pResampler){ + delete m_Resampler.pResampler, m_Resampler.pResampler = tsk_null; + } + TSK_FREE(m_Resampler.pInBufferPtr); + m_Resampler.nInBufferSizeInByte = 0; + } + return bOK; +} + +bool ProxyAudioConsumer::setPullBuffer(const void* pPullBufferPtr, unsigned nPullBufferSize) +{ + m_PullBuffer.pPullBufferPtr = pPullBufferPtr; + m_PullBuffer.nPullBufferSize = nPullBufferSize; + return true; +} + +unsigned ProxyAudioConsumer::pull(void* _pOutput/*=tsk_null*/, unsigned _nSize/*=0*/) +{ + if((m_pWrappedPlugin = (twrap_consumer_proxy_audio_t*)tsk_object_ref(m_pWrappedPlugin))){ + void* pOutput; + unsigned nSize; + if(_pOutput && _nSize){ + pOutput = _pOutput, nSize = _nSize; + } + else{ + pOutput = (void*)m_PullBuffer.pPullBufferPtr, nSize = m_PullBuffer.nPullBufferSize; + } + + tsk_size_t nRetSize = 0; + + if(m_Resampler.pResampler && m_Resampler.pInBufferPtr){ + nRetSize = tdav_consumer_audio_get(TDAV_CONSUMER_AUDIO(m_pWrappedPlugin), m_Resampler.pInBufferPtr, m_Resampler.nInBufferSizeInByte); + if(nRetSize){ + nRetSize = m_Resampler.pResampler->process(m_Resampler.pInBufferPtr, nRetSize, pOutput, nSize); + } + } + else{ + nRetSize = tdav_consumer_audio_get(TDAV_CONSUMER_AUDIO(m_pWrappedPlugin), pOutput, nSize); + } + + tdav_consumer_audio_tick(TDAV_CONSUMER_AUDIO(m_pWrappedPlugin)); + + m_pWrappedPlugin = (twrap_consumer_proxy_audio_t*)tsk_object_unref(m_pWrappedPlugin); + return nRetSize; + } + return 0; +} + +bool ProxyAudioConsumer::setGain(unsigned nGain) +{ + if(m_pWrappedPlugin){ + // see also: MediaSessionMgr.consumerSetInt32(org.doubango.tinyWRAP.twrap_media_type_t.twrap_media_audio, "gain", nGain); + TMEDIA_CONSUMER(m_pWrappedPlugin)->audio.gain = TSK_MIN(nGain,14); + return true; + } + return false; +} + +unsigned ProxyAudioConsumer::getGain() +{ + if(m_pWrappedPlugin){ + return TMEDIA_CONSUMER(m_pWrappedPlugin)->audio.gain; + } + return 0; +} + +bool ProxyAudioConsumer::reset() +{ + if(m_pWrappedPlugin){ + return (tdav_consumer_audio_reset(TDAV_CONSUMER_AUDIO(m_pWrappedPlugin)) == 0); + } + return false; +} + +bool ProxyAudioConsumer::registerPlugin() +{ + /* HACK: Unregister all other audio plugins */ + tmedia_consumer_plugin_unregister_by_type(tmedia_audio); + /* Register our proxy plugin */ + return (tmedia_consumer_plugin_register(twrap_consumer_proxy_audio_plugin_def_t) == 0); +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/* ============ Video Consumer Interface ================= */ + +typedef struct twrap_consumer_proxy_video_s +{ + TDAV_DECLARE_CONSUMER_VIDEO; + + uint64_t id; + tsk_bool_t started; + const ProxyVideoConsumer* pcConsumer; // thread-safe and will be destroyed at the time as the "struct" +} +twrap_consumer_proxy_video_t; +#define TWRAP_CONSUMER_PROXY_VIDEO(self) ((twrap_consumer_proxy_video_t*)(self)) + +int twrap_consumer_proxy_video_set(tmedia_consumer_t* self, const tmedia_param_t* params) +{ + return 0; +} + +int twrap_consumer_proxy_video_prepare(tmedia_consumer_t* self, const tmedia_codec_t* codec) +{ + ProxyPluginMgr* manager; + twrap_consumer_proxy_video_t* video = TWRAP_CONSUMER_PROXY_VIDEO(self); + int ret = -1; + if(codec && (manager = ProxyPluginMgr::getInstance())){ + if((video->pcConsumer = manager->findVideoConsumer(video->id)) && video->pcConsumer->getCallback()){ + self->video.fps = TMEDIA_CODEC_VIDEO(codec)->in.fps; + // in + self->video.in.chroma = tmedia_chroma_yuv420p; + self->video.in.width = TMEDIA_CODEC_VIDEO(codec)->in.width; + self->video.in.height = TMEDIA_CODEC_VIDEO(codec)->in.height; + // display (out) + self->video.display.chroma = video->pcConsumer->getChroma(); + self->video.display.auto_resize = video->pcConsumer->getAutoResizeDisplay(); + if(!self->video.display.width){ + self->video.display.width = self->video.in.width; + } + if(!self->video.display.height){ + self->video.display.height = self->video.in.height; + } + ret = video->pcConsumer->getCallback()->prepare(TMEDIA_CODEC_VIDEO(codec)->in.width, TMEDIA_CODEC_VIDEO(codec)->in.height, TMEDIA_CODEC_VIDEO(codec)->in.fps); + } + } + + return ret; +} + +int twrap_consumer_proxy_video_start(tmedia_consumer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoConsumer* videoConsumer; + if((videoConsumer = manager->findVideoConsumer(TWRAP_CONSUMER_PROXY_VIDEO(self)->id)) && videoConsumer->getCallback()){ + ret = videoConsumer->getCallback()->start(); + } + } + + TWRAP_CONSUMER_PROXY_VIDEO(self)->started = (ret == 0); + return ret; +} + +int twrap_consumer_proxy_video_consume(tmedia_consumer_t* self, const void* buffer, tsk_size_t size, const tsk_object_t* proto_hdr) +{ + if(!self || !buffer || !size){ + TSK_DEBUG_ERROR("Invalid parameter"); + return -1; + } + + twrap_consumer_proxy_video_t* video = TWRAP_CONSUMER_PROXY_VIDEO(self); + + if(!video->pcConsumer){ + ProxyPluginMgr* manager; + if((manager = ProxyPluginMgr::getInstance())){ + video->pcConsumer = manager->findVideoConsumer(video->id); + } + } + + int ret = -1; + ProxyVideoConsumerCallback* callback; + + if(video->pcConsumer && (callback = video->pcConsumer->getCallback())){ + if(tdav_consumer_video_has_jb(TDAV_CONSUMER_VIDEO(self))){ + ret = tdav_consumer_video_put(TDAV_CONSUMER_VIDEO(self), buffer, size, proto_hdr); + } + else{ + if(video->pcConsumer->hasConsumeBuffer()){ + unsigned nCopiedSize = video->pcConsumer->copyBuffer(buffer, size); + ret = callback->bufferCopied(nCopiedSize, size); + } + else{ + ProxyVideoFrame* frame = new ProxyVideoFrame(buffer, size, const_cast(video->pcConsumer)->getDecodedWidth(), const_cast(video->pcConsumer)->getDecodedHeight(), proto_hdr); + ret = callback->consume(frame); + delete frame, frame = tsk_null; + } + } + } + else if(!video->pcConsumer){ + TSK_DEBUG_ERROR("Cannot find consumer with id=%lld", TWRAP_CONSUMER_PROXY_VIDEO(self)->id); + } + + + return ret; +} + +int twrap_consumer_proxy_video_pause(tmedia_consumer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoConsumer* videoConsumer; + if((videoConsumer = manager->findVideoConsumer(TWRAP_CONSUMER_PROXY_VIDEO(self)->id)) && videoConsumer->getCallback()){ + ret = videoConsumer->getCallback()->pause(); + } + } + + return ret; +} + +int twrap_consumer_proxy_video_stop(tmedia_consumer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoConsumer* videoConsumer; + if((videoConsumer = manager->findVideoConsumer(TWRAP_CONSUMER_PROXY_VIDEO(self)->id)) && videoConsumer->getCallback()){ + ret = videoConsumer->getCallback()->stop(); + } + } + + TWRAP_CONSUMER_PROXY_VIDEO(self)->started = (ret == 0) ? tsk_false : tsk_true; + return ret; +} + + +// +// Video consumer object definition +// +/* constructor */ +static tsk_object_t* twrap_consumer_proxy_video_ctor(tsk_object_t * self, va_list * app) +{ + twrap_consumer_proxy_video_t *consumer = (twrap_consumer_proxy_video_t *)self; + if(consumer){ + /* init base */ + tdav_consumer_video_init(TDAV_CONSUMER_VIDEO(consumer)); + /* init self */ + + /* Add the plugin to the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + ProxyPlugin* proxyConsumer = new ProxyVideoConsumer(ProxyVideoConsumer::getDefaultChroma(), consumer); + uint64_t id = proxyConsumer->getId(); + manager->addPlugin(&proxyConsumer); + manager->getCallback()->OnPluginCreated(id, twrap_proxy_plugin_video_consumer); + } + } + return self; +} +/* destructor */ +static tsk_object_t* twrap_consumer_proxy_video_dtor(tsk_object_t * self) +{ + twrap_consumer_proxy_video_t *consumer = (twrap_consumer_proxy_video_t *)self; + if(consumer){ + + /* stop */ + if(consumer->started){ + twrap_consumer_proxy_video_stop(TMEDIA_CONSUMER(consumer)); + } + + /* deinit base */ + tdav_consumer_video_deinit(TDAV_CONSUMER_VIDEO(consumer)); + /* deinit self */ + + /* Remove plugin from the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + manager->getCallback()->OnPluginDestroyed(consumer->id, twrap_proxy_plugin_video_consumer); + manager->removePlugin(consumer->id); + } + } + + return self; +} +/* object definition */ +static const tsk_object_def_t twrap_consumer_proxy_video_def_s = +{ + sizeof(twrap_consumer_proxy_video_t), + twrap_consumer_proxy_video_ctor, + twrap_consumer_proxy_video_dtor, + tsk_null, +}; +/* plugin definition*/ +static const tmedia_consumer_plugin_def_t twrap_consumer_proxy_video_plugin_def_s = +{ + &twrap_consumer_proxy_video_def_s, + + tmedia_video, + "Video Proxy Consumer", + + twrap_consumer_proxy_video_set, + twrap_consumer_proxy_video_prepare, + twrap_consumer_proxy_video_start, + twrap_consumer_proxy_video_consume, + twrap_consumer_proxy_video_pause, + twrap_consumer_proxy_video_stop +}; + +/*TINYWRAP_GEXTERN*/ const tmedia_consumer_plugin_def_t *twrap_consumer_proxy_video_plugin_def_t = &twrap_consumer_proxy_video_plugin_def_s; + + + +/* ============ ProxyVideoConsumer Class ================= */ +tmedia_chroma_t ProxyVideoConsumer::s_eDefaultChroma = tmedia_chroma_rgb565le; +bool ProxyVideoConsumer::s_bAutoResizeDisplay = false; + +ProxyVideoConsumer::ProxyVideoConsumer(tmedia_chroma_t eChroma, struct twrap_consumer_proxy_video_s* pConsumer) +: m_eChroma(eChroma), +m_bAutoResizeDisplay(ProxyVideoConsumer::getDefaultAutoResizeDisplay()), +m_pWrappedPlugin(pConsumer), +m_pCallback(tsk_null), +ProxyPlugin(twrap_proxy_plugin_video_consumer) +{ + m_pWrappedPlugin->id = this->getId(); + m_ConsumeBuffer.pConsumeBufferPtr = tsk_null; + m_ConsumeBuffer.nConsumeBufferSize = 0; +} + +ProxyVideoConsumer::~ProxyVideoConsumer() +{ +} + +bool ProxyVideoConsumer::setDisplaySize(unsigned nWidth, unsigned nHeight) +{ + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + TMEDIA_CONSUMER(m_pWrappedPlugin)->video.display.width = nWidth; + TMEDIA_CONSUMER(m_pWrappedPlugin)->video.display.height = nHeight; + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + return true; + } + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + return false; +} + +unsigned ProxyVideoConsumer::getDisplayWidth() +{ + unsigned displayWidth = 0; + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + displayWidth = TMEDIA_CONSUMER(m_pWrappedPlugin)->video.display.width; + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + } + else{ + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + } + return displayWidth; +} + +unsigned ProxyVideoConsumer::getDisplayHeight() +{ + unsigned displayHeight = 0; + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + displayHeight = TMEDIA_CONSUMER(m_pWrappedPlugin)->video.display.height; + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + } + else{ + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + } + return displayHeight; +} + +unsigned ProxyVideoConsumer::getDecodedWidth() +{ + unsigned width = 0; + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + width = TMEDIA_CONSUMER(m_pWrappedPlugin)->video.in.width; + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + } + else{ + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + } + return width; +} + +unsigned ProxyVideoConsumer::getDecodedHeight() +{ + unsigned height = 0; + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + height = TMEDIA_CONSUMER(m_pWrappedPlugin)->video.in.height; + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + } + else{ + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + } + return height; +} + +tmedia_chroma_t ProxyVideoConsumer::getChroma()const +{ + return m_eChroma; +} + +bool ProxyVideoConsumer::setAutoResizeDisplay(bool bAutoResizeDisplay){ + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + TMEDIA_CONSUMER(m_pWrappedPlugin)->video.display.auto_resize = bAutoResizeDisplay ? tsk_true : tsk_false; + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + m_bAutoResizeDisplay = bAutoResizeDisplay; + return true; + } + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + return false; +} + +bool ProxyVideoConsumer::getAutoResizeDisplay()const +{ + return m_bAutoResizeDisplay; +} + +bool ProxyVideoConsumer::setConsumeBuffer(const void* pConsumeBufferPtr, unsigned nConsumeBufferSize) +{ + m_ConsumeBuffer.pConsumeBufferPtr = pConsumeBufferPtr; + m_ConsumeBuffer.nConsumeBufferSize = nConsumeBufferSize; + return true; +} + +unsigned ProxyVideoConsumer::copyBuffer(const void* pBuffer, unsigned nSize)const +{ + unsigned nRetsize = 0; + if(pBuffer && nSize && m_ConsumeBuffer.pConsumeBufferPtr && m_ConsumeBuffer.nConsumeBufferSize){ + nRetsize = (nSize > m_ConsumeBuffer.nConsumeBufferSize) ? m_ConsumeBuffer.nConsumeBufferSize : nSize; + memcpy((void*)m_ConsumeBuffer.pConsumeBufferPtr, pBuffer, nRetsize); + } + return nRetsize; +} + +unsigned ProxyVideoConsumer::pull(void* pOutput, unsigned nSize) +{ + if(pOutput && nSize && (m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + tsk_size_t nRetSize = 0; + + if(!tdav_consumer_video_has_jb(TDAV_CONSUMER_VIDEO(m_pWrappedPlugin))){ + TSK_DEBUG_ERROR("This consumer doesn't hold any jitter buffer.\n\nTo pull a buffer you must register a callback ('class ProxyVideoConsumerCallback') and listen for either 'consume' or 'bufferCopied' functions"); + goto done; + } + + nRetSize = tdav_consumer_video_get(TDAV_CONSUMER_VIDEO(m_pWrappedPlugin), pOutput, nSize); + + tdav_consumer_video_tick(TDAV_CONSUMER_VIDEO(m_pWrappedPlugin)); + +done: + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + return nRetSize; + } + return 0; +} + +bool ProxyVideoConsumer::reset() +{ + bool ret = false; + if((m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_ref(m_pWrappedPlugin))){ + if(tdav_consumer_video_has_jb(TDAV_CONSUMER_VIDEO(m_pWrappedPlugin))){ + ret = (tdav_consumer_video_reset(TDAV_CONSUMER_VIDEO(m_pWrappedPlugin)) == 0); + } + else{ + TSK_DEBUG_ERROR("This consumer doesn't hold any jitter buffer"); + } + m_pWrappedPlugin = (twrap_consumer_proxy_video_t*)tsk_object_unref(m_pWrappedPlugin); + } + + TSK_DEBUG_ERROR("This consumer doesn't wrap any plugin"); + return ret; +} + +bool ProxyVideoConsumer::registerPlugin() +{ + /* HACK: Unregister all other video plugins */ + tmedia_consumer_plugin_unregister_by_type(tmedia_video); + /* Register our proxy plugin */ + return (tmedia_consumer_plugin_register(twrap_consumer_proxy_video_plugin_def_t) == 0); +} + + + +ProxyVideoFrame::ProxyVideoFrame(const void* pBufferPtr, unsigned nSize, unsigned nFrameWidth, unsigned nFrameHeight, const tsk_object_t* pProtoHdr) +{ + m_pBufferPtr = pBufferPtr; + m_nBufferSize = nSize; + m_nFrameWidth = nFrameWidth; + m_nFrameHeight = nFrameHeight; + m_pProtoHdr = pProtoHdr; +} + +ProxyVideoFrame::~ProxyVideoFrame() +{ +} + +unsigned ProxyVideoFrame::getSize() +{ + return m_nBufferSize; +} + +unsigned ProxyVideoFrame::getContent(void* pOutput, unsigned nMaxsize) +{ + unsigned nRetsize = 0; + if(pOutput && nMaxsize && m_pBufferPtr){ + nRetsize = (m_nBufferSize > nMaxsize) ? nMaxsize : m_nBufferSize; + memcpy(pOutput, m_pBufferPtr, nRetsize); + } + return nRetsize; +} diff --git a/bindings/_common/ProxyConsumer.h b/bindings/_common/ProxyConsumer.h new file mode 100644 index 0000000..138d3e5 --- /dev/null +++ b/bindings/_common/ProxyConsumer.h @@ -0,0 +1,211 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +/**@file ProxyConsumer.h + * @brief Audio/Video proxy consumers. + * + * @author Mamadou Diop + */ +#ifndef TINYWRAP_CONSUMER_PROXY_H +#define TINYWRAP_CONSUMER_PROXY_H + +#include "tinyWRAP_config.h" + +#include "ProxyPluginMgr.h" + +#include "tinymedia/tmedia_common.h" +#include "tinymedia/tmedia_consumer.h" + +class AudioResampler; + +/* ============ ProxyAudioConsumerCallback Class ================= */ +class ProxyAudioConsumerCallback +{ +public: + ProxyAudioConsumerCallback() { } + virtual ~ProxyAudioConsumerCallback(){ } + + virtual int prepare(int ptime, int rate, int channels) { return -1; } + virtual int start() { return -1; } + virtual int pause() { return -1; } + virtual int stop() { return -1; } +#if !defined(SWIG) + // whether the audio buffer have to be stored in the JB then pulled using "ProxyAudioConsumer::pull()" or not + virtual bool putInJitterBuffer(){ return true; } + // whether we are using the "telepresence" system (PIVOT audio settings must not be changed) + virtual bool isPivotSettings() { return false; } + // only called if "putInJitterBuffer()" return "true" + virtual int consume(const void* buffer_ptr, tsk_size_t buffer_size, const tsk_object_t* proto_hdr){ return -1; } +#endif +}; + +/* ============ ProxyAudioConsumer Class ================= */ +class ProxyAudioConsumer : public ProxyPlugin +{ +public: +#if !defined(SWIG) + ProxyAudioConsumer(struct twrap_consumer_proxy_audio_s* pConsumer); +#endif + virtual ~ProxyAudioConsumer(); + bool setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels); + bool queryForResampler(uint16_t nInFreq, uint16_t nOutFreq, uint16_t nFrameDuration, uint16_t nChannels, uint16_t nResamplerQuality); + bool setPullBuffer(const void* pPullBufferPtr, unsigned nPullBufferSize); + unsigned pull(void* pOutput=tsk_null, unsigned nSize=0); + bool setGain(unsigned nGain); + unsigned getGain(); + bool reset(); + void setCallback(ProxyAudioConsumerCallback* pCallback) { m_pCallback = pCallback; } +#if !defined(SWIG) + inline ProxyAudioConsumerCallback* getCallback()const { return m_pCallback; } + virtual inline bool isWrapping(tsk_object_t* pWrappedPlugin){ + return m_pWrappedPlugin == pWrappedPlugin; + } +#endif + virtual inline uint64_t getMediaSessionId(){ + return m_pWrappedPlugin ? TMEDIA_CONSUMER(m_pWrappedPlugin)->session_id : 0; + } + +public: + static bool registerPlugin(); + +private: + struct twrap_consumer_proxy_audio_s* m_pWrappedPlugin; + ProxyAudioConsumerCallback* m_pCallback; + struct{ + const void* pPullBufferPtr; + unsigned nPullBufferSize; + } m_PullBuffer; + + struct{ + void* pInBufferPtr; + unsigned nInBufferSizeInByte; + AudioResampler* pResampler; + } m_Resampler; +}; + +class ProxyVideoFrame; + +/* ============ ProxyVideoConsumerCallback Class ================= */ +class ProxyVideoConsumerCallback +{ +public: + ProxyVideoConsumerCallback(){} + virtual ~ProxyVideoConsumerCallback() {} + + virtual int prepare(int nWidth, int nHeight, int nFps) { return -1; } + virtual int consume(const ProxyVideoFrame* frame) { return -1; } + // only called if a buffer is registered using setPullBuffer(). Otherwise, consume() will be called + virtual int bufferCopied(unsigned nCopiedSize, unsigned nAvailableSize) { return -1; } + virtual int start() { return -1; } + virtual int pause() { return -1; } + virtual int stop() { return -1; } +}; + +/* ============ ProxyVideoConsumer Class ================= */ +class ProxyVideoConsumer : public ProxyPlugin +{ +public: +#if !defined(SWIG) + ProxyVideoConsumer(tmedia_chroma_t eChroma, struct twrap_consumer_proxy_video_s* pConsumer); +#endif + virtual ~ProxyVideoConsumer(); + + bool setDisplaySize(unsigned nWidth, unsigned nHeight); + unsigned getDisplayWidth(); + unsigned getDisplayHeight(); + unsigned getDecodedWidth(); + unsigned getDecodedHeight(); + + void setCallback(ProxyVideoConsumerCallback* pCallback) { m_pCallback = pCallback; } + bool setAutoResizeDisplay(bool bAutoResizeDisplay); + bool getAutoResizeDisplay()const; + bool setConsumeBuffer(const void* pConsumeBufferPtr, unsigned nConsumeBufferSize); + unsigned pull(void* pOutput, unsigned nSize); + bool reset(); + +#if !defined(SWIG) + bool hasConsumeBuffer()const { return m_ConsumeBuffer.pConsumeBufferPtr && m_ConsumeBuffer.nConsumeBufferSize; } + unsigned copyBuffer(const void* pBuffer, unsigned nSize)const; + inline ProxyVideoConsumerCallback* getCallback()const { return m_pCallback; } + virtual inline bool isWrapping(tsk_object_t* wrapped_plugin){ + return m_pWrappedPlugin == wrapped_plugin; + } +#endif + virtual inline uint64_t getMediaSessionId(){ + return m_pWrappedPlugin ? TMEDIA_CONSUMER(m_pWrappedPlugin)->session_id : 0; + } + +public: + static bool registerPlugin(); + static void setDefaultChroma(tmedia_chroma_t eChroma){ s_eDefaultChroma = eChroma; } + static void setDefaultAutoResizeDisplay(bool bAutoResizeDisplay){ s_bAutoResizeDisplay = bAutoResizeDisplay;} + +#if !defined(SWIG) + tmedia_chroma_t getChroma()const; + static tmedia_chroma_t getDefaultChroma() { return s_eDefaultChroma; } + static bool getDefaultAutoResizeDisplay() { return s_bAutoResizeDisplay; } +#endif + +private: + struct twrap_consumer_proxy_video_s* m_pWrappedPlugin; + tmedia_chroma_t m_eChroma; + ProxyVideoConsumerCallback* m_pCallback; + struct{ + const void* pConsumeBufferPtr; + unsigned nConsumeBufferSize; + } m_ConsumeBuffer; + bool m_bAutoResizeDisplay; + + static tmedia_chroma_t s_eDefaultChroma; + static bool s_bAutoResizeDisplay; +}; + +/* ============ ProxyVideoFrame Class ================= */ +class ProxyVideoFrame +{ +public: +#if !defined(SWIG) + ProxyVideoFrame(const void* pBufferPtr, unsigned nBufferSize, unsigned nFrameWidth, unsigned nFrameHeight, const tsk_object_t* pProtoHdr); +#endif + virtual ~ProxyVideoFrame(); + +public: /* For Java/C# applications */ + unsigned getSize(); + unsigned getContent(void* pOutput, unsigned nMaxsize); + inline unsigned getFrameWidth()const{ return m_nFrameWidth; } + inline unsigned getFrameHeight()const{ return m_nFrameHeight; } + +#if !defined(SWIG) /* For C/C++ applications */ +public: + inline unsigned getBufferSize()const{ return m_nBufferSize; } + inline const void* getBufferPtr()const{ return m_pBufferPtr; } + inline const tsk_object_t* getProtoHdr()const{ return m_pProtoHdr; } +#endif + +private: + const void* m_pBufferPtr; + unsigned m_nBufferSize, m_nFrameWidth, m_nFrameHeight; + const tsk_object_t* m_pProtoHdr; +}; + + +#endif /* TINYWRAP_CONSUMER_PROXY_H */ diff --git a/bindings/_common/ProxyPluginMgr.cxx b/bindings/_common/ProxyPluginMgr.cxx new file mode 100644 index 0000000..fd6e026 --- /dev/null +++ b/bindings/_common/ProxyPluginMgr.cxx @@ -0,0 +1,306 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "ProxyPluginMgr.h" + +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +// +// "twrap_proxy_plugin_t" Declarations +// +typedef struct twrap_proxy_plugin_s +{ + TSK_DECLARE_OBJECT; + ProxyPlugin* plugin; +} +twrap_proxy_plugin_t; +#define TWRAP_PROXY_PLUGIN(self) ((twrap_proxy_plugin_t*)(self)) +static int pred_find_plugin_by_value(const tsk_list_item_t *item, const void *proxyPlugin); +static twrap_proxy_plugin_t* twrap_proxy_plugin_create(ProxyPlugin** plugin); + + +// +// "ProxyPluginMgr" Class Implementation +// +ProxyPluginMgr* ProxyPluginMgr::instance = tsk_null; +static uint64_t __uniqueId = 0; + +ProxyPluginMgr::ProxyPluginMgr(ProxyPluginMgrCallback* _callback) +:callback(_callback) +{ + this->plugins = tsk_list_create(); + if(!this->callback){ + TSK_DEBUG_WARN("Callback function is Null => You will have big problems as we won't check it before call"); + } +} + +ProxyPluginMgr::~ProxyPluginMgr() +{ + if(this == ProxyPluginMgr::instance){ + ProxyPluginMgr::instance = tsk_null; + } + TSK_OBJECT_SAFE_FREE(this->plugins); +} + +ProxyPluginMgr* ProxyPluginMgr::createInstance(ProxyPluginMgrCallback* pCallback) +{ + if(!ProxyPluginMgr::instance){ + ProxyPluginMgr::instance = new ProxyPluginMgr(pCallback); + } + else{ + TSK_DEBUG_WARN("Plugin instance already exist"); + ProxyPluginMgr::instance->callback = pCallback; + } + return ProxyPluginMgr::instance; +} + +void ProxyPluginMgr::destroyInstance(ProxyPluginMgr** ppInstance) +{ + if(ppInstance && *ppInstance){ + bool bMatch = ProxyPluginMgr::instance && (*ppInstance == ProxyPluginMgr::instance); + delete *ppInstance, *ppInstance = tsk_null; + if(bMatch){ + ProxyPluginMgr::instance = tsk_null; + } + } +} + +ProxyPluginMgr* ProxyPluginMgr::getInstance() +{ + if(!ProxyPluginMgr::instance){ + TSK_DEBUG_ERROR("No instance of the manager could be found"); + } + return ProxyPluginMgr::instance; +} + +uint64_t ProxyPluginMgr::getUniqueId() +{ + return ++__uniqueId; +} + +int ProxyPluginMgr::addPlugin(ProxyPlugin** plugin) +{ + twrap_proxy_plugin_t* twrap_plugin; + int ret = -1; + + tsk_list_lock(this->plugins); + + if(!plugin || !*plugin){ + TSK_DEBUG_ERROR("Invalid parameter"); + goto bail; + } + + if(tsk_list_find_item_by_pred(this->plugins, pred_find_plugin_by_value, *plugin)){ + TSK_DEBUG_ERROR("Plugin already exist"); + goto bail; + } + + if((twrap_plugin = twrap_proxy_plugin_create(plugin))){ + tsk_list_push_back_data(this->plugins, (void**)&twrap_plugin); + ret = 0; + } + else{ + TSK_DEBUG_ERROR("Failed to create plugin"); + goto bail; + } + +bail: + tsk_list_unlock(this->plugins); + + return ret; +} + +int ProxyPluginMgr::removePlugin(ProxyPlugin** plugin) +{ + if(!plugin || !*plugin){ + TSK_DEBUG_ERROR("Invalid parameter"); + return -1; + } + return this->removePlugin((*plugin)->getId()); +} + +const ProxyPlugin* ProxyPluginMgr::findPlugin(uint64_t id) +{ + ProxyPlugin* ret = tsk_null; + + tsk_list_item_t* item; + + tsk_list_lock(this->plugins); + tsk_list_foreach(item, this->plugins){ + if(TWRAP_PROXY_PLUGIN(item->data)->plugin->getId() == id){ + ret = TWRAP_PROXY_PLUGIN(item->data)->plugin; + break; + } + } + tsk_list_unlock(this->plugins); + + return ret; +} + +const ProxyPlugin* ProxyPluginMgr::findPlugin(tsk_object_t* wrapped_plugin) +{ + ProxyPlugin* ret = tsk_null; + + tsk_list_item_t* item; + + if(!wrapped_plugin){ + TSK_DEBUG_ERROR("Invalid parameter"); + return tsk_null; + } + + tsk_list_lock(this->plugins); + tsk_list_foreach(item, this->plugins){ + if(TWRAP_PROXY_PLUGIN(item->data)->plugin->isWrapping(wrapped_plugin)){ + ret = TWRAP_PROXY_PLUGIN(item->data)->plugin; + break; + } + } + tsk_list_unlock(this->plugins); + + return ret; +} + +int ProxyPluginMgr::removePlugin(uint64_t id) +{ + tsk_list_item_t* item; + + tsk_list_lock(this->plugins); + + tsk_list_foreach(item, this->plugins){ + if(TWRAP_PROXY_PLUGIN(item->data)->plugin->getId() == id){ + tsk_list_remove_item(this->plugins, item); + break; + } + } + + tsk_list_unlock(this->plugins); + return 0; +} + +const ProxyAudioConsumer* ProxyPluginMgr::findAudioConsumer(uint64_t id) +{ + const ProxyPlugin* audioConsumer = this->findPlugin(id); + if(audioConsumer && audioConsumer->getType() == twrap_proxy_plugin_audio_consumer){ + return dyn_cast(audioConsumer); + } + return tsk_null; +} + +const ProxyVideoConsumer* ProxyPluginMgr::findVideoConsumer(uint64_t id) +{ + const ProxyPlugin* videoConsumer = this->findPlugin(id); + if(videoConsumer && videoConsumer->getType() == twrap_proxy_plugin_video_consumer){ + return dyn_cast(videoConsumer); + } + return tsk_null; +} + +const ProxyAudioProducer* ProxyPluginMgr::findAudioProducer(uint64_t id) +{ + const ProxyPlugin* audioProducer = this->findPlugin(id); + if(audioProducer && audioProducer->getType() == twrap_proxy_plugin_audio_producer){ + return dyn_cast(audioProducer); + } + return tsk_null; +} + +const ProxyVideoProducer* ProxyPluginMgr::findVideoProducer(uint64_t id) +{ + const ProxyPlugin* videoProducer = this->findPlugin(id); + if(videoProducer && videoProducer->getType() == twrap_proxy_plugin_video_producer){ + return dyn_cast(videoProducer); + } + return tsk_null; +} + + +// +// "twrap_proxy_plugin_t" Implementations +// +static tsk_object_t* twrap_proxy_plugin_ctor(tsk_object_t * self, va_list * app) +{ + twrap_proxy_plugin_t *_self = dyn_cast(TWRAP_PROXY_PLUGIN(self)); + if(_self){ + } + return self; +} + +static tsk_object_t* twrap_proxy_plugin_dtor(tsk_object_t * self) +{ + twrap_proxy_plugin_t *_self = dyn_cast(TWRAP_PROXY_PLUGIN(self)); + if(_self){ + if(_self->plugin){ + delete _self->plugin, _self->plugin = tsk_null; + } + } + + return self; +} + +static int twrap_proxy_plugin_cmp(const tsk_object_t *_c1, const tsk_object_t *_c2) +{ + const twrap_proxy_plugin_t *c1 = dyn_cast(TWRAP_PROXY_PLUGIN(_c1)); + const twrap_proxy_plugin_t *c2 = dyn_cast(TWRAP_PROXY_PLUGIN(_c2)); + + if(c1 && c2){ + return (c1->plugin == c2->plugin); // See "ProxyPlugin::operator ==" + } + else if(!c1 && !c2) return 0; + else return -1; +} + +static const tsk_object_def_t twrap_proxy_plugin_def_s = +{ + sizeof(twrap_proxy_plugin_t), + twrap_proxy_plugin_ctor, + twrap_proxy_plugin_dtor, + twrap_proxy_plugin_cmp, +}; +const tsk_object_def_t *twrap_proxy_plugin_def_t = &twrap_proxy_plugin_def_s; + +static int pred_find_plugin_by_value(const tsk_list_item_t *item, const void *proxyPlugin) +{ + if(item && item->data){ + const twrap_proxy_plugin_t *twrap_plugin = dyn_cast(TWRAP_PROXY_PLUGIN(item->data)); + return (twrap_plugin->plugin == dyn_cast((const ProxyPlugin*)proxyPlugin)) ? 0 : -1; + } + return -1; +} + +static twrap_proxy_plugin_t* twrap_proxy_plugin_create(ProxyPlugin** plugin) +{ + if(!plugin || !*plugin){ + TSK_DEBUG_ERROR("Invalid parameter"); + return tsk_null; + } + + twrap_proxy_plugin_t* twrap_plugin = (twrap_proxy_plugin_t*)tsk_object_new(twrap_proxy_plugin_def_t); + if(!twrap_plugin){ + TSK_DEBUG_ERROR("Failed to create new instance of 'twrap_proxy_plugin_t'"); + return tsk_null; + } + + twrap_plugin->plugin = *plugin, + *plugin = tsk_null; + return twrap_plugin; +} + diff --git a/bindings/_common/ProxyPluginMgr.h b/bindings/_common/ProxyPluginMgr.h new file mode 100644 index 0000000..9644093 --- /dev/null +++ b/bindings/_common/ProxyPluginMgr.h @@ -0,0 +1,128 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_PROXY_PLUGIN_MGR_H +#define TINYWRAP_PROXY_PLUGIN_MGR_H + +#include "tinymedia.h" +#include "Common.h" + +class ProxyPlugin; +class ProxyConsumer; +class ProxyAudioConsumer; +class ProxyVideoConsumer; +class ProxyAudioProducer; +class ProxyVideoProducer; +class ProxyPluginMgrCallback; + +typedef enum twrap_proxy_plugin_type_e +{ + twrap_proxy_plugin_audio_producer, + twrap_proxy_plugin_video_producer, + twrap_proxy_plugin_audio_consumer, + twrap_proxy_plugin_video_consumer, +} +twrap_proxy_plugin_type_t; + +/* ============ ProxyPluginMgr Class ================= */ + +typedef tsk_list_t twrap_proxy_plungins_L_t; // contains "twrap_proxy_plungin_t" elements + +class ProxyPluginMgr +{ +private: + ProxyPluginMgr(ProxyPluginMgrCallback* callback); +public: + virtual ~ProxyPluginMgr(); + + // SWIG %newobject + static ProxyPluginMgr* createInstance(ProxyPluginMgrCallback* pCallback); +#if !defined(SWIG) + static void destroyInstance(ProxyPluginMgr** ppInstance); +#endif + static ProxyPluginMgr* getInstance(); + +#if !defined(SWIG) + static uint64_t getUniqueId(); + + int addPlugin(ProxyPlugin**); + const ProxyPlugin* findPlugin(tsk_object_t* wrapped_plugin); + int removePlugin(uint64_t id); + int removePlugin(ProxyPlugin**); + + inline ProxyPluginMgrCallback* getCallback(){ return this->callback; } +#endif + + const ProxyPlugin* findPlugin(uint64_t id); + + const ProxyAudioConsumer* findAudioConsumer(uint64_t id); + const ProxyVideoConsumer* findVideoConsumer(uint64_t id); + const ProxyAudioProducer* findAudioProducer(uint64_t id); + const ProxyVideoProducer* findVideoProducer(uint64_t id); + +private: + static ProxyPluginMgr* instance; + ProxyPluginMgrCallback* callback; + + twrap_proxy_plungins_L_t* plugins; +}; + + +/* ============ ProxyPluginMgrCallback Class ================= */ +class ProxyPluginMgrCallback +{ +public: + ProxyPluginMgrCallback() { } + virtual ~ProxyPluginMgrCallback() { } + + virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) { return -1; } + virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) { return -1; } +}; + +/* ============ ProxyPlugin Class ================= */ +class ProxyPlugin +{ +public: +#if !defined SWIG + ProxyPlugin(twrap_proxy_plugin_type_t _type) { + this->type=_type; + this->id = ProxyPluginMgr::getUniqueId(); + } +#endif + virtual ~ProxyPlugin() {} + +#if !defined(SWIG) + virtual bool operator ==(const ProxyPlugin &plugin)const{ + return this->getId() == plugin.getId(); + } + virtual inline bool isWrapping(tsk_object_t* wrapped_plugin) = 0; + virtual inline uint64_t getMediaSessionId() = 0; +#endif + + inline twrap_proxy_plugin_type_t getType()const{ return this->type; } + inline uint64_t getId()const{ return this->id; } + +protected: + uint64_t id; + twrap_proxy_plugin_type_t type; +}; + +#endif /* TINYWRAP_PROXY_PLUGIN_MGR_H */ diff --git a/bindings/_common/ProxyProducer.cxx b/bindings/_common/ProxyProducer.cxx new file mode 100644 index 0000000..2cdb952 --- /dev/null +++ b/bindings/_common/ProxyProducer.cxx @@ -0,0 +1,626 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +/**@file ProxyProducer.c + * @brief Audio/Video proxy producers. + * + * @author Mamadou Diop + * + + */ +#include "ProxyProducer.h" + +#include "tsk_timer.h" +#include "tsk_memory.h" +#include "tsk_debug.h" + +#include "tinydav/audio/tdav_producer_audio.h" + + +/* ============ Audio Media Producer Interface ================= */ +typedef struct twrap_producer_proxy_audio_s +{ + TDAV_DECLARE_PRODUCER_AUDIO; + + uint64_t id; + tsk_bool_t started; +} +twrap_producer_proxy_audio_t; +#define TWRAP_PRODUCER_PROXY_AUDIO(self) ((twrap_producer_proxy_audio_t*)(self)) + +static int twrap_producer_proxy_audio_set(tmedia_producer_t* _self, const tmedia_param_t* param) +{ + twrap_producer_proxy_audio_t* self = (twrap_producer_proxy_audio_t*)_self; + if(param->plugin_type == tmedia_ppt_producer){ + // specific proxy producer + } + return tdav_producer_audio_set(TDAV_PRODUCER_AUDIO(self), param); +} + +static int twrap_producer_proxy_audio_prepare(tmedia_producer_t* self, const tmedia_codec_t* codec) +{ + ProxyPluginMgr* manager; + int ret = -1; + if(codec && (manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioProducer* audioProducer; + if((audioProducer = manager->findAudioProducer(TWRAP_PRODUCER_PROXY_AUDIO(self)->id)) && audioProducer->getCallback()){ + self->audio.channels = TMEDIA_CODEC_CHANNELS_AUDIO_ENCODING(codec); + self->audio.rate = TMEDIA_CODEC_RATE_ENCODING(codec); + self->audio.ptime = TMEDIA_CODEC_PTIME_AUDIO_ENCODING(codec); + ret = audioProducer->getCallback()->prepare((int)self->audio.ptime, self->audio.rate, self->audio.channels); + } + } + return ret; +} + +static int twrap_producer_proxy_audio_start(tmedia_producer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioProducer* audioProducer; + if((audioProducer = manager->findAudioProducer(TWRAP_PRODUCER_PROXY_AUDIO(self)->id)) && audioProducer->getCallback()){ + const_cast(audioProducer)->startPushCallback(); + ret = audioProducer->getCallback()->start(); + } + } + + TWRAP_PRODUCER_PROXY_AUDIO(self)->started = (ret == 0); + return ret; +} + +static int twrap_producer_proxy_audio_pause(tmedia_producer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioProducer* audioProducer; + if((audioProducer = manager->findAudioProducer(TWRAP_PRODUCER_PROXY_AUDIO(self)->id)) && audioProducer->getCallback()){ + ret = audioProducer->getCallback()->pause(); + } + } + return ret; +} + +static int twrap_producer_proxy_audio_stop(tmedia_producer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyAudioProducer* audioProducer; + if((audioProducer = manager->findAudioProducer(TWRAP_PRODUCER_PROXY_AUDIO(self)->id)) && audioProducer->getCallback()){ + const_cast(audioProducer)->stopPushCallback(); + ret = audioProducer->getCallback()->stop(); + } + } + TWRAP_PRODUCER_PROXY_AUDIO(self)->started = (ret == 0) ? tsk_false : tsk_true; + return ret; +} + + +// +// Audio producer object definition +// +/* constructor */ +static tsk_object_t* twrap_producer_proxy_audio_ctor(tsk_object_t * self, va_list * app) +{ + twrap_producer_proxy_audio_t *producer = (twrap_producer_proxy_audio_t *)self; + if(producer){ + /* init base */ + tdav_producer_audio_init(TDAV_PRODUCER_AUDIO(producer)); + /* init self */ + + /* Add the plugin to the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + ProxyPlugin* proxyProducer = new ProxyAudioProducer(producer); + uint64_t id = proxyProducer->getId(); + manager->addPlugin(&proxyProducer); + manager->getCallback()->OnPluginCreated(id, twrap_proxy_plugin_audio_producer); + } + } + return self; +} +/* destructor */ +static tsk_object_t* twrap_producer_proxy_audio_dtor(tsk_object_t * self) +{ + twrap_producer_proxy_audio_t *producer = (twrap_producer_proxy_audio_t *)self; + if(producer){ + + /* stop */ + if(producer->started){ + twrap_producer_proxy_audio_stop(TMEDIA_PRODUCER(producer)); + } + + /* deinit base */ + tdav_producer_audio_deinit(TDAV_PRODUCER_AUDIO(producer)); + /* deinit self */ + + /* Remove plugin from the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + manager->getCallback()->OnPluginDestroyed(producer->id, twrap_proxy_plugin_audio_producer); + manager->removePlugin(producer->id); + } + } + + return self; +} +/* object definition */ +static const tsk_object_def_t twrap_producer_proxy_audio_def_s = +{ + sizeof(twrap_producer_proxy_audio_t), + twrap_producer_proxy_audio_ctor, + twrap_producer_proxy_audio_dtor, + tdav_producer_audio_cmp, +}; +/* plugin definition*/ +static const tmedia_producer_plugin_def_t twrap_producer_proxy_audio_plugin_def_s = +{ + &twrap_producer_proxy_audio_def_s, + + tmedia_audio, + "Audio Proxy Producer", + + twrap_producer_proxy_audio_set, + twrap_producer_proxy_audio_prepare, + twrap_producer_proxy_audio_start, + twrap_producer_proxy_audio_pause, + twrap_producer_proxy_audio_stop +}; + +/*TINYWRAP_GEXTERN*/ const tmedia_producer_plugin_def_t *twrap_producer_proxy_audio_plugin_def_t = &twrap_producer_proxy_audio_plugin_def_s; + + + +/* ============ ProxyAudioProducer Class ================= */ +ProxyAudioProducer::ProxyAudioProducer(twrap_producer_proxy_audio_t* pProducer) +:m_pCallback(tsk_null), m_pWrappedPlugin(pProducer), m_bUsePushCallback(false), m_hPushTimerMgr(tsk_null), ProxyPlugin(twrap_proxy_plugin_audio_producer) +{ + m_pWrappedPlugin->id = this->getId(); + m_PushBuffer.pPushBufferPtr = tsk_null; + m_PushBuffer.nPushBufferSize = 0; +} + +ProxyAudioProducer::~ProxyAudioProducer() +{ + stopPushCallback(); +} + +// Use this function to request resampling when your sound card can't honor negotaited record parameters +bool ProxyAudioProducer::setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) +{ + if(m_pWrappedPlugin){ + TSK_DEBUG_INFO("setActualSndCardRecordParams(ptime=%d, rate=%d, channels=%d)", nPtime, nRate, nChannels); + TMEDIA_PRODUCER(m_pWrappedPlugin)->audio.ptime = nPtime; + TMEDIA_PRODUCER(m_pWrappedPlugin)->audio.rate = nRate; + TMEDIA_PRODUCER(m_pWrappedPlugin)->audio.channels = nChannels; + return true; + } + else{ + TSK_DEBUG_ERROR("Invalid state"); + return false; + } +} + +bool ProxyAudioProducer::setPushBuffer(const void* pPushBufferPtr, unsigned nPushBufferSize, bool bUsePushCallback/*=false*/) +{ + m_PushBuffer.pPushBufferPtr = pPushBufferPtr; + m_PushBuffer.nPushBufferSize = nPushBufferSize; + m_bUsePushCallback = bUsePushCallback; + + if(!pPushBufferPtr || !nPushBufferSize || !bUsePushCallback){ + return stopPushCallback(); + } + else if(m_bUsePushCallback && m_pWrappedPlugin && m_pWrappedPlugin->started){ + return startPushCallback(); + } + return true; +} + +int ProxyAudioProducer::push(const void* _pBuffer/*=tsk_null*/, unsigned _nSize/*=0*/) +{ + if(m_pWrappedPlugin && TMEDIA_PRODUCER(m_pWrappedPlugin)->enc_cb.callback){ + const void* pBuffer; + unsigned nSize; + if(_pBuffer && _nSize){ + pBuffer = _pBuffer, nSize = _nSize; + } + else{ + pBuffer = m_PushBuffer.pPushBufferPtr, nSize = m_PushBuffer.nPushBufferSize; + } + return TMEDIA_PRODUCER(m_pWrappedPlugin)->enc_cb.callback(TMEDIA_PRODUCER(m_pWrappedPlugin)->enc_cb.callback_data, pBuffer, nSize); + } + return 0; +} + +bool ProxyAudioProducer::setGain(unsigned nGain) +{ + if(m_pWrappedPlugin){ + // see also: MediaSessionMgr.producerSetInt32(org.doubango.tinyWRAP.twrap_media_type_t.twrap_media_audio, "gain", nGain); + TMEDIA_PRODUCER(m_pWrappedPlugin)->audio.gain = TSK_MIN(nGain,14); + return true; + } + return false; +} + +unsigned ProxyAudioProducer::getGain() +{ + if(m_pWrappedPlugin){ + return TMEDIA_PRODUCER(m_pWrappedPlugin)->audio.gain; + } + return 0; +} + +bool ProxyAudioProducer::startPushCallback() +{ + if(!m_bUsePushCallback){ + return true; + } + + if(!m_pWrappedPlugin){ + TSK_DEBUG_ERROR("Not wrapping plugin"); + return false; + } + + if(!m_hPushTimerMgr){ + if(!(m_hPushTimerMgr = tsk_timer_manager_create())){ + TSK_DEBUG_ERROR("Failed to create timer manager"); + return false; + } + } + + if(!TSK_RUNNABLE(m_hPushTimerMgr)->started){ + if((tsk_timer_manager_start(m_hPushTimerMgr)) == 0){ + m_uPushTimer = tsk_timer_manager_schedule(m_hPushTimerMgr, TMEDIA_PRODUCER(m_pWrappedPlugin)->audio.ptime, &ProxyAudioProducer::pushTimerCallback, this); + } + else{ + TSK_DEBUG_ERROR("Failed to start timer"); + return false; + } + } + return true; +} + +bool ProxyAudioProducer::stopPushCallback() +{ + if(m_hPushTimerMgr){ + tsk_timer_manager_destroy(&m_hPushTimerMgr); + } + return true; +} + +int ProxyAudioProducer::pushTimerCallback(const void* arg, tsk_timer_id_t timer_id) +{ + ProxyAudioProducer* This = (ProxyAudioProducer*)arg; + + This->m_uPushTimer = tsk_timer_manager_schedule(This->m_hPushTimerMgr, TMEDIA_PRODUCER(This->m_pWrappedPlugin)->audio.ptime, &ProxyAudioProducer::pushTimerCallback, This); + + if(This->m_pCallback){ + if(This->m_pCallback->fillPushBuffer() == 0){ + return This->push(); + } + } + return 0; +} + +bool ProxyAudioProducer::registerPlugin() +{ + /* HACK: Unregister all other audio plugins */ + tmedia_producer_plugin_unregister_by_type(tmedia_audio); + /* Register our proxy plugin */ + return (tmedia_producer_plugin_register(twrap_producer_proxy_audio_plugin_def_t) == 0); +} + + + + + + + + + + + + + + + + + + + + + + + +/* ============ Video Media Producer Interface ================= */ +typedef struct twrap_producer_proxy_video_s +{ + TMEDIA_DECLARE_PRODUCER; + + int rotation; + uint64_t id; + tsk_bool_t started; +#if 0 + // https://code.google.com/p/doubango/issues/detail?id=416 + // The lock on the producer is useless because all tinyDAV proxied functions (push(), stop(), prepare()...) are already thread safe. + // Locking the push method while tinDAV locks the stop() function produce a deadlock on Android devices with slow video producer implementations (e.g. Hovis Box v1) + TSK_DECLARE_SAFEOBJ; +#endif +} +twrap_producer_proxy_video_t; +#define TWRAP_PRODUCER_PROXY_VIDEO(self) ((twrap_producer_proxy_video_t*)(self)) + +int twrap_producer_proxy_video_set(tmedia_producer_t* self, const tmedia_param_t* params) +{ + return 0; +} + +int twrap_producer_proxy_video_prepare(tmedia_producer_t* self, const tmedia_codec_t* codec) +{ + ProxyPluginMgr* manager; + int ret = -1; + if(codec && (manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoProducer* videoProducer; + if((videoProducer = manager->findVideoProducer(TWRAP_PRODUCER_PROXY_VIDEO(self)->id)) && videoProducer->getCallback()){ + self->video.chroma = videoProducer->getChroma(); + self->video.rotation = videoProducer->getRotation(); + ret = videoProducer->getCallback()->prepare(TMEDIA_CODEC_VIDEO(codec)->out.width, TMEDIA_CODEC_VIDEO(codec)->out.height, TMEDIA_CODEC_VIDEO(codec)->out.fps); + } + } + + return ret; +} + +int twrap_producer_proxy_video_start(tmedia_producer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoProducer* videoProducer; + if((videoProducer = manager->findVideoProducer(TWRAP_PRODUCER_PROXY_VIDEO(self)->id)) && videoProducer->getCallback()){ + ret = videoProducer->getCallback()->start(); + TWRAP_PRODUCER_PROXY_VIDEO(self)->started = (ret == 0); + } + } + + return ret; +} + +int twrap_producer_proxy_video_pause(tmedia_producer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoProducer* videoProducer; + if((videoProducer = manager->findVideoProducer(TWRAP_PRODUCER_PROXY_VIDEO(self)->id)) && videoProducer->getCallback()){ + ret = videoProducer->getCallback()->pause(); + } + } + + return ret; +} + +int twrap_producer_proxy_video_stop(tmedia_producer_t* self) +{ + ProxyPluginMgr* manager; + int ret = -1; + if((manager = ProxyPluginMgr::getInstance())){ + const ProxyVideoProducer* videoProducer; + if((videoProducer = manager->findVideoProducer(TWRAP_PRODUCER_PROXY_VIDEO(self)->id)) && videoProducer->getCallback()){ + ret = videoProducer->getCallback()->stop(); + TWRAP_PRODUCER_PROXY_VIDEO(self)->started = ((ret == 0) ? tsk_false : tsk_true); + } + } + + return ret; +} + + +// +// Video producer object definition +// +/* constructor */ +static tsk_object_t* twrap_producer_proxy_video_ctor(tsk_object_t * self, va_list * app) +{ + twrap_producer_proxy_video_t *producer = (twrap_producer_proxy_video_t *)self; + if(producer){ + /* init base */ + tmedia_producer_init(TMEDIA_PRODUCER(producer)); + /* init self */ + + /* Add the plugin to the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + ProxyPlugin* proxyProducer = new ProxyVideoProducer(ProxyVideoProducer::getDefaultChroma(), producer); + uint64_t id = proxyProducer->getId(); + manager->addPlugin(&proxyProducer); + manager->getCallback()->OnPluginCreated(id, twrap_proxy_plugin_video_producer); + } + } + return self; +} +/* destructor */ +static tsk_object_t* twrap_producer_proxy_video_dtor(tsk_object_t * self) +{ + twrap_producer_proxy_video_t *producer = (twrap_producer_proxy_video_t *)self; + if(producer){ + TSK_DEBUG_INFO("twrap_producer_proxy_video_dtor()"); + /* stop */ + if(producer->started){ + twrap_producer_proxy_video_stop(TMEDIA_PRODUCER(producer)); + } + + /* deinit base */ + tmedia_producer_deinit(TMEDIA_PRODUCER(producer)); + /* deinit self */ + + /* Remove plugin from the manager */ + ProxyPluginMgr* manager = ProxyPluginMgr::getInstance(); + if(manager){ + manager->getCallback()->OnPluginDestroyed(producer->id, twrap_proxy_plugin_video_producer); + manager->removePlugin(producer->id); + } + } + + return self; +} +/* object definition */ +static const tsk_object_def_t twrap_producer_proxy_video_def_s = +{ + sizeof(twrap_producer_proxy_video_t), + twrap_producer_proxy_video_ctor, + twrap_producer_proxy_video_dtor, + tsk_null, +}; +/* plugin definition*/ +static const tmedia_producer_plugin_def_t twrap_producer_proxy_video_plugin_def_s = +{ + &twrap_producer_proxy_video_def_s, + + tmedia_video, + "Video Proxy Producer", + + twrap_producer_proxy_video_set, + twrap_producer_proxy_video_prepare, + twrap_producer_proxy_video_start, + twrap_producer_proxy_video_pause, + twrap_producer_proxy_video_stop +}; + +/*TINYWRAP_GEXTERN*/ const tmedia_producer_plugin_def_t *twrap_producer_proxy_video_plugin_def_t = &twrap_producer_proxy_video_plugin_def_s; + + + +/* ============ ProxyVideoProducer Class ================= */ +tmedia_chroma_t ProxyVideoProducer::s_eDefaultChroma = tmedia_chroma_nv21; + +ProxyVideoProducer::ProxyVideoProducer(tmedia_chroma_t eChroma, struct twrap_producer_proxy_video_s* pProducer) +:m_pCallback(tsk_null), m_eChroma(eChroma), m_nRotation(0), m_bMirror(false), m_pWrappedPlugin(pProducer), ProxyPlugin(twrap_proxy_plugin_video_producer) +{ + if(m_pWrappedPlugin){ + m_pWrappedPlugin->id = this->getId(); + } +} + +ProxyVideoProducer::~ProxyVideoProducer() +{ + TSK_DEBUG_INFO("~ProxyVideoProducer"); +} + +int ProxyVideoProducer::getRotation()const +{ + return m_nRotation; +} + +bool ProxyVideoProducer::setRotation(int nRot) +{ + m_nRotation = nRot; + if (m_pWrappedPlugin) { + TMEDIA_PRODUCER(m_pWrappedPlugin)->video.rotation = m_nRotation; + return true; + } + return false; +} + +bool ProxyVideoProducer::getMirror()const +{ + return m_bMirror; +} + +bool ProxyVideoProducer::setMirror(bool bMirror) +{ + m_bMirror = bMirror; + if (m_pWrappedPlugin) { + TMEDIA_PRODUCER(m_pWrappedPlugin)->video.mirror = m_bMirror ? tsk_true : tsk_false; + return true; + } + return false; +} + +// alert the encoder which size your camera is using because it's very hard to retrieve it from send(buffer, size) function +// this function is only needed if the actual size (output from your camera) is different than the negociated one +bool ProxyVideoProducer::setActualCameraOutputSize(unsigned nWidth, unsigned nHeight) +{ + if(m_pWrappedPlugin){ + TMEDIA_PRODUCER(m_pWrappedPlugin)->video.width = nWidth; + TMEDIA_PRODUCER(m_pWrappedPlugin)->video.height = nHeight; + return true; + } + return false; +} + +// encode() then send() +int ProxyVideoProducer::push(const void* pBuffer, unsigned nSize) +{ + if (m_pWrappedPlugin && TMEDIA_PRODUCER(m_pWrappedPlugin)->enc_cb.callback) { + int ret = -1; + if (m_pWrappedPlugin->started) { + ret = TMEDIA_PRODUCER(m_pWrappedPlugin)->enc_cb.callback(TMEDIA_PRODUCER(m_pWrappedPlugin)->enc_cb.callback_data, pBuffer, nSize); + } + return ret; + } + return 0; +} + +// send() "as is" +// only used by telepresence system with a H.264 SVC hardaware encoder +int ProxyVideoProducer::sendRaw(const void* pBuffer, unsigned nSize, unsigned nDuration, bool bMarker) +{ + if(m_pWrappedPlugin && TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.callback){ + //tmedia_video_encode_result_reset(&TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr); + + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.buffer.ptr = pBuffer; + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.buffer.size = nSize; + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.duration = nDuration; + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.last_chunck = (bMarker == true); + return TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.callback(&TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr); + } + return 0; +} + +int ProxyVideoProducer::sendRaw(const void* pBuffer, unsigned nSize, const void* proto_hdr) +{ + if(m_pWrappedPlugin && TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.callback){ + //tmedia_video_encode_result_reset(&TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr); + + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.buffer.ptr = pBuffer; + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.buffer.size = nSize; + TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr.proto_hdr = proto_hdr; + return TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.callback(&TMEDIA_PRODUCER(m_pWrappedPlugin)->raw_cb.chunck_curr); + } + return 0; +} + +tmedia_chroma_t ProxyVideoProducer::getChroma()const +{ + return m_eChroma; +} + +bool ProxyVideoProducer::registerPlugin() +{ + /* HACK: Unregister all other video plugins */ + tmedia_producer_plugin_unregister_by_type(tmedia_video); + /* Register our proxy plugin */ + return (tmedia_producer_plugin_register(twrap_producer_proxy_video_plugin_def_t) == 0); +} diff --git a/bindings/_common/ProxyProducer.h b/bindings/_common/ProxyProducer.h new file mode 100644 index 0000000..83ed673 --- /dev/null +++ b/bindings/_common/ProxyProducer.h @@ -0,0 +1,168 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +/**@file ProxyProducer.h + * @brief Audio/Video proxy consumers. + * + * @author Mamadou Diop + * + + */ +#ifndef TINYWRAP_PRODUCER_PROXY_H +#define TINYWRAP_PRODUCER_PROXY_H + +#include "tinyWRAP_config.h" + +#include "ProxyPluginMgr.h" + +#include "tinymedia/tmedia_common.h" +#include "tinymedia/tmedia_producer.h" + +/* ============ ProxyAudioProducerCallback Class ================= */ +class ProxyAudioProducerCallback +{ +public: + ProxyAudioProducerCallback() { } + virtual ~ProxyAudioProducerCallback(){ } + + virtual int prepare(int ptime, int rate, int channels) { return -1; } + virtual int start() { return -1; } + virtual int pause() { return -1; } + virtual int stop() { return -1; } + // this function is called to signal that it's time to copy push data + virtual int fillPushBuffer(){ return -1; } +}; + + +/* ============ ProxyAudioProducer Class ================= */ +class ProxyAudioProducer : public ProxyPlugin +{ +public: +#if !defined(SWIG) + ProxyAudioProducer(struct twrap_producer_proxy_audio_s* pProducer); +#endif + virtual ~ProxyAudioProducer(); + + bool setActualSndCardRecordParams(int nPtime, int nRate, int nChannels); + bool setPushBuffer(const void* pPushBufferPtr, unsigned nPushBufferSize, bool bUsePushCallback=false); + int push(const void* pBuffer=tsk_null, unsigned nSize=0); + bool setGain(unsigned nGain); + unsigned getGain(); + void setCallback(ProxyAudioProducerCallback* pCallback) { m_pCallback = pCallback; } +#if !defined(SWIG) + inline bool usePushCallback(){ return m_bUsePushCallback; } + inline ProxyAudioProducerCallback* getCallback()const { return m_pCallback; } + virtual inline bool isWrapping(tsk_object_t* pWrappedPlugin){ + return m_pWrappedPlugin == pWrappedPlugin; + } +#endif + virtual inline uint64_t getMediaSessionId(){ + return m_pWrappedPlugin ? TMEDIA_PRODUCER(m_pWrappedPlugin)->session_id : 0; + } + +#if !defined(SWIG) +public: + bool startPushCallback(); + bool stopPushCallback(); +private: + static int pushTimerCallback(const void* arg, tsk_timer_id_t timer_id); +#endif + +public: + static bool registerPlugin(); + +private: + struct twrap_producer_proxy_audio_s* m_pWrappedPlugin; + ProxyAudioProducerCallback* m_pCallback; + struct{ + const void* pPushBufferPtr; + unsigned nPushBufferSize; + } m_PushBuffer; + bool m_bUsePushCallback; + void* m_hPushTimerMgr; + uint64_t m_uPushTimer; +}; + +/* ============ ProxyVideoProducerCallback Class ================= */ +class ProxyVideoProducerCallback +{ +public: + ProxyVideoProducerCallback() { } + virtual ~ProxyVideoProducerCallback(){ } + + virtual int prepare(int width, int height, int fps) { return -1; } + virtual int start() { return -1; } + virtual int pause() { return -1; } + virtual int stop() { return -1; } +}; + +/* ============ ProxyVideoProducer Class ================= */ +class ProxyVideoProducer : public ProxyPlugin +{ +public: +#if !defined(SWIG) + ProxyVideoProducer(tmedia_chroma_t eChroma, struct twrap_producer_proxy_video_s* pProducer); +#endif + virtual ~ProxyVideoProducer(); + + int getRotation()const; + bool setRotation(int nRot); + bool getMirror()const; + bool setMirror(bool bMirror); + bool setActualCameraOutputSize(unsigned nWidth, unsigned nHeight); + int push(const void* pBuffer, unsigned nSize); + void setCallback(ProxyVideoProducerCallback* pCallback) { m_pCallback = pCallback; } +#if !defined(SWIG) + int sendRaw(const void* pBuffer, unsigned nSize, unsigned nDuration, bool bMarker); + int sendRaw(const void* pBuffer, unsigned nSize, const void* proto_hdr); + inline ProxyVideoProducerCallback* getCallback()const { return m_pCallback; } + virtual inline bool isWrapping(tsk_object_t* wrapped_plugin){ + return m_pWrappedPlugin == wrapped_plugin; + } + virtual inline const tmedia_producer_t* getWrappedPlugin()const{ + return (tmedia_producer_t*)m_pWrappedPlugin; + } +#endif + virtual inline uint64_t getMediaSessionId(){ + return m_pWrappedPlugin ? TMEDIA_PRODUCER(m_pWrappedPlugin)->session_id : 0; + } + +public: + static bool registerPlugin(); + static void setDefaultChroma(tmedia_chroma_t eChroma){ s_eDefaultChroma = eChroma; } + +#if !defined(SWIG) + tmedia_chroma_t getChroma()const; + static tmedia_chroma_t getDefaultChroma() { return s_eDefaultChroma; } +#endif + +private: + struct twrap_producer_proxy_video_s* m_pWrappedPlugin; + ProxyVideoProducerCallback* m_pCallback; + tmedia_chroma_t m_eChroma; + int m_nRotation; + bool m_bMirror; + + static tmedia_chroma_t s_eDefaultChroma; +}; + +#endif /* TINYWRAP_PRODUCER_PROXY_H */ diff --git a/bindings/_common/SMS.i b/bindings/_common/SMS.i new file mode 100644 index 0000000..82e8709 --- /dev/null +++ b/bindings/_common/SMS.i @@ -0,0 +1,7 @@ +%{ +#include "SMSEncoder.h" +%} + +%nodefaultctor; +%include "SMSEncoder.h" +%clearnodefaultctor; \ No newline at end of file diff --git a/bindings/_common/SMSEncoder.cxx b/bindings/_common/SMSEncoder.cxx new file mode 100644 index 0000000..7fc24cd --- /dev/null +++ b/bindings/_common/SMSEncoder.cxx @@ -0,0 +1,376 @@ +/* +* Copyright (C) 2009 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SMSEncoder.h" + +// Short description: http://betelco.blogspot.com/2009/10/sms-over-3gpp-ims-network.html + + +RPMessage::RPMessage(twrap_rpmessage_type_t _type, tsms_rpdu_message_t* _rp_message) +{ + this->rp_message = (tsms_rpdu_message_t*)tsk_object_ref(_rp_message); + this->type = _type; + this->tmpBuffer = tsk_null; +} + +RPMessage::RPMessage() : + rp_message(tsk_null), + type(twrap_rpmessage_type_sms_none), + tmpBuffer(tsk_null) +{ +} + +twrap_rpmessage_type_t RPMessage::getType() +{ + return this->type; +} + +unsigned RPMessage::getPayloadLength() +{ + if(!this->tmpBuffer){ + if((this->tmpBuffer = tsk_buffer_create_null())){ + tsms_rpdu_data_serialize(this->rp_message, this->tmpBuffer); + } + } + return this->tmpBuffer ? this->tmpBuffer->size : 0; +} + +unsigned RPMessage::getPayload(void* output, unsigned maxsize) +{ + unsigned retsize = 0; + + if(!this->tmpBuffer){ + if((this->tmpBuffer = tsk_buffer_create_null())){ + tsms_rpdu_message_serialize(this->rp_message, this->tmpBuffer); + } + } + + if(output && maxsize && this->tmpBuffer && this->tmpBuffer->data){ + retsize = (this->tmpBuffer->size > maxsize) ? maxsize : this->tmpBuffer->size; + memcpy(output, this->tmpBuffer->data, retsize); + } + return retsize; +} + +RPMessage::~RPMessage() +{ + TSK_OBJECT_SAFE_FREE(this->rp_message); + TSK_OBJECT_SAFE_FREE(this->tmpBuffer); +} + + +SMSData::SMSData(twrap_sms_type_t _type, int _mr, const void* _ascii, tsk_size_t _size): oa(tsk_null), da(tsk_null) +{ + this->type = _type; + this->mr = _mr; + if((this->size = _size)){ + if((this->ascii = tsk_calloc(size+1, 1))){ + memcpy(this->ascii, _ascii, _size); + } + } + else{ + this->ascii = tsk_null; + } +} + +SMSData::SMSData(): oa(tsk_null), da(tsk_null) +{ + this->type = twrap_sms_type_none; + this->mr = 0; + this->size = 0; + this->ascii = tsk_null; +} + +SMSData::~SMSData() +{ + TSK_FREE(this->ascii); + TSK_FREE(this->oa); + TSK_FREE(this->da); +} + +twrap_sms_type_t SMSData::getType() +{ + return this->type; +} + +int SMSData::getMR() +{ + return this->mr; +} + +unsigned SMSData::getPayloadLength() +{ + return this->size; +} + +unsigned SMSData::getPayload(void* output, unsigned maxsize) +{ + unsigned retsize = 0; + + if(output && maxsize && this->ascii){ + retsize = (this->size > maxsize) ? maxsize : this->size; + memcpy(output, this->ascii, retsize); + } + return retsize; +} + +const char* SMSData::getOA() +{ + return this->oa; +} + +const char* SMSData::getDA() +{ + return this->da; +} + +void SMSData::setOA(const char* _oa) +{ + TSK_FREE(this->oa); + this->oa = tsk_strdup(_oa); +} + +void SMSData::setDA(const char* _da) +{ + TSK_FREE(this->da); + this->da = tsk_strdup(_da); +} + + +// More information about RP-DATA: http://www.doubango.org/API/tinySMS/group__tsms__rpdu__group.html#tsms_rpdu_group_DATA +RPMessage* SMSEncoder::encodeSubmit(int mr, const char *smsc, const char *destination, const char *ascii) +{ + int ret; + tsk_buffer_t* buffer = tsk_null; + tsms_tpdu_submit_t* sms_submit = tsk_null; + tsms_rpdu_data_t* rp_data = tsk_null; + + RPMessage* encodedData = tsk_null; + + if(!smsc || ! destination || !ascii){ + TSK_DEBUG_ERROR("Invalid parameter"); + return tsk_null; + } + + if(mr<0 || mr>0xFF){ + TSK_DEBUG_WARN("Invalid Message Reference"); + mr &= 0xFF; + } + + // create SMS-SUBMIT message + if(!(sms_submit = tsms_tpdu_submit_create(mr, (const uint8_t*)smsc, (const uint8_t*)destination))){ + TSK_DEBUG_ERROR("Failed to create the TPDU SMS-SUBMIT message"); + goto bail; + } + // Set content for SMS-SUBMIT + if((buffer = tsms_pack_to_7bit(ascii))){ + ret = tsms_tpdu_submit_set_userdata(sms_submit, buffer, tsms_alpha_7bit); + TSK_OBJECT_SAFE_FREE(buffer); + } + else{ + TSK_DEBUG_ERROR("Failed to encode the TPDU SMS-SUBMIT message"); + goto bail; + } + + // create RP-DATA(SMS-SUBMIT) + if((rp_data = tsms_rpdu_data_create_mo(mr, (const uint8_t*)smsc, TSMS_TPDU_MESSAGE(sms_submit)))){ + encodedData = new RPMessage(twrap_rpmessage_type_sms_submit, TSMS_RPDU_MESSAGE(rp_data)); + } + else{ + TSK_DEBUG_ERROR("Failed to create the RP-DATA(SMS-SUBMIT) message"); + goto bail; + } + +bail: + TSK_OBJECT_SAFE_FREE(buffer); + TSK_OBJECT_SAFE_FREE(sms_submit); + TSK_OBJECT_SAFE_FREE(rp_data); + + return encodedData; +} + +// More information about RP-DATA: http://www.doubango.org/API/tinySMS/group__tsms__rpdu__group.html#tsms_rpdu_group_DATA +RPMessage* SMSEncoder::encodeDeliver(int mr, const char* smsc, const char* originator, const char* ascii) +{ + int ret; + tsk_buffer_t* buffer = tsk_null; + tsms_tpdu_deliver_t* sms_deliver = tsk_null; + tsms_rpdu_data_t* rp_data = tsk_null; + + RPMessage* encodedData = tsk_null; + + if(!smsc || ! originator || !ascii){ + TSK_DEBUG_ERROR("Invalid parameter"); + return tsk_null; + } + + if(mr<0 || mr>0xFF){ + TSK_DEBUG_WARN("Invalid Message Reference"); + mr &= 0xFF; + } + + // create SMS-DELIVER message + sms_deliver = tsms_tpdu_deliver_create((const uint8_t*)smsc, (const uint8_t*)originator); + // Set content for SMS-DELIVER + if((buffer = tsms_pack_to_7bit(ascii))){ + ret = tsms_tpdu_deliver_set_userdata(sms_deliver, buffer, tsms_alpha_7bit); + TSK_OBJECT_SAFE_FREE(buffer); + } + // create RP-DATA message + if((rp_data = tsms_rpdu_data_create_mt(mr, (const uint8_t*)smsc, TSMS_TPDU_MESSAGE(sms_deliver)))){ + encodedData = new RPMessage(twrap_rpmessage_type_sms_deliver, TSMS_RPDU_MESSAGE(rp_data)); + } + else{ + TSK_DEBUG_ERROR("Failed to create the RP-DATA(SMS-DELIVER) message"); + goto bail; + } + +bail: + TSK_OBJECT_SAFE_FREE(buffer); + TSK_OBJECT_SAFE_FREE(sms_deliver); + TSK_OBJECT_SAFE_FREE(rp_data); + + return encodedData; +} + +RPMessage* SMSEncoder::encodeACK(int mr, const char* smsc, const char* destination, bool forSUBMIT) +{ + tsms_tpdu_report_t* sms_report = tsk_null; + tsms_rpdu_ack_t* rp_ack = tsk_null; + tsk_bool_t isSUBMIT = forSUBMIT ? tsk_true : tsk_false; + tsk_bool_t isERROR = tsk_false; + + RPMessage* encodedData = tsk_null; + + // create SMS-DELIVER(or SUBMIT)-REPORT message + sms_report = tsms_tpdu_report_create((const uint8_t*)smsc, isSUBMIT, isERROR); + // create RP-ACK message (From MS to SC) + if((rp_ack = tsms_rpdu_ack_create_mo(mr, TSMS_TPDU_MESSAGE(sms_report)))){ + encodedData = new RPMessage(twrap_rpmessage_type_sms_ack, TSMS_RPDU_MESSAGE(rp_ack)); + } + + TSK_OBJECT_SAFE_FREE(sms_report); + TSK_OBJECT_SAFE_FREE(rp_ack); + + return encodedData; +} + +RPMessage* SMSEncoder::encodeError(int mr, const char* smsc, const char* destination, bool forSUBMIT) +{ + tsms_tpdu_report_t* sms_report = tsk_null; + tsms_rpdu_error_t* rp_error= tsk_null; + tsk_bool_t isSUBMIT = forSUBMIT ? tsk_true : tsk_false; + tsk_bool_t isERROR = tsk_true; + + RPMessage* encodedData = tsk_null; + + // create SMS-DELIVER-REPORT message + sms_report = tsms_tpdu_report_create((const uint8_t*)smsc, isSUBMIT, isERROR); + // create RP-ERROR message + if((rp_error = tsms_rpdu_error_create_mo(mr, TSMS_TPDU_MESSAGE(sms_report), 0x0A/*call barred*/))){ + encodedData = new RPMessage(twrap_rpmessage_type_sms_error, TSMS_RPDU_MESSAGE(rp_error)); + } + + TSK_OBJECT_SAFE_FREE(sms_report); + TSK_OBJECT_SAFE_FREE(rp_error); + + return encodedData; +} + +SMSData* SMSEncoder::decode(const void* data, unsigned size, bool MobOrig) +{ + tsms_rpdu_message_t* rp_message = tsk_null; + tsms_tpdu_message_t* tpdu = tsk_null; + + SMSData* decodedData = tsk_null; + + if(!(rp_message = tsms_rpdu_message_deserialize(data, size))){ + TSK_DEBUG_ERROR("Failed to deserialize the RP-MESSAGE"); + goto bail; + } + + switch(rp_message->mti){ + case tsms_rpdu_type_data_mo: + case tsms_rpdu_type_data_mt: + { + char* ascii = tsk_null; + tsms_rpdu_data_t* rp_data = TSMS_RPDU_DATA(rp_message); + if((tpdu = tsms_tpdu_message_deserialize(rp_data->udata->data, rp_data->udata->size, MobOrig))){ + if(tpdu->mti == tsms_tpdu_mti_deliver_mt || tpdu->mti == tsms_tpdu_mti_submit_mo){ /* SMS-SUBMIT or SMS-DELIVER? */ + ascii = tsms_tpdu_message_get_payload(tpdu); + decodedData = new SMSData(twrap_sms_type_rpdata, rp_message->mr, ascii, (tsk_size_t)tsk_strlen(ascii)); + + if(tpdu->mti == tsms_tpdu_mti_deliver_mt){ + tsms_tpdu_deliver_t* tpdu_deliver = (tsms_tpdu_deliver_t*)tpdu; + decodedData->setOA(tpdu_deliver->oa ? tpdu_deliver->oa->digits : tsk_null); + } + /* IMPORTANT: to not uncomment + else if(TSK_OBJECT_DEF(tpdu) == tsms_tpdu_submit_def_t){ + tsms_tpdu_submit_t* tpdu_submit = (tsms_tpdu_submit_t*)tpdu; + decodedData->setDA(tpdu_submit->da ? tpdu_submit->da->digits : tsk_null); + }*/ + TSK_FREE(ascii); + } + } + break; + } + case tsms_rpdu_type_ack_mo: + case tsms_rpdu_type_ack_mt: + { + tsms_rpdu_ack_t* rp_ack = TSMS_RPDU_ACK(rp_message); + // ...do whatever you want + if(rp_ack->udata && (tpdu = tsms_tpdu_message_deserialize(rp_ack->udata->data, rp_ack->udata->size, MobOrig))){ + // ...do whatever you want + } + decodedData = new SMSData(twrap_sms_type_ack, rp_message->mr, tsk_null, 0); + break; + } + case tsms_rpdu_type_error_mo: + case tsms_rpdu_type_error_mt: + { + tsms_rpdu_error_t* rp_error = TSMS_RPDU_ERROR(rp_message); + // ...do whatever you want + if(rp_error->udata && (tpdu = tsms_tpdu_message_deserialize(rp_error->udata->data, rp_error->udata->size, MobOrig))){ + // ...do whatever you want + } + decodedData = new SMSData(twrap_sms_type_error, rp_message->mr, tsk_null, 0); + break; + } + case tsms_rpdu_type_smma_mo: + { + // tsms_rpdu_smma_t* rp_smma = TSMS_RPDU_SMMA(rp_message); + // ...do whatever you want + decodedData = new SMSData(twrap_sms_type_smma, rp_message->mr, tsk_null, 0); + break; + } + default: + { + TSK_DEBUG_INFO("Unknown RP-Message type (%u).", rp_message->mti); + break; + } + } + +bail: + TSK_OBJECT_SAFE_FREE(rp_message); + TSK_OBJECT_SAFE_FREE(tpdu); + + return decodedData; +} \ No newline at end of file diff --git a/bindings/_common/SMSEncoder.h b/bindings/_common/SMSEncoder.h new file mode 100644 index 0000000..597f978 --- /dev/null +++ b/bindings/_common/SMSEncoder.h @@ -0,0 +1,115 @@ +/* +* Copyright (C) 2009 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SMSENCODER_H +#define TINYWRAP_SMSENCODER_H + +#include "tinyWRAP_config.h" + +#include "tinysip.h" /* SIP/IMS */ +#include "tinysms.h" /* Binary SMS API*/ + +typedef enum twrap_rpmessage_type_e +{ + twrap_rpmessage_type_sms_none, + twrap_rpmessage_type_sms_submit, + twrap_rpmessage_type_sms_deliver, + twrap_rpmessage_type_sms_ack, + twrap_rpmessage_type_sms_error, +} +twrap_rpmessage_type_t; + +typedef enum twrap_sms_type_e +{ + twrap_sms_type_none, + twrap_sms_type_rpdata, + twrap_sms_type_smma, + twrap_sms_type_ack, + twrap_sms_type_error, +} +twrap_sms_type_t; + +class RPMessage +{ +public: +#if !defined(SWIG) + RPMessage(twrap_rpmessage_type_t type, tsms_rpdu_message_t* rp_message); +#endif + RPMessage(); + + virtual ~RPMessage(); + +public: + /* Public API functions */ + twrap_rpmessage_type_t getType(); + unsigned getPayloadLength(); + unsigned getPayload(void* output, unsigned maxsize); + +private: + twrap_rpmessage_type_t type; + tsms_rpdu_message_t* rp_message; + + tsk_buffer_t* tmpBuffer; +}; + +class SMSData +{ +public: +#if !defined(SWIG) + SMSData(twrap_sms_type_t type, int mr, const void* ascii, tsk_size_t size); +#endif + SMSData(); + + virtual ~SMSData(); + +public: + /* Public API functions */ + twrap_sms_type_t getType(); + int getMR(); + unsigned getPayloadLength(); + unsigned getPayload(void* output, unsigned maxsize); + const char* getOA(); + const char* getDA(); +#if !defined(SWIG) + void setOA(const char* oa); + void setDA(const char* da); +#endif + +private: + twrap_sms_type_t type; + int mr; + void* ascii; + char* oa; + char* da; + tsk_size_t size; +}; + +class SMSEncoder +{ +public: + static RPMessage* encodeSubmit(int mr, const char* smsc, const char* destination, const char* ascii); + static RPMessage* encodeDeliver(int mr, const char* smsc, const char* originator, const char* ascii); + static RPMessage* encodeACK(int mr, const char* smsc, const char* destination, bool forSUBMIT); + static RPMessage* encodeError(int mr, const char* smsc, const char* destination, bool forSUBMIT); + static SMSData* decode(const void* data, unsigned size, bool MobOrig); +}; + +#endif /* TINYWRAP_SMSENCODER_H */ diff --git a/bindings/_common/SafeObject.cxx b/bindings/_common/SafeObject.cxx new file mode 100644 index 0000000..9d51696 --- /dev/null +++ b/bindings/_common/SafeObject.cxx @@ -0,0 +1,42 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SafeObject.h" + +SafeObject::SafeObject() +{ + this->mutex = tsk_mutex_create(); +} + +int SafeObject::Lock()const +{ + return tsk_mutex_lock(this->mutex); +} + +int SafeObject::UnLock()const +{ + return tsk_mutex_unlock(this->mutex); +} + +SafeObject::~SafeObject() +{ + tsk_mutex_destroy(&this->mutex); +} diff --git a/bindings/_common/SafeObject.h b/bindings/_common/SafeObject.h new file mode 100644 index 0000000..1b4e6bd --- /dev/null +++ b/bindings/_common/SafeObject.h @@ -0,0 +1,43 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SAFEOBJECT_H +#define TINYWRAP_SAFEOBJECT_H + +#include "tinyWRAP_config.h" + +#include "tsk_mutex.h" + +class TINYWRAP_API SafeObject +{ +public: + SafeObject(); + virtual ~SafeObject(); + +/* protected: */ + int Lock()const; + int UnLock()const; + +private: + tsk_mutex_handle_t *mutex; +}; + +#endif /* TINYWRAP_SAFEOBJECT_H */ diff --git a/bindings/_common/SipCallback.cxx b/bindings/_common/SipCallback.cxx new file mode 100644 index 0000000..995327e --- /dev/null +++ b/bindings/_common/SipCallback.cxx @@ -0,0 +1,31 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SipCallback.h" + + + + + + + + + diff --git a/bindings/_common/SipCallback.h b/bindings/_common/SipCallback.h new file mode 100644 index 0000000..f7e1b98 --- /dev/null +++ b/bindings/_common/SipCallback.h @@ -0,0 +1,56 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIPCALLBACK_H +#define TINYWRAP_SIPCALLBACK_H + +class DialogEvent; +class StackEvent; + +class InviteEvent; +class MessagingEvent; +class InfoEvent; +class OptionsEvent; +class PublicationEvent; +class RegistrationEvent; +class SubscriptionEvent; + +class SipCallback +{ +public: + SipCallback() { } + virtual ~SipCallback() {} + virtual int OnDialogEvent(const DialogEvent* e) { return -1; } + virtual int OnStackEvent(const StackEvent* e) { return -1; } + + virtual int OnInviteEvent(const InviteEvent* e) { return -1; } + virtual int OnMessagingEvent(const MessagingEvent* e) { return -1; } + virtual int OnInfoEvent(const InfoEvent* e) { return -1; } + virtual int OnOptionsEvent(const OptionsEvent* e) { return -1; } + virtual int OnPublicationEvent(const PublicationEvent* e) { return -1; } + virtual int OnRegistrationEvent(const RegistrationEvent* e) { return -1; } + virtual int OnSubscriptionEvent(const SubscriptionEvent* e) { return -1; } + +private: + +}; + +#endif /* TINYWRAP_SIPCALLBACK_H */ diff --git a/bindings/_common/SipEvent.cxx b/bindings/_common/SipEvent.cxx new file mode 100644 index 0000000..3518f4a --- /dev/null +++ b/bindings/_common/SipEvent.cxx @@ -0,0 +1,284 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SipEvent.h" +#include "SipSession.h" +#include "SipMessage.h" + +#include "SipStack.h" + + +#define takeOwnership_Implement(cls, name, session) \ +name##Session* cls##Event::take##session##Ownership() const \ +{ \ + if(this->sipevent && this->sipevent->ss /*&& !tsip_ssession_have_ownership(this->sipevent->ss)*/){ \ + SipStack* stack = this->getStack(); \ + if(stack){ \ + /* The constructor will call take_ownerhip() */ \ + return new name##Session(stack, this->sipevent->ss); \ + } \ + } \ + return tsk_null; \ +} \ + +/* ======================== SipEvent ========================*/ +SipEvent::SipEvent(const tsip_event_t *_sipevent) +{ + this->sipevent = _sipevent; + if(_sipevent){ + this->sipmessage = new SipMessage(_sipevent->sipmessage); + } + else{ + this->sipmessage = tsk_null; + } +} + +SipEvent::~SipEvent() +{ + if(this->sipmessage){ + delete this->sipmessage; + } +} + +short SipEvent::getCode() const +{ + return this->sipevent->code; +} + +const char* SipEvent::getPhrase() const +{ + return this->sipevent->phrase; +} + +const SipSession* SipEvent::getBaseSession() const +{ + const void* userdata = tsip_ssession_get_userdata(this->sipevent->ss); + if(userdata){ + return dyn_cast((const SipSession*)userdata); + } + return tsk_null; +} + +const SipMessage* SipEvent::getSipMessage() const +{ + return this->sipmessage; +} + +SipStack* SipEvent::getStack()const +{ + const tsip_stack_handle_t* stack_handle = tsip_ssession_get_stack(sipevent->ss); + const void* userdata; + if(stack_handle && (userdata = tsip_stack_get_userdata(stack_handle))){ + return dyn_cast((SipStack*)userdata); + } + return tsk_null; +} + + +/* ======================== DialogEvent ========================*/ +DialogEvent::DialogEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent){ } + +DialogEvent::~DialogEvent(){ } + + +/* ======================== DialogEvent ========================*/ +StackEvent::StackEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent){ } + +StackEvent::~StackEvent(){ } + + +/* ======================== InviteEvent ========================*/ +InviteEvent::InviteEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent) +{ +} + +InviteEvent::~InviteEvent() +{ +} + +tsip_invite_event_type_t InviteEvent::getType() const +{ + return TSIP_INVITE_EVENT(this->sipevent)->type; +} + +twrap_media_type_t InviteEvent::getMediaType() const +{ + // Ignore Mixed session (both audio/video and MSRP) as specified by GSMA RCS. + if (this->sipevent && this->sipevent->ss) { + tmedia_type_t type = tsip_ssession_get_mediatype(this->sipevent->ss); + if ((type & tmedia_msrp) == tmedia_msrp) { + return twrap_media_msrp; + } + else { + return twrap_get_wrapped_media_type(type); + } + } + return twrap_media_none; +} + +const InviteSession* InviteEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Invite, Call, CallSession); +takeOwnership_Implement(Invite, Msrp, MsrpSession); + +/* ======================== MessagingEvent ========================*/ +MessagingEvent::MessagingEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent) +{ +} + +MessagingEvent::~MessagingEvent() +{ +} + +tsip_message_event_type_t MessagingEvent::getType() const +{ + return TSIP_MESSAGE_EVENT(this->sipevent)->type; +} + +const MessagingSession* MessagingEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Messaging, Messaging, Session); + + +/* ======================== InfoEvent ========================*/ +InfoEvent::InfoEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent) +{ +} + +InfoEvent::~InfoEvent() +{ +} + +tsip_info_event_type_t InfoEvent::getType() const +{ + return TSIP_INFO_EVENT(this->sipevent)->type; +} + +const InfoSession* InfoEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Info, Info, Session); + + + +/* ======================== OptionsEvent ========================*/ +OptionsEvent::OptionsEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent) +{ +} + +OptionsEvent::~OptionsEvent() +{ +} + +tsip_options_event_type_t OptionsEvent::getType() const +{ + return TSIP_OPTIONS_EVENT(this->sipevent)->type; +} + +const OptionsSession* OptionsEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Options, Options, Session); + + +/* ======================== PublicationEvent ========================*/ +PublicationEvent::PublicationEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent) +{ +} + +PublicationEvent::~PublicationEvent() +{ +} + +tsip_publish_event_type_t PublicationEvent::getType() const +{ + return TSIP_PUBLISH_EVENT(this->sipevent)->type; +} + +const PublicationSession* PublicationEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Publication, Publication, Session); + + +/* ======================== RegistrationEvent ========================*/ +RegistrationEvent::RegistrationEvent(const tsip_event_t *_sipevent) +:SipEvent(_sipevent) +{ +} + +RegistrationEvent::~RegistrationEvent() +{ +} + +tsip_register_event_type_t RegistrationEvent::getType() const +{ + return TSIP_REGISTER_EVENT(this->sipevent)->type; +} + +const RegistrationSession* RegistrationEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Registration, Registration, Session); + + +/* ======================== SubscriptionEvent ========================*/ +SubscriptionEvent::SubscriptionEvent(const tsip_event_t *sipevent) +:SipEvent(sipevent) +{ +} + +SubscriptionEvent::~SubscriptionEvent() +{ +} + +tsip_subscribe_event_type_t SubscriptionEvent::getType() const +{ + return TSIP_SUBSCRIBE_EVENT(this->sipevent)->type; +} + +const SubscriptionSession* SubscriptionEvent::getSession() const +{ + return dyn_cast(this->getBaseSession()); +} + +takeOwnership_Implement(Subscription, Subscription, Session); \ No newline at end of file diff --git a/bindings/_common/SipEvent.h b/bindings/_common/SipEvent.h new file mode 100644 index 0000000..85acb8d --- /dev/null +++ b/bindings/_common/SipEvent.h @@ -0,0 +1,216 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIPEVENT_H +#define TINYWRAP_SIPEVENT_H + +#include "tinyWRAP_config.h" + +#include "tinysip.h" +#include "Common.h" + +class SipStack; + +class SipSession; +class InviteSession; +class CallSession; +class MsrpSession; +class MessagingSession; +class InfoSession; +class OptionsSession; +class PublicationSession; +class RegistrationSession; +class SubscriptionSession; + +class SipMessage; + + +/* ======================== SipEvent ========================*/ +class TINYWRAP_API SipEvent +{ +public: +#if !defined(SWIG) + SipEvent(const tsip_event_t *sipevent); +#endif + virtual ~SipEvent(); + +public: + short getCode() const; + const char* getPhrase() const; + const SipSession* getBaseSession() const; + const SipMessage* getSipMessage() const; +#if !defined(SWIG) + const tsip_event_t * getWrappedEvent(){ return sipevent; } +#endif +#if !defined(SWIG) + SipStack* getStack()const; +#endif + +protected: + const tsip_event_t *sipevent; + SipMessage* sipmessage; +}; + + +/* ======================== DialogEvent ========================*/ +class TINYWRAP_API DialogEvent: public SipEvent +{ +public: +#if !defined(SWIG) + DialogEvent(const tsip_event_t *sipevent); +#endif + virtual ~DialogEvent(); + +public: /* Public API functions */ +}; + +/* ======================== StackEvent ========================*/ +class TINYWRAP_API StackEvent: public SipEvent +{ +public: +#if !defined(SWIG) + StackEvent(const tsip_event_t *sipevent); +#endif + virtual ~StackEvent(); + +public: /* Public API functions */ +}; + + + +/* ======================== InviteEvent ========================*/ +class TINYWRAP_API InviteEvent: public SipEvent +{ +public: +#if !defined(SWIG) + InviteEvent(const tsip_event_t *sipevent); +#endif + virtual ~InviteEvent(); + +public: /* Public API functions */ + tsip_invite_event_type_t getType() const; + twrap_media_type_t getMediaType() const; + const InviteSession* getSession() const; + CallSession* takeCallSessionOwnership() const; + MsrpSession* takeMsrpSessionOwnership() const; +}; + + + +/* ======================== MessagingEvent ========================*/ +class TINYWRAP_API MessagingEvent: public SipEvent +{ +public: +#if !defined(SWIG) + MessagingEvent(const tsip_event_t *sipevent); +#endif + virtual ~MessagingEvent(); + +public: /* Public API functions */ + tsip_message_event_type_t getType() const; + const MessagingSession* getSession() const; + MessagingSession* takeSessionOwnership() const; +}; + +/* ======================== InfoEvent ========================*/ +class TINYWRAP_API InfoEvent: public SipEvent +{ +public: +#if !defined(SWIG) + InfoEvent(const tsip_event_t *sipevent); +#endif + virtual ~InfoEvent(); + +public: /* Public API functions */ + tsip_info_event_type_t getType() const; + const InfoSession* getSession() const; + InfoSession* takeSessionOwnership() const; +}; + + + +/* ======================== OptionsEvent ========================*/ +class TINYWRAP_API OptionsEvent: public SipEvent +{ +public: +#if !defined(SWIG) + OptionsEvent(const tsip_event_t *sipevent); +#endif + virtual ~OptionsEvent(); + +public: /* Public API functions */ + tsip_options_event_type_t getType() const; + const OptionsSession* getSession() const; + OptionsSession* takeSessionOwnership() const; +}; + + + +/* ======================== PublicationEvent ========================*/ +class TINYWRAP_API PublicationEvent: public SipEvent +{ +public: +#if !defined(SWIG) + PublicationEvent(const tsip_event_t *sipevent); +#endif + virtual ~PublicationEvent(); + +public: /* Public API functions */ + tsip_publish_event_type_t getType() const; + const PublicationSession* getSession() const; + PublicationSession* takeSessionOwnership() const; +}; + + + +/* ======================== RegistrationEvent ========================*/ +class TINYWRAP_API RegistrationEvent: public SipEvent +{ +public: +#if !defined(SWIG) + RegistrationEvent(const tsip_event_t *sipevent); +#endif + virtual ~RegistrationEvent(); + +public: /* Public API functions */ + tsip_register_event_type_t getType() const; + const RegistrationSession* getSession() const; + RegistrationSession* takeSessionOwnership() const; + +}; + + +/* ======================== SubscriptionEvent ========================*/ +class TINYWRAP_API SubscriptionEvent: public SipEvent +{ +public: +#if !defined(SWIG) + SubscriptionEvent(const tsip_event_t *sipevent); +#endif + virtual ~SubscriptionEvent(); + +public: /* Public API functions */ + tsip_subscribe_event_type_t getType() const; + const SubscriptionSession* getSession() const; + SubscriptionSession* takeSessionOwnership() const; +}; + +#endif /* TINYWRAP_SIPEVENT_H */ diff --git a/bindings/_common/SipMessage.cxx b/bindings/_common/SipMessage.cxx new file mode 100644 index 0000000..a4f09fd --- /dev/null +++ b/bindings/_common/SipMessage.cxx @@ -0,0 +1,289 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SipMessage.h" + + +SdpMessage::SdpMessage() +:m_pSdpMessage(tsk_null) +{ +} + +SdpMessage::SdpMessage(tsdp_message_t *_sdpmessage) +{ + m_pSdpMessage = (tsdp_message_t *)tsk_object_ref(_sdpmessage); +} + +SdpMessage::~SdpMessage() +{ + TSK_OBJECT_SAFE_FREE(m_pSdpMessage); +} + +char* SdpMessage::getSdpHeaderValue(const char* media, char name, unsigned index /*= 0*/) +{ + const tsdp_header_M_t* M; + + if((M = (const tsdp_header_M_t*)tsdp_message_get_header(m_pSdpMessage, tsdp_htype_M))){ + tsdp_header_type_t type = tsdp_htype_Dummy; + const tsdp_header_t* header; + switch(name){ + case 'a': type = tsdp_htype_A; break; + case 'b': type = tsdp_htype_B; break; + case 'c': type = tsdp_htype_C; break; + case 'e': type = tsdp_htype_E; break; + case 'i': type = tsdp_htype_I; break; + case 'k': type = tsdp_htype_K; break; + case 'm': type = tsdp_htype_M; break; + case 'o': type = tsdp_htype_O; break; + + + case 'p': type = tsdp_htype_P; break; + case 'r': type = tsdp_htype_R; break; + case 's': type = tsdp_htype_S; break; + case 't': type = tsdp_htype_T; break; + case 'u': type = tsdp_htype_U; break; + case 'v': type = tsdp_htype_V; break; + case 'z': type = tsdp_htype_Z; break; + } + + if((header = tsdp_message_get_headerAt(m_pSdpMessage, type, index))){ + return tsdp_header_tostring(header); + } + } + + return tsk_null; +} + +char* SdpMessage::getSdpHeaderAValue(const char* media, const char* attributeName) +{ + const tsdp_header_M_t* M; + tsk_size_t i; + + for(i = 0; (M = (const tsdp_header_M_t*)tsdp_message_get_headerAt(m_pSdpMessage, tsdp_htype_M, i)); i++){ + if(tsk_striequals(M->media, media)){ + const tsdp_header_A_t* A; + if((A = tsdp_header_M_findA(M, attributeName))){ + return tsk_strdup(A->value); + } + } + } + + return tsk_null; +} + + +SipMessage::SipMessage() +:m_pSipMessage(tsk_null), m_pSdpMessage(tsk_null) +{ +} + +SipMessage::SipMessage(tsip_message_t *_sipmessage) +: m_pSdpMessage(tsk_null) +{ + m_pSipMessage = (tsip_message_t *)tsk_object_ref(_sipmessage); +} + +SipMessage::~SipMessage() +{ + TSK_OBJECT_SAFE_FREE(m_pSipMessage); + if(m_pSdpMessage){ + delete m_pSdpMessage; + } +} + +bool SipMessage::isResponse() +{ + return TSIP_MESSAGE_IS_RESPONSE(m_pSipMessage); +} + +tsip_request_type_t SipMessage::getRequestType() +{ + if(TSIP_MESSAGE_IS_REQUEST(m_pSipMessage)){ + return (m_pSipMessage)->line.request.request_type; + } + return tsip_NONE; +} + +short SipMessage::getResponseCode() +{ + return TSIP_RESPONSE_CODE(m_pSipMessage); +} + +const char* SipMessage::getResponsePhrase() +{ + return TSIP_RESPONSE_PHRASE(m_pSipMessage); +} + +const tsip_header_t* SipMessage::getSipHeader(const char* name, unsigned index /* =0 */) +{ + /* Do not worry about calling tsk_striequals() several times because the function + * is fully optimized. + */ + /* Code below comes from tsip_message_get_headerAt() */ + tsk_size_t pos = 0; + const tsk_list_item_t *item; + const tsip_header_t* hdr = tsk_null; + if(!m_pSipMessage || !name){ + return tsk_null; + } + + if(tsk_striequals(name, "v") || tsk_striequals(name, "via")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->firstVia; + goto bail; + }else pos++; } + if(tsk_striequals(name, "f") || tsk_striequals(name, "from")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->From; + goto bail; + }else pos++; } + if(tsk_striequals(name, "t") || tsk_striequals(name, "to")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->To; + goto bail; + }else pos++; } + if(tsk_striequals(name, "m") || tsk_striequals(name, "contact")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->Contact; + goto bail; + }else pos++; } + if(tsk_striequals(name, "i") || tsk_striequals(name, "call-id")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->Call_ID; + goto bail; + }else pos++; } + if(tsk_striequals(name, "cseq")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->CSeq; + goto bail; + }else pos++; } + if(tsk_striequals(name, "expires")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->Expires; + goto bail; + }else pos++; } + if(tsk_striequals(name, "c") || tsk_striequals(name, "content-type")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->Content_Type; + goto bail; + }else pos++; } + if(tsk_striequals(name, "l") || tsk_striequals(name, "content-length")){ + if(index == 0){ + hdr = (const tsip_header_t*)m_pSipMessage->Content_Length; + goto bail; + }else pos++; } + + + tsk_list_foreach(item, m_pSipMessage->headers){ + if(tsk_striequals(tsip_header_get_name_2(TSIP_HEADER(item->data)), name)){ + if(pos++ >= index){ + hdr = (const tsip_header_t*)item->data; + break; + } + } + } + + +bail: + return hdr; +} + +// e.g. getHeaderParamValue("content-type"); +char* SipMessage::getSipHeaderValue(const char* name, unsigned index /* = 0*/) +{ + const tsip_header_t* header; + if((header = this->getSipHeader(name, index))){ + + switch(header->type){ + case tsip_htype_From: + return tsip_uri_tostring(((const tsip_header_From_t*)header)->uri, tsk_false, tsk_false); + case tsip_htype_To: + return tsip_uri_tostring(((const tsip_header_To_t*)header)->uri, tsk_false, tsk_false); + break; + case tsip_htype_P_Asserted_Identity: + return tsip_uri_tostring(((const tsip_header_P_Asserted_Identity_t*)header)->uri, tsk_false, tsk_false); + break; + + default: + return tsip_header_value_tostring(header); + } + } + // SWIG: %newobject getHeaderValueAt; + return tsk_null; +} + +// e.g. getHeaderParamValue("content-type", "charset"); +char* SipMessage::getSipHeaderParamValue(const char* name, const char* param, unsigned index /*=0*/) +{ + const tsip_header_t* header; + + if((header = this->getSipHeader(name, index))){ + return tsip_header_get_param_value(header, param); + } + + // SWIG: %newobject getSipHeaderParamValue; + return tsk_null; +} + +/** Returns the content length. +*/ +unsigned SipMessage::getSipContentLength() +{ + return TSIP_MESSAGE_CONTENT_DATA_LENGTH(m_pSipMessage); +} + +/** Gets the message content +* @param output A pointer to the output buffer where to copy the data. MUST +* be allocated by the caller. +* @param maxsize The maximum number of octets to copy. Should be less than the size of the +* @a output buffer. You can use @a getSipContentLength() to get the right value to use. +* @retval The number of octet copied in the @a output buffer. +*/ +unsigned SipMessage::getSipContent(void* output, unsigned maxsize) +{ + unsigned retsize = 0; + if(output && maxsize && TSIP_MESSAGE_HAS_CONTENT(m_pSipMessage)){ + retsize = (m_pSipMessage->Content->size > maxsize) ? maxsize : m_pSipMessage->Content->size; + memcpy(output, m_pSipMessage->Content->data, retsize); + } + return retsize; +} + +const void* SipMessage::getSipContentPtr() +{ + if(m_pSipMessage && m_pSipMessage->Content){ + return m_pSipMessage->Content->data; + } + return tsk_null; +} + +const SdpMessage* SipMessage::getSdpMessage() +{ + if(!m_pSdpMessage && TSIP_MESSAGE_HAS_CONTENT(m_pSipMessage)){ + tsdp_message_t* sdp = tsdp_message_parse(m_pSipMessage->Content->data, m_pSipMessage->Content->size); + if(sdp){ + m_pSdpMessage = new SdpMessage(sdp); + TSK_OBJECT_SAFE_FREE(sdp); + } + } + + return m_pSdpMessage; +} diff --git a/bindings/_common/SipMessage.h b/bindings/_common/SipMessage.h new file mode 100644 index 0000000..eb9d598 --- /dev/null +++ b/bindings/_common/SipMessage.h @@ -0,0 +1,78 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIPMESSAGE_H +#define TINYWRAP_SIPMESSAGE_H + +#include "tinyWRAP_config.h" +#include "tinysip.h" + +class TINYWRAP_API SdpMessage +{ +public: + SdpMessage(); +#if !defined(SWIG) + SdpMessage(tsdp_message_t *sdpmessage); +#endif + virtual ~SdpMessage(); + + char* getSdpHeaderValue(const char* media, char name, unsigned index = 0); + char* getSdpHeaderAValue(const char* media, const char* attributeName); +#if !defined(SWIG) + const tsdp_message_t * getWrappedSdpMessage(){ return m_pSdpMessage; } +#endif + +private: + tsdp_message_t *m_pSdpMessage; +}; + +class TINYWRAP_API SipMessage +{ +public: + SipMessage(); +#if !defined(SWIG) + SipMessage(tsip_message_t *sipmessage); +#endif + virtual ~SipMessage(); + + bool isResponse(); + tsip_request_type_t getRequestType(); + short getResponseCode(); + const char* getResponsePhrase(); + char* getSipHeaderValue(const char* name, unsigned index = 0); + char* getSipHeaderParamValue(const char* name, const char* param, unsigned index = 0); + unsigned getSipContentLength(); + unsigned getSipContent(void* output, unsigned maxsize); +#if !defined(SWIG) + const void* getSipContentPtr(); + const tsip_message_t* getWrappedSipMessage()const{ return m_pSipMessage; } +#endif + const SdpMessage* getSdpMessage(); + +private: + const tsip_header_t* getSipHeader(const char* name, unsigned index = 0); + +private: + tsip_message_t *m_pSipMessage; + SdpMessage *m_pSdpMessage; +}; + +#endif /* TINYWRAP_SIPMESSAGE_H */ diff --git a/bindings/_common/SipSession.cxx b/bindings/_common/SipSession.cxx new file mode 100644 index 0000000..ac80d41 --- /dev/null +++ b/bindings/_common/SipSession.cxx @@ -0,0 +1,1044 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SipSession.h" +#include "SipStack.h" +#include "MediaSessionMgr.h" +#include "SipUri.h" +#include "Msrp.h" + +/* ======================== AsyncAction ========================*/ +typedef struct twrap_async_action_s +{ + const tsip_ssession_handle_t *session; + const ActionConfig* config; +} +twrap_async_action_t; + + + +/* ======================== SipSession ========================*/ +SipSession::SipSession(SipStack* stack) +{ + init(stack); +} + +SipSession::SipSession(SipStack* stack, tsip_ssession_handle_t* pHandle) +{ + init(stack, pHandle); +} + +SipSession::~SipSession() +{ + tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_USERDATA(tsk_null), + TSIP_SSESSION_SET_NULL()); + + TSK_OBJECT_SAFE_FREE(m_pHandle); +} + +void SipSession::init(SipStack* pStack, tsip_ssession_handle_t* pHandle/*=tsk_null*/) +{ + if(pHandle){ + /* "server-side-session" */ + if(tsip_ssession_have_ownership(pHandle)){ + tsk_object_ref(pHandle); + } + else if(tsip_ssession_take_ownership(pHandle) != 0){ /* should never happen */ + TSK_DEBUG_ERROR("Failed to take ownership"); + return; + } + m_pHandle = pHandle; + } + else{ + /* "client-side-session" */ + m_pHandle = tsip_ssession_create(pStack->getHandle(), + TSIP_SSESSION_SET_USERDATA(this), + TSIP_SSESSION_SET_NULL()); + } + + /* set userdata (context) and ref. the stack handle */ + tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_USERDATA(this), + TSIP_SSESSION_SET_NULL()); + m_pStack = pStack; +} + +bool SipSession::addHeader(const char* name, const char* value) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_HEADER(name, value), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::haveOwnership() +{ + return (tsip_ssession_have_ownership(m_pHandle) == tsk_true); +} + +bool SipSession::removeHeader(const char* name) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_UNSET_HEADER(name), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::addCaps(const char* name, const char* value) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_CAPS(name, value), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::addCaps(const char* name) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_CAPS(name, tsk_null), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::removeCaps(const char* name) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_UNSET_CAPS(name), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setExpires(unsigned expires) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_EXPIRES(expires), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setFromUri(const char* fromUriString) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_FROM_STR(fromUriString), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setFromUri(const SipUri* fromUri) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_FROM_OBJ(fromUri->getWrappedUri()), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setToUri(const char* toUriString) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_TO_STR(toUriString), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setToUri(const SipUri* toUri) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_TO_OBJ(toUri->getWrappedUri()), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setSilentHangup(bool silent) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_SILENT_HANGUP(silent ? tsk_true : tsk_false), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::addSigCompCompartment(const char* compId) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_SIGCOMP_COMPARTMENT(compId), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::setAuth(const char* authHa1, const char* authIMPI) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_AUTH_HA1(authHa1), + TSIP_SSESSION_SET_AUTH_IMPI(authIMPI), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool SipSession::removeSigCompCompartment() +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_UNSET_SIGCOMP_COMPARTMENT(), + TSIP_SSESSION_SET_NULL()) == 0); +} + +// FIXME: should be "uint64_t" instead of "unsigned" +unsigned SipSession::getId()const +{ + return (unsigned)tsip_ssession_get_id(m_pHandle); +} + +bool SipSession::setWebSocketSrc(const char* host, int32_t port, const char* proto) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_WEBSOCKET_SRC(host, port, proto), + TSIP_SSESSION_SET_NULL()) == 0); +} + +const SipStack* SipSession::getStack()const +{ + return m_pStack; +} + + +/* ======================== InviteSession ========================*/ + +InviteSession::InviteSession(SipStack* pStack) +: SipSession(pStack), m_pMediaMgr(tsk_null) +{ +} + +InviteSession::InviteSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle), m_pMediaMgr(tsk_null) +{ + +} + +InviteSession::~InviteSession() +{ + if(m_pMediaMgr){ + delete m_pMediaMgr, m_pMediaMgr = tsk_null; + } +} + +bool InviteSession::hangup(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_invite_send_bye(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool InviteSession::reject(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_common_reject(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool InviteSession::accept(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_common_accept(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool InviteSession::sendInfo(const void* payload, unsigned len, ActionConfig* config/*=tsk_null*/) +{ + int ret; + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + if(payload && len){ + ret = tsip_api_invite_send_info(m_pHandle, + TSIP_ACTION_SET_PAYLOAD(payload, len), + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()); + } + else{ + ret = tsip_api_invite_send_info(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()); + } + return (ret == 0); +} + +const MediaSessionMgr* InviteSession::getMediaMgr() +{ + if(!m_pMediaMgr && m_pHandle){ + tmedia_session_mgr_t* mgr = tsip_session_get_mediamgr(m_pHandle); + if(mgr){ + m_pMediaMgr = new MediaSessionMgr(mgr); // new() it's not yours: see "m_pMediaMgr" which is destroy in the destructor() + tsk_object_unref(mgr); + } + else{ + TSK_DEBUG_WARN("No media session associated to this session"); + } + } + return m_pMediaMgr; +} + + +/* ======================== CallSession ========================*/ +CallSession::CallSession(SipStack* Stack) +: InviteSession(Stack) +{ +} + +CallSession::CallSession(SipStack* Stack, tsip_ssession_handle_t* handle) +: InviteSession(Stack, handle) +, m_pT140Callback(tsk_null) +, m_pRtcpCallback(tsk_null) +{ +} + +CallSession::~CallSession() +{ +} + +/* @deprecated */ +bool CallSession::callAudio(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/) +{ + return call(remoteUri, twrap_media_audio, config); +} + +/* @deprecated */ +bool CallSession::callAudio(const char* remoteUriString, ActionConfig* config/*=tsk_null*/) +{ + return call(remoteUriString, twrap_media_audio, config); +} + +/* @deprecated */ +bool CallSession::callAudioVideo(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/) +{ + 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 call(&sipUri, media, config); + } + TSK_DEBUG_ERROR("Failed to parse sip uri=%s", remoteUriString); + return false; +} + +bool CallSession::call(const SipUri* remoteUri, twrap_media_type_t media, 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()); + + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_invite_send_invite(m_pHandle, twrap_get_native_media_type(media), + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool CallSession::setSupportedCodecs(int32_t codecs) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_CODECS(codecs), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + + +int32_t CallSession::getNegotiatedCodecs() +{ + return (int32_t) tsip_ssession_get_codecs_neg(m_pHandle); +} + +bool CallSession::setMediaSSRC(twrap_media_type_t media, uint32_t ssrc) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_RTP_SSRC(twrap_get_native_media_type(media), ssrc), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setSessionTimer(unsigned timeout, const char* refresher) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_TIMERS(timeout, refresher), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::set100rel(bool enabled) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_100rel(enabled ? tsk_true : tsk_false), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setRtcp(bool enabled) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_RTCP(enabled ? tsk_true : tsk_false), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); + +} + +bool CallSession::setRtcpMux(bool enabled) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_RTCPMUX(enabled ? tsk_true : tsk_false), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setSRtpMode(enum tmedia_srtp_mode_e mode) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_SRTP_MODE(mode), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setAvpfMode(enum tmedia_mode_e mode) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_AVPF_MODE(mode), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setICE(bool enabled) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_ICE(enabled ? tsk_true : tsk_false), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setICEStun(bool enabled) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_ICE_STUN(enabled ? tsk_true : tsk_false), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setICETurn(bool enabled) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_ICE_TURN(enabled ? tsk_true : tsk_false), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setSTUNServer(const char* hostname, uint16_t port) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_STUN_SERVER(hostname, port), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setSTUNCred(const char* username, const char* password) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_STUN_CRED(username, password), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setVideoFps(int32_t fps) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_VIDEO_FPS(fps), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setVideoBandwidthUploadMax(int32_t max) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_VIDEO_BW_UP(max), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setVideoBandwidthDownloadMax(int32_t max) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_VIDEO_BW_DOWN(max), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_VIDEO_PREFSIZE(pref_video_size), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) +{ + return (tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_QOS(type, strength), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()) == 0); +} + +bool CallSession::hold(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_invite_send_hold(m_pHandle, tmedia_all, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) ==0 ); +} + +bool CallSession::resume(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_invite_send_resume(m_pHandle, tmedia_all, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool CallSession::transfer(const char* referToUriString, ActionConfig* config/*=tsk_null*/) +{ + if(tsk_strnullORempty(referToUriString)){ + TSK_DEBUG_ERROR("Invalid parameter"); + return false; + } + + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_invite_send_ect(m_pHandle, referToUriString, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool CallSession::acceptTransfer(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_invite_send_ect_accept(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool CallSession::rejectTransfer(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_invite_send_ect_reject(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool CallSession::sendDTMF(int number) +{ + return (tsip_api_invite_send_dtmf(m_pHandle, number, + TSIP_ACTION_SET_NULL()) == 0); +} + +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_cbfn((tmedia_session_mgr_t*)pWrappedMgr, this, &CallSession::t140OnDataCallback) == 0); + } + else{ + return (tmedia_session_mgr_set_t140_ondata_cbfn((tmedia_session_mgr_t*)pWrappedMgr, this, tsk_null) == 0); + } + } + return false; +} + +bool CallSession::sendRtcpEvent(enum tmedia_rtcp_event_type_e event_type, twrap_media_type_t media_type, uint32_t ssrc_media /*= 0*/) +{ + const tmedia_session_mgr_t* pWrappedMgr; + const MediaSessionMgr* pMgr; + if((pMgr = getMediaMgr()) && (pWrappedMgr = pMgr->getWrappedMgr())){ + return (tmedia_session_mgr_send_rtcp_event((tmedia_session_mgr_t*)pWrappedMgr, twrap_get_native_media_type(media_type), event_type, ssrc_media) == 0); + } + TSK_DEBUG_ERROR("No media manager"); + return false; +} + +bool CallSession::setRtcpCallback(const RtcpCallback* pRtcpCallback, twrap_media_type_t media_type) +{ + const tmedia_session_mgr_t* pWrappedMgr; + const MediaSessionMgr* pMgr; + if((pMgr = getMediaMgr()) && (pWrappedMgr = pMgr->getWrappedMgr())){ + if((m_pRtcpCallback = pRtcpCallback)){ + return (tmedia_session_mgr_set_onrtcp_cbfn((tmedia_session_mgr_t*)pWrappedMgr, twrap_get_native_media_type(media_type), this, &CallSession::rtcpOnCallback) == 0); + } + else{ + return (tmedia_session_mgr_set_onrtcp_cbfn((tmedia_session_mgr_t*)pWrappedMgr, twrap_get_native_media_type(media_type), 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*)context); + if(session && session->getT140Callback()){ + T140CallbackData* dataObj = new T140CallbackData(data_type, data_ptr, data_size); + if(dataObj){ + int ret = const_cast(session->getT140Callback())->ondata(dataObj); + delete dataObj; + return ret; + } + } + return 0; +} + +const RtcpCallback* CallSession::getRtcpCallback() const +{ + return m_pRtcpCallback; +} + +int CallSession::rtcpOnCallback(const void* context, enum tmedia_rtcp_event_type_e event_type, uint32_t ssrc_media) +{ + const CallSession* session = dyn_cast((const CallSession*)context); + if(session && session->getRtcpCallback()){ + RtcpCallbackData* dataObj = new RtcpCallbackData(event_type, ssrc_media); + if(dataObj){ + int ret = const_cast(session->getRtcpCallback())->onevent(dataObj); + delete dataObj; + return ret; + } + } + TSK_DEBUG_INFO("Not Sending RTCP packet (no callback)"); + return 0; +} + +/* ======================== MsrpSession ========================*/ + +MsrpSession::MsrpSession(SipStack* pStack, MsrpCallback* pCallback) +: InviteSession(pStack), m_pCallback(pCallback) +{ + tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_MSRP_CB(twrap_msrp_cb), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()); +} + +MsrpSession::MsrpSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: InviteSession(pStack, pHandle), m_pCallback(tsk_null) +{ + tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_MEDIA( + TSIP_MSESSION_SET_MSRP_CB(twrap_msrp_cb), + TSIP_MSESSION_SET_NULL() + ), + TSIP_SSESSION_SET_NULL()); +} + +MsrpSession::~MsrpSession() +{ +} + +bool MsrpSession::setCallback(MsrpCallback* pCallback) +{ + m_pCallback = pCallback; + return true; +} + +bool MsrpSession::callMsrp(const SipUri* remoteUri, ActionConfig* config/*=tsk_null*/) +{ + if(!remoteUri){ + TSK_DEBUG_ERROR("Invalid parameter"); + return false; + } + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + tsip_ssession_set(m_pHandle, + TSIP_SSESSION_SET_TO_OBJ(remoteUri->getWrappedUri()), + TSIP_SSESSION_SET_NULL()); + + return (tsip_api_invite_send_invite(m_pHandle, tmedia_msrp, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool MsrpSession::callMsrp(const char* remoteUriString, ActionConfig* config/*=tsk_null*/) +{ + SipUri sipUri(remoteUriString); + if(sipUri.isValid()){ + return callMsrp(&sipUri, config); + } + TSK_DEBUG_ERROR("Failed to parse sip uri=%s", remoteUriString); + return false; +} + +bool MsrpSession::sendMessage(const void* payload, unsigned len, ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_invite_send_large_message(m_pHandle, + TSIP_ACTION_SET_PAYLOAD(payload, len), + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool MsrpSession::sendFile(ActionConfig* config/*=tsk_null*/) +{ + return false; +} + +/* ======================== MessagingSession ========================*/ +MessagingSession::MessagingSession(SipStack* pStack) +: SipSession(pStack) +{ +} + +MessagingSession::MessagingSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle) +{ +} + +MessagingSession::~MessagingSession() +{ +} + +bool MessagingSession::send(const void* payload, unsigned len, ActionConfig* config/*=tsk_null*/) +{ + int ret; + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + if(payload && len){ + ret = tsip_api_message_send_message(m_pHandle, + TSIP_ACTION_SET_PAYLOAD(payload, len), + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()); + } + else{ + ret = tsip_api_message_send_message(m_pHandle, + TSIP_ACTION_SET_NULL()); + } + return (ret == 0); +} + +bool MessagingSession::accept(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_common_accept(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool MessagingSession::reject(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_common_reject(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + + + +/* ======================== InfoSession ========================*/ +InfoSession::InfoSession(SipStack* pStack) +: SipSession(pStack) +{ +} + +InfoSession::InfoSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle) +{ +} + +InfoSession::~InfoSession() +{ +} + +bool InfoSession::send(const void* payload, unsigned len, ActionConfig* config/*=tsk_null*/) +{ + int ret; + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + if(payload && len){ + ret = tsip_api_info_send_info(m_pHandle, + TSIP_ACTION_SET_PAYLOAD(payload, len), + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()); + } + else{ + ret = tsip_api_info_send_info(m_pHandle, + TSIP_ACTION_SET_NULL()); + } + return (ret == 0); +} + +bool InfoSession::accept(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_common_accept(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool InfoSession::reject(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_common_reject(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + + + + +/* ======================== OptionsSession ========================*/ +OptionsSession::OptionsSession(SipStack* pStack) +: SipSession(pStack) +{ +} + +OptionsSession::OptionsSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle) +{ +} + +OptionsSession::~OptionsSession() +{ +} + +bool OptionsSession::send(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_options_send_options(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool OptionsSession::accept(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_common_accept(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool OptionsSession::reject(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_common_reject(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + + + + +/* ======================== PublicationSession ========================*/ +PublicationSession::PublicationSession(SipStack* Stack) +: SipSession(Stack) +{ +} + +PublicationSession::PublicationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle) +{ + +} + +PublicationSession::~PublicationSession() +{ +} + +bool PublicationSession::publish(const void* payload, unsigned len, ActionConfig* config/*=tsk_null*/) +{ + int ret; + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + if(payload && len){ + ret = tsip_api_publish_send_publish(m_pHandle, + TSIP_ACTION_SET_PAYLOAD(payload, len), + TSIP_ACTION_SET_NULL()); + } + else{ + ret = tsip_api_publish_send_publish(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()); + } + return (ret == 0); +} + +bool PublicationSession::unPublish(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_publish_send_unpublish(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + + + +/* ======================== RegistrationSession ========================*/ +RegistrationSession::RegistrationSession(SipStack* pStack) +: SipSession(pStack) +{ +} + +RegistrationSession::RegistrationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle) +{ + +} + +RegistrationSession::~RegistrationSession() +{ +} + +bool RegistrationSession::register_(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_register_send_register(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool RegistrationSession::unRegister(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + return (tsip_api_register_send_unregister(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool RegistrationSession::accept(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_common_accept(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + +bool RegistrationSession::reject(ActionConfig* config/*=tsk_null*/) +{ + const tsip_action_handle_t* action_cfg = config ? config->getHandle() : tsk_null; + + return (tsip_api_common_reject(m_pHandle, + TSIP_ACTION_SET_CONFIG(action_cfg), + TSIP_ACTION_SET_NULL()) == 0); +} + + +/* ======================== SubscriptionSession ========================*/ +SubscriptionSession::SubscriptionSession(SipStack* pStack) +: SipSession(pStack) +{ +} + +SubscriptionSession::SubscriptionSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +: SipSession(pStack, pHandle) +{ + +} + + +SubscriptionSession::~SubscriptionSession() +{ +} + +bool SubscriptionSession::subscribe() +{ + return (tsip_api_subscribe_send_subscribe(m_pHandle, + TSIP_ACTION_SET_NULL()) == 0); +} + +bool SubscriptionSession::unSubscribe() +{ + return (tsip_api_subscribe_send_unsubscribe(m_pHandle, + TSIP_ACTION_SET_NULL()) == 0); +} diff --git a/bindings/_common/SipSession.h b/bindings/_common/SipSession.h new file mode 100644 index 0000000..7a0963b --- /dev/null +++ b/bindings/_common/SipSession.h @@ -0,0 +1,358 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIPSESSION_H +#define TINYWRAP_SIPSESSION_H + +#include "tinyWRAP_config.h" + +#include "tinysip.h" +#include "tinymedia/tmedia_qos.h" +#include "ActionConfig.h" + +class SipUri; +class SipStack; +class MsrpCallback; +class MediaSessionMgr; + +/* ======================== T140Callback ========================*/ +class TINYWRAP_API 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(){} + + inline enum tmedia_t140_data_type_e getType()const{ return m_eType; } + inline unsigned getSize()const{ return m_nSize; } + inline unsigned getData(void* pOutput, unsigned nMaxsize)const{ + 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 TINYWRAP_API T140Callback +{ +public: + T140Callback() {} + virtual ~T140Callback(){} + virtual int ondata(const T140CallbackData* pData){ return 0; } +}; + +#if !defined(SWIG) +class RtcpCallbackData{ + public: + RtcpCallbackData(enum tmedia_rtcp_event_type_e event_type, uint32_t ssrc_media){ + m_eType = event_type; + m_nSSRC = ssrc_media; + } + virtual ~RtcpCallbackData(){} + inline enum tmedia_rtcp_event_type_e getType()const{ return m_eType; } + inline uint32_t getSSRC()const{ return m_nSSRC; } + private: + enum tmedia_rtcp_event_type_e m_eType; + uint32_t m_nSSRC; +}; + +class TINYWRAP_API RtcpCallback +{ +public: + RtcpCallback() {} + virtual ~RtcpCallback(){} + virtual int onevent(const RtcpCallbackData* e){ return 0; } +}; +#endif /* #if !defined(SWIG) */ + + + +/* ======================== SipSession ========================*/ +class TINYWRAP_API SipSession +{ +public: + SipSession(SipStack* stack); +#if !defined(SWIG) + SipSession(SipStack* stack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~SipSession(); + +public: + bool haveOwnership(); + bool addHeader(const char* name, const char* value); + bool removeHeader(const char* name); + bool addCaps(const char* name, const char* value); + bool addCaps(const char* name); + bool removeCaps(const char* name); + bool setExpires(unsigned expires); + bool setFromUri(const char* fromUriString); + bool setFromUri(const SipUri* fromUri); + bool setToUri(const char* toUriString); + bool setToUri(const SipUri* toUri); + bool setSilentHangup(bool silent); + bool addSigCompCompartment(const char* compId); + bool removeSigCompCompartment(); +#if !defined(SWIG) + bool setAuth(const char* authHa1, const char* authIMPI); +#endif + unsigned getId()const; + +#if !defined(SWIG) + bool setWebSocketSrc(const char* host, int32_t port, const char* proto); + const SipStack* getStack() const; + const tsip_ssession_handle_t* getWrappedSession() { return m_pHandle; } +#endif + +private: + void init(SipStack* stack, tsip_ssession_handle_t* pHandle=tsk_null); + +protected: + tsip_ssession_handle_t* m_pHandle; + const SipStack* m_pStack; +}; + +/* ======================== InviteSession ========================*/ +class TINYWRAP_API InviteSession : public SipSession +{ +public: /* ctor() and dtor() */ + InviteSession(SipStack* Stack); +#if !defined(SWIG) + InviteSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~InviteSession(); + +public: /* Public functions */ + bool accept(ActionConfig* config=tsk_null); + bool hangup(ActionConfig* config=tsk_null); + bool reject(ActionConfig* config=tsk_null); + bool sendInfo(const void* payload, unsigned len, ActionConfig* config=tsk_null); + const MediaSessionMgr* getMediaMgr(); + +private: + MediaSessionMgr* m_pMediaMgr; +}; + + +/* ======================== CallSession ========================*/ +class TINYWRAP_API CallSession : public InviteSession +{ +public: /* ctor() and dtor() */ + CallSession(SipStack* pStack); +#if !defined(SWIG) + CallSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~CallSession(); + +public: /* Public functions */ + 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); +#if !defined(SWIG) + bool setSupportedCodecs(int32_t codecs); + int32_t getNegotiatedCodecs(); + bool setMediaSSRC(twrap_media_type_t media, uint32_t ssrc); +#endif + bool setSessionTimer(unsigned timeout, const char* refresher); + bool set100rel(bool enabled); + bool setRtcp(bool enabled); + bool setRtcpMux(bool enabled); + bool setSRtpMode(enum tmedia_srtp_mode_e mode); + bool setAvpfMode(enum tmedia_mode_e mode); + bool setICE(bool enabled); + bool setICEStun(bool enabled); + bool setICETurn(bool enabled); + bool setSTUNServer(const char* hostname, uint16_t port); + bool setSTUNCred(const char* username, const char* password); + bool setVideoFps(int32_t fps); + bool setVideoBandwidthUploadMax(int32_t max); + bool setVideoBandwidthDownloadMax(int32_t max); + bool setVideoPrefSize(tmedia_pref_video_size_t pref_video_size); + bool setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength); + bool hold(ActionConfig* config=tsk_null); + bool resume(ActionConfig* config=tsk_null); + bool transfer(const char* referToUriString, ActionConfig* config=tsk_null); + bool acceptTransfer(ActionConfig* config=tsk_null); + 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) + bool sendRtcpEvent(enum tmedia_rtcp_event_type_e event_type, twrap_media_type_t media_type, uint32_t ssrc_media = 0); + bool setRtcpCallback(const RtcpCallback* pRtcpCallback, twrap_media_type_t media_type); + 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); + const RtcpCallback* getRtcpCallback() const; + static int rtcpOnCallback(const void* context, enum tmedia_rtcp_event_type_e event_type, uint32_t ssrc_media); +#endif /* #if !defined(SWIG) */ + +private: + const T140Callback* m_pT140Callback; + const RtcpCallback* m_pRtcpCallback; +}; + +/* ======================== MsrpSession ========================*/ +class TINYWRAP_API MsrpSession : public InviteSession +{ +public: /* ctor() and dtor() */ + MsrpSession(SipStack* pStack, MsrpCallback* pCallback); +#if !defined(SWIG) + MsrpSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~MsrpSession(); + +public: /* Public functions */ + bool setCallback(MsrpCallback* pCallback); + bool callMsrp(const char* remoteUriString, ActionConfig* config=tsk_null); + bool callMsrp(const SipUri* remoteUri, ActionConfig* config=tsk_null); + bool sendMessage(const void* payload, unsigned len, ActionConfig* config=tsk_null); + bool sendFile(ActionConfig* config=tsk_null); + + public: /* Public helper function */ +#if !defined(SWIG) + inline MsrpCallback* getCallback()const{ + return m_pCallback; + } +#endif + +private: + MsrpCallback* m_pCallback; +}; + + + +/* ======================== MessagingSession ========================*/ +class TINYWRAP_API MessagingSession : public SipSession +{ +public: /* ctor() and dtor() */ + MessagingSession(SipStack* pStack); +#if !defined(SWIG) + MessagingSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~MessagingSession(); + +public: /* Public functions */ + bool send(const void* payload, unsigned len, ActionConfig* config=tsk_null); + bool accept(ActionConfig* config=tsk_null); + bool reject(ActionConfig* config=tsk_null); +}; + +/* ======================== InfoSession ========================*/ +class TINYWRAP_API InfoSession : public SipSession +{ +public: /* ctor() and dtor() */ + InfoSession(SipStack* pStack); +#if !defined(SWIG) + InfoSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~InfoSession(); + +public: /* Public functions */ + bool send(const void* payload, unsigned len, ActionConfig* config=tsk_null); + bool accept(ActionConfig* config=tsk_null); + bool reject(ActionConfig* config=tsk_null); +}; + +/* ======================== OptionsSession ========================*/ +class TINYWRAP_API OptionsSession : public SipSession +{ +public: /* ctor() and dtor() */ + OptionsSession(SipStack* pStack); +#if !defined(SWIG) + OptionsSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~OptionsSession(); + +public: /* Public functions */ + bool send(ActionConfig* config=tsk_null); + bool accept(ActionConfig* config=tsk_null); + bool reject(ActionConfig* config=tsk_null); +}; + + + +/* ======================== PublicationSession ========================*/ +class TINYWRAP_API PublicationSession : public SipSession +{ +public: /* ctor() and dtor() */ + PublicationSession(SipStack* pStack); +#if !defined(SWIG) + PublicationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~PublicationSession(); + +public: /* Public functions */ + bool publish(const void* payload, unsigned len, ActionConfig* config=tsk_null); + bool unPublish(ActionConfig* config=tsk_null); +}; + + +/* ======================== RegistrationSession ========================*/ +class TINYWRAP_API RegistrationSession : public SipSession +{ +public: /* ctor() and dtor() */ + RegistrationSession(SipStack* pStack); +#if !defined(SWIG) + RegistrationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~RegistrationSession(); + +public: /* Public functions */ + bool register_(ActionConfig* config=tsk_null); + bool unRegister(ActionConfig* config=tsk_null); + bool accept(ActionConfig* config=tsk_null); + bool reject(ActionConfig* config=tsk_null); +}; + + +/* ======================== SubscriptionSession ========================*/ +class TINYWRAP_API SubscriptionSession : public SipSession +{ +public: /* ctor() and dtor() */ + SubscriptionSession(SipStack* pStack); +#if !defined(SWIG) + SubscriptionSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); +#endif + virtual ~SubscriptionSession(); + +public: /* Public functions */ + bool subscribe(); + bool unSubscribe(); +}; + +#endif /* TINYWRAP_SIPSESSION_H */ diff --git a/bindings/_common/SipStack.cxx b/bindings/_common/SipStack.cxx new file mode 100644 index 0000000..5ec3680 --- /dev/null +++ b/bindings/_common/SipStack.cxx @@ -0,0 +1,620 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SipStack.h" + +#include "SipSession.h" +#include "SipEvent.h" + +#include "DDebug.h" + +#include "Common.h" + +bool SipStack::g_bInitialized = false; + + +/* === ANSI-C functions (local use) === */ +static int stack_callback(const tsip_event_t *sipevent); +static int session_handle_event(const tsip_event_t *sipevent); + +SipStack::SipStack(SipCallback* pCallback, const char* realm_uri, const char* impi_uri, const char* impu_uri) +:SafeObject() +{ + m_pDebugCallback = tsk_null; + m_pCallback = pCallback; + + /* Initialize network and media layers */ + if(!SipStack::initialize()){ + return;// isValid() will be false + } + + /* Creates stack handle */ + m_pHandle = tsip_stack_create(stack_callback, realm_uri, impi_uri, impu_uri, + TSIP_STACK_SET_USERDATA(this), /* used as context (useful for server-initiated requests) */ + TSIP_STACK_SET_NULL()); +} + +SipStack::~SipStack() +{ + this->stop(); + + /* Destroy stack handle */ + TSK_OBJECT_SAFE_FREE(m_pHandle); +} + +bool SipStack::start() +{ + bool ret = (tsip_stack_start(m_pHandle) == 0); + return ret; +} + +bool SipStack::setDebugCallback(DDebugCallback* pCallback) +{ + if(this && pCallback){ + m_pDebugCallback = pCallback; + tsk_debug_set_arg_data(this); + tsk_debug_set_info_cb(DDebugCallback::debug_info_cb); + tsk_debug_set_warn_cb(DDebugCallback::debug_warn_cb); + tsk_debug_set_error_cb(DDebugCallback::debug_error_cb); + tsk_debug_set_fatal_cb(DDebugCallback::debug_fatal_cb); + } + else if(this){ + m_pDebugCallback = tsk_null; + tsk_debug_set_arg_data(tsk_null); + tsk_debug_set_info_cb(tsk_null); + tsk_debug_set_warn_cb(tsk_null); + tsk_debug_set_error_cb(tsk_null); + tsk_debug_set_fatal_cb(tsk_null); + } + + return true; +} + +bool SipStack::setDisplayName(const char* display_name) +{ + int ret = tsip_stack_set(m_pHandle, + TSIP_STACK_SET_DISPLAY_NAME(display_name), + TSIP_STACK_SET_NULL()); + return (ret == 0); +} + +bool SipStack::setRealm(const char* realm_uri) +{ + int ret = tsip_stack_set(m_pHandle, + TSIP_STACK_SET_REALM(realm_uri), + TSIP_STACK_SET_NULL()); + return (ret == 0); +} + +bool SipStack::setIMPI(const char* impi) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_IMPI(impi), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setIMPU(const char* impu_uri) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_IMPU(impu_uri), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setPassword(const char* password) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_PASSWORD(password), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setAMF(const char* amf) +{ + uint16_t _amf = (uint16_t)tsk_atox(amf); + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_IMS_AKA_AMF(_amf), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setOperatorId(const char* opid) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_IMS_AKA_OPERATOR_ID(opid), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setProxyCSCF(const char* fqdn, unsigned short port, const char* transport, const char* ipversion) +{ + unsigned _port = port;//promote + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_PROXY_CSCF(fqdn, _port, transport, ipversion), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setLocalIP(const char* ip, const char* transport/*=tsk_null*/) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_LOCAL_IP_2(transport, ip), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setLocalPort(unsigned short port, const char* transport/*=tsk_null*/) +{ + unsigned _port = port;//promote + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_LOCAL_PORT_2(transport, _port), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setEarlyIMS(bool enabled){ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_EARLY_IMS(enabled? tsk_true : tsk_false), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::addHeader(const char* name, const char* value) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_HEADER(name, value), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::removeHeader(const char* name) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_UNSET_HEADER(name), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::addDnsServer(const char* ip) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_DNS_SERVER(ip), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setDnsDiscovery(bool enabled) +{ + tsk_bool_t _enabled = enabled;// 32bit/64bit workaround + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_DISCOVERY_NAPTR(_enabled), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setAoR(const char* ip, int port) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_AOR(ip, port), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setMode(enum tsip_stack_mode_e mode) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_MODE(mode), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setSigCompParams(unsigned dms, unsigned sms, unsigned cpb, bool enablePresDict) +{ + tsk_bool_t _enablePresDict= enablePresDict;// 32bit/64bit workaround + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_SIGCOMP(dms, sms, cpb, _enablePresDict), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::addSigCompCompartment(const char* compId) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_SIGCOMP_NEW_COMPARTMENT(compId), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::removeSigCompCompartment(const char* compId) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_UNSET_SIGCOMP_COMPARTMENT(compId), + TSIP_STACK_SET_NULL()) == 0); +} + + // @deprecated +bool SipStack::setSTUNEnabledForICE(bool enabled) +{ +#if 0 + tsk_bool_t _enabled = enabled ? tsk_true : tsk_false; + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_ICE_STUN_ENABLED(_enabled), + TSIP_STACK_SET_NULL()) == 0); +#else + // set global value + return (tmedia_defaults_set_icestun_enabled(enabled ? tsk_true : tsk_false) == 0); + // to set the value per session, use "CallSession::setICEStun()" +#endif +} + + // @deprecated +bool SipStack::setSTUNServer(const char* hostname, unsigned short port) +{ +#if 0 + unsigned _port = port;//promote + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_STUN_SERVER(hostname, _port), + TSIP_STACK_SET_NULL()) == 0); +#else + // set global value + return (tmedia_defaults_set_stun_server(hostname, port) == 0); + // to set the value per session, use "CallSession::setSTUNServer()" +#endif +} + + // @deprecated +bool SipStack::setSTUNCred(const char* login, const char* password) +{ +#if 0 + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_STUN_CRED(login, password), + TSIP_STACK_SET_NULL()) == 0); +#else + // set global value + return (tmedia_defaults_set_stun_cred(login, password) == 0); + // to set the value per session, use "CallSession::setSTUNCred()" +#endif +} + +bool SipStack::setSTUNEnabled(bool enabled) +{ + tsk_bool_t _enabled = enabled ? tsk_true : tsk_false; + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_STUN_ENABLED(_enabled), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setTLSSecAgree(bool enabled) +{ + tsk_bool_t _enable = enabled ? tsk_true : tsk_false; + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_SECAGREE_TLS(_enable), + TSIP_STACK_SET_NULL()) == 0); +} + +/*@deprecated: typo */ +bool SipStack::setSSLCretificates(const char* privKey, const char* pubKey, const char* caKey, bool verify/* = false*/) +{ + return setSSLCertificates(privKey, pubKey, caKey, verify); +} + +bool SipStack::setSSLCertificates(const char* privKey, const char* pubKey, const char* caKey, bool verify/* = false*/) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_TLS_CERTS_2(caKey, pubKey, privKey, (verify ? tsk_true : tsk_false)), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setIPSecSecAgree(bool enabled) +{ + tsk_bool_t _enable = enabled; + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_SECAGREE_IPSEC(_enable), + TSIP_STACK_SET_NULL()) == 0); +} + +bool SipStack::setIPSecParameters(const char* algo, const char* ealgo, const char* mode, const char* proto) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_IPSEC_PARAMS(algo, ealgo, mode, proto), + TSIP_STACK_SET_NULL()) == 0); +} + +char* SipStack::dnsENUM(const char* service, const char* e164num, const char* domain) +{ + tnet_dns_ctx_t* dnsctx = tsip_stack_get_dnsctx(m_pHandle); + char* uri = tsk_null; + + if(dnsctx){ + if(!(uri = tnet_dns_enum_2(dnsctx, service, e164num, domain))){ + TSK_DEBUG_ERROR("ENUM(%s) failed", e164num); + } + tsk_object_unref(dnsctx); + return uri; + } + else{ + TSK_DEBUG_ERROR("No DNS Context could be found"); + return tsk_null; + } +} + +char* SipStack::dnsNaptrSrv(const char* domain, const char* service, unsigned short *OUTPUT) +{ + tnet_dns_ctx_t* dnsctx = tsip_stack_get_dnsctx(m_pHandle); + char* ip = tsk_null; + tnet_port_t port; + *OUTPUT = 0; + + + if(dnsctx){ + if(!tnet_dns_query_naptr_srv(dnsctx, domain, service, &ip, &port)){ + *OUTPUT = port; + } + tsk_object_unref(dnsctx); + return ip; + } + else{ + TSK_DEBUG_ERROR("No DNS Context could be found"); + return tsk_null; + } +} + +char* SipStack::dnsSrv(const char* service, unsigned short* OUTPUT) +{ + tnet_dns_ctx_t* dnsctx = tsip_stack_get_dnsctx(m_pHandle); + char* ip = tsk_null; + tnet_port_t port = 0; + *OUTPUT = 0; + + if(dnsctx){ + if(!tnet_dns_query_srv(dnsctx, service, &ip, &port)){ + *OUTPUT = port; + } + tsk_object_unref(dnsctx); + return ip; + } + else{ + TSK_DEBUG_ERROR("No DNS Context could be found"); + return tsk_null; + } +} + +bool SipStack::setMaxFDs(unsigned max_fds) +{ + return (tsip_stack_set(m_pHandle, + TSIP_STACK_SET_MAX_FDS(max_fds), + TSIP_STACK_SET_NULL()) == 0); +} + +char* SipStack::getLocalIPnPort(const char* protocol, unsigned short* OUTPUT) +{ + tnet_ip_t ip; + tnet_port_t port; + int ret; + + if(!OUTPUT || !protocol){ + TSK_DEBUG_ERROR("invalid parameter"); + return tsk_null; + } + + if((ret = tsip_stack_get_local_ip_n_port(m_pHandle, protocol, &port, &ip))){ + TSK_DEBUG_ERROR("Failed to get local ip and port with error code=%d", ret); + return tsk_null; + } + + *OUTPUT = port; + return tsk_strdup(ip); // See Swig %newobject +} + +char* SipStack::getPreferredIdentity() +{ + tsip_uri_t* ppid = tsip_stack_get_preferred_id(m_pHandle); + char* str_ppid = tsk_null; + if(ppid){ + str_ppid = tsip_uri_tostring(ppid, tsk_false, tsk_false); + TSK_OBJECT_SAFE_FREE(ppid); + } + return str_ppid; +} + +bool SipStack::isValid() +{ + return (m_pHandle != tsk_null); +} + +bool SipStack::stop() +{ + int ret = tsip_stack_stop(m_pHandle); + return (ret == 0); +} + +bool SipStack::initialize() +{ + if (!g_bInitialized) { + int ret; + + if((ret = tnet_startup())){ + TSK_DEBUG_ERROR("tnet_startup failed with error code=%d", ret); + return false; + } + if((ret = thttp_startup())){ + TSK_DEBUG_ERROR("thttp_startup failed with error code=%d", ret); + return false; + } + if((ret = tdav_init())){ + TSK_DEBUG_ERROR("tdav_init failed with error code=%d", ret); + return false; + } + g_bInitialized = true; + } + return true; +} + +bool SipStack::deInitialize() +{ + if (SipStack::g_bInitialized) { + tdav_deinit(); + thttp_cleanup(); + tnet_cleanup(); + SipStack::g_bInitialized = false; + } + return false; +} + +void SipStack::setCodecs(tdav_codec_id_t codecs) +{ + tdav_set_codecs(codecs); +} + +void SipStack::setCodecs_2(int64_t codecs) // For stupid languages +{ + SipStack::setCodecs((tdav_codec_id_t)codecs); +} + +bool SipStack::setCodecPriority(tdav_codec_id_t codec_id, int priority) +{ + return tdav_codec_set_priority(codec_id, priority) == 0; +} + +bool SipStack::setCodecPriority_2(int codec_id, int priority)// For stupid languages +{ + return SipStack::setCodecPriority((tdav_codec_id_t)codec_id, priority); +} + +bool SipStack::isCodecSupported(tdav_codec_id_t codec_id) +{ + return tdav_codec_is_supported(codec_id) ? true : false; +} + +bool SipStack::isIPSecSupported() +{ + return tdav_ipsec_is_supported() ? true : false; +} + +static int stack_callback(const tsip_event_t *sipevent) +{ + int ret = 0; + const SipStack* sipStack = tsk_null; + SipEvent* e = tsk_null; + + if(!sipevent){ /* should never happen ...but who know? */ + TSK_DEBUG_WARN("Null SIP event."); + return -1; + } + else { + if(sipevent->type == tsip_event_stack && sipevent->userdata){ + /* sessionless event */ + sipStack = dyn_cast((const SipStack*)sipevent->userdata); + } + else { + const void* userdata; + /* gets the stack from the session */ + const tsip_stack_handle_t* stack_handle = tsip_ssession_get_stack(sipevent->ss); + if(stack_handle && (userdata = tsip_stack_get_userdata(stack_handle))){ + sipStack = dyn_cast((const SipStack*)userdata); + } + } + } + + if(!sipStack){ + TSK_DEBUG_WARN("Invalid SIP event (Stack is Null)."); + return -2; + } + + sipStack->Lock(); + + switch(sipevent->type){ + case tsip_event_register: + { /* REGISTER */ + if(sipStack->getCallback()){ + e = new RegistrationEvent(sipevent); + sipStack->getCallback()->OnRegistrationEvent((const RegistrationEvent*)e); + } + break; + } + case tsip_event_invite: + { /* INVITE */ + if(sipStack->getCallback()){ + e = new InviteEvent(sipevent); + sipStack->getCallback()->OnInviteEvent((const InviteEvent*)e); + } + break; + } + case tsip_event_message: + { /* MESSAGE */ + if(sipStack->getCallback()){ + e = new MessagingEvent(sipevent); + sipStack->getCallback()->OnMessagingEvent((const MessagingEvent*)e); + } + break; + } + case tsip_event_info: + { /* INFO */ + if(sipStack->getCallback()){ + e = new InfoEvent(sipevent); + sipStack->getCallback()->OnInfoEvent((const InfoEvent*)e); + } + break; + } + case tsip_event_options: + { /* OPTIONS */ + if(sipStack->getCallback()){ + e = new OptionsEvent(sipevent); + sipStack->getCallback()->OnOptionsEvent((const OptionsEvent*)e); + } + break; + } + case tsip_event_publish: + { /* PUBLISH */ + if(sipStack->getCallback()){ + e = new PublicationEvent(sipevent); + sipStack->getCallback()->OnPublicationEvent((const PublicationEvent*)e); + } + break; + } + case tsip_event_subscribe: + { /* SUBSCRIBE */ + if(sipStack->getCallback()){ + e = new SubscriptionEvent(sipevent); + sipStack->getCallback()->OnSubscriptionEvent((const SubscriptionEvent*)e); + } + break; + } + + case tsip_event_dialog: + { /* Common to all dialogs */ + if(sipStack->getCallback()){ + e = new DialogEvent(sipevent); + sipStack->getCallback()->OnDialogEvent((const DialogEvent*)e); + } + break; + } + + case tsip_event_stack: + { /* Stack event */ + if(sipStack->getCallback()){ + e = new StackEvent(sipevent); + sipStack->getCallback()->OnStackEvent((const StackEvent*)e); + } + break; + } + + default: + { /* Unsupported */ + TSK_DEBUG_WARN("%d not supported as SIP event.", sipevent->type); + ret = -3; + break; + } + } + + sipStack->UnLock(); + + if(e){ + delete e; + } + + return ret; +} + diff --git a/bindings/_common/SipStack.h b/bindings/_common/SipStack.h new file mode 100644 index 0000000..1f41096 --- /dev/null +++ b/bindings/_common/SipStack.h @@ -0,0 +1,123 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIPSTACK_H +#define TINYWRAP_SIPSTACK_H + +#include "tinyWRAP_config.h" + +#include "SipCallback.h" +#include "SafeObject.h" + +#include "tinydav/tdav.h" +#include "tinysip.h" +#include "tinyhttp.h" + +class DDebugCallback; + +class TINYWRAP_API SipStack: public SafeObject +{ +public: /* ctor() and dtor() */ + SipStack(SipCallback* pCallback, const char* realm_uri, const char* impi_uri, const char* impu_uri); + ~SipStack(); + +public: /* API functions */ + bool start(); + bool setDebugCallback(DDebugCallback* pCallback); + bool setDisplayName(const char* display_name); + bool setRealm(const char* realm_uri); + bool setIMPI(const char* impi); + bool setIMPU(const char* impu_uri); + bool setPassword(const char* password); + bool setAMF(const char* amf); + bool setOperatorId(const char* opid); + bool setProxyCSCF(const char* fqdn, unsigned short port, const char* transport, const char* ipversion); + bool setLocalIP(const char* ip, const char* transport=tsk_null); + bool setLocalPort(unsigned short port, const char* transport=tsk_null); + bool setEarlyIMS(bool enabled); + bool addHeader(const char* name, const char* value); + bool removeHeader(const char* name); + bool addDnsServer(const char* ip); + bool setDnsDiscovery(bool enabled); + bool setAoR(const char* ip, int port); +#if !defined(SWIG) + bool setMode(enum tsip_stack_mode_e mode); +#endif + + bool setSigCompParams(unsigned dms, unsigned sms, unsigned cpb, bool enablePresDict); + bool addSigCompCompartment(const char* compId); + bool removeSigCompCompartment(const char* compId); + + bool setSTUNEnabledForICE(bool enabled); // @deprecated + bool setSTUNServer(const char* hostname, unsigned short port); // @deprecated + bool setSTUNCred(const char* login, const char* password); // @deprecated + bool setSTUNEnabled(bool enabled); + + bool setTLSSecAgree(bool enabled); + bool setSSLCertificates(const char* privKey, const char* pubKey, const char* caKey, bool verify = false); + bool setSSLCretificates(const char* privKey, const char* pubKey, const char* caKey, bool verify = false); /*@deprecated: typo */ + bool setIPSecSecAgree(bool enabled); + bool setIPSecParameters(const char* algo, const char* ealgo, const char* mode, const char* proto); + + char* dnsENUM(const char* service, const char* e164num, const char* domain); + char* dnsNaptrSrv(const char* domain, const char* service, unsigned short *OUTPUT); + char* dnsSrv(const char* service, unsigned short* OUTPUT); + + bool setMaxFDs(unsigned max_fds); + + char* getLocalIPnPort(const char* protocol, unsigned short* OUTPUT); + + char* getPreferredIdentity(); + + bool isValid(); + bool stop(); + + static bool initialize(); + static bool deInitialize(); + static void setCodecs(tdav_codec_id_t codecs); + static void setCodecs_2(int64_t codecs); // For stupid languages + static bool setCodecPriority(tdav_codec_id_t codec_id, int priority); + static bool setCodecPriority_2(int codec, int priority);// For stupid languages + static bool isCodecSupported(tdav_codec_id_t codec_id); + static bool isIPSecSupported(); + +public: /* Public helper function */ +#if !defined(SWIG) + inline tsip_stack_handle_t* getHandle()const{ + return m_pHandle; + } + inline SipCallback* getCallback()const{ + return m_pCallback; + } + inline DDebugCallback* getDebugCallback() const{ + return m_pDebugCallback; + } +#endif + +private: + SipCallback* m_pCallback; + DDebugCallback* m_pDebugCallback; + tsip_stack_handle_t* m_pHandle; + + static bool g_bInitialized; +}; + +#endif /* TINYWRAP_SIPSTACK_H */ diff --git a/bindings/_common/SipStack.i b/bindings/_common/SipStack.i new file mode 100644 index 0000000..db52855 --- /dev/null +++ b/bindings/_common/SipStack.i @@ -0,0 +1,457 @@ + +%{ +#include "ActionConfig.h" +#include "MediaSessionMgr.h" +#include "MediaContent.h" +#include "SipUri.h" +#include "SipMessage.h" +#include "SipEvent.h" +#include "SipSession.h" + +#include "ProxyPluginMgr.h" +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" +%} + +/* Callbacks */ +%feature("director") SipCallback; +%feature("director") ProxyPluginMgrCallback; +%feature("director") ProxyAudioConsumerCallback; +%feature("director") ProxyVideoConsumerCallback; +%feature("director") ProxyAudioProducerCallback; +%feature("director") ProxyVideoProducerCallback; +%feature("director") T140Callback; + +%nodefaultctor; +%include "ActionConfig.h" +%include "MediaSessionMgr.h" +%include "MediaContent.h" +%include "SipUri.h" +%include "SipMessage.h" +%include "SipEvent.h" +%include "SipSession.h" + +%include "ProxyPluginMgr.h" +%include "ProxyConsumer.h" +%include "ProxyProducer.h" + +%include "SipCallback.h" +%include "SafeObject.h" +%include "SipStack.h" +%clearnodefaultctor; + + +/* ====== From "tinySIP\include\tsip.h" ====== */ +typedef enum tsip_stack_mode_e +{ + tsip_stack_mode_ua, + tsip_stack_mode_p2p, + tsip_stack_mode_mediaproxy, + tsip_stack_mode_mcu +} +tsip_stack_mode_t; + +/* ====== From "tinySIP\include\tinysip\tsip_messag_common.h" ====== */ +typedef enum tsip_request_type_e +{ + tsip_NONE = 0, + + tsip_ACK, + tsip_BYE, + tsip_CANCEL, + tsip_INVITE, + tsip_OPTIONS, + tsip_REGISTER, + tsip_SUBSCRIBE, + tsip_NOTIFY, + tsip_REFER, + tsip_INFO, + tsip_UPDATE, + tsip_MESSAGE, + tsip_PUBLISH, + tsip_PRACK +} +tsip_request_type_t; + + +/* ====== From "tinySIP\include\tinysip\tsip_event.h" ====== */ +typedef enum tsip_event_type_e +{ + tsip_event_invite, + tsip_event_message, + tsip_event_info, + tsip_event_options, + tsip_event_publish, + tsip_event_register, + tsip_event_subscribe, + + tsip_event_dialog +} +tsip_event_type_t; + +// 7xx ==> errors +#define tsip_event_code_dialog_transport_error 702 +#define tsip_event_code_dialog_global_error 703 +#define tsip_event_code_dialog_message_error 704 + +// 8xx ==> success +#define tsip_event_code_dialog_request_incoming 800 +#define tsip_event_code_dialog_request_outgoing 802 +#define tsip_event_code_dialog_request_cancelled 803 +#define tsip_event_code_dialog_request_sent 804 + +// 9xx ==> Informational +#define tsip_event_code_dialog_connecting 900 +#define tsip_event_code_dialog_connected 901 +#define tsip_event_code_dialog_terminating 902 +#define tsip_event_code_dialog_terminated 903 +#define tsip_event_code_stack_starting 950 +#define tsip_event_code_stack_started 951 +#define tsip_event_code_stack_stopping 952 +#define tsip_event_code_stack_stopped 953 +#define tsip_event_code_stack_failed_to_start 954 +#define tsip_event_code_stack_failed_to_stop 955 +#define tsip_event_code_stack_disconnected 956 + +/* ====== From "tinySIP\include\tinysip\tsip_api_register.h" ====== */ +typedef enum tsip_register_event_type_e +{ + tsip_i_newreg, + + tsip_i_register, // refresh + tsip_ao_register, + + tsip_i_unregister, + tsip_ao_unregister, +} +tsip_register_event_type_t; + +/* ====== From "tinySIP\include\tinysip\tsip_api_subscribe.h" ====== */ +typedef enum tsip_subscribe_event_type_e +{ + tsip_i_subscribe, + tsip_ao_subscribe, + + tsip_i_unsubscribe, + tsip_ao_unsubscribe, + + tsip_i_notify, + tsip_ao_notify +} +tsip_subscribe_event_type_t; + +/* ====== From "tinySIP\include\tinysip\tsip_api_publish.h" ====== */ +typedef enum tsip_publish_event_type_e +{ + tsip_i_publish, + tsip_ao_publish, + + tsip_i_unpublish, + tsip_ao_unpublish +} +tsip_publish_event_type_t; + +/* ====== From "tinySIP\include\tinysip\tsip_api_message.h" ====== */ +typedef enum tsip_message_event_type_e +{ + tsip_i_message, + tsip_ao_message, +} +tsip_message_event_type_t; + +/* ====== From "tinySIP\include\tinysip\tsip_api_info.h" ====== */ +typedef enum tsip_info_event_type_e +{ + tsip_i_info, + tsip_ao_info, +} +tsip_info_event_type_t; + +/* ====== From "tinySIP\include\tinysip\tsip_api_options.h" ====== */ +typedef enum tsip_options_event_type_e +{ + tsip_i_options, + tsip_ao_options, +} +tsip_options_event_type_t; + + +/* ====== From "tinySIP\include\tinysip\tsip_api_invite.h" ====== */ +typedef enum tsip_invite_event_type_e +{ + // ============================ + // Sip Events + // + tsip_i_newcall, + + //! in-dialog requests/reponses + tsip_i_request, + tsip_ao_request, + + /* 3GPP TS 24.629: Explicit Call Transfer (ECT) */ + tsip_o_ect_trying, + tsip_o_ect_accepted, + tsip_o_ect_completed, + tsip_o_ect_failed, + tsip_o_ect_notify, + tsip_i_ect_requested, + tsip_i_ect_newcall, + tsip_i_ect_completed, + tsip_i_ect_failed, + tsip_i_ect_notify, + + // ============================ + // Media Events + // + + tsip_m_early_media, + tsip_m_updating, // Trying to update from Audio -> Video for example + tsip_m_updated, // succeed to update + + /* 3GPP TS 24.610: Communication Hold */ + tsip_m_local_hold_ok, + tsip_m_local_hold_nok, + tsip_m_local_resume_ok, + tsip_m_local_resume_nok, + tsip_m_remote_hold, + tsip_m_remote_resume, +} +tsip_invite_event_type_t; + + +/* ====== From "tinymedia/tmedia_qos.h" ====== */ +typedef enum tmedia_qos_stype_e +{ + tmedia_qos_stype_none,/* not part of the RFC */ + + tmedia_qos_stype_segmented, + tmedia_qos_stype_e2e, +} +tmedia_qos_stype_t; + +/* ====== From "tinymedia/tmedia_qos.h" ====== */ +typedef enum tmedia_qos_strength_e +{ + /* do no change the order (none -> optional -> manadatory) */ + tmedia_qos_strength_none, + tmedia_qos_strength_failure, + tmedia_qos_strength_unknown, + tmedia_qos_strength_optional, + tmedia_qos_strength_mandatory +} +tmedia_qos_strength_t; + + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +// used by tinyWRAP +typedef enum tmedia_chroma_e +{ + tmedia_chroma_none=0, + tmedia_chroma_rgb24, // will be stored as bgr24 on x86 (little endians) machines; e.g. WindowsPhone7 + tmedia_chroma_bgr24, // used by windows consumer (DirectShow) - + tmedia_chroma_rgb32, // used by iOS4 consumer (iPhone and iPod touch) + tmedia_chroma_rgb565le, // (used by both android and wince consumers) + tmedia_chroma_rgb565be, + tmedia_chroma_nv12, // used by iOS4 producer (iPhone and iPod Touch 3GS and 4) + tmedia_chroma_nv21, // Yuv420 SP (used by android producer) + tmedia_chroma_yuv422p, + tmedia_chroma_uyvy422, // used by iOS4 producer (iPhone and iPod Touch 3G) + tmedia_chroma_yuv420p, // Default + tmedia_chroma_mjpeg, // Compressed. e.g. used by VirtualBox (Windows as host and Ubuntu as guest) + tmedia_chroma_yuyv422, // YUYV422 (V4L2 preferred format) +} +tmedia_chroma_t; + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +typedef enum tmedia_mode_e +{ + tmedia_mode_none, + tmedia_mode_optional, + tmedia_mode_mandatory +} +tmedia_mode_t; + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +typedef enum tmedia_srtp_mode_e +{ + tmedia_srtp_mode_none, + tmedia_srtp_mode_optional, + tmedia_srtp_mode_mandatory +} +tmedia_srtp_mode_t; + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +typedef enum tmedia_srtp_type_e +{ + tmedia_srtp_type_none = 0x00, + tmedia_srtp_type_sdes = 0x01, + tmedia_srtp_type_dtls = 0x02, + tmedia_srtp_type_sdes_dtls = (0x01 | 0x02) +} +tmedia_srtp_type_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_rtcp_event_type_e +#{ +# tmedia_rtcp_event_type_fir, // Full Intra Refresh +#} +#tmedia_rtcp_event_type_t; + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +typedef enum tmedia_profile_e +{ + tmedia_profile_default, + tmedia_profile_rtcweb +} +tmedia_profile_t; + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +// @deprecated +typedef enum tmedia_bandwidth_level_e +{ + tmedia_bl_low, + tmedia_bl_medium, + tmedia_bl_hight, + tmedia_bl_unrestricted +} +tmedia_bandwidth_level_t; + +/* ====== From "tinymedia/tmedia_common.h" ====== */ +typedef enum tmedia_pref_video_size_s +{ /* must be sorted like this */ + tmedia_pref_video_size_sqcif, // 128 x 98 + tmedia_pref_video_size_qcif, // 176 x 144 + tmedia_pref_video_size_qvga, // 320 x 240 + tmedia_pref_video_size_cif, // 352 x 288 + tmedia_pref_video_size_hvga, // 480 x 320 + tmedia_pref_video_size_vga, // 640 x 480 + tmedia_pref_video_size_4cif, // 704 x 576 + tmedia_pref_video_size_wvga, // 800 x 480 + tmedia_pref_video_size_svga, // 800 x 600 + tmedia_pref_video_size_480p, // 852 x 480 + tmedia_pref_video_size_xga, // 1024 x 768 + tmedia_pref_video_size_720p, // 1280 x 720 + tmedia_pref_video_size_16cif, // 1408 x 1152 + tmedia_pref_video_size_1080p, // 1920 x 1080 + tmedia_pref_video_size_2160p, // 3840 x 2160 +} +tmedia_pref_video_size_t; + + +/* ====== From "tinymedia/tmedia_codec.h" ====== */ +typedef enum tmedia_codec_id_e +{ + tmedia_codec_id_none = 0x00000000, + + tmedia_codec_id_amr_nb_oa = 0x00000001<<0, + tmedia_codec_id_amr_nb_be = 0x00000001<<1, + tmedia_codec_id_amr_wb_oa = 0x00000001<<2, + tmedia_codec_id_amr_wb_be = 0x00000001<<3, + tmedia_codec_id_gsm = 0x00000001<<4, + tmedia_codec_id_pcma = 0x00000001<<5, + tmedia_codec_id_pcmu = 0x00000001<<6, + tmedia_codec_id_ilbc = 0x00000001<<7, + tmedia_codec_id_speex_nb = 0x00000001<<8, + tmedia_codec_id_speex_wb = 0x00000001<<9, + tmedia_codec_id_speex_uwb = 0x00000001<<10, + tmedia_codec_id_bv16 = 0x00000001<<11, + tmedia_codec_id_bv32 = 0x00000001<<12, + tmedia_codec_id_opus = 0x00000001<<13, + tmedia_codec_id_g729ab = 0x00000001<<14, + tmedia_codec_id_g722 = 0x00000001<<15, + + /* room for new Audio codecs */ + + tmedia_codec_id_h261 = 0x00010000<<0, + tmedia_codec_id_h263 = 0x00010000<<1, + tmedia_codec_id_h263p = 0x00010000<<2, + tmedia_codec_id_h263pp = 0x00010000<<3, + tmedia_codec_id_h264_bp = 0x00010000<<4, + tmedia_codec_id_h264_mp = 0x00010000<<5, + tmedia_codec_id_h264_hp = 0x00010000<<6, + tmedia_codec_id_h264_bp10 = tmedia_codec_id_h264_bp, // @deprecated + tmedia_codec_id_h264_bp20 = tmedia_codec_id_h264_bp, // @deprecated + tmedia_codec_id_h264_bp30 = tmedia_codec_id_h264_bp, // @deprecated + tmedia_codec_id_h264_svc = 0x00010000<<7, + tmedia_codec_id_theora = 0x00010000<<8, + tmedia_codec_id_mp4ves_es = 0x00010000<<9, + tmedia_codec_id_vp8 = 0x00010000<<10, + + /* room for new Video codecs */ + + tmedia_codec_id_t140 = 0x00010000<<14, + tmedia_codec_id_red = 0x00010000<<15, +} +tmedia_codec_id_t; + +/* ====== From "tinydav/tdav.h" ====== */ +// @deprecated: to be replaced by "tmedia_codec_id_t" in Doubango 3.0 +typedef enum tdav_codec_id_e +{ + tdav_codec_id_none = 0x00000000, + + tdav_codec_id_amr_nb_oa = 0x00000001<<0, + tdav_codec_id_amr_nb_be = 0x00000001<<1, + tdav_codec_id_amr_wb_oa = 0x00000001<<2, + tdav_codec_id_amr_wb_be = 0x00000001<<3, + tdav_codec_id_gsm = 0x00000001<<4, + tdav_codec_id_pcma = 0x00000001<<5, + tdav_codec_id_pcmu = 0x00000001<<6, + tdav_codec_id_ilbc = 0x00000001<<7, + tdav_codec_id_speex_nb = 0x00000001<<8, + tdav_codec_id_speex_wb = 0x00000001<<9, + tdav_codec_id_speex_uwb = 0x00000001<<10, + tdav_codec_id_bv16 = 0x00000001<<11, + tdav_codec_id_bv32 = 0x00000001<<12, + tdav_codec_id_opus = 0x00000001<<13, + tdav_codec_id_g729ab = 0x00000001<<14, + tdav_codec_id_g722 = 0x00000001<<15, + + /* room for new Audio codecs */ + + tdav_codec_id_h261 = 0x00010000<<0, + tdav_codec_id_h263 = 0x00010000<<1, + tdav_codec_id_h263p = 0x00010000<<2, + tdav_codec_id_h263pp = 0x00010000<<3, + tdav_codec_id_h264_bp = 0x00010000<<4, + tdav_codec_id_h264_mp = 0x00010000<<5, + tdav_codec_id_h264_hp = 0x00010000<<6, + tdav_codec_id_h264_bp10 = tdav_codec_id_h264_bp, // @deprecated + tdav_codec_id_h264_bp20 = tdav_codec_id_h264_bp, // @deprecated + tdav_codec_id_h264_bp30 = tdav_codec_id_h264_bp, // @deprecated + 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, + + /* room for new Video codecs */ + + tdav_codec_id_t140 = 0x00010000<<14, + tdav_codec_id_red = 0x00010000<<15, +} +tdav_codec_id_t; diff --git a/bindings/_common/SipUri.cxx b/bindings/_common/SipUri.cxx new file mode 100644 index 0000000..eaddf55 --- /dev/null +++ b/bindings/_common/SipUri.cxx @@ -0,0 +1,102 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "SipUri.h" + +SipUri::SipUri(const char* uriString, const char* displayName/*=tsk_null*/) +{ + if((m_pUri = tsip_uri_parse(uriString, (tsk_size_t)tsk_strlen(uriString))) && displayName){ + m_pUri->display_name = tsk_strdup(displayName); + } +} + +SipUri::~SipUri() +{ + TSK_OBJECT_SAFE_FREE(m_pUri); +} + +bool SipUri::isValid(const char* uriString) +{ + tsip_uri_t* uri; + bool ret = false; + + if((uri = tsip_uri_parse(uriString, (tsk_size_t)tsk_strlen(uriString)))){ + ret = (uri->type != uri_unknown) + && (!tsk_strnullORempty(uri->host)); + TSK_OBJECT_SAFE_FREE(uri); + } + return ret; +} + +bool SipUri::isValid() +{ + return (m_pUri != tsk_null); +} + +const char* SipUri::getScheme() +{ + if(m_pUri){ + return m_pUri->scheme; + } + return tsk_null; +} + +const char* SipUri::getHost() +{ + return m_pUri ? m_pUri->host : tsk_null; +} + +unsigned short SipUri::getPort() +{ + return m_pUri ? m_pUri->port : 0; +} + +const char* SipUri::getUserName() +{ + return m_pUri ? m_pUri->user_name : tsk_null; +} + +const char* SipUri::getPassword() +{ + return m_pUri ? m_pUri->password : tsk_null; +} + +const char* SipUri::getDisplayName() +{ + return m_pUri ? m_pUri->display_name : tsk_null; +} + +void SipUri::setDisplayName(const char* displayName) +{ + if(m_pUri){ + tsk_strupdate(&m_pUri->display_name, displayName); + } +} + +const char* SipUri::getParamValue(const char* pname) +{ + if(m_pUri && m_pUri->params){ + const char* pvalue = tsk_params_get_param_value(m_pUri->params, pname); + return pvalue; + } + return tsk_null; +} + diff --git a/bindings/_common/SipUri.h b/bindings/_common/SipUri.h new file mode 100644 index 0000000..9e2d15c --- /dev/null +++ b/bindings/_common/SipUri.h @@ -0,0 +1,57 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_SIPURI_H +#define TINYWRAP_SIPURI_H + +#include "tinyWRAP_config.h" + +#include "tinysip.h" + +class TINYWRAP_API SipUri +{ +public: + SipUri(const char* uriString, const char* displayName=tsk_null); + ~SipUri(); + +public: + static bool isValid(const char*); + + bool isValid(); + const char* getScheme(); + const char* getHost(); + unsigned short getPort(); + const char* getUserName(); + const char* getPassword(); + const char* getDisplayName(); + const char* getParamValue(const char* pname); + void setDisplayName(const char* displayName); +#if !defined(SWIG) + inline const tsip_uri_t* getWrappedUri()const{ + return m_pUri; + } +#endif + +private: + tsip_uri_t* m_pUri; +}; + +#endif /* TINYWRAP_SIPURI_H */ diff --git a/bindings/_common/Xcap.cxx b/bindings/_common/Xcap.cxx new file mode 100644 index 0000000..adb5609 --- /dev/null +++ b/bindings/_common/Xcap.cxx @@ -0,0 +1,563 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#include "Xcap.h" + +#include "Common.h" + +unsigned XcapStack::count = 0; + +/* === ANSI-C functions (local use) === */ +static int stack_callback(const thttp_event_t *httpevent); + +/* =================================== XCAP Event ==================================== */ +typedef enum twrap_xcap_step_type_e +{ + txst_name, + txst_pos, + txst_att, + txst_pos_n_att, + txst_ns +} +twrap_xcap_step_type_t; + +typedef struct twrap_xcap_step_s +{ + TSK_DECLARE_OBJECT; + + twrap_xcap_step_type_t type; + char* qname; + char* att_qname; + char* att_value; + unsigned pos; + struct{ + char* prefix; + char* value; + } ns; +} +twrap_xcap_step_t; + +static tsk_object_t* twrap_xcap_step_ctor(tsk_object_t * self, va_list * app) +{ + twrap_xcap_step_t *step = (twrap_xcap_step_t *)self; + if(step){ + } + return self; +} + +static tsk_object_t* twrap_xcap_step_dtor(tsk_object_t * self) +{ + twrap_xcap_step_t *step = (twrap_xcap_step_t *)self; + if(step){ + TSK_FREE(step->qname); + TSK_FREE(step->att_qname); + TSK_FREE(step->att_value); + TSK_FREE(step->ns.prefix); + TSK_FREE(step->ns.value); + } + + return self; +} + +static const tsk_object_def_t twrap_xcap_step_def_s = +{ + sizeof(twrap_xcap_step_t), + twrap_xcap_step_ctor, + twrap_xcap_step_dtor, + tsk_null, +}; +const tsk_object_def_t *twrap_xcap_step_def_t = &twrap_xcap_step_def_s; + +twrap_xcap_step_t* twrap_xcap_step_create(twrap_xcap_step_type_t type){ + twrap_xcap_step_t* step; + if((step = (twrap_xcap_step_t*)tsk_object_new(twrap_xcap_step_def_t))){ + step->type = type; + } + return step; +} + +XcapSelector::XcapSelector(XcapStack* stack) +: auid(tsk_null) +{ + if(stack){ + this->stack_handle = tsk_object_ref(stack->getHandle()); + } + this->steps = tsk_list_create(); +} + + +XcapSelector* XcapSelector::setAUID(const char* auid) +{ + tsk_strupdate(&this->auid, auid); + return this; +} + +XcapSelector* XcapSelector::setName(const char* qname) +{ + twrap_xcap_step_t* step; + if((step = twrap_xcap_step_create(txst_name))){ + step->qname = tsk_strdup(qname); + tsk_list_push_back_data(this->steps, (void**)&step); + } + return this; +} + +XcapSelector* XcapSelector::setAttribute(const char* qname, const char* att_qname, const char* att_value) +{ + twrap_xcap_step_t* step; + if((step = twrap_xcap_step_create(txst_att))){ + step->qname = tsk_strdup(qname); + step->att_qname = tsk_strdup(att_qname); + step->att_value = tsk_strdup(att_value); + tsk_list_push_back_data(this->steps, (void**)&step); + } + return this; +} + +XcapSelector* XcapSelector::setPos(const char* qname, unsigned pos) +{ + twrap_xcap_step_t* step; + if((step = twrap_xcap_step_create(txst_pos))){ + step->qname = tsk_strdup(qname); + step->pos = pos; + tsk_list_push_back_data(this->steps, (void**)&step); + } + return this; +} + +XcapSelector* XcapSelector::setPosAttribute(const char* qname, unsigned pos, const char* att_qname, const char* att_value) +{ + twrap_xcap_step_t* step; + if((step = twrap_xcap_step_create(txst_pos))){ + step->qname = tsk_strdup(qname); + step->pos = pos; + step->att_qname = tsk_strdup(att_qname); + step->att_value = tsk_strdup(att_value); + tsk_list_push_back_data(this->steps, (void**)&step); + } + return this; +} + +XcapSelector* XcapSelector::setNamespace(const char* prefix, const char* value) +{ + twrap_xcap_step_t* step; + if((step = twrap_xcap_step_create(txst_ns))){ + step->ns.prefix = tsk_strdup(prefix); + step->ns.value = tsk_strdup(value); + tsk_list_push_back_data(this->steps, (void**)&step); + } + return this; +} + +/* From tinyXCAP::txcap_selector_get_node_2() */ +char* XcapSelector::getString() +{ + char* node = tsk_null; + char* temp = tsk_null; + char* _namespace = tsk_null; + tsk_buffer_t* buffer = tsk_buffer_create_null(); + const tsk_list_item_t* item; + const twrap_xcap_step_t* step; + + /* Node */ + tsk_list_foreach(item, this->steps){ + step = (twrap_xcap_step_t*)item->data; + switch(step->type){ + case txst_name: + if(tsk_buffer_append_2(buffer, "/%s", step->qname)){ + goto bail; + } + break; + + case txst_pos: + tsk_buffer_append_2(buffer, "/%s%%5B%u%%5D", + step->att_qname, step->pos); + break; + + case txst_att: + tsk_buffer_append_2(buffer, "/%s%%5B@%s=%%22%s%%22%%5D", + step->qname, step->att_qname, step->att_value); + break; + + case txst_pos_n_att: + tsk_buffer_append_2(buffer, "/%s%%5B%u%%5D%%5B@%s=%%22%s%%22%%5D", + step->qname, step->pos, step->att_qname, step->att_value); + break; + + case txst_ns: + tsk_sprintf(&temp, "%sxmlns(%s=%%22%s%%22)", + _namespace?"":"%3F", step->ns.prefix, step->ns.value); + tsk_strcat(&_namespace, temp); + TSK_FREE(temp); + break; + + + } /* switch */ + } /* for */ + + /* append the namespace */ + if(_namespace){ + tsk_buffer_append(buffer, _namespace, (tsk_size_t)tsk_strlen(_namespace)); + TSK_FREE(_namespace); + } + +bail: + if(TSK_BUFFER_DATA(buffer) && TSK_BUFFER_SIZE(buffer)){ + node = tsk_strndup((const char*)TSK_BUFFER_DATA(buffer), TSK_BUFFER_SIZE(buffer)); + } + TSK_OBJECT_SAFE_FREE(buffer); + + + /* Document */ + if(this->auid){ + char* document; + if((document = txcap_selector_get_document(this->stack_handle, this->auid))){ + if(node){ + tsk_strcat_2(&document, "/~~/%s%s", this->auid, node); + TSK_FREE(node); + } + return document; + } + } + + return node; +} + +void XcapSelector::reset() +{ + TSK_FREE(this->auid); + tsk_list_clear_items(this->steps); +} + +XcapSelector::~XcapSelector() +{ + this->reset(); + TSK_OBJECT_SAFE_FREE(this->steps); + + tsk_object_unref(this->stack_handle); +} + +/* =================================== XCAP Message ==================================== */ +XcapMessage::XcapMessage() : +httpmessage(tsk_null) +{ +} + +XcapMessage::XcapMessage(const thttp_message_t *_httpmessage) +{ + this->httpmessage = _httpmessage; +} + +XcapMessage::~XcapMessage() +{ +} + +short XcapMessage::getCode() const +{ + if(this->httpmessage){ + return this->httpmessage->line.response.status_code; + } + return 0; +} + +const char* XcapMessage::getPhrase() const +{ + if(this->httpmessage){ + return this->httpmessage->line.response.reason_phrase; + } + return tsk_null; +} + +char* XcapMessage::getXcapHeaderValue(const char* name, unsigned index /*= 0*/) +{ + const thttp_header_t* header; + if((header = thttp_message_get_headerByName(this->httpmessage, name))){ + return thttp_header_value_tostring(header); + } + return tsk_null; +} + +char* XcapMessage::getXcapHeaderParamValue(const char* name, const char* pname, unsigned index /*= 0*/) +{ + const thttp_header_t* header; + if((header = thttp_message_get_headerByName(this->httpmessage, name))){ + const tsk_param_t* param; + if((param = tsk_params_get_param_by_name(header->params, pname))){ + return tsk_strdup(param->value); + } + } + return tsk_null; +} + +unsigned XcapMessage::getXcapContentLength() +{ + if(this->httpmessage && this->httpmessage->Content){ + return this->httpmessage->Content->size; + } + return 0; +} + +unsigned XcapMessage::getXcapContent(void* output, unsigned maxsize) +{ + unsigned retsize = 0; + if(output && maxsize && this->httpmessage->Content){ + retsize = (this->httpmessage->Content->size > maxsize) ? maxsize : this->httpmessage->Content->size; + memcpy(output, this->httpmessage->Content->data, retsize); + } + return retsize; +} + + +/* =================================== XCAP Event ==================================== */ +XcapEvent::XcapEvent(const thttp_event_t *_httpevent) +{ + this->httpevent = _httpevent; + if(_httpevent){ + this->httpmessage = new XcapMessage(_httpevent->message); + } + else{ + this->httpmessage = tsk_null; + } +} + +XcapEvent::~XcapEvent() +{ + if(this->httpmessage){ + delete this->httpmessage; + } +} + +thttp_event_type_t XcapEvent::getType() +{ + return this->httpevent->type; +} + +const XcapMessage* XcapEvent::getXcapMessage() const +{ + return this->httpmessage; +} + + + + +/* =================================== XCAP Callback ==================================== */ +XcapCallback::XcapCallback() +{ +} + +XcapCallback::~XcapCallback() +{ +} + + + + + +/* =================================== XCAP Stack ==================================== */ +XcapStack::XcapStack(XcapCallback* _callback, const char* xui, const char* password, const char* xcap_root) +{ + /* Initialize network layer */ + if(XcapStack::count == 0){ + tnet_startup(); + } + + this->callback = _callback; + this->handle = txcap_stack_create(stack_callback, xui, password, xcap_root, + TXCAP_STACK_SET_USERDATA(this), + TXCAP_STACK_SET_NULL()); +} + +XcapStack::~XcapStack() +{ + TSK_OBJECT_SAFE_FREE(this->handle); + + /* DeInitialize the network layer (only if last stack) */ + if(--XcapStack::count == 0){ + tnet_cleanup(); + } +} + +bool XcapStack::registerAUID(const char* id, const char* mime_type, const char* ns, const char* document_name, bool is_global) +{ + txcap_stack_t* stack = (txcap_stack_t*)this->handle; + if(stack){ + tsk_bool_t _global = is_global?tsk_true:tsk_false; // 32bit <-> 64bit workaround + return (txcap_auid_register(stack->auids, id, mime_type, ns, document_name, _global) == 0); + } + return false; +} + +bool XcapStack::start() +{ + return (txcap_stack_start(this->handle) == 0); +} + +bool XcapStack::setCredentials(const char* xui, const char* password) +{ + return txcap_stack_set(this->handle, + TXCAP_STACK_SET_XUI(xui), + TXCAP_STACK_SET_PASSWORD(password), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::setXcapRoot(const char* xcap_root) +{ + return txcap_stack_set(this->handle, + TXCAP_STACK_SET_ROOT(xcap_root), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::setLocalIP(const char* ip) +{ + return txcap_stack_set(this->handle, + TXCAP_STACK_SET_LOCAL_IP(ip), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::setLocalPort(unsigned port) +{ + tsk_istr_t port_str; + tsk_itoa(port, &port_str); + return txcap_stack_set(this->handle, + TXCAP_STACK_SET_LOCAL_PORT(port_str), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::addHeader(const char* name, const char* value) +{ + return txcap_stack_set(this->handle, + TXCAP_STACK_SET_HEADER(name, value), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::removeHeader(const char* name) +{ + return txcap_stack_set(this->handle, + TXCAP_STACK_UNSET_HEADER(name), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::setTimeout(unsigned timeout) +{ + tsk_istr_t timeout_str; + tsk_itoa(timeout, &timeout_str); + return txcap_stack_set(this->handle, + TXCAP_STACK_SET_TIMEOUT(timeout_str), + TXCAP_STACK_SET_NULL()) == 0; +} + +bool XcapStack::getDocument(const char* url) +{ + return txcap_action_fetch_document(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::getElement(const char* url) +{ + return txcap_action_fetch_element(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::getAttribute(const char* url) +{ + return txcap_action_fetch_attribute(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::deleteDocument(const char* url) +{ + return txcap_action_delete_document(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::deleteElement(const char* url) +{ + return txcap_action_delete_element(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::deleteAttribute(const char* url) +{ + return txcap_action_delete_attribute(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_NULL()) == 0; +} + + +bool XcapStack::putDocument(const char* url, const void* payload, unsigned len, const char* contentType) +{ + return txcap_action_create_document(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_PAYLOAD(payload, len), + TXCAP_ACTION_SET_HEADER("Content-Type", contentType), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::putElement(const char* url, const void* payload, unsigned len) +{ + return txcap_action_create_element(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_PAYLOAD(payload, len), + TXCAP_ACTION_SET_NULL()) == 0; +} + +bool XcapStack::putAttribute(const char* url, const void* payload, unsigned len) +{ + return txcap_action_create_attribute(this->handle, + TXCAP_ACTION_SET_REQUEST_URI(url), + TXCAP_ACTION_SET_PAYLOAD(payload, len), + TXCAP_ACTION_SET_NULL()) == 0; +} + + +bool XcapStack::stop() +{ + return (txcap_stack_stop(this->handle) == 0); +} + + +int stack_callback(const thttp_event_t *httpevent) +{ + const XcapStack* stack = tsk_null; + XcapEvent* e = tsk_null; + + const txcap_stack_handle_t* stack_handle = thttp_session_get_userdata(httpevent->session); + if(!stack_handle || !(stack = dyn_cast((const XcapStack*)stack_handle))){ + TSK_DEBUG_ERROR("Invalid user data"); + return -1; + } + + if(stack->getCallback()){ + if((e = new XcapEvent(httpevent))){ + stack->getCallback()->onEvent(e); + delete e; + } + } + return 0; +} + + + diff --git a/bindings/_common/Xcap.h b/bindings/_common/Xcap.h new file mode 100644 index 0000000..0d26f2c --- /dev/null +++ b/bindings/_common/Xcap.h @@ -0,0 +1,165 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ +#ifndef TINYWRAP_XCAP_H +#define TINYWRAP_XCAP_H + +#include "tinyxcap.h" + +class XcapStack; + +typedef tsk_list_t twrap_xcap_steps_L_t; + +// +// XcapSelector +// +class XcapSelector +{ +public: + XcapSelector(XcapStack* stack); + virtual ~XcapSelector(); + +public: /* API functions */ + XcapSelector* setAUID(const char* auid); + XcapSelector* setName(const char* qname); + XcapSelector* setAttribute(const char* qname, const char* att_qname, const char* att_value); + XcapSelector* setPos(const char* qname, unsigned pos); + XcapSelector* setPosAttribute(const char* qname, unsigned pos, const char* att_qname, const char* att_value); + XcapSelector* setNamespace(const char* prefix, const char* value); + + char* getString();// %newobject + void reset(); + +private: + txcap_stack_handle_t* stack_handle; + char* auid; + twrap_xcap_steps_L_t* steps; +}; + +// +// XcapMessage +// +class XcapMessage +{ +public: + XcapMessage(); +#if !defined(SWIG) + XcapMessage(const thttp_message_t *httpmessage); +#endif + virtual ~XcapMessage(); + + short getCode() const; + const char* getPhrase() const; + + char* getXcapHeaderValue(const char* name, unsigned index = 0); + char* getXcapHeaderParamValue(const char* name, const char* param, unsigned index = 0); + unsigned getXcapContentLength(); + unsigned getXcapContent(void* output, unsigned maxsize); + +private: + const thttp_message_t *httpmessage; +}; + +// +// XcapEvent +// +class XcapEvent +{ +public: +#if !defined(SWIG) + XcapEvent(const thttp_event_t *httpevent); +#endif + virtual ~XcapEvent(); + thttp_event_type_t getType(); + const XcapMessage* getXcapMessage() const; + +private: + const thttp_event_t *httpevent; + const XcapMessage* httpmessage; +}; + + +// +// XcapCallback +// +class XcapCallback +{ +public: + XcapCallback(); + virtual ~XcapCallback(); + + virtual int onEvent(const XcapEvent* e)const { return -1; } +}; + + +// +// XcapStack +// +class XcapStack +{ +public: + XcapStack(XcapCallback* callback, const char* xui, const char* password, const char* xcap_root); + virtual ~XcapStack(); + +public: /* API functions */ + bool registerAUID(const char* id, const char* mime_type, const char* ns, const char* document_name, bool is_global); + bool start(); + bool setCredentials(const char* xui, const char* password); + bool setXcapRoot(const char* xcap_root); + bool setLocalIP(const char* ip); + bool setLocalPort(unsigned port); + bool addHeader(const char* name, const char* value); + bool removeHeader(const char* name); + bool setTimeout(unsigned timeout); + + bool getDocument(const char* url); + bool getElement(const char* url); + bool getAttribute(const char* url); + + bool deleteDocument(const char* url); + bool deleteElement(const char* url); + bool deleteAttribute(const char* url); + + bool putDocument(const char* url, const void* payload, unsigned len, const char* contentType); + bool putElement(const char* url, const void* payload, unsigned len); + bool putAttribute(const char* url, const void* payload, unsigned len); + + bool stop(); + +public: /* Public helper function */ +#if !defined(SWIG) + txcap_stack_handle_t* getHandle(){ + return this->handle; + } + XcapCallback* getCallback()const{ + return this->callback; + } +#endif + +private: + txcap_stack_handle_t* handle; + XcapCallback* callback; + + static unsigned count; +}; + + +#endif /* TINYWRAP_XCAP_H */ diff --git a/bindings/_common/Xcap.i b/bindings/_common/Xcap.i new file mode 100644 index 0000000..4280119 --- /dev/null +++ b/bindings/_common/Xcap.i @@ -0,0 +1,22 @@ +%{ +#include "Xcap.h" +%} + +/* Callbacks */ +%feature("director") XcapCallback; + + +%nodefaultctor; +%include "Xcap.h" +%clearnodefaultctor; + +typedef enum thttp_event_type_e +{ + thttp_event_dialog_started, + thttp_event_message, + thttp_event_auth_failed, + thttp_event_closed, + thttp_event_transport_error, + thttp_event_dialog_terminated +} +thttp_event_type_t; \ No newline at end of file diff --git a/bindings/_common/tinyWRAP.i b/bindings/_common/tinyWRAP.i new file mode 100644 index 0000000..69bdb38 --- /dev/null +++ b/bindings/_common/tinyWRAP.i @@ -0,0 +1,72 @@ +/* File : tinyWRAP.i */ +%module(directors="1") tinyWRAP +%include "typemaps.i" +%include + +%{ +#include "tinyWRAP_config.h" +#include "DDebug.h" +#include "AudioResampler.h" +%} + +%feature("director") DDebugCallback; + +%nodefaultctor; +%include "tinyWRAP_config.h" +%include "DDebug.h" +%include "AudioResampler.h" +%include "Common.h" +%clearnodefaultctor; + + + + + +/* ========== Sip/Sdp Stack ========== */ +%newobject getSipHeaderValue; +%newobject getSdpHeaderValue; +%newobject getSdpHeaderAValue; +%newobject getSipHeaderParamValue; +%newobject SipStack::dnsENUM; +%newobject SipStack::dnsNaptrSrv; +%newobject SipStack::dnsSrv; +%newobject SipStack::getPreferredIdentity; +%newobject SipStack::getLocalIPnPort; +%newobject MediaSessionMgr::producerGetCodec; + +%newobject MessagingEvent::takeSessionOwnership; +%newobject InviteEvent::takeCallSessionOwnership; +%newobject InviteEvent::takeMsrpSessionOwnership; +%newobject RegistrationEvent::takeSessionOwnership; + +%newobject ProxyPluginMgr::createInstance; + +%newobject MediaContent::parse; + +%include SipStack.i + + +/* ========== Xcap Stack ========== */ +%newobject XcapSelector::getString; + +%newobject getXcapHeaderValue; +%newobject getXcapHeaderParamValue; + +%include Xcap.i + + +/* ========== SMS ========== */ +%newobject SMSEncoder::encodeSubmit; +%newobject SMSEncoder::encodeDeliver; +%newobject SMSEncoder::encodeACK; +%newobject SMSEncoder::encodeError; +%newobject SMSEncoder::decode; + +%include SMS.i + + +/* ========== MSRP ========== */ +%newobject getMsrpHeaderValue; +%newobject getMsrpHeaderParamValue; + +%include Msrp.i diff --git a/bindings/_common/tinyWRAP_config.h b/bindings/_common/tinyWRAP_config.h new file mode 100644 index 0000000..f2531df --- /dev/null +++ b/bindings/_common/tinyWRAP_config.h @@ -0,0 +1,72 @@ +/* +* Copyright (C) 2010-2011 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +#ifndef TINYWRAP_CONFIG_H +#define TINYWRAP_CONFIG_H + +#ifdef __SYMBIAN32__ +#undef _WIN32 /* Because of WINSCW */ +#endif + +// Windows (XP/Vista/7/CE and Windows Mobile) macro definition. +#if defined(WIN32)|| defined(_WIN32) || defined(_WIN32_WCE) +# define TWRAP_UNDER_WINDOWS 1 +# if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP) +# define TWRAP_UNDER_WINDOWS_RT 1 +# endif +#endif + +#if (TWRAP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && defined(TINYWRAP_EXPORTS) +# define TINYWRAP_API __declspec(dllexport) +# define TINYWRAP_GEXTERN extern __declspec(dllexport) +#elif (TWRAP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && !defined(TINYWRAP_IMPORTS_IGNORE) +# define TINYWRAP_API __declspec(dllimport) +# define TINYWRAP_GEXTERN __declspec(dllimport) +#else +# define TINYWRAP_API +# define TINYWRAP_GEXTERN extern +#endif + +/* Guards against C++ name mangling +*/ +#ifdef __cplusplus +# define TWRAP_BEGIN_DECLS extern "C" { +# define TWRAP_END_DECLS } +#else +# define TWRAP_BEGIN_DECLS +# define TWRAP_END_DECLS +#endif + +/* Disable some well-known warnings +*/ +#ifdef _MSC_VER +# define _CRT_SECURE_NO_WARNINGS +#endif + +#include + + +#if HAVE_CONFIG_H + #include "../config.h" +#endif + +#endif // TINYWRAP_CONFIG_H diff --git a/bindings/autogen.sh b/bindings/autogen.sh new file mode 100644 index 0000000..86c0669 --- /dev/null +++ b/bindings/autogen.sh @@ -0,0 +1,34 @@ +##### CSharp +echo "--->CSharp...<---" +swig -c++ -csharp -namespace org.doubango.tinyWRAP -outdir csharp -o csharp/tinyWRAP_wrap.cxx csharp/csharp.i + +##### Objective-C +#echo "--->Objective-C...<---" +#swig -c++ -objc -outdir objc -o -objc/tinyWRAP_wrap.cxx -objc/-objc.i + + +##### Java +echo "--->Java...<---" +swig -c++ -java -package org.doubango.tinyWRAP -outdir java -o java/tinyWRAP_wrap.cxx java/java.i +echo "Java(Google Dalvik)..." +echo "Google Android special tasks" +swig -noexcept -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 +#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...<---" +swig -c++ -python -outdir python -o python/tinyWRAP_wrap.cxx python/python.i + +##### Perl +echo "--->Perl...<---" +swig -c++ -perl -outdir perl -o Perl/tinyWRAP_wrap.cxx perl/perl.i + +##### Ruby +echo "--->Ruby...<---" +#swig -c++ -ruby -outdir Ruby -o Ruby/tinyWRAP_wrap.cxx ruby/ruby.i \ No newline at end of file diff --git a/bindings/csharp/ActionConfig.cs b/bindings/csharp/ActionConfig.cs new file mode 100644 index 0000000..73c27d6 --- /dev/null +++ b/bindings/csharp/ActionConfig.cs @@ -0,0 +1,82 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ActionConfig : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ActionConfig(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ActionConfig obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ActionConfig() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ActionConfig(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ActionConfig() : this(tinyWRAPPINVOKE.new_ActionConfig(), true) { + } + + public bool addHeader(string name, string value) { + bool ret = tinyWRAPPINVOKE.ActionConfig_addHeader(swigCPtr, name, value); + return ret; + } + + public bool addPayload(IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.ActionConfig_addPayload(swigCPtr, payload, len); + return ret; + } + + public bool setActiveMedia(twrap_media_type_t type) { + bool ret = tinyWRAPPINVOKE.ActionConfig_setActiveMedia(swigCPtr, (int)type); + return ret; + } + + public ActionConfig setResponseLine(short code, string phrase) { + IntPtr cPtr = tinyWRAPPINVOKE.ActionConfig_setResponseLine(swigCPtr, code, phrase); + ActionConfig ret = (cPtr == IntPtr.Zero) ? null : new ActionConfig(cPtr, false); + return ret; + } + + public ActionConfig setMediaString(twrap_media_type_t type, string key, string value) { + IntPtr cPtr = tinyWRAPPINVOKE.ActionConfig_setMediaString(swigCPtr, (int)type, key, value); + ActionConfig ret = (cPtr == IntPtr.Zero) ? null : new ActionConfig(cPtr, false); + return ret; + } + + public ActionConfig setMediaInt(twrap_media_type_t type, string key, int value) { + IntPtr cPtr = tinyWRAPPINVOKE.ActionConfig_setMediaInt(swigCPtr, (int)type, key, value); + ActionConfig ret = (cPtr == IntPtr.Zero) ? null : new ActionConfig(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/AudioResampler.cs b/bindings/csharp/AudioResampler.cs new file mode 100644 index 0000000..8cfb777 --- /dev/null +++ b/bindings/csharp/AudioResampler.cs @@ -0,0 +1,69 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 AudioResampler : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal AudioResampler(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(AudioResampler obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~AudioResampler() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_AudioResampler(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public AudioResampler(uint nInFreq, uint nOutFreq, uint nFrameDuration, uint nChannels, uint nQuality) : this(tinyWRAPPINVOKE.new_AudioResampler(nInFreq, nOutFreq, nFrameDuration, nChannels, nQuality), true) { + } + + public bool isValid() { + bool ret = tinyWRAPPINVOKE.AudioResampler_isValid(swigCPtr); + return ret; + } + + public uint getOutputRequiredSizeInShort() { + uint ret = tinyWRAPPINVOKE.AudioResampler_getOutputRequiredSizeInShort(swigCPtr); + return ret; + } + + public uint getInputRequiredSizeInShort() { + uint ret = tinyWRAPPINVOKE.AudioResampler_getInputRequiredSizeInShort(swigCPtr); + return ret; + } + + public uint process(IntPtr pInData, uint nInSizeInBytes, IntPtr pOutData, uint nOutSizeInBytes) { + uint ret = tinyWRAPPINVOKE.AudioResampler_process(swigCPtr, pInData, nInSizeInBytes, pOutData, nOutSizeInBytes); + return ret; + } + +} + +} diff --git a/bindings/csharp/CallSession.cs b/bindings/csharp/CallSession.cs new file mode 100644 index 0000000..ea73adc --- /dev/null +++ b/bindings/csharp/CallSession.cs @@ -0,0 +1,288 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 CallSession : InviteSession { + private HandleRef swigCPtr; + + internal CallSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.CallSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(CallSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~CallSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_CallSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public CallSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_CallSession(SipStack.getCPtr(pStack)), true) { + } + + public bool callAudio(string remoteUriString, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudio__SWIG_0(swigCPtr, remoteUriString, ActionConfig.getCPtr(config)); + return ret; + } + + public bool callAudio(string remoteUriString) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudio__SWIG_1(swigCPtr, remoteUriString); + return ret; + } + + public bool callAudio(SipUri remoteUri, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudio__SWIG_2(swigCPtr, SipUri.getCPtr(remoteUri), ActionConfig.getCPtr(config)); + return ret; + } + + public bool callAudio(SipUri remoteUri) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudio__SWIG_3(swigCPtr, SipUri.getCPtr(remoteUri)); + return ret; + } + + public bool callAudioVideo(string remoteUriString, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudioVideo__SWIG_0(swigCPtr, remoteUriString, ActionConfig.getCPtr(config)); + return ret; + } + + public bool callAudioVideo(string remoteUriString) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudioVideo__SWIG_1(swigCPtr, remoteUriString); + return ret; + } + + public bool callAudioVideo(SipUri remoteUri, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudioVideo__SWIG_2(swigCPtr, SipUri.getCPtr(remoteUri), ActionConfig.getCPtr(config)); + return ret; + } + + public bool callAudioVideo(SipUri remoteUri) { + bool ret = tinyWRAPPINVOKE.CallSession_callAudioVideo__SWIG_3(swigCPtr, SipUri.getCPtr(remoteUri)); + return ret; + } + + public bool callVideo(string remoteUriString, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_callVideo__SWIG_0(swigCPtr, remoteUriString, ActionConfig.getCPtr(config)); + return ret; + } + + public bool callVideo(string remoteUriString) { + bool ret = tinyWRAPPINVOKE.CallSession_callVideo__SWIG_1(swigCPtr, remoteUriString); + return ret; + } + + public bool callVideo(SipUri remoteUri, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_callVideo__SWIG_2(swigCPtr, SipUri.getCPtr(remoteUri), ActionConfig.getCPtr(config)); + return ret; + } + + public bool callVideo(SipUri remoteUri) { + bool ret = tinyWRAPPINVOKE.CallSession_callVideo__SWIG_3(swigCPtr, SipUri.getCPtr(remoteUri)); + 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; + } + + public bool set100rel(bool enabled) { + bool ret = tinyWRAPPINVOKE.CallSession_set100rel(swigCPtr, enabled); + return ret; + } + + public bool setRtcp(bool enabled) { + bool ret = tinyWRAPPINVOKE.CallSession_setRtcp(swigCPtr, enabled); + return ret; + } + + public bool setRtcpMux(bool enabled) { + bool ret = tinyWRAPPINVOKE.CallSession_setRtcpMux(swigCPtr, enabled); + return ret; + } + + public bool setSRtpMode(tmedia_srtp_mode_t mode) { + bool ret = tinyWRAPPINVOKE.CallSession_setSRtpMode(swigCPtr, (int)mode); + return ret; + } + + public bool setAvpfMode(tmedia_mode_t mode) { + bool ret = tinyWRAPPINVOKE.CallSession_setAvpfMode(swigCPtr, (int)mode); + return ret; + } + + public bool setICE(bool enabled) { + bool ret = tinyWRAPPINVOKE.CallSession_setICE(swigCPtr, enabled); + return ret; + } + + public bool setICEStun(bool enabled) { + bool ret = tinyWRAPPINVOKE.CallSession_setICEStun(swigCPtr, enabled); + return ret; + } + + public bool setICETurn(bool enabled) { + bool ret = tinyWRAPPINVOKE.CallSession_setICETurn(swigCPtr, enabled); + return ret; + } + + public bool setSTUNServer(string hostname, ushort port) { + bool ret = tinyWRAPPINVOKE.CallSession_setSTUNServer(swigCPtr, hostname, port); + return ret; + } + + public bool setSTUNCred(string username, string password) { + bool ret = tinyWRAPPINVOKE.CallSession_setSTUNCred(swigCPtr, username, password); + return ret; + } + + public bool setVideoFps(int fps) { + bool ret = tinyWRAPPINVOKE.CallSession_setVideoFps(swigCPtr, fps); + return ret; + } + + public bool setVideoBandwidthUploadMax(int max) { + bool ret = tinyWRAPPINVOKE.CallSession_setVideoBandwidthUploadMax(swigCPtr, max); + return ret; + } + + public bool setVideoBandwidthDownloadMax(int max) { + bool ret = tinyWRAPPINVOKE.CallSession_setVideoBandwidthDownloadMax(swigCPtr, max); + return ret; + } + + public bool setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) { + bool ret = tinyWRAPPINVOKE.CallSession_setVideoPrefSize(swigCPtr, (int)pref_video_size); + return ret; + } + + public bool setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) { + bool ret = tinyWRAPPINVOKE.CallSession_setQoS(swigCPtr, (int)type, (int)strength); + return ret; + } + + public bool hold(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_hold__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool hold() { + bool ret = tinyWRAPPINVOKE.CallSession_hold__SWIG_1(swigCPtr); + return ret; + } + + public bool resume(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_resume__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool resume() { + bool ret = tinyWRAPPINVOKE.CallSession_resume__SWIG_1(swigCPtr); + return ret; + } + + public bool transfer(string referToUriString, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_transfer__SWIG_0(swigCPtr, referToUriString, ActionConfig.getCPtr(config)); + return ret; + } + + public bool transfer(string referToUriString) { + bool ret = tinyWRAPPINVOKE.CallSession_transfer__SWIG_1(swigCPtr, referToUriString); + return ret; + } + + public bool acceptTransfer(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_acceptTransfer__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool acceptTransfer() { + bool ret = tinyWRAPPINVOKE.CallSession_acceptTransfer__SWIG_1(swigCPtr); + return ret; + } + + public bool rejectTransfer(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.CallSession_rejectTransfer__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool rejectTransfer() { + bool ret = tinyWRAPPINVOKE.CallSession_rejectTransfer__SWIG_1(swigCPtr); + return ret; + } + + public bool sendDTMF(int number) { + bool ret = tinyWRAPPINVOKE.CallSession_sendDTMF(swigCPtr, number); + return ret; + } + + public uint getSessionTransferId() { + uint ret = tinyWRAPPINVOKE.CallSession_getSessionTransferId(swigCPtr); + 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; + } + +} + +} diff --git a/bindings/csharp/Codec.cs b/bindings/csharp/Codec.cs new file mode 100644 index 0000000..f0fe931 --- /dev/null +++ b/bindings/csharp/Codec.cs @@ -0,0 +1,81 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 Codec : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal Codec(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(Codec obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~Codec() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_Codec(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public twrap_media_type_t getMediaType() { + twrap_media_type_t ret = (twrap_media_type_t)tinyWRAPPINVOKE.Codec_getMediaType(swigCPtr); + return ret; + } + + public string getName() { + string ret = tinyWRAPPINVOKE.Codec_getName(swigCPtr); + return ret; + } + + public string getDescription() { + string ret = tinyWRAPPINVOKE.Codec_getDescription(swigCPtr); + return ret; + } + + public string getNegFormat() { + string ret = tinyWRAPPINVOKE.Codec_getNegFormat(swigCPtr); + return ret; + } + + public int getAudioSamplingRate() { + int ret = tinyWRAPPINVOKE.Codec_getAudioSamplingRate(swigCPtr); + return ret; + } + + public int getAudioChannels() { + int ret = tinyWRAPPINVOKE.Codec_getAudioChannels(swigCPtr); + return ret; + } + + public int getAudioPTime() { + int ret = tinyWRAPPINVOKE.Codec_getAudioPTime(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/DDebugCallback.cs b/bindings/csharp/DDebugCallback.cs new file mode 100644 index 0000000..13a29cb --- /dev/null +++ b/bindings/csharp/DDebugCallback.cs @@ -0,0 +1,118 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 DDebugCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal DDebugCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(DDebugCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~DDebugCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_DDebugCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public DDebugCallback() : this(tinyWRAPPINVOKE.new_DDebugCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int OnDebugInfo(string message) { + int ret = (SwigDerivedClassHasMethod("OnDebugInfo", swigMethodTypes0) ? tinyWRAPPINVOKE.DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(swigCPtr, message) : tinyWRAPPINVOKE.DDebugCallback_OnDebugInfo(swigCPtr, message)); + return ret; + } + + public virtual int OnDebugWarn(string message) { + int ret = (SwigDerivedClassHasMethod("OnDebugWarn", swigMethodTypes1) ? tinyWRAPPINVOKE.DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(swigCPtr, message) : tinyWRAPPINVOKE.DDebugCallback_OnDebugWarn(swigCPtr, message)); + return ret; + } + + public virtual int OnDebugError(string message) { + int ret = (SwigDerivedClassHasMethod("OnDebugError", swigMethodTypes2) ? tinyWRAPPINVOKE.DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(swigCPtr, message) : tinyWRAPPINVOKE.DDebugCallback_OnDebugError(swigCPtr, message)); + return ret; + } + + public virtual int OnDebugFatal(string message) { + int ret = (SwigDerivedClassHasMethod("OnDebugFatal", swigMethodTypes3) ? tinyWRAPPINVOKE.DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(swigCPtr, message) : tinyWRAPPINVOKE.DDebugCallback_OnDebugFatal(swigCPtr, message)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("OnDebugInfo", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateDDebugCallback_0(SwigDirectorOnDebugInfo); + if (SwigDerivedClassHasMethod("OnDebugWarn", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateDDebugCallback_1(SwigDirectorOnDebugWarn); + if (SwigDerivedClassHasMethod("OnDebugError", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateDDebugCallback_2(SwigDirectorOnDebugError); + if (SwigDerivedClassHasMethod("OnDebugFatal", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateDDebugCallback_3(SwigDirectorOnDebugFatal); + tinyWRAPPINVOKE.DDebugCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3); + } + + 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(DDebugCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorOnDebugInfo(string message) { + return OnDebugInfo(message); + } + + private int SwigDirectorOnDebugWarn(string message) { + return OnDebugWarn(message); + } + + private int SwigDirectorOnDebugError(string message) { + return OnDebugError(message); + } + + private int SwigDirectorOnDebugFatal(string message) { + return OnDebugFatal(message); + } + + public delegate int SwigDelegateDDebugCallback_0(string message); + public delegate int SwigDelegateDDebugCallback_1(string message); + public delegate int SwigDelegateDDebugCallback_2(string message); + public delegate int SwigDelegateDDebugCallback_3(string message); + + private SwigDelegateDDebugCallback_0 swigDelegate0; + private SwigDelegateDDebugCallback_1 swigDelegate1; + private SwigDelegateDDebugCallback_2 swigDelegate2; + private SwigDelegateDDebugCallback_3 swigDelegate3; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(string) }; + private static Type[] swigMethodTypes1 = new Type[] { typeof(string) }; + private static Type[] swigMethodTypes2 = new Type[] { typeof(string) }; + private static Type[] swigMethodTypes3 = new Type[] { typeof(string) }; +} + +} diff --git a/bindings/csharp/DialogEvent.cs b/bindings/csharp/DialogEvent.cs new file mode 100644 index 0000000..5122c13 --- /dev/null +++ b/bindings/csharp/DialogEvent.cs @@ -0,0 +1,45 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 DialogEvent : SipEvent { + private HandleRef swigCPtr; + + internal DialogEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.DialogEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(DialogEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~DialogEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_DialogEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + +} + +} diff --git a/bindings/csharp/InfoEvent.cs b/bindings/csharp/InfoEvent.cs new file mode 100644 index 0000000..9f24110 --- /dev/null +++ b/bindings/csharp/InfoEvent.cs @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 InfoEvent : SipEvent { + private HandleRef swigCPtr; + + internal InfoEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.InfoEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(InfoEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~InfoEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_InfoEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_info_event_type_t getType() { + tsip_info_event_type_t ret = (tsip_info_event_type_t)tinyWRAPPINVOKE.InfoEvent_getType(swigCPtr); + return ret; + } + + public InfoSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.InfoEvent_getSession(swigCPtr); + InfoSession ret = (cPtr == IntPtr.Zero) ? null : new InfoSession(cPtr, false); + return ret; + } + + public InfoSession takeSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.InfoEvent_takeSessionOwnership(swigCPtr); + InfoSession ret = (cPtr == IntPtr.Zero) ? null : new InfoSession(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/InfoSession.cs b/bindings/csharp/InfoSession.cs new file mode 100644 index 0000000..f823ffc --- /dev/null +++ b/bindings/csharp/InfoSession.cs @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 InfoSession : SipSession { + private HandleRef swigCPtr; + + internal InfoSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.InfoSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(InfoSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~InfoSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_InfoSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + +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(IntPtr payload, uint len, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.InfoSession_send__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config)); + return ret; + } + + public bool send(IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.InfoSession_send__SWIG_1(swigCPtr, payload, len); + return ret; + } + + public bool accept(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.InfoSession_accept__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool accept() { + bool ret = tinyWRAPPINVOKE.InfoSession_accept__SWIG_1(swigCPtr); + return ret; + } + + public bool reject(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.InfoSession_reject__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool reject() { + bool ret = tinyWRAPPINVOKE.InfoSession_reject__SWIG_1(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/InviteEvent.cs b/bindings/csharp/InviteEvent.cs new file mode 100644 index 0000000..d70b46c --- /dev/null +++ b/bindings/csharp/InviteEvent.cs @@ -0,0 +1,73 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 InviteEvent : SipEvent { + private HandleRef swigCPtr; + + internal InviteEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.InviteEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(InviteEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~InviteEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_InviteEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_invite_event_type_t getType() { + tsip_invite_event_type_t ret = (tsip_invite_event_type_t)tinyWRAPPINVOKE.InviteEvent_getType(swigCPtr); + return ret; + } + + public twrap_media_type_t getMediaType() { + twrap_media_type_t ret = (twrap_media_type_t)tinyWRAPPINVOKE.InviteEvent_getMediaType(swigCPtr); + return ret; + } + + public InviteSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.InviteEvent_getSession(swigCPtr); + InviteSession ret = (cPtr == IntPtr.Zero) ? null : new InviteSession(cPtr, false); + return ret; + } + + public CallSession takeCallSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.InviteEvent_takeCallSessionOwnership(swigCPtr); + CallSession ret = (cPtr == IntPtr.Zero) ? null : new CallSession(cPtr, true); + return ret; + } + + public MsrpSession takeMsrpSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.InviteEvent_takeMsrpSessionOwnership(swigCPtr); + MsrpSession ret = (cPtr == IntPtr.Zero) ? null : new MsrpSession(cPtr, true); + return ret; + } + +} + +} diff --git a/bindings/csharp/InviteSession.cs b/bindings/csharp/InviteSession.cs new file mode 100644 index 0000000..35af69e --- /dev/null +++ b/bindings/csharp/InviteSession.cs @@ -0,0 +1,94 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 InviteSession : SipSession { + private HandleRef swigCPtr; + + internal InviteSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.InviteSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(InviteSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~InviteSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_InviteSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public InviteSession(SipStack Stack) : this(tinyWRAPPINVOKE.new_InviteSession(SipStack.getCPtr(Stack)), true) { + } + + public bool accept(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.InviteSession_accept__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool accept() { + bool ret = tinyWRAPPINVOKE.InviteSession_accept__SWIG_1(swigCPtr); + return ret; + } + + public bool hangup(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.InviteSession_hangup__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool hangup() { + bool ret = tinyWRAPPINVOKE.InviteSession_hangup__SWIG_1(swigCPtr); + return ret; + } + + public bool reject(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.InviteSession_reject__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool reject() { + bool ret = tinyWRAPPINVOKE.InviteSession_reject__SWIG_1(swigCPtr); + return ret; + } + + 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(IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.InviteSession_sendInfo__SWIG_1(swigCPtr, payload, len); + return ret; + } + + public MediaSessionMgr getMediaMgr() { + IntPtr cPtr = tinyWRAPPINVOKE.InviteSession_getMediaMgr(swigCPtr); + MediaSessionMgr ret = (cPtr == IntPtr.Zero) ? null : new MediaSessionMgr(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/MediaContent.cs b/bindings/csharp/MediaContent.cs new file mode 100644 index 0000000..fcbddd4 --- /dev/null +++ b/bindings/csharp/MediaContent.cs @@ -0,0 +1,96 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MediaContent : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal MediaContent(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MediaContent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MediaContent() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MediaContent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + 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 string getType() { + string ret = tinyWRAPPINVOKE.MediaContent_getType(swigCPtr); + return ret; + } + + public virtual uint getDataLength() { + uint ret = tinyWRAPPINVOKE.MediaContent_getDataLength(swigCPtr); + return ret; + } + + public virtual uint getData(IntPtr pOutput, uint nMaxsize) { + uint ret = tinyWRAPPINVOKE.MediaContent_getData(swigCPtr, pOutput, nMaxsize); + return ret; + } + + 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(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; + } + + public virtual uint getPayloadLength() { + uint ret = tinyWRAPPINVOKE.MediaContent_getPayloadLength(swigCPtr); + return ret; + } + + public virtual uint getPayload(IntPtr pOutput, uint nMaxsize) { + uint ret = tinyWRAPPINVOKE.MediaContent_getPayload(swigCPtr, pOutput, nMaxsize); + return ret; + } + +} + +} diff --git a/bindings/csharp/MediaContentCPIM.cs b/bindings/csharp/MediaContentCPIM.cs new file mode 100644 index 0000000..7e13bfa --- /dev/null +++ b/bindings/csharp/MediaContentCPIM.cs @@ -0,0 +1,60 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MediaContentCPIM : MediaContent { + private HandleRef swigCPtr; + + internal MediaContentCPIM(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.MediaContentCPIM_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MediaContentCPIM obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MediaContentCPIM() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MediaContentCPIM(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public override uint getPayloadLength() { + uint ret = tinyWRAPPINVOKE.MediaContentCPIM_getPayloadLength(swigCPtr); + return ret; + } + + public override uint getPayload(IntPtr pOutput, uint nMaxsize) { + uint ret = tinyWRAPPINVOKE.MediaContentCPIM_getPayload(swigCPtr, pOutput, nMaxsize); + return ret; + } + + public string getHeaderValue(string pName) { + string ret = tinyWRAPPINVOKE.MediaContentCPIM_getHeaderValue(swigCPtr, pName); + return ret; + } + +} + +} diff --git a/bindings/csharp/MediaSessionMgr.cs b/bindings/csharp/MediaSessionMgr.cs new file mode 100644 index 0000000..8ee9d86 --- /dev/null +++ b/bindings/csharp/MediaSessionMgr.cs @@ -0,0 +1,444 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MediaSessionMgr : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal MediaSessionMgr(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MediaSessionMgr obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MediaSessionMgr() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MediaSessionMgr(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public bool sessionSetInt32(twrap_media_type_t media, string key, int value) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_sessionSetInt32(swigCPtr, (int)media, key, value); + return ret; + } + + public int sessionGetInt32(twrap_media_type_t media, string key) { + int ret = tinyWRAPPINVOKE.MediaSessionMgr_sessionGetInt32(swigCPtr, (int)media, key); + return ret; + } + + public bool consumerSetInt32(twrap_media_type_t media, string key, int value) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_consumerSetInt32(swigCPtr, (int)media, key, value); + return ret; + } + + public bool consumerSetInt64(twrap_media_type_t media, string key, long value) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_consumerSetInt64(swigCPtr, (int)media, key, value); + return ret; + } + + public bool producerSetInt32(twrap_media_type_t media, string key, int value) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_producerSetInt32(swigCPtr, (int)media, key, value); + return ret; + } + + public bool producerSetInt64(twrap_media_type_t media, string key, long value) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_producerSetInt64(swigCPtr, (int)media, key, value); + return ret; + } + + public Codec producerGetCodec(twrap_media_type_t media) { + IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_producerGetCodec(swigCPtr, (int)media); + Codec ret = (cPtr == IntPtr.Zero) ? null : new Codec(cPtr, true); + return ret; + } + + public ProxyPlugin findProxyPluginConsumer(twrap_media_type_t media) { + IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_findProxyPluginConsumer(swigCPtr, (int)media); + ProxyPlugin ret = (cPtr == IntPtr.Zero) ? null : new ProxyPlugin(cPtr, false); + return ret; + } + + public ProxyPlugin findProxyPluginProducer(twrap_media_type_t media) { + IntPtr cPtr = tinyWRAPPINVOKE.MediaSessionMgr_findProxyPluginProducer(swigCPtr, (int)media); + ProxyPlugin ret = (cPtr == IntPtr.Zero) ? null : new ProxyPlugin(cPtr, false); + return ret; + } + + public static uint registerAudioPluginFromFile(string path) { + uint ret = tinyWRAPPINVOKE.MediaSessionMgr_registerAudioPluginFromFile(path); + return ret; + } + + public ulong getSessionId(twrap_media_type_t media) { + ulong ret = tinyWRAPPINVOKE.MediaSessionMgr_getSessionId(swigCPtr, (int)media); + return ret; + } + + public static bool defaultsSetProfile(tmedia_profile_t profile) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetProfile((int)profile); + return ret; + } + + public static tmedia_profile_t defaultsGetProfile() { + tmedia_profile_t ret = (tmedia_profile_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetProfile(); + return ret; + } + + public static bool defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetBandwidthLevel((int)bl); + return ret; + } + + public static tmedia_bandwidth_level_t defaultsGetBandwidthLevel() { + tmedia_bandwidth_level_t ret = (tmedia_bandwidth_level_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetBandwidthLevel(); + return ret; + } + + public static bool defaultsSetCongestionCtrlEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled); + return ret; + } + + public static bool defaultsSetVideoMotionRank(int video_motion_rank) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank); + return ret; + } + + public static bool defaultsSetVideoFps(int video_fps) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoFps(video_fps); + return ret; + } + + public static bool defaultsSetBandwidthVideoUploadMax(int bw_video_up_max_kbps) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps); + return ret; + } + + public static bool defaultsSetBandwidthVideoDownloadMax(int bw_video_down_max_kbps) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps); + return ret; + } + + public static bool defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetPrefVideoSize((int)pref_video_size); + return ret; + } + + public static bool defaultsSetJbMargin(uint jb_margin_ms) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms); + return ret; + } + + public static bool defaultsSetJbMaxLateRate(uint jb_late_rate_percent) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent); + return ret; + } + + public static bool defaultsSetEchoTail(uint echo_tail) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetEchoTail(echo_tail); + return ret; + } + + public static uint defaultsGetEchoTail() { + uint ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetEchoTail(); + return ret; + } + + public static bool defaultsSetEchoSkew(uint echo_skew) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetEchoSkew(echo_skew); + return ret; + } + + public static bool defaultsSetEchoSuppEnabled(bool echo_supp_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled); + return ret; + } + + public static bool defaultsGetEchoSuppEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetEchoSuppEnabled(); + return ret; + } + + public static bool defaultsSetAgcEnabled(bool agc_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled); + return ret; + } + + public static bool defaultsGetAgcEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetAgcEnabled(); + return ret; + } + + public static bool defaultsSetAgcLevel(float agc_level) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAgcLevel(agc_level); + return ret; + } + + public static float defaultsGetAgcLevel() { + float ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetAgcLevel(); + return ret; + } + + public static bool defaultsSetVadEnabled(bool vad_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVadEnabled(vad_enabled); + return ret; + } + + public static bool defaultsGetGetVadEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetGetVadEnabled(); + return ret; + } + + public static bool defaultsSetNoiseSuppEnabled(bool noise_supp_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled); + return ret; + } + + public static bool defaultsGetNoiseSuppEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetNoiseSuppEnabled(); + return ret; + } + + public static bool defaultsSetNoiseSuppLevel(int noise_supp_level) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level); + return ret; + } + + public static int defaultsGetNoiseSuppLevel() { + int ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetNoiseSuppLevel(); + return ret; + } + + public static bool defaultsSet100relEnabled(bool _100rel_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled); + return ret; + } + + public static bool defaultsGet100relEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGet100relEnabled(); + return ret; + } + + public static bool defaultsSetScreenSize(int sx, int sy) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetScreenSize(sx, sy); + return ret; + } + + public static bool defaultsSetAudioGain(int producer_gain, int consumer_gain) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAudioGain(producer_gain, consumer_gain); + return ret; + } + + public static bool defaultsSetAudioPtime(int ptime) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAudioPtime(ptime); + return ret; + } + + public static bool defaultsSetAudioChannels(int channel_playback, int channel_record) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAudioChannels(channel_playback, channel_record); + return ret; + } + + public static bool defaultsSetRtpPortRange(ushort range_start, ushort range_stop) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtpPortRange(range_start, range_stop); + return ret; + } + + public static bool defaultsSetRtpSymetricEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled); + return ret; + } + + public static bool defaultsSetMediaType(twrap_media_type_t media_type) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetMediaType((int)media_type); + return ret; + } + + public static bool defaultsSetVolume(int volume) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVolume(volume); + return ret; + } + + public static int defaultsGetVolume() { + int ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetVolume(); + return ret; + } + + public static bool defaultsSetInviteSessionTimers(int timeout, string refresher) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetInviteSessionTimers(timeout, refresher); + return ret; + } + + public static bool defaultsSetSRtpMode(tmedia_srtp_mode_t mode) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetSRtpMode((int)mode); + return ret; + } + + public static tmedia_srtp_mode_t defaultsGetSRtpMode() { + tmedia_srtp_mode_t ret = (tmedia_srtp_mode_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetSRtpMode(); + return ret; + } + + public static bool defaultsSetSRtpType(tmedia_srtp_type_t srtp_type) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetSRtpType((int)srtp_type); + return ret; + } + + public static tmedia_srtp_type_t defaultsGetSRtpType() { + tmedia_srtp_type_t ret = (tmedia_srtp_type_t)tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetSRtpType(); + return ret; + } + + public static bool defaultsSetRtcpEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtcpEnabled(enabled); + return ret; + } + + public static bool defaultsGetRtcpEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetRtcpEnabled(); + return ret; + } + + public static bool defaultsSetRtcpMuxEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled); + return ret; + } + + public static bool defaultsGetRtcpMuxEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetRtcpMuxEnabled(); + return ret; + } + + public static bool defaultsSetStunEnabled(bool stun_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetStunEnabled(stun_enabled); + return ret; + } + + public static bool defaultsSetIceStunEnabled(bool icestun_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled); + return ret; + } + + public static bool defaultsSetIceTurnEnabled(bool iceturn_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled); + return ret; + } + + public static bool defaultsSetStunServer(string server_ip, ushort server_port) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetStunServer(server_ip, server_port); + return ret; + } + + public static bool defaultsSetStunCred(string username, string password) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetStunCred(username, password); + return ret; + } + + public static bool defaultsSetIceEnabled(bool ice_enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetIceEnabled(ice_enabled); + return ret; + } + + public static bool defaultsSetByPassEncoding(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetByPassEncoding(enabled); + return ret; + } + + public static bool defaultsGetByPassEncoding() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetByPassEncoding(); + return ret; + } + + public static bool defaultsSetByPassDecoding(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetByPassDecoding(enabled); + return ret; + } + + public static bool defaultsGetByPassDecoding() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetByPassDecoding(); + return ret; + } + + public static bool defaultsSetVideoJbEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoJbEnabled(enabled); + return ret; + } + + public static bool defaultsGetVideoJbEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetVideoJbEnabled(); + return ret; + } + + public static bool defaultsSetVideoZeroArtifactsEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled); + return ret; + } + + public static bool defaultsGetVideoZeroArtifactsEnabled() { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(); + return ret; + } + + public static bool defaultsSetRtpBuffSize(uint buffSize) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetRtpBuffSize(buffSize); + return ret; + } + + public static uint defaultsGetRtpBuffSize() { + uint ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsGetRtpBuffSize(); + return ret; + } + + public static bool defaultsSetAvpfTail(uint tail_min, uint tail_max) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAvpfTail(tail_min, tail_max); + return ret; + } + + public static bool defaultsSetAvpfMode(tmedia_mode_t mode) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetAvpfMode((int)mode); + return ret; + } + + public static bool defaultsSetOpusMaxCaptureRate(uint opus_maxcapturerate) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate); + return ret; + } + + public static bool defaultsSetOpusMaxPlaybackRate(uint opus_maxplaybackrate) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate); + return ret; + } + + public static bool defaultsSetMaxFds(int max_fds) { + bool ret = tinyWRAPPINVOKE.MediaSessionMgr_defaultsSetMaxFds(max_fds); + return ret; + } + +} + +} diff --git a/bindings/csharp/MessagingEvent.cs b/bindings/csharp/MessagingEvent.cs new file mode 100644 index 0000000..c7c734a --- /dev/null +++ b/bindings/csharp/MessagingEvent.cs @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MessagingEvent : SipEvent { + private HandleRef swigCPtr; + + internal MessagingEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.MessagingEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MessagingEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MessagingEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MessagingEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_message_event_type_t getType() { + tsip_message_event_type_t ret = (tsip_message_event_type_t)tinyWRAPPINVOKE.MessagingEvent_getType(swigCPtr); + return ret; + } + + public MessagingSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.MessagingEvent_getSession(swigCPtr); + MessagingSession ret = (cPtr == IntPtr.Zero) ? null : new MessagingSession(cPtr, false); + return ret; + } + + public MessagingSession takeSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.MessagingEvent_takeSessionOwnership(swigCPtr); + MessagingSession ret = (cPtr == IntPtr.Zero) ? null : new MessagingSession(cPtr, true); + return ret; + } + +} + +} diff --git a/bindings/csharp/MessagingSession.cs b/bindings/csharp/MessagingSession.cs new file mode 100644 index 0000000..252c59f --- /dev/null +++ b/bindings/csharp/MessagingSession.cs @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MessagingSession : SipSession { + private HandleRef swigCPtr; + + internal MessagingSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.MessagingSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MessagingSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MessagingSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MessagingSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + 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(IntPtr payload, uint len, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.MessagingSession_send__SWIG_0(swigCPtr, payload, len, ActionConfig.getCPtr(config)); + return ret; + } + + public bool send(IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.MessagingSession_send__SWIG_1(swigCPtr, payload, len); + return ret; + } + + public bool accept(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.MessagingSession_accept__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool accept() { + bool ret = tinyWRAPPINVOKE.MessagingSession_accept__SWIG_1(swigCPtr); + return ret; + } + + public bool reject(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.MessagingSession_reject__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool reject() { + bool ret = tinyWRAPPINVOKE.MessagingSession_reject__SWIG_1(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/MsrpCallback.cs b/bindings/csharp/MsrpCallback.cs new file mode 100644 index 0000000..f5fa468 --- /dev/null +++ b/bindings/csharp/MsrpCallback.cs @@ -0,0 +1,76 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MsrpCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal MsrpCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MsrpCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MsrpCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MsrpCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public MsrpCallback() : this(tinyWRAPPINVOKE.new_MsrpCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int OnEvent(MsrpEvent e) { + int ret = (SwigDerivedClassHasMethod("OnEvent", swigMethodTypes0) ? tinyWRAPPINVOKE.MsrpCallback_OnEventSwigExplicitMsrpCallback(swigCPtr, MsrpEvent.getCPtr(e)) : tinyWRAPPINVOKE.MsrpCallback_OnEvent(swigCPtr, MsrpEvent.getCPtr(e))); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("OnEvent", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateMsrpCallback_0(SwigDirectorOnEvent); + tinyWRAPPINVOKE.MsrpCallback_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(MsrpCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorOnEvent(IntPtr e) { + return OnEvent((e == IntPtr.Zero) ? null : new MsrpEvent(e, false)); + } + + public delegate int SwigDelegateMsrpCallback_0(IntPtr e); + + private SwigDelegateMsrpCallback_0 swigDelegate0; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(MsrpEvent) }; +} + +} diff --git a/bindings/csharp/MsrpEvent.cs b/bindings/csharp/MsrpEvent.cs new file mode 100644 index 0000000..3da8cca --- /dev/null +++ b/bindings/csharp/MsrpEvent.cs @@ -0,0 +1,63 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MsrpEvent : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal MsrpEvent(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MsrpEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MsrpEvent() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MsrpEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public tmsrp_event_type_t getType() { + tmsrp_event_type_t ret = (tmsrp_event_type_t)tinyWRAPPINVOKE.MsrpEvent_getType(swigCPtr); + return ret; + } + + public MsrpSession getSipSession() { + IntPtr cPtr = tinyWRAPPINVOKE.MsrpEvent_getSipSession(swigCPtr); + MsrpSession ret = (cPtr == IntPtr.Zero) ? null : new MsrpSession(cPtr, false); + return ret; + } + + public MsrpMessage getMessage() { + IntPtr cPtr = tinyWRAPPINVOKE.MsrpEvent_getMessage(swigCPtr); + MsrpMessage ret = (cPtr == IntPtr.Zero) ? null : new MsrpMessage(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/MsrpMessage.cs b/bindings/csharp/MsrpMessage.cs new file mode 100644 index 0000000..2f582fb --- /dev/null +++ b/bindings/csharp/MsrpMessage.cs @@ -0,0 +1,108 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MsrpMessage : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal MsrpMessage(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MsrpMessage obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MsrpMessage() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MsrpMessage(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public MsrpMessage() : this(tinyWRAPPINVOKE.new_MsrpMessage(), true) { + } + + public bool isRequest() { + bool ret = tinyWRAPPINVOKE.MsrpMessage_isRequest(swigCPtr); + return ret; + } + + public short getCode() { + short ret = tinyWRAPPINVOKE.MsrpMessage_getCode(swigCPtr); + return ret; + } + + public string getPhrase() { + string ret = tinyWRAPPINVOKE.MsrpMessage_getPhrase(swigCPtr); + return ret; + } + + public tmsrp_request_type_t getRequestType() { + tmsrp_request_type_t ret = (tmsrp_request_type_t)tinyWRAPPINVOKE.MsrpMessage_getRequestType(swigCPtr); + return ret; + } + + public void getByteRange(out long arg0, out long arg1, out long arg2) { + tinyWRAPPINVOKE.MsrpMessage_getByteRange(swigCPtr, out arg0, out arg1, out arg2); + } + + public bool isLastChunck() { + bool ret = tinyWRAPPINVOKE.MsrpMessage_isLastChunck(swigCPtr); + return ret; + } + + public bool isFirstChunck() { + bool ret = tinyWRAPPINVOKE.MsrpMessage_isFirstChunck(swigCPtr); + return ret; + } + + public bool isSuccessReport() { + bool ret = tinyWRAPPINVOKE.MsrpMessage_isSuccessReport(swigCPtr); + return ret; + } + + public string getMsrpHeaderValue(string name) { + string ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpHeaderValue(swigCPtr, name); + return ret; + } + + public string getMsrpHeaderParamValue(string name, string param) { + string ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpHeaderParamValue(swigCPtr, name, param); + return ret; + } + + public uint getMsrpContentLength() { + uint ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpContentLength(swigCPtr); + return ret; + } + + public uint getMsrpContent(IntPtr output, uint maxsize) { + uint ret = tinyWRAPPINVOKE.MsrpMessage_getMsrpContent(swigCPtr, output, maxsize); + return ret; + } + +} + +} diff --git a/bindings/csharp/MsrpSession.cs b/bindings/csharp/MsrpSession.cs new file mode 100644 index 0000000..cb4cbea --- /dev/null +++ b/bindings/csharp/MsrpSession.cs @@ -0,0 +1,93 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 MsrpSession : InviteSession { + private HandleRef swigCPtr; + + internal MsrpSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(MsrpSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~MsrpSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_MsrpSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public MsrpSession(SipStack pStack, MsrpCallback pCallback) : this(tinyWRAPPINVOKE.new_MsrpSession(SipStack.getCPtr(pStack), MsrpCallback.getCPtr(pCallback)), true) { + } + + public bool setCallback(MsrpCallback pCallback) { + bool ret = tinyWRAPPINVOKE.MsrpSession_setCallback(swigCPtr, MsrpCallback.getCPtr(pCallback)); + return ret; + } + + public bool callMsrp(string remoteUriString, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_0(swigCPtr, remoteUriString, ActionConfig.getCPtr(config)); + return ret; + } + + public bool callMsrp(string remoteUriString) { + bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_1(swigCPtr, remoteUriString); + return ret; + } + + public bool callMsrp(SipUri remoteUri, ActionConfig config) { + bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_2(swigCPtr, SipUri.getCPtr(remoteUri), ActionConfig.getCPtr(config)); + return ret; + } + + public bool callMsrp(SipUri remoteUri) { + bool ret = tinyWRAPPINVOKE.MsrpSession_callMsrp__SWIG_3(swigCPtr, SipUri.getCPtr(remoteUri)); + return ret; + } + + 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(IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.MsrpSession_sendMessage__SWIG_1(swigCPtr, payload, len); + return ret; + } + + public bool sendFile(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.MsrpSession_sendFile__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool sendFile() { + bool ret = tinyWRAPPINVOKE.MsrpSession_sendFile__SWIG_1(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/OptionsEvent.cs b/bindings/csharp/OptionsEvent.cs new file mode 100644 index 0000000..d09f3c3 --- /dev/null +++ b/bindings/csharp/OptionsEvent.cs @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 OptionsEvent : SipEvent { + private HandleRef swigCPtr; + + internal OptionsEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.OptionsEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(OptionsEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~OptionsEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_OptionsEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_options_event_type_t getType() { + tsip_options_event_type_t ret = (tsip_options_event_type_t)tinyWRAPPINVOKE.OptionsEvent_getType(swigCPtr); + return ret; + } + + public OptionsSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.OptionsEvent_getSession(swigCPtr); + OptionsSession ret = (cPtr == IntPtr.Zero) ? null : new OptionsSession(cPtr, false); + return ret; + } + + public OptionsSession takeSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.OptionsEvent_takeSessionOwnership(swigCPtr); + OptionsSession ret = (cPtr == IntPtr.Zero) ? null : new OptionsSession(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/OptionsSession.cs b/bindings/csharp/OptionsSession.cs new file mode 100644 index 0000000..0386080 --- /dev/null +++ b/bindings/csharp/OptionsSession.cs @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 OptionsSession : SipSession { + private HandleRef swigCPtr; + + internal OptionsSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.OptionsSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(OptionsSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~OptionsSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_OptionsSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public OptionsSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_OptionsSession(SipStack.getCPtr(pStack)), true) { + } + + public bool send(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.OptionsSession_send__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool send() { + bool ret = tinyWRAPPINVOKE.OptionsSession_send__SWIG_1(swigCPtr); + return ret; + } + + public bool accept(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.OptionsSession_accept__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool accept() { + bool ret = tinyWRAPPINVOKE.OptionsSession_accept__SWIG_1(swigCPtr); + return ret; + } + + public bool reject(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.OptionsSession_reject__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool reject() { + bool ret = tinyWRAPPINVOKE.OptionsSession_reject__SWIG_1(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/ProxyAudioConsumer.cs b/bindings/csharp/ProxyAudioConsumer.cs new file mode 100644 index 0000000..39974f2 --- /dev/null +++ b/bindings/csharp/ProxyAudioConsumer.cs @@ -0,0 +1,104 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyAudioConsumer : ProxyPlugin { + private HandleRef swigCPtr; + + internal ProxyAudioConsumer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyAudioConsumer_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyAudioConsumer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyAudioConsumer() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyAudioConsumer(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public bool setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) { + bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setActualSndCardPlaybackParams(swigCPtr, nPtime, nRate, nChannels); + return ret; + } + + public bool queryForResampler(ushort nInFreq, ushort nOutFreq, ushort nFrameDuration, ushort nChannels, ushort nResamplerQuality) { + bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_queryForResampler(swigCPtr, nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality); + return ret; + } + + public bool setPullBuffer(IntPtr pPullBufferPtr, uint nPullBufferSize) { + bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setPullBuffer(swigCPtr, pPullBufferPtr, nPullBufferSize); + return ret; + } + + public uint pull(IntPtr pOutput, uint nSize) { + uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, pOutput, nSize); + return ret; + } + + public uint pull(IntPtr pOutput) { + uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, pOutput); + return ret; + } + + public uint pull() { + uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_pull__SWIG_2(swigCPtr); + return ret; + } + + public bool setGain(uint nGain) { + bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_setGain(swigCPtr, nGain); + return ret; + } + + public uint getGain() { + uint ret = tinyWRAPPINVOKE.ProxyAudioConsumer_getGain(swigCPtr); + return ret; + } + + public bool reset() { + bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_reset(swigCPtr); + return ret; + } + + public void setCallback(ProxyAudioConsumerCallback pCallback) { + tinyWRAPPINVOKE.ProxyAudioConsumer_setCallback(swigCPtr, ProxyAudioConsumerCallback.getCPtr(pCallback)); + } + + public virtual ulong getMediaSessionId() { + ulong ret = tinyWRAPPINVOKE.ProxyAudioConsumer_getMediaSessionId(swigCPtr); + return ret; + } + + public static bool registerPlugin() { + bool ret = tinyWRAPPINVOKE.ProxyAudioConsumer_registerPlugin(); + return ret; + } + +} + +} diff --git a/bindings/csharp/ProxyAudioConsumerCallback.cs b/bindings/csharp/ProxyAudioConsumerCallback.cs new file mode 100644 index 0000000..85a6770 --- /dev/null +++ b/bindings/csharp/ProxyAudioConsumerCallback.cs @@ -0,0 +1,118 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyAudioConsumerCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyAudioConsumerCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyAudioConsumerCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyAudioConsumerCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyAudioConsumerCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ProxyAudioConsumerCallback() : this(tinyWRAPPINVOKE.new_ProxyAudioConsumerCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int prepare(int ptime, int rate, int channels) { + int ret = (SwigDerivedClassHasMethod("prepare", swigMethodTypes0) ? tinyWRAPPINVOKE.ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(swigCPtr, ptime, rate, channels) : tinyWRAPPINVOKE.ProxyAudioConsumerCallback_prepare(swigCPtr, ptime, rate, channels)); + return ret; + } + + public virtual int start() { + int ret = (SwigDerivedClassHasMethod("start", swigMethodTypes1) ? tinyWRAPPINVOKE.ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioConsumerCallback_start(swigCPtr)); + return ret; + } + + public virtual int pause() { + int ret = (SwigDerivedClassHasMethod("pause", swigMethodTypes2) ? tinyWRAPPINVOKE.ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioConsumerCallback_pause(swigCPtr)); + return ret; + } + + public virtual int stop() { + int ret = (SwigDerivedClassHasMethod("stop", swigMethodTypes3) ? tinyWRAPPINVOKE.ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioConsumerCallback_stop(swigCPtr)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("prepare", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateProxyAudioConsumerCallback_0(SwigDirectorprepare); + if (SwigDerivedClassHasMethod("start", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateProxyAudioConsumerCallback_1(SwigDirectorstart); + if (SwigDerivedClassHasMethod("pause", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateProxyAudioConsumerCallback_2(SwigDirectorpause); + if (SwigDerivedClassHasMethod("stop", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateProxyAudioConsumerCallback_3(SwigDirectorstop); + tinyWRAPPINVOKE.ProxyAudioConsumerCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3); + } + + 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(ProxyAudioConsumerCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorprepare(int ptime, int rate, int channels) { + return prepare(ptime, rate, channels); + } + + private int SwigDirectorstart() { + return start(); + } + + private int SwigDirectorpause() { + return pause(); + } + + private int SwigDirectorstop() { + return stop(); + } + + public delegate int SwigDelegateProxyAudioConsumerCallback_0(int ptime, int rate, int channels); + public delegate int SwigDelegateProxyAudioConsumerCallback_1(); + public delegate int SwigDelegateProxyAudioConsumerCallback_2(); + public delegate int SwigDelegateProxyAudioConsumerCallback_3(); + + private SwigDelegateProxyAudioConsumerCallback_0 swigDelegate0; + private SwigDelegateProxyAudioConsumerCallback_1 swigDelegate1; + private SwigDelegateProxyAudioConsumerCallback_2 swigDelegate2; + private SwigDelegateProxyAudioConsumerCallback_3 swigDelegate3; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(int), typeof(int), typeof(int) }; + private static Type[] swigMethodTypes1 = new Type[] { }; + private static Type[] swigMethodTypes2 = new Type[] { }; + private static Type[] swigMethodTypes3 = new Type[] { }; +} + +} diff --git a/bindings/csharp/ProxyAudioProducer.cs b/bindings/csharp/ProxyAudioProducer.cs new file mode 100644 index 0000000..342852a --- /dev/null +++ b/bindings/csharp/ProxyAudioProducer.cs @@ -0,0 +1,99 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyAudioProducer : ProxyPlugin { + private HandleRef swigCPtr; + + internal ProxyAudioProducer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyAudioProducer_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyAudioProducer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyAudioProducer() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyAudioProducer(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public bool setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) { + bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setActualSndCardRecordParams(swigCPtr, nPtime, nRate, nChannels); + return ret; + } + + 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(IntPtr pPushBufferPtr, uint nPushBufferSize) { + bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, pPushBufferPtr, nPushBufferSize); + return ret; + } + + public int push(IntPtr pBuffer, uint nSize) { + int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_0(swigCPtr, pBuffer, nSize); + return ret; + } + + public int push(IntPtr pBuffer) { + int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_1(swigCPtr, pBuffer); + return ret; + } + + public int push() { + int ret = tinyWRAPPINVOKE.ProxyAudioProducer_push__SWIG_2(swigCPtr); + return ret; + } + + public bool setGain(uint nGain) { + bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_setGain(swigCPtr, nGain); + return ret; + } + + public uint getGain() { + uint ret = tinyWRAPPINVOKE.ProxyAudioProducer_getGain(swigCPtr); + return ret; + } + + public void setCallback(ProxyAudioProducerCallback pCallback) { + tinyWRAPPINVOKE.ProxyAudioProducer_setCallback(swigCPtr, ProxyAudioProducerCallback.getCPtr(pCallback)); + } + + public virtual ulong getMediaSessionId() { + ulong ret = tinyWRAPPINVOKE.ProxyAudioProducer_getMediaSessionId(swigCPtr); + return ret; + } + + public static bool registerPlugin() { + bool ret = tinyWRAPPINVOKE.ProxyAudioProducer_registerPlugin(); + return ret; + } + +} + +} diff --git a/bindings/csharp/ProxyAudioProducerCallback.cs b/bindings/csharp/ProxyAudioProducerCallback.cs new file mode 100644 index 0000000..7703d62 --- /dev/null +++ b/bindings/csharp/ProxyAudioProducerCallback.cs @@ -0,0 +1,132 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyAudioProducerCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyAudioProducerCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyAudioProducerCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyAudioProducerCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyAudioProducerCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ProxyAudioProducerCallback() : this(tinyWRAPPINVOKE.new_ProxyAudioProducerCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int prepare(int ptime, int rate, int channels) { + int ret = (SwigDerivedClassHasMethod("prepare", swigMethodTypes0) ? tinyWRAPPINVOKE.ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(swigCPtr, ptime, rate, channels) : tinyWRAPPINVOKE.ProxyAudioProducerCallback_prepare(swigCPtr, ptime, rate, channels)); + return ret; + } + + public virtual int start() { + int ret = (SwigDerivedClassHasMethod("start", swigMethodTypes1) ? tinyWRAPPINVOKE.ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioProducerCallback_start(swigCPtr)); + return ret; + } + + public virtual int pause() { + int ret = (SwigDerivedClassHasMethod("pause", swigMethodTypes2) ? tinyWRAPPINVOKE.ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioProducerCallback_pause(swigCPtr)); + return ret; + } + + public virtual int stop() { + int ret = (SwigDerivedClassHasMethod("stop", swigMethodTypes3) ? tinyWRAPPINVOKE.ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioProducerCallback_stop(swigCPtr)); + return ret; + } + + public virtual int fillPushBuffer() { + int ret = (SwigDerivedClassHasMethod("fillPushBuffer", swigMethodTypes4) ? tinyWRAPPINVOKE.ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyAudioProducerCallback_fillPushBuffer(swigCPtr)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("prepare", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateProxyAudioProducerCallback_0(SwigDirectorprepare); + if (SwigDerivedClassHasMethod("start", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateProxyAudioProducerCallback_1(SwigDirectorstart); + if (SwigDerivedClassHasMethod("pause", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateProxyAudioProducerCallback_2(SwigDirectorpause); + if (SwigDerivedClassHasMethod("stop", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateProxyAudioProducerCallback_3(SwigDirectorstop); + if (SwigDerivedClassHasMethod("fillPushBuffer", swigMethodTypes4)) + swigDelegate4 = new SwigDelegateProxyAudioProducerCallback_4(SwigDirectorfillPushBuffer); + tinyWRAPPINVOKE.ProxyAudioProducerCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4); + } + + 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(ProxyAudioProducerCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorprepare(int ptime, int rate, int channels) { + return prepare(ptime, rate, channels); + } + + private int SwigDirectorstart() { + return start(); + } + + private int SwigDirectorpause() { + return pause(); + } + + private int SwigDirectorstop() { + return stop(); + } + + private int SwigDirectorfillPushBuffer() { + return fillPushBuffer(); + } + + public delegate int SwigDelegateProxyAudioProducerCallback_0(int ptime, int rate, int channels); + public delegate int SwigDelegateProxyAudioProducerCallback_1(); + public delegate int SwigDelegateProxyAudioProducerCallback_2(); + public delegate int SwigDelegateProxyAudioProducerCallback_3(); + public delegate int SwigDelegateProxyAudioProducerCallback_4(); + + private SwigDelegateProxyAudioProducerCallback_0 swigDelegate0; + private SwigDelegateProxyAudioProducerCallback_1 swigDelegate1; + private SwigDelegateProxyAudioProducerCallback_2 swigDelegate2; + private SwigDelegateProxyAudioProducerCallback_3 swigDelegate3; + private SwigDelegateProxyAudioProducerCallback_4 swigDelegate4; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(int), typeof(int), typeof(int) }; + private static Type[] swigMethodTypes1 = new Type[] { }; + private static Type[] swigMethodTypes2 = new Type[] { }; + private static Type[] swigMethodTypes3 = new Type[] { }; + private static Type[] swigMethodTypes4 = new Type[] { }; +} + +} diff --git a/bindings/csharp/ProxyPlugin.cs b/bindings/csharp/ProxyPlugin.cs new file mode 100644 index 0000000..aaf6cb7 --- /dev/null +++ b/bindings/csharp/ProxyPlugin.cs @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyPlugin : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyPlugin(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyPlugin obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyPlugin() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyPlugin(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public twrap_proxy_plugin_type_t getType() { + twrap_proxy_plugin_type_t ret = (twrap_proxy_plugin_type_t)tinyWRAPPINVOKE.ProxyPlugin_getType(swigCPtr); + return ret; + } + + public ulong getId() { + ulong ret = tinyWRAPPINVOKE.ProxyPlugin_getId(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/ProxyPluginMgr.cs b/bindings/csharp/ProxyPluginMgr.cs new file mode 100644 index 0000000..14fd44e --- /dev/null +++ b/bindings/csharp/ProxyPluginMgr.cs @@ -0,0 +1,88 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyPluginMgr : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyPluginMgr(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyPluginMgr obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyPluginMgr() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyPluginMgr(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public static ProxyPluginMgr createInstance(ProxyPluginMgrCallback pCallback) { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_createInstance(ProxyPluginMgrCallback.getCPtr(pCallback)); + ProxyPluginMgr ret = (cPtr == IntPtr.Zero) ? null : new ProxyPluginMgr(cPtr, true); + return ret; + } + + public static ProxyPluginMgr getInstance() { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_getInstance(); + ProxyPluginMgr ret = (cPtr == IntPtr.Zero) ? null : new ProxyPluginMgr(cPtr, false); + return ret; + } + + public ProxyPlugin findPlugin(ulong id) { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_findPlugin(swigCPtr, id); + ProxyPlugin ret = (cPtr == IntPtr.Zero) ? null : new ProxyPlugin(cPtr, false); + return ret; + } + + public ProxyAudioConsumer findAudioConsumer(ulong id) { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_findAudioConsumer(swigCPtr, id); + ProxyAudioConsumer ret = (cPtr == IntPtr.Zero) ? null : new ProxyAudioConsumer(cPtr, false); + return ret; + } + + public ProxyVideoConsumer findVideoConsumer(ulong id) { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_findVideoConsumer(swigCPtr, id); + ProxyVideoConsumer ret = (cPtr == IntPtr.Zero) ? null : new ProxyVideoConsumer(cPtr, false); + return ret; + } + + public ProxyAudioProducer findAudioProducer(ulong id) { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_findAudioProducer(swigCPtr, id); + ProxyAudioProducer ret = (cPtr == IntPtr.Zero) ? null : new ProxyAudioProducer(cPtr, false); + return ret; + } + + public ProxyVideoProducer findVideoProducer(ulong id) { + IntPtr cPtr = tinyWRAPPINVOKE.ProxyPluginMgr_findVideoProducer(swigCPtr, id); + ProxyVideoProducer ret = (cPtr == IntPtr.Zero) ? null : new ProxyVideoProducer(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/ProxyPluginMgrCallback.cs b/bindings/csharp/ProxyPluginMgrCallback.cs new file mode 100644 index 0000000..900aad6 --- /dev/null +++ b/bindings/csharp/ProxyPluginMgrCallback.cs @@ -0,0 +1,90 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyPluginMgrCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyPluginMgrCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyPluginMgrCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyPluginMgrCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyPluginMgrCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ProxyPluginMgrCallback() : this(tinyWRAPPINVOKE.new_ProxyPluginMgrCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int OnPluginCreated(ulong id, twrap_proxy_plugin_type_t type) { + int ret = (SwigDerivedClassHasMethod("OnPluginCreated", swigMethodTypes0) ? tinyWRAPPINVOKE.ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(swigCPtr, id, (int)type) : tinyWRAPPINVOKE.ProxyPluginMgrCallback_OnPluginCreated(swigCPtr, id, (int)type)); + return ret; + } + + public virtual int OnPluginDestroyed(ulong id, twrap_proxy_plugin_type_t type) { + int ret = (SwigDerivedClassHasMethod("OnPluginDestroyed", swigMethodTypes1) ? tinyWRAPPINVOKE.ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(swigCPtr, id, (int)type) : tinyWRAPPINVOKE.ProxyPluginMgrCallback_OnPluginDestroyed(swigCPtr, id, (int)type)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("OnPluginCreated", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateProxyPluginMgrCallback_0(SwigDirectorOnPluginCreated); + if (SwigDerivedClassHasMethod("OnPluginDestroyed", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateProxyPluginMgrCallback_1(SwigDirectorOnPluginDestroyed); + tinyWRAPPINVOKE.ProxyPluginMgrCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1); + } + + 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(ProxyPluginMgrCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorOnPluginCreated(ulong id, int type) { + return OnPluginCreated(id, (twrap_proxy_plugin_type_t)type); + } + + private int SwigDirectorOnPluginDestroyed(ulong id, int type) { + return OnPluginDestroyed(id, (twrap_proxy_plugin_type_t)type); + } + + public delegate int SwigDelegateProxyPluginMgrCallback_0(ulong id, int type); + public delegate int SwigDelegateProxyPluginMgrCallback_1(ulong id, int type); + + private SwigDelegateProxyPluginMgrCallback_0 swigDelegate0; + private SwigDelegateProxyPluginMgrCallback_1 swigDelegate1; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(ulong), typeof(twrap_proxy_plugin_type_t) }; + private static Type[] swigMethodTypes1 = new Type[] { typeof(ulong), typeof(twrap_proxy_plugin_type_t) }; +} + +} diff --git a/bindings/csharp/ProxyVideoConsumer.cs b/bindings/csharp/ProxyVideoConsumer.cs new file mode 100644 index 0000000..a60653b --- /dev/null +++ b/bindings/csharp/ProxyVideoConsumer.cs @@ -0,0 +1,117 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyVideoConsumer : ProxyPlugin { + private HandleRef swigCPtr; + + internal ProxyVideoConsumer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyVideoConsumer_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyVideoConsumer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyVideoConsumer() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyVideoConsumer(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public bool setDisplaySize(uint nWidth, uint nHeight) { + bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setDisplaySize(swigCPtr, nWidth, nHeight); + return ret; + } + + public uint getDisplayWidth() { + uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDisplayWidth(swigCPtr); + return ret; + } + + public uint getDisplayHeight() { + uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getDisplayHeight(swigCPtr); + 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)); + } + + public bool setAutoResizeDisplay(bool bAutoResizeDisplay) { + bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setAutoResizeDisplay(swigCPtr, bAutoResizeDisplay); + return ret; + } + + public bool getAutoResizeDisplay() { + bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getAutoResizeDisplay(swigCPtr); + return ret; + } + + public bool setConsumeBuffer(IntPtr pConsumeBufferPtr, uint nConsumeBufferSize) { + bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, pConsumeBufferPtr, nConsumeBufferSize); + return ret; + } + + public uint pull(IntPtr pOutput, uint nSize) { + uint ret = tinyWRAPPINVOKE.ProxyVideoConsumer_pull(swigCPtr, pOutput, nSize); + return ret; + } + + public bool reset() { + bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_reset(swigCPtr); + return ret; + } + + public virtual ulong getMediaSessionId() { + ulong ret = tinyWRAPPINVOKE.ProxyVideoConsumer_getMediaSessionId(swigCPtr); + return ret; + } + + public static bool registerPlugin() { + bool ret = tinyWRAPPINVOKE.ProxyVideoConsumer_registerPlugin(); + return ret; + } + + public static void setDefaultChroma(tmedia_chroma_t eChroma) { + tinyWRAPPINVOKE.ProxyVideoConsumer_setDefaultChroma((int)eChroma); + } + + public static void setDefaultAutoResizeDisplay(bool bAutoResizeDisplay) { + tinyWRAPPINVOKE.ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay); + } + +} + +} diff --git a/bindings/csharp/ProxyVideoConsumerCallback.cs b/bindings/csharp/ProxyVideoConsumerCallback.cs new file mode 100644 index 0000000..1e740b4 --- /dev/null +++ b/bindings/csharp/ProxyVideoConsumerCallback.cs @@ -0,0 +1,146 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyVideoConsumerCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyVideoConsumerCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyVideoConsumerCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyVideoConsumerCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyVideoConsumerCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ProxyVideoConsumerCallback() : this(tinyWRAPPINVOKE.new_ProxyVideoConsumerCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int prepare(int nWidth, int nHeight, int nFps) { + int ret = (SwigDerivedClassHasMethod("prepare", swigMethodTypes0) ? tinyWRAPPINVOKE.ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(swigCPtr, nWidth, nHeight, nFps) : tinyWRAPPINVOKE.ProxyVideoConsumerCallback_prepare(swigCPtr, nWidth, nHeight, nFps)); + return ret; + } + + public virtual int consume(ProxyVideoFrame frame) { + int ret = (SwigDerivedClassHasMethod("consume", swigMethodTypes1) ? tinyWRAPPINVOKE.ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(swigCPtr, ProxyVideoFrame.getCPtr(frame)) : tinyWRAPPINVOKE.ProxyVideoConsumerCallback_consume(swigCPtr, ProxyVideoFrame.getCPtr(frame))); + return ret; + } + + public virtual int bufferCopied(uint nCopiedSize, uint nAvailableSize) { + int ret = (SwigDerivedClassHasMethod("bufferCopied", swigMethodTypes2) ? tinyWRAPPINVOKE.ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(swigCPtr, nCopiedSize, nAvailableSize) : tinyWRAPPINVOKE.ProxyVideoConsumerCallback_bufferCopied(swigCPtr, nCopiedSize, nAvailableSize)); + return ret; + } + + public virtual int start() { + int ret = (SwigDerivedClassHasMethod("start", swigMethodTypes3) ? tinyWRAPPINVOKE.ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyVideoConsumerCallback_start(swigCPtr)); + return ret; + } + + public virtual int pause() { + int ret = (SwigDerivedClassHasMethod("pause", swigMethodTypes4) ? tinyWRAPPINVOKE.ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyVideoConsumerCallback_pause(swigCPtr)); + return ret; + } + + public virtual int stop() { + int ret = (SwigDerivedClassHasMethod("stop", swigMethodTypes5) ? tinyWRAPPINVOKE.ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyVideoConsumerCallback_stop(swigCPtr)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("prepare", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateProxyVideoConsumerCallback_0(SwigDirectorprepare); + if (SwigDerivedClassHasMethod("consume", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateProxyVideoConsumerCallback_1(SwigDirectorconsume); + if (SwigDerivedClassHasMethod("bufferCopied", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateProxyVideoConsumerCallback_2(SwigDirectorbufferCopied); + if (SwigDerivedClassHasMethod("start", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateProxyVideoConsumerCallback_3(SwigDirectorstart); + if (SwigDerivedClassHasMethod("pause", swigMethodTypes4)) + swigDelegate4 = new SwigDelegateProxyVideoConsumerCallback_4(SwigDirectorpause); + if (SwigDerivedClassHasMethod("stop", swigMethodTypes5)) + swigDelegate5 = new SwigDelegateProxyVideoConsumerCallback_5(SwigDirectorstop); + tinyWRAPPINVOKE.ProxyVideoConsumerCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5); + } + + 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(ProxyVideoConsumerCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorprepare(int nWidth, int nHeight, int nFps) { + return prepare(nWidth, nHeight, nFps); + } + + private int SwigDirectorconsume(IntPtr frame) { + return consume((frame == IntPtr.Zero) ? null : new ProxyVideoFrame(frame, false)); + } + + private int SwigDirectorbufferCopied(uint nCopiedSize, uint nAvailableSize) { + return bufferCopied(nCopiedSize, nAvailableSize); + } + + private int SwigDirectorstart() { + return start(); + } + + private int SwigDirectorpause() { + return pause(); + } + + private int SwigDirectorstop() { + return stop(); + } + + public delegate int SwigDelegateProxyVideoConsumerCallback_0(int nWidth, int nHeight, int nFps); + public delegate int SwigDelegateProxyVideoConsumerCallback_1(IntPtr frame); + public delegate int SwigDelegateProxyVideoConsumerCallback_2(uint nCopiedSize, uint nAvailableSize); + public delegate int SwigDelegateProxyVideoConsumerCallback_3(); + public delegate int SwigDelegateProxyVideoConsumerCallback_4(); + public delegate int SwigDelegateProxyVideoConsumerCallback_5(); + + private SwigDelegateProxyVideoConsumerCallback_0 swigDelegate0; + private SwigDelegateProxyVideoConsumerCallback_1 swigDelegate1; + private SwigDelegateProxyVideoConsumerCallback_2 swigDelegate2; + private SwigDelegateProxyVideoConsumerCallback_3 swigDelegate3; + private SwigDelegateProxyVideoConsumerCallback_4 swigDelegate4; + private SwigDelegateProxyVideoConsumerCallback_5 swigDelegate5; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(int), typeof(int), typeof(int) }; + private static Type[] swigMethodTypes1 = new Type[] { typeof(ProxyVideoFrame) }; + private static Type[] swigMethodTypes2 = new Type[] { typeof(uint), typeof(uint) }; + private static Type[] swigMethodTypes3 = new Type[] { }; + private static Type[] swigMethodTypes4 = new Type[] { }; + private static Type[] swigMethodTypes5 = new Type[] { }; +} + +} diff --git a/bindings/csharp/ProxyVideoFrame.cs b/bindings/csharp/ProxyVideoFrame.cs new file mode 100644 index 0000000..cc133e3 --- /dev/null +++ b/bindings/csharp/ProxyVideoFrame.cs @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyVideoFrame : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyVideoFrame(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyVideoFrame obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyVideoFrame() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyVideoFrame(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public uint getSize() { + uint ret = tinyWRAPPINVOKE.ProxyVideoFrame_getSize(swigCPtr); + return ret; + } + + public uint getContent(IntPtr pOutput, uint nMaxsize) { + uint ret = tinyWRAPPINVOKE.ProxyVideoFrame_getContent(swigCPtr, pOutput, nMaxsize); + return ret; + } + + public uint getFrameWidth() { + uint ret = tinyWRAPPINVOKE.ProxyVideoFrame_getFrameWidth(swigCPtr); + return ret; + } + + public uint getFrameHeight() { + uint ret = tinyWRAPPINVOKE.ProxyVideoFrame_getFrameHeight(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/ProxyVideoProducer.cs b/bindings/csharp/ProxyVideoProducer.cs new file mode 100644 index 0000000..b0a2bf3 --- /dev/null +++ b/bindings/csharp/ProxyVideoProducer.cs @@ -0,0 +1,93 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyVideoProducer : ProxyPlugin { + private HandleRef swigCPtr; + + internal ProxyVideoProducer(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.ProxyVideoProducer_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyVideoProducer obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyVideoProducer() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyVideoProducer(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public int getRotation() { + int ret = tinyWRAPPINVOKE.ProxyVideoProducer_getRotation(swigCPtr); + return ret; + } + + public bool setRotation(int nRot) { + bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_setRotation(swigCPtr, nRot); + return ret; + } + + public bool getMirror() { + bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_getMirror(swigCPtr); + return ret; + } + + public bool setMirror(bool bMirror) { + bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_setMirror(swigCPtr, bMirror); + return ret; + } + + public bool setActualCameraOutputSize(uint nWidth, uint nHeight) { + bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_setActualCameraOutputSize(swigCPtr, nWidth, nHeight); + return ret; + } + + public int push(IntPtr pBuffer, uint nSize) { + int ret = tinyWRAPPINVOKE.ProxyVideoProducer_push(swigCPtr, pBuffer, nSize); + return ret; + } + + public void setCallback(ProxyVideoProducerCallback pCallback) { + tinyWRAPPINVOKE.ProxyVideoProducer_setCallback(swigCPtr, ProxyVideoProducerCallback.getCPtr(pCallback)); + } + + public virtual ulong getMediaSessionId() { + ulong ret = tinyWRAPPINVOKE.ProxyVideoProducer_getMediaSessionId(swigCPtr); + return ret; + } + + public static bool registerPlugin() { + bool ret = tinyWRAPPINVOKE.ProxyVideoProducer_registerPlugin(); + return ret; + } + + public static void setDefaultChroma(tmedia_chroma_t eChroma) { + tinyWRAPPINVOKE.ProxyVideoProducer_setDefaultChroma((int)eChroma); + } + +} + +} diff --git a/bindings/csharp/ProxyVideoProducerCallback.cs b/bindings/csharp/ProxyVideoProducerCallback.cs new file mode 100644 index 0000000..0d1cfe2 --- /dev/null +++ b/bindings/csharp/ProxyVideoProducerCallback.cs @@ -0,0 +1,118 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 ProxyVideoProducerCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ProxyVideoProducerCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(ProxyVideoProducerCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~ProxyVideoProducerCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_ProxyVideoProducerCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public ProxyVideoProducerCallback() : this(tinyWRAPPINVOKE.new_ProxyVideoProducerCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int prepare(int width, int height, int fps) { + int ret = (SwigDerivedClassHasMethod("prepare", swigMethodTypes0) ? tinyWRAPPINVOKE.ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(swigCPtr, width, height, fps) : tinyWRAPPINVOKE.ProxyVideoProducerCallback_prepare(swigCPtr, width, height, fps)); + return ret; + } + + public virtual int start() { + int ret = (SwigDerivedClassHasMethod("start", swigMethodTypes1) ? tinyWRAPPINVOKE.ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyVideoProducerCallback_start(swigCPtr)); + return ret; + } + + public virtual int pause() { + int ret = (SwigDerivedClassHasMethod("pause", swigMethodTypes2) ? tinyWRAPPINVOKE.ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyVideoProducerCallback_pause(swigCPtr)); + return ret; + } + + public virtual int stop() { + int ret = (SwigDerivedClassHasMethod("stop", swigMethodTypes3) ? tinyWRAPPINVOKE.ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(swigCPtr) : tinyWRAPPINVOKE.ProxyVideoProducerCallback_stop(swigCPtr)); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("prepare", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateProxyVideoProducerCallback_0(SwigDirectorprepare); + if (SwigDerivedClassHasMethod("start", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateProxyVideoProducerCallback_1(SwigDirectorstart); + if (SwigDerivedClassHasMethod("pause", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateProxyVideoProducerCallback_2(SwigDirectorpause); + if (SwigDerivedClassHasMethod("stop", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateProxyVideoProducerCallback_3(SwigDirectorstop); + tinyWRAPPINVOKE.ProxyVideoProducerCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3); + } + + 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(ProxyVideoProducerCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorprepare(int width, int height, int fps) { + return prepare(width, height, fps); + } + + private int SwigDirectorstart() { + return start(); + } + + private int SwigDirectorpause() { + return pause(); + } + + private int SwigDirectorstop() { + return stop(); + } + + public delegate int SwigDelegateProxyVideoProducerCallback_0(int width, int height, int fps); + public delegate int SwigDelegateProxyVideoProducerCallback_1(); + public delegate int SwigDelegateProxyVideoProducerCallback_2(); + public delegate int SwigDelegateProxyVideoProducerCallback_3(); + + private SwigDelegateProxyVideoProducerCallback_0 swigDelegate0; + private SwigDelegateProxyVideoProducerCallback_1 swigDelegate1; + private SwigDelegateProxyVideoProducerCallback_2 swigDelegate2; + private SwigDelegateProxyVideoProducerCallback_3 swigDelegate3; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(int), typeof(int), typeof(int) }; + private static Type[] swigMethodTypes1 = new Type[] { }; + private static Type[] swigMethodTypes2 = new Type[] { }; + private static Type[] swigMethodTypes3 = new Type[] { }; +} + +} diff --git a/bindings/csharp/PublicationEvent.cs b/bindings/csharp/PublicationEvent.cs new file mode 100644 index 0000000..df20ffe --- /dev/null +++ b/bindings/csharp/PublicationEvent.cs @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 PublicationEvent : SipEvent { + private HandleRef swigCPtr; + + internal PublicationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.PublicationEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(PublicationEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~PublicationEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_PublicationEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_publish_event_type_t getType() { + tsip_publish_event_type_t ret = (tsip_publish_event_type_t)tinyWRAPPINVOKE.PublicationEvent_getType(swigCPtr); + return ret; + } + + public PublicationSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.PublicationEvent_getSession(swigCPtr); + PublicationSession ret = (cPtr == IntPtr.Zero) ? null : new PublicationSession(cPtr, false); + return ret; + } + + public PublicationSession takeSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.PublicationEvent_takeSessionOwnership(swigCPtr); + PublicationSession ret = (cPtr == IntPtr.Zero) ? null : new PublicationSession(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/PublicationSession.cs b/bindings/csharp/PublicationSession.cs new file mode 100644 index 0000000..b27ce41 --- /dev/null +++ b/bindings/csharp/PublicationSession.cs @@ -0,0 +1,68 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 PublicationSession : SipSession { + private HandleRef swigCPtr; + + internal PublicationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.PublicationSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(PublicationSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~PublicationSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_PublicationSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public PublicationSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_PublicationSession(SipStack.getCPtr(pStack)), true) { + } + + 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(IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.PublicationSession_publish__SWIG_1(swigCPtr, payload, len); + return ret; + } + + public bool unPublish(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.PublicationSession_unPublish__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool unPublish() { + bool ret = tinyWRAPPINVOKE.PublicationSession_unPublish__SWIG_1(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/RPMessage.cs b/bindings/csharp/RPMessage.cs new file mode 100644 index 0000000..44f9274 --- /dev/null +++ b/bindings/csharp/RPMessage.cs @@ -0,0 +1,77 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 RPMessage : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal RPMessage(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(RPMessage obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~RPMessage() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_RPMessage(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + 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) { + } + + public twrap_rpmessage_type_t getType() { + twrap_rpmessage_type_t ret = (twrap_rpmessage_type_t)tinyWRAPPINVOKE.RPMessage_getType(swigCPtr); + return ret; + } + + public uint getPayloadLength() { + uint ret = tinyWRAPPINVOKE.RPMessage_getPayloadLength(swigCPtr); + return ret; + } + + public uint getPayload(IntPtr output, uint maxsize) { + uint ret = tinyWRAPPINVOKE.RPMessage_getPayload(swigCPtr, output, maxsize); + return ret; + } + +} + +} diff --git a/bindings/csharp/RegistrationEvent.cs b/bindings/csharp/RegistrationEvent.cs new file mode 100644 index 0000000..d6268b4 --- /dev/null +++ b/bindings/csharp/RegistrationEvent.cs @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 RegistrationEvent : SipEvent { + private HandleRef swigCPtr; + + internal RegistrationEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(RegistrationEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~RegistrationEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_RegistrationEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_register_event_type_t getType() { + tsip_register_event_type_t ret = (tsip_register_event_type_t)tinyWRAPPINVOKE.RegistrationEvent_getType(swigCPtr); + return ret; + } + + public RegistrationSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.RegistrationEvent_getSession(swigCPtr); + RegistrationSession ret = (cPtr == IntPtr.Zero) ? null : new RegistrationSession(cPtr, false); + return ret; + } + + public RegistrationSession takeSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.RegistrationEvent_takeSessionOwnership(swigCPtr); + RegistrationSession ret = (cPtr == IntPtr.Zero) ? null : new RegistrationSession(cPtr, true); + return ret; + } + +} + +} diff --git a/bindings/csharp/RegistrationSession.cs b/bindings/csharp/RegistrationSession.cs new file mode 100644 index 0000000..c1191f4 --- /dev/null +++ b/bindings/csharp/RegistrationSession.cs @@ -0,0 +1,88 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 RegistrationSession : SipSession { + private HandleRef swigCPtr; + + internal RegistrationSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.RegistrationSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(RegistrationSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~RegistrationSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_RegistrationSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public RegistrationSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_RegistrationSession(SipStack.getCPtr(pStack)), true) { + } + + public bool register_(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.RegistrationSession_register___SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool register_() { + bool ret = tinyWRAPPINVOKE.RegistrationSession_register___SWIG_1(swigCPtr); + return ret; + } + + public bool unRegister(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.RegistrationSession_unRegister__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool unRegister() { + bool ret = tinyWRAPPINVOKE.RegistrationSession_unRegister__SWIG_1(swigCPtr); + return ret; + } + + public bool accept(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.RegistrationSession_accept__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool accept() { + bool ret = tinyWRAPPINVOKE.RegistrationSession_accept__SWIG_1(swigCPtr); + return ret; + } + + public bool reject(ActionConfig config) { + bool ret = tinyWRAPPINVOKE.RegistrationSession_reject__SWIG_0(swigCPtr, ActionConfig.getCPtr(config)); + return ret; + } + + public bool reject() { + bool ret = tinyWRAPPINVOKE.RegistrationSession_reject__SWIG_1(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/SMSData.cs b/bindings/csharp/SMSData.cs new file mode 100644 index 0000000..3050802 --- /dev/null +++ b/bindings/csharp/SMSData.cs @@ -0,0 +1,92 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SMSData : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SMSData(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SMSData obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SMSData() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SMSData(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + 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) { + } + + public twrap_sms_type_t getType() { + twrap_sms_type_t ret = (twrap_sms_type_t)tinyWRAPPINVOKE.SMSData_getType(swigCPtr); + return ret; + } + + public int getMR() { + int ret = tinyWRAPPINVOKE.SMSData_getMR(swigCPtr); + return ret; + } + + public uint getPayloadLength() { + uint ret = tinyWRAPPINVOKE.SMSData_getPayloadLength(swigCPtr); + return ret; + } + + public uint getPayload(IntPtr output, uint maxsize) { + uint ret = tinyWRAPPINVOKE.SMSData_getPayload(swigCPtr, output, maxsize); + return ret; + } + + public string getOA() { + string ret = tinyWRAPPINVOKE.SMSData_getOA(swigCPtr); + return ret; + } + + public string getDA() { + string ret = tinyWRAPPINVOKE.SMSData_getDA(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/SMSEncoder.cs b/bindings/csharp/SMSEncoder.cs new file mode 100644 index 0000000..19df1fd --- /dev/null +++ b/bindings/csharp/SMSEncoder.cs @@ -0,0 +1,76 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SMSEncoder : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SMSEncoder(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SMSEncoder obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SMSEncoder() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SMSEncoder(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public static RPMessage encodeSubmit(int mr, string smsc, string destination, string ascii) { + IntPtr cPtr = tinyWRAPPINVOKE.SMSEncoder_encodeSubmit(mr, smsc, destination, ascii); + RPMessage ret = (cPtr == IntPtr.Zero) ? null : new RPMessage(cPtr, true); + return ret; + } + + public static RPMessage encodeDeliver(int mr, string smsc, string originator, string ascii) { + IntPtr cPtr = tinyWRAPPINVOKE.SMSEncoder_encodeDeliver(mr, smsc, originator, ascii); + RPMessage ret = (cPtr == IntPtr.Zero) ? null : new RPMessage(cPtr, true); + return ret; + } + + public static RPMessage encodeACK(int mr, string smsc, string destination, bool forSUBMIT) { + IntPtr cPtr = tinyWRAPPINVOKE.SMSEncoder_encodeACK(mr, smsc, destination, forSUBMIT); + RPMessage ret = (cPtr == IntPtr.Zero) ? null : new RPMessage(cPtr, true); + return ret; + } + + public static RPMessage encodeError(int mr, string smsc, string destination, bool forSUBMIT) { + IntPtr cPtr = tinyWRAPPINVOKE.SMSEncoder_encodeError(mr, smsc, destination, forSUBMIT); + RPMessage ret = (cPtr == IntPtr.Zero) ? null : new RPMessage(cPtr, true); + return ret; + } + + 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; + } + +} + +} diff --git a/bindings/csharp/SafeObject.cs b/bindings/csharp/SafeObject.cs new file mode 100644 index 0000000..ead0333 --- /dev/null +++ b/bindings/csharp/SafeObject.cs @@ -0,0 +1,59 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SafeObject : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SafeObject(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SafeObject obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SafeObject() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SafeObject(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SafeObject() : this(tinyWRAPPINVOKE.new_SafeObject(), true) { + } + + public int Lock() { + int ret = tinyWRAPPINVOKE.SafeObject_Lock(swigCPtr); + return ret; + } + + public int UnLock() { + int ret = tinyWRAPPINVOKE.SafeObject_UnLock(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/SdpMessage.cs b/bindings/csharp/SdpMessage.cs new file mode 100644 index 0000000..8f59a00 --- /dev/null +++ b/bindings/csharp/SdpMessage.cs @@ -0,0 +1,64 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SdpMessage : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SdpMessage(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SdpMessage obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SdpMessage() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SdpMessage(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SdpMessage() : this(tinyWRAPPINVOKE.new_SdpMessage(), true) { + } + + public string getSdpHeaderValue(string media, char name, uint index) { + string ret = tinyWRAPPINVOKE.SdpMessage_getSdpHeaderValue__SWIG_0(swigCPtr, media, name, index); + return ret; + } + + public string getSdpHeaderValue(string media, char name) { + string ret = tinyWRAPPINVOKE.SdpMessage_getSdpHeaderValue__SWIG_1(swigCPtr, media, name); + return ret; + } + + public string getSdpHeaderAValue(string media, string attributeName) { + string ret = tinyWRAPPINVOKE.SdpMessage_getSdpHeaderAValue(swigCPtr, media, attributeName); + return ret; + } + +} + +} diff --git a/bindings/csharp/SipCallback.cs b/bindings/csharp/SipCallback.cs new file mode 100644 index 0000000..0505f7b --- /dev/null +++ b/bindings/csharp/SipCallback.cs @@ -0,0 +1,188 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SipCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SipCallback() : this(tinyWRAPPINVOKE.new_SipCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int OnDialogEvent(DialogEvent e) { + int ret = (SwigDerivedClassHasMethod("OnDialogEvent", swigMethodTypes0) ? tinyWRAPPINVOKE.SipCallback_OnDialogEventSwigExplicitSipCallback(swigCPtr, DialogEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnDialogEvent(swigCPtr, DialogEvent.getCPtr(e))); + return ret; + } + + public virtual int OnStackEvent(StackEvent e) { + int ret = (SwigDerivedClassHasMethod("OnStackEvent", swigMethodTypes1) ? tinyWRAPPINVOKE.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, StackEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnStackEvent(swigCPtr, StackEvent.getCPtr(e))); + return ret; + } + + public virtual int OnInviteEvent(InviteEvent e) { + int ret = (SwigDerivedClassHasMethod("OnInviteEvent", swigMethodTypes2) ? tinyWRAPPINVOKE.SipCallback_OnInviteEventSwigExplicitSipCallback(swigCPtr, InviteEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnInviteEvent(swigCPtr, InviteEvent.getCPtr(e))); + return ret; + } + + public virtual int OnMessagingEvent(MessagingEvent e) { + int ret = (SwigDerivedClassHasMethod("OnMessagingEvent", swigMethodTypes3) ? tinyWRAPPINVOKE.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, MessagingEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnMessagingEvent(swigCPtr, MessagingEvent.getCPtr(e))); + return ret; + } + + public virtual int OnInfoEvent(InfoEvent e) { + int ret = (SwigDerivedClassHasMethod("OnInfoEvent", swigMethodTypes4) ? tinyWRAPPINVOKE.SipCallback_OnInfoEventSwigExplicitSipCallback(swigCPtr, InfoEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnInfoEvent(swigCPtr, InfoEvent.getCPtr(e))); + return ret; + } + + public virtual int OnOptionsEvent(OptionsEvent e) { + int ret = (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes5) ? tinyWRAPPINVOKE.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, OptionsEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnOptionsEvent(swigCPtr, OptionsEvent.getCPtr(e))); + return ret; + } + + public virtual int OnPublicationEvent(PublicationEvent e) { + int ret = (SwigDerivedClassHasMethod("OnPublicationEvent", swigMethodTypes6) ? tinyWRAPPINVOKE.SipCallback_OnPublicationEventSwigExplicitSipCallback(swigCPtr, PublicationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnPublicationEvent(swigCPtr, PublicationEvent.getCPtr(e))); + return ret; + } + + public virtual int OnRegistrationEvent(RegistrationEvent e) { + int ret = (SwigDerivedClassHasMethod("OnRegistrationEvent", swigMethodTypes7) ? tinyWRAPPINVOKE.SipCallback_OnRegistrationEventSwigExplicitSipCallback(swigCPtr, RegistrationEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnRegistrationEvent(swigCPtr, RegistrationEvent.getCPtr(e))); + return ret; + } + + public virtual int OnSubscriptionEvent(SubscriptionEvent e) { + int ret = (SwigDerivedClassHasMethod("OnSubscriptionEvent", swigMethodTypes8) ? tinyWRAPPINVOKE.SipCallback_OnSubscriptionEventSwigExplicitSipCallback(swigCPtr, SubscriptionEvent.getCPtr(e)) : tinyWRAPPINVOKE.SipCallback_OnSubscriptionEvent(swigCPtr, SubscriptionEvent.getCPtr(e))); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("OnDialogEvent", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateSipCallback_0(SwigDirectorOnDialogEvent); + if (SwigDerivedClassHasMethod("OnStackEvent", swigMethodTypes1)) + swigDelegate1 = new SwigDelegateSipCallback_1(SwigDirectorOnStackEvent); + if (SwigDerivedClassHasMethod("OnInviteEvent", swigMethodTypes2)) + swigDelegate2 = new SwigDelegateSipCallback_2(SwigDirectorOnInviteEvent); + if (SwigDerivedClassHasMethod("OnMessagingEvent", swigMethodTypes3)) + swigDelegate3 = new SwigDelegateSipCallback_3(SwigDirectorOnMessagingEvent); + if (SwigDerivedClassHasMethod("OnInfoEvent", swigMethodTypes4)) + swigDelegate4 = new SwigDelegateSipCallback_4(SwigDirectorOnInfoEvent); + if (SwigDerivedClassHasMethod("OnOptionsEvent", swigMethodTypes5)) + swigDelegate5 = new SwigDelegateSipCallback_5(SwigDirectorOnOptionsEvent); + if (SwigDerivedClassHasMethod("OnPublicationEvent", swigMethodTypes6)) + swigDelegate6 = new SwigDelegateSipCallback_6(SwigDirectorOnPublicationEvent); + if (SwigDerivedClassHasMethod("OnRegistrationEvent", swigMethodTypes7)) + swigDelegate7 = new SwigDelegateSipCallback_7(SwigDirectorOnRegistrationEvent); + if (SwigDerivedClassHasMethod("OnSubscriptionEvent", swigMethodTypes8)) + swigDelegate8 = new SwigDelegateSipCallback_8(SwigDirectorOnSubscriptionEvent); + tinyWRAPPINVOKE.SipCallback_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8); + } + + 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(SipCallback)); + return hasDerivedMethod; + } + + private int SwigDirectorOnDialogEvent(IntPtr e) { + return OnDialogEvent((e == IntPtr.Zero) ? null : new DialogEvent(e, false)); + } + + private int SwigDirectorOnStackEvent(IntPtr e) { + return OnStackEvent((e == IntPtr.Zero) ? null : new StackEvent(e, false)); + } + + private int SwigDirectorOnInviteEvent(IntPtr e) { + return OnInviteEvent((e == IntPtr.Zero) ? null : new InviteEvent(e, false)); + } + + private int SwigDirectorOnMessagingEvent(IntPtr e) { + return OnMessagingEvent((e == IntPtr.Zero) ? null : new MessagingEvent(e, false)); + } + + private int SwigDirectorOnInfoEvent(IntPtr e) { + return OnInfoEvent((e == IntPtr.Zero) ? null : new InfoEvent(e, false)); + } + + private int SwigDirectorOnOptionsEvent(IntPtr e) { + return OnOptionsEvent((e == IntPtr.Zero) ? null : new OptionsEvent(e, false)); + } + + private int SwigDirectorOnPublicationEvent(IntPtr e) { + return OnPublicationEvent((e == IntPtr.Zero) ? null : new PublicationEvent(e, false)); + } + + private int SwigDirectorOnRegistrationEvent(IntPtr e) { + return OnRegistrationEvent((e == IntPtr.Zero) ? null : new RegistrationEvent(e, false)); + } + + private int SwigDirectorOnSubscriptionEvent(IntPtr e) { + return OnSubscriptionEvent((e == IntPtr.Zero) ? null : new SubscriptionEvent(e, false)); + } + + public delegate int SwigDelegateSipCallback_0(IntPtr e); + public delegate int SwigDelegateSipCallback_1(IntPtr e); + public delegate int SwigDelegateSipCallback_2(IntPtr e); + public delegate int SwigDelegateSipCallback_3(IntPtr e); + public delegate int SwigDelegateSipCallback_4(IntPtr e); + public delegate int SwigDelegateSipCallback_5(IntPtr e); + public delegate int SwigDelegateSipCallback_6(IntPtr e); + public delegate int SwigDelegateSipCallback_7(IntPtr e); + public delegate int SwigDelegateSipCallback_8(IntPtr e); + + private SwigDelegateSipCallback_0 swigDelegate0; + private SwigDelegateSipCallback_1 swigDelegate1; + private SwigDelegateSipCallback_2 swigDelegate2; + private SwigDelegateSipCallback_3 swigDelegate3; + private SwigDelegateSipCallback_4 swigDelegate4; + private SwigDelegateSipCallback_5 swigDelegate5; + private SwigDelegateSipCallback_6 swigDelegate6; + private SwigDelegateSipCallback_7 swigDelegate7; + private SwigDelegateSipCallback_8 swigDelegate8; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(DialogEvent) }; + private static Type[] swigMethodTypes1 = new Type[] { typeof(StackEvent) }; + private static Type[] swigMethodTypes2 = new Type[] { typeof(InviteEvent) }; + private static Type[] swigMethodTypes3 = new Type[] { typeof(MessagingEvent) }; + private static Type[] swigMethodTypes4 = new Type[] { typeof(InfoEvent) }; + private static Type[] swigMethodTypes5 = new Type[] { typeof(OptionsEvent) }; + private static Type[] swigMethodTypes6 = new Type[] { typeof(PublicationEvent) }; + private static Type[] swigMethodTypes7 = new Type[] { typeof(RegistrationEvent) }; + private static Type[] swigMethodTypes8 = new Type[] { typeof(SubscriptionEvent) }; +} + +} diff --git a/bindings/csharp/SipEvent.cs b/bindings/csharp/SipEvent.cs new file mode 100644 index 0000000..553b98f --- /dev/null +++ b/bindings/csharp/SipEvent.cs @@ -0,0 +1,68 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SipEvent : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipEvent(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipEvent() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public short getCode() { + short ret = tinyWRAPPINVOKE.SipEvent_getCode(swigCPtr); + return ret; + } + + public string getPhrase() { + string ret = tinyWRAPPINVOKE.SipEvent_getPhrase(swigCPtr); + return ret; + } + + public SipSession getBaseSession() { + IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getBaseSession(swigCPtr); + SipSession ret = (cPtr == IntPtr.Zero) ? null : new SipSession(cPtr, false); + return ret; + } + + public SipMessage getSipMessage() { + IntPtr cPtr = tinyWRAPPINVOKE.SipEvent_getSipMessage(swigCPtr); + SipMessage ret = (cPtr == IntPtr.Zero) ? null : new SipMessage(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/SipMessage.cs b/bindings/csharp/SipMessage.cs new file mode 100644 index 0000000..657c1b8 --- /dev/null +++ b/bindings/csharp/SipMessage.cs @@ -0,0 +1,118 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SipMessage : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipMessage(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipMessage obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipMessage() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipMessage(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public byte[] getSipContent() { + uint clen = this.getSipContentLength(); + if(clen>0){ + IntPtr ptr = Marshal.AllocHGlobal((int)clen); + this.getSipContent(ptr, clen); + byte[] bytes = new byte[clen]; + Marshal.Copy(ptr, bytes, 0, bytes.Length); + Marshal.FreeHGlobal(ptr); + return bytes; + } + return null; + } + + public SipMessage() : this(tinyWRAPPINVOKE.new_SipMessage(), true) { + } + + public bool isResponse() { + bool ret = tinyWRAPPINVOKE.SipMessage_isResponse(swigCPtr); + return ret; + } + + public tsip_request_type_t getRequestType() { + tsip_request_type_t ret = (tsip_request_type_t)tinyWRAPPINVOKE.SipMessage_getRequestType(swigCPtr); + return ret; + } + + public short getResponseCode() { + short ret = tinyWRAPPINVOKE.SipMessage_getResponseCode(swigCPtr); + return ret; + } + + public string getResponsePhrase() { + string ret = tinyWRAPPINVOKE.SipMessage_getResponsePhrase(swigCPtr); + return ret; + } + + public string getSipHeaderValue(string name, uint index) { + string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, name, index); + return ret; + } + + public string getSipHeaderValue(string name) { + string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, name); + return ret; + } + + public string getSipHeaderParamValue(string name, string param, uint index) { + string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, name, param, index); + return ret; + } + + public string getSipHeaderParamValue(string name, string param) { + string ret = tinyWRAPPINVOKE.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, name, param); + return ret; + } + + public uint getSipContentLength() { + uint ret = tinyWRAPPINVOKE.SipMessage_getSipContentLength(swigCPtr); + return ret; + } + + public uint getSipContent(IntPtr output, uint maxsize) { + uint ret = tinyWRAPPINVOKE.SipMessage_getSipContent(swigCPtr, output, maxsize); + return ret; + } + + public SdpMessage getSdpMessage() { + IntPtr cPtr = tinyWRAPPINVOKE.SipMessage_getSdpMessage(swigCPtr); + SdpMessage ret = (cPtr == IntPtr.Zero) ? null : new SdpMessage(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/SipSession.cs b/bindings/csharp/SipSession.cs new file mode 100644 index 0000000..cbc418e --- /dev/null +++ b/bindings/csharp/SipSession.cs @@ -0,0 +1,124 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SipSession : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipSession(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipSession() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SipSession(SipStack stack) : this(tinyWRAPPINVOKE.new_SipSession(SipStack.getCPtr(stack)), true) { + } + + public bool haveOwnership() { + bool ret = tinyWRAPPINVOKE.SipSession_haveOwnership(swigCPtr); + return ret; + } + + public bool addHeader(string name, string value) { + bool ret = tinyWRAPPINVOKE.SipSession_addHeader(swigCPtr, name, value); + return ret; + } + + public bool removeHeader(string name) { + bool ret = tinyWRAPPINVOKE.SipSession_removeHeader(swigCPtr, name); + return ret; + } + + public bool addCaps(string name, string value) { + bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_0(swigCPtr, name, value); + return ret; + } + + public bool addCaps(string name) { + bool ret = tinyWRAPPINVOKE.SipSession_addCaps__SWIG_1(swigCPtr, name); + return ret; + } + + public bool removeCaps(string name) { + bool ret = tinyWRAPPINVOKE.SipSession_removeCaps(swigCPtr, name); + return ret; + } + + public bool setExpires(uint expires) { + bool ret = tinyWRAPPINVOKE.SipSession_setExpires(swigCPtr, expires); + return ret; + } + + public bool setFromUri(string fromUriString) { + bool ret = tinyWRAPPINVOKE.SipSession_setFromUri__SWIG_0(swigCPtr, fromUriString); + return ret; + } + + public bool setFromUri(SipUri fromUri) { + bool ret = tinyWRAPPINVOKE.SipSession_setFromUri__SWIG_1(swigCPtr, SipUri.getCPtr(fromUri)); + return ret; + } + + public bool setToUri(string toUriString) { + bool ret = tinyWRAPPINVOKE.SipSession_setToUri__SWIG_0(swigCPtr, toUriString); + return ret; + } + + public bool setToUri(SipUri toUri) { + bool ret = tinyWRAPPINVOKE.SipSession_setToUri__SWIG_1(swigCPtr, SipUri.getCPtr(toUri)); + return ret; + } + + public bool setSilentHangup(bool silent) { + bool ret = tinyWRAPPINVOKE.SipSession_setSilentHangup(swigCPtr, silent); + return ret; + } + + public bool addSigCompCompartment(string compId) { + bool ret = tinyWRAPPINVOKE.SipSession_addSigCompCompartment(swigCPtr, compId); + return ret; + } + + public bool removeSigCompCompartment() { + bool ret = tinyWRAPPINVOKE.SipSession_removeSigCompCompartment(swigCPtr); + return ret; + } + + public uint getId() { + uint ret = tinyWRAPPINVOKE.SipSession_getId(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/SipStack.cs b/bindings/csharp/SipStack.cs new file mode 100644 index 0000000..1459325 --- /dev/null +++ b/bindings/csharp/SipStack.cs @@ -0,0 +1,296 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SipStack : SafeObject { + private HandleRef swigCPtr; + + internal SipStack(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SipStack_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipStack obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipStack() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipStack(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public SipStack(SipCallback pCallback, string realm_uri, string impi_uri, string impu_uri) : this(tinyWRAPPINVOKE.new_SipStack(SipCallback.getCPtr(pCallback), realm_uri, impi_uri, impu_uri), true) { + } + + public bool start() { + bool ret = tinyWRAPPINVOKE.SipStack_start(swigCPtr); + return ret; + } + + public bool setDebugCallback(DDebugCallback pCallback) { + bool ret = tinyWRAPPINVOKE.SipStack_setDebugCallback(swigCPtr, DDebugCallback.getCPtr(pCallback)); + return ret; + } + + public bool setDisplayName(string display_name) { + bool ret = tinyWRAPPINVOKE.SipStack_setDisplayName(swigCPtr, display_name); + return ret; + } + + public bool setRealm(string realm_uri) { + bool ret = tinyWRAPPINVOKE.SipStack_setRealm(swigCPtr, realm_uri); + return ret; + } + + public bool setIMPI(string impi) { + bool ret = tinyWRAPPINVOKE.SipStack_setIMPI(swigCPtr, impi); + return ret; + } + + public bool setIMPU(string impu_uri) { + bool ret = tinyWRAPPINVOKE.SipStack_setIMPU(swigCPtr, impu_uri); + return ret; + } + + public bool setPassword(string password) { + bool ret = tinyWRAPPINVOKE.SipStack_setPassword(swigCPtr, password); + return ret; + } + + public bool setAMF(string amf) { + bool ret = tinyWRAPPINVOKE.SipStack_setAMF(swigCPtr, amf); + return ret; + } + + public bool setOperatorId(string opid) { + bool ret = tinyWRAPPINVOKE.SipStack_setOperatorId(swigCPtr, opid); + return ret; + } + + public bool setProxyCSCF(string fqdn, ushort port, string transport, string ipversion) { + bool ret = tinyWRAPPINVOKE.SipStack_setProxyCSCF(swigCPtr, fqdn, port, transport, ipversion); + return ret; + } + + public bool setLocalIP(string ip, string transport) { + bool ret = tinyWRAPPINVOKE.SipStack_setLocalIP__SWIG_0(swigCPtr, ip, transport); + return ret; + } + + public bool setLocalIP(string ip) { + bool ret = tinyWRAPPINVOKE.SipStack_setLocalIP__SWIG_1(swigCPtr, ip); + return ret; + } + + public bool setLocalPort(ushort port, string transport) { + bool ret = tinyWRAPPINVOKE.SipStack_setLocalPort__SWIG_0(swigCPtr, port, transport); + return ret; + } + + public bool setLocalPort(ushort port) { + bool ret = tinyWRAPPINVOKE.SipStack_setLocalPort__SWIG_1(swigCPtr, port); + return ret; + } + + public bool setEarlyIMS(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setEarlyIMS(swigCPtr, enabled); + return ret; + } + + public bool addHeader(string name, string value) { + bool ret = tinyWRAPPINVOKE.SipStack_addHeader(swigCPtr, name, value); + return ret; + } + + public bool removeHeader(string name) { + bool ret = tinyWRAPPINVOKE.SipStack_removeHeader(swigCPtr, name); + return ret; + } + + public bool addDnsServer(string ip) { + bool ret = tinyWRAPPINVOKE.SipStack_addDnsServer(swigCPtr, ip); + return ret; + } + + public bool setDnsDiscovery(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setDnsDiscovery(swigCPtr, enabled); + return ret; + } + + public bool setAoR(string ip, int port) { + bool ret = tinyWRAPPINVOKE.SipStack_setAoR(swigCPtr, ip, port); + return ret; + } + + public bool setSigCompParams(uint dms, uint sms, uint cpb, bool enablePresDict) { + bool ret = tinyWRAPPINVOKE.SipStack_setSigCompParams(swigCPtr, dms, sms, cpb, enablePresDict); + return ret; + } + + public bool addSigCompCompartment(string compId) { + bool ret = tinyWRAPPINVOKE.SipStack_addSigCompCompartment(swigCPtr, compId); + return ret; + } + + public bool removeSigCompCompartment(string compId) { + bool ret = tinyWRAPPINVOKE.SipStack_removeSigCompCompartment(swigCPtr, compId); + return ret; + } + + public bool setSTUNEnabledForICE(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setSTUNEnabledForICE(swigCPtr, enabled); + return ret; + } + + public bool setSTUNServer(string hostname, ushort port) { + bool ret = tinyWRAPPINVOKE.SipStack_setSTUNServer(swigCPtr, hostname, port); + return ret; + } + + public bool setSTUNCred(string login, string password) { + bool ret = tinyWRAPPINVOKE.SipStack_setSTUNCred(swigCPtr, login, password); + return ret; + } + + public bool setSTUNEnabled(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setSTUNEnabled(swigCPtr, enabled); + return ret; + } + + public bool setTLSSecAgree(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setTLSSecAgree(swigCPtr, enabled); + return ret; + } + + public bool setSSLCertificates(string privKey, string pubKey, string caKey, bool verify) { + bool ret = tinyWRAPPINVOKE.SipStack_setSSLCertificates__SWIG_0(swigCPtr, privKey, pubKey, caKey, verify); + return ret; + } + + public bool setSSLCertificates(string privKey, string pubKey, string caKey) { + bool ret = tinyWRAPPINVOKE.SipStack_setSSLCertificates__SWIG_1(swigCPtr, privKey, pubKey, caKey); + return ret; + } + + public bool setSSLCretificates(string privKey, string pubKey, string caKey, bool verify) { + bool ret = tinyWRAPPINVOKE.SipStack_setSSLCretificates__SWIG_0(swigCPtr, privKey, pubKey, caKey, verify); + return ret; + } + + public bool setSSLCretificates(string privKey, string pubKey, string caKey) { + bool ret = tinyWRAPPINVOKE.SipStack_setSSLCretificates__SWIG_1(swigCPtr, privKey, pubKey, caKey); + return ret; + } + + public bool setIPSecSecAgree(bool enabled) { + bool ret = tinyWRAPPINVOKE.SipStack_setIPSecSecAgree(swigCPtr, enabled); + return ret; + } + + public bool setIPSecParameters(string algo, string ealgo, string mode, string proto) { + bool ret = tinyWRAPPINVOKE.SipStack_setIPSecParameters(swigCPtr, algo, ealgo, mode, proto); + return ret; + } + + public string dnsENUM(string service, string e164num, string domain) { + string ret = tinyWRAPPINVOKE.SipStack_dnsENUM(swigCPtr, service, e164num, domain); + return ret; + } + + public string dnsNaptrSrv(string domain, string service, out ushort OUTPUT) { + string ret = tinyWRAPPINVOKE.SipStack_dnsNaptrSrv(swigCPtr, domain, service, out OUTPUT); + return ret; + } + + public string dnsSrv(string service, out ushort OUTPUT) { + string ret = tinyWRAPPINVOKE.SipStack_dnsSrv(swigCPtr, service, out OUTPUT); + return ret; + } + + public bool setMaxFDs(uint max_fds) { + bool ret = tinyWRAPPINVOKE.SipStack_setMaxFDs(swigCPtr, max_fds); + return ret; + } + + public string getLocalIPnPort(string protocol, out ushort OUTPUT) { + string ret = tinyWRAPPINVOKE.SipStack_getLocalIPnPort(swigCPtr, protocol, out OUTPUT); + return ret; + } + + public string getPreferredIdentity() { + string ret = tinyWRAPPINVOKE.SipStack_getPreferredIdentity(swigCPtr); + return ret; + } + + public bool isValid() { + bool ret = tinyWRAPPINVOKE.SipStack_isValid(swigCPtr); + return ret; + } + + public bool stop() { + bool ret = tinyWRAPPINVOKE.SipStack_stop(swigCPtr); + return ret; + } + + public static bool initialize() { + bool ret = tinyWRAPPINVOKE.SipStack_initialize(); + return ret; + } + + public static bool deInitialize() { + bool ret = tinyWRAPPINVOKE.SipStack_deInitialize(); + return ret; + } + + public static void setCodecs(tdav_codec_id_t codecs) { + tinyWRAPPINVOKE.SipStack_setCodecs((int)codecs); + } + + public static void setCodecs_2(long codecs) { + tinyWRAPPINVOKE.SipStack_setCodecs_2(codecs); + } + + public static bool setCodecPriority(tdav_codec_id_t codec_id, int priority) { + bool ret = tinyWRAPPINVOKE.SipStack_setCodecPriority((int)codec_id, priority); + return ret; + } + + public static bool setCodecPriority_2(int codec, int priority) { + bool ret = tinyWRAPPINVOKE.SipStack_setCodecPriority_2(codec, priority); + return ret; + } + + public static bool isCodecSupported(tdav_codec_id_t codec_id) { + bool ret = tinyWRAPPINVOKE.SipStack_isCodecSupported((int)codec_id); + return ret; + } + + public static bool isIPSecSupported() { + bool ret = tinyWRAPPINVOKE.SipStack_isIPSecSupported(); + return ret; + } + +} + +} diff --git a/bindings/csharp/SipUri.cs b/bindings/csharp/SipUri.cs new file mode 100644 index 0000000..9679a66 --- /dev/null +++ b/bindings/csharp/SipUri.cs @@ -0,0 +1,101 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SipUri : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal SipUri(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SipUri obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SipUri() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SipUri(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public SipUri(string uriString, string displayName) : this(tinyWRAPPINVOKE.new_SipUri__SWIG_0(uriString, displayName), true) { + } + + public SipUri(string uriString) : this(tinyWRAPPINVOKE.new_SipUri__SWIG_1(uriString), true) { + } + + public static bool isValid(string arg0) { + bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_0(arg0); + return ret; + } + + public bool isValid() { + bool ret = tinyWRAPPINVOKE.SipUri_isValid__SWIG_1(swigCPtr); + return ret; + } + + public string getScheme() { + string ret = tinyWRAPPINVOKE.SipUri_getScheme(swigCPtr); + return ret; + } + + public string getHost() { + string ret = tinyWRAPPINVOKE.SipUri_getHost(swigCPtr); + return ret; + } + + public ushort getPort() { + ushort ret = tinyWRAPPINVOKE.SipUri_getPort(swigCPtr); + return ret; + } + + public string getUserName() { + string ret = tinyWRAPPINVOKE.SipUri_getUserName(swigCPtr); + return ret; + } + + public string getPassword() { + string ret = tinyWRAPPINVOKE.SipUri_getPassword(swigCPtr); + return ret; + } + + public string getDisplayName() { + string ret = tinyWRAPPINVOKE.SipUri_getDisplayName(swigCPtr); + return ret; + } + + public string getParamValue(string pname) { + string ret = tinyWRAPPINVOKE.SipUri_getParamValue(swigCPtr, pname); + return ret; + } + + public void setDisplayName(string displayName) { + tinyWRAPPINVOKE.SipUri_setDisplayName(swigCPtr, displayName); + } + +} + +} diff --git a/bindings/csharp/StackEvent.cs b/bindings/csharp/StackEvent.cs new file mode 100644 index 0000000..1ca9068 --- /dev/null +++ b/bindings/csharp/StackEvent.cs @@ -0,0 +1,45 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 StackEvent : SipEvent { + private HandleRef swigCPtr; + + internal StackEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.StackEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(StackEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~StackEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_StackEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + +} + +} diff --git a/bindings/csharp/SubscriptionEvent.cs b/bindings/csharp/SubscriptionEvent.cs new file mode 100644 index 0000000..cbc3c41 --- /dev/null +++ b/bindings/csharp/SubscriptionEvent.cs @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SubscriptionEvent : SipEvent { + private HandleRef swigCPtr; + + internal SubscriptionEvent(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionEvent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SubscriptionEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SubscriptionEvent() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SubscriptionEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public tsip_subscribe_event_type_t getType() { + tsip_subscribe_event_type_t ret = (tsip_subscribe_event_type_t)tinyWRAPPINVOKE.SubscriptionEvent_getType(swigCPtr); + return ret; + } + + public SubscriptionSession getSession() { + IntPtr cPtr = tinyWRAPPINVOKE.SubscriptionEvent_getSession(swigCPtr); + SubscriptionSession ret = (cPtr == IntPtr.Zero) ? null : new SubscriptionSession(cPtr, false); + return ret; + } + + public SubscriptionSession takeSessionOwnership() { + IntPtr cPtr = tinyWRAPPINVOKE.SubscriptionEvent_takeSessionOwnership(swigCPtr); + SubscriptionSession ret = (cPtr == IntPtr.Zero) ? null : new SubscriptionSession(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/SubscriptionSession.cs b/bindings/csharp/SubscriptionSession.cs new file mode 100644 index 0000000..a9b2e90 --- /dev/null +++ b/bindings/csharp/SubscriptionSession.cs @@ -0,0 +1,58 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 SubscriptionSession : SipSession { + private HandleRef swigCPtr; + + internal SubscriptionSession(IntPtr cPtr, bool cMemoryOwn) : base(tinyWRAPPINVOKE.SubscriptionSession_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(SubscriptionSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~SubscriptionSession() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_SubscriptionSession(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public SubscriptionSession(SipStack pStack) : this(tinyWRAPPINVOKE.new_SubscriptionSession(SipStack.getCPtr(pStack)), true) { + } + + public bool subscribe() { + bool ret = tinyWRAPPINVOKE.SubscriptionSession_subscribe(swigCPtr); + return ret; + } + + public bool unSubscribe() { + bool ret = tinyWRAPPINVOKE.SubscriptionSession_unSubscribe(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/T140Callback.cs b/bindings/csharp/T140Callback.cs new file mode 100644 index 0000000..a32e392 --- /dev/null +++ b/bindings/csharp/T140Callback.cs @@ -0,0 +1,76 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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) }; +} + +} diff --git a/bindings/csharp/T140CallbackData.cs b/bindings/csharp/T140CallbackData.cs new file mode 100644 index 0000000..f5e5385 --- /dev/null +++ b/bindings/csharp/T140CallbackData.cs @@ -0,0 +1,61 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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; + } + +} + +} diff --git a/bindings/csharp/XcapCallback.cs b/bindings/csharp/XcapCallback.cs new file mode 100644 index 0000000..a1e340a --- /dev/null +++ b/bindings/csharp/XcapCallback.cs @@ -0,0 +1,76 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 XcapCallback : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal XcapCallback(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(XcapCallback obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~XcapCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_XcapCallback(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public XcapCallback() : this(tinyWRAPPINVOKE.new_XcapCallback(), true) { + SwigDirectorConnect(); + } + + public virtual int onEvent(XcapEvent e) { + int ret = (SwigDerivedClassHasMethod("onEvent", swigMethodTypes0) ? tinyWRAPPINVOKE.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, XcapEvent.getCPtr(e)) : tinyWRAPPINVOKE.XcapCallback_onEvent(swigCPtr, XcapEvent.getCPtr(e))); + return ret; + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("onEvent", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateXcapCallback_0(SwigDirectoronEvent); + tinyWRAPPINVOKE.XcapCallback_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(XcapCallback)); + return hasDerivedMethod; + } + + private int SwigDirectoronEvent(IntPtr e) { + return onEvent((e == IntPtr.Zero) ? null : new XcapEvent(e, false)); + } + + public delegate int SwigDelegateXcapCallback_0(IntPtr e); + + private SwigDelegateXcapCallback_0 swigDelegate0; + + private static Type[] swigMethodTypes0 = new Type[] { typeof(XcapEvent) }; +} + +} diff --git a/bindings/csharp/XcapEvent.cs b/bindings/csharp/XcapEvent.cs new file mode 100644 index 0000000..8ec23c7 --- /dev/null +++ b/bindings/csharp/XcapEvent.cs @@ -0,0 +1,57 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 XcapEvent : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal XcapEvent(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(XcapEvent obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~XcapEvent() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_XcapEvent(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public thttp_event_type_t getType() { + thttp_event_type_t ret = (thttp_event_type_t)tinyWRAPPINVOKE.XcapEvent_getType(swigCPtr); + return ret; + } + + public XcapMessage getXcapMessage() { + IntPtr cPtr = tinyWRAPPINVOKE.XcapEvent_getXcapMessage(swigCPtr); + XcapMessage ret = (cPtr == IntPtr.Zero) ? null : new XcapMessage(cPtr, false); + return ret; + } + +} + +} diff --git a/bindings/csharp/XcapMessage.cs b/bindings/csharp/XcapMessage.cs new file mode 100644 index 0000000..1f13295 --- /dev/null +++ b/bindings/csharp/XcapMessage.cs @@ -0,0 +1,89 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 XcapMessage : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal XcapMessage(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(XcapMessage obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~XcapMessage() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_XcapMessage(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public XcapMessage() : this(tinyWRAPPINVOKE.new_XcapMessage(), true) { + } + + public short getCode() { + short ret = tinyWRAPPINVOKE.XcapMessage_getCode(swigCPtr); + return ret; + } + + public string getPhrase() { + string ret = tinyWRAPPINVOKE.XcapMessage_getPhrase(swigCPtr); + return ret; + } + + public string getXcapHeaderValue(string name, uint index) { + string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderValue__SWIG_0(swigCPtr, name, index); + return ret; + } + + public string getXcapHeaderValue(string name) { + string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderValue__SWIG_1(swigCPtr, name); + return ret; + } + + public string getXcapHeaderParamValue(string name, string param, uint index) { + string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderParamValue__SWIG_0(swigCPtr, name, param, index); + return ret; + } + + public string getXcapHeaderParamValue(string name, string param) { + string ret = tinyWRAPPINVOKE.XcapMessage_getXcapHeaderParamValue__SWIG_1(swigCPtr, name, param); + return ret; + } + + public uint getXcapContentLength() { + uint ret = tinyWRAPPINVOKE.XcapMessage_getXcapContentLength(swigCPtr); + return ret; + } + + public uint getXcapContent(IntPtr output, uint maxsize) { + uint ret = tinyWRAPPINVOKE.XcapMessage_getXcapContent(swigCPtr, output, maxsize); + return ret; + } + +} + +} diff --git a/bindings/csharp/XcapSelector.cs b/bindings/csharp/XcapSelector.cs new file mode 100644 index 0000000..5eb77a3 --- /dev/null +++ b/bindings/csharp/XcapSelector.cs @@ -0,0 +1,94 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 XcapSelector : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal XcapSelector(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(XcapSelector obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~XcapSelector() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_XcapSelector(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + public XcapSelector(XcapStack stack) : this(tinyWRAPPINVOKE.new_XcapSelector(XcapStack.getCPtr(stack)), true) { + } + + public XcapSelector setAUID(string auid) { + IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setAUID(swigCPtr, auid); + XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false); + return ret; + } + + public XcapSelector setName(string qname) { + IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setName(swigCPtr, qname); + XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false); + return ret; + } + + public XcapSelector setAttribute(string qname, string att_qname, string att_value) { + IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setAttribute(swigCPtr, qname, att_qname, att_value); + XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false); + return ret; + } + + public XcapSelector setPos(string qname, uint pos) { + IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setPos(swigCPtr, qname, pos); + XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false); + return ret; + } + + public XcapSelector setPosAttribute(string qname, uint pos, string att_qname, string att_value) { + IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setPosAttribute(swigCPtr, qname, pos, att_qname, att_value); + XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false); + return ret; + } + + public XcapSelector setNamespace(string prefix, string value) { + IntPtr cPtr = tinyWRAPPINVOKE.XcapSelector_setNamespace(swigCPtr, prefix, value); + XcapSelector ret = (cPtr == IntPtr.Zero) ? null : new XcapSelector(cPtr, false); + return ret; + } + + public string getString() { + string ret = tinyWRAPPINVOKE.XcapSelector_getString(swigCPtr); + return ret; + } + + public void reset() { + tinyWRAPPINVOKE.XcapSelector_reset(swigCPtr); + } + +} + +} diff --git a/bindings/csharp/XcapStack.cs b/bindings/csharp/XcapStack.cs new file mode 100644 index 0000000..43459d8 --- /dev/null +++ b/bindings/csharp/XcapStack.cs @@ -0,0 +1,168 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 XcapStack : IDisposable { + private HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal XcapStack(IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new HandleRef(this, cPtr); + } + + internal static HandleRef getCPtr(XcapStack obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } + + ~XcapStack() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPPINVOKE.delete_XcapStack(swigCPtr); + } + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + GC.SuppressFinalize(this); + } + } + + 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) { + } + + public bool registerAUID(string id, string mime_type, string ns, string document_name, bool is_global) { + bool ret = tinyWRAPPINVOKE.XcapStack_registerAUID(swigCPtr, id, mime_type, ns, document_name, is_global); + return ret; + } + + public bool start() { + bool ret = tinyWRAPPINVOKE.XcapStack_start(swigCPtr); + return ret; + } + + public bool setCredentials(string xui, string password) { + bool ret = tinyWRAPPINVOKE.XcapStack_setCredentials(swigCPtr, xui, password); + return ret; + } + + public bool setXcapRoot(string xcap_root) { + bool ret = tinyWRAPPINVOKE.XcapStack_setXcapRoot(swigCPtr, xcap_root); + return ret; + } + + public bool setLocalIP(string ip) { + bool ret = tinyWRAPPINVOKE.XcapStack_setLocalIP(swigCPtr, ip); + return ret; + } + + public bool setLocalPort(uint port) { + bool ret = tinyWRAPPINVOKE.XcapStack_setLocalPort(swigCPtr, port); + return ret; + } + + public bool addHeader(string name, string value) { + bool ret = tinyWRAPPINVOKE.XcapStack_addHeader(swigCPtr, name, value); + return ret; + } + + public bool removeHeader(string name) { + bool ret = tinyWRAPPINVOKE.XcapStack_removeHeader(swigCPtr, name); + return ret; + } + + public bool setTimeout(uint timeout) { + bool ret = tinyWRAPPINVOKE.XcapStack_setTimeout(swigCPtr, timeout); + return ret; + } + + public bool getDocument(string url) { + bool ret = tinyWRAPPINVOKE.XcapStack_getDocument(swigCPtr, url); + return ret; + } + + public bool getElement(string url) { + bool ret = tinyWRAPPINVOKE.XcapStack_getElement(swigCPtr, url); + return ret; + } + + public bool getAttribute(string url) { + bool ret = tinyWRAPPINVOKE.XcapStack_getAttribute(swigCPtr, url); + return ret; + } + + public bool deleteDocument(string url) { + bool ret = tinyWRAPPINVOKE.XcapStack_deleteDocument(swigCPtr, url); + return ret; + } + + public bool deleteElement(string url) { + bool ret = tinyWRAPPINVOKE.XcapStack_deleteElement(swigCPtr, url); + return ret; + } + + public bool deleteAttribute(string url) { + bool ret = tinyWRAPPINVOKE.XcapStack_deleteAttribute(swigCPtr, url); + return ret; + } + + 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, IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.XcapStack_putElement(swigCPtr, url, payload, len); + return ret; + } + + public bool putAttribute(string url, IntPtr payload, uint len) { + bool ret = tinyWRAPPINVOKE.XcapStack_putAttribute(swigCPtr, url, payload, len); + return ret; + } + + public bool stop() { + bool ret = tinyWRAPPINVOKE.XcapStack_stop(swigCPtr); + return ret; + } + +} + +} diff --git a/bindings/csharp/csharp.i b/bindings/csharp/csharp.i new file mode 100644 index 0000000..33534cd --- /dev/null +++ b/bindings/csharp/csharp.i @@ -0,0 +1,147 @@ +/* File : csharp.i +* http://www.swig.org/Doc1.3/CSharp.html +*/ + + +%define %cs_marshal_array(TYPE, CSTYPE) +%typemap(ctype) TYPE[] "void*" +%typemap(imtype, +inattributes="[MarshalAs(UnmanagedType.LPArray)]") TYPE[] "CSTYPE[]" +%typemap(cstype) TYPE[] "CSTYPE[]" +%typemap(in) TYPE[] %{ $1 = (TYPE*)$input; %} +%typemap(csin) TYPE[] "$csinput" +%enddef + +// 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" + + +//======== SipMessage ========// +%typemap(cscode) SipMessage %{ + public byte[] getSipContent() { + uint clen = this.getSipContentLength(); + if(clen>0){ + IntPtr ptr = Marshal.AllocHGlobal((int)clen); + this.getSipContent(ptr, clen); + byte[] bytes = new byte[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]; + 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; + } +%} + + +//======== Deprecated ========// +// @deprecated: to be replaced by "tmedia_codec_id_t" in Doubango 3.0 +%typemap(csattributes) tdav_codec_id_e "[System.Obsolete(\"Deprecated and replaced by 'tmedia_codec_id_t'. Will be removed in Doubango 3.0.\", false)]" + + + +%include ../_common/tinyWRAP.i diff --git a/bindings/csharp/tdav_codec_id_t.cs b/bindings/csharp/tdav_codec_id_t.cs new file mode 100644 index 0000000..98f5f69 --- /dev/null +++ b/bindings/csharp/tdav_codec_id_t.cs @@ -0,0 +1,48 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace org.doubango.tinyWRAP { + +[System.Obsolete("Deprecated and replaced by 'tmedia_codec_id_t'. Will be removed in Doubango 3.0.", false)] +public enum tdav_codec_id_t { + tdav_codec_id_none = 0x00000000, + tdav_codec_id_amr_nb_oa = 0x00000001 << 0, + tdav_codec_id_amr_nb_be = 0x00000001 << 1, + tdav_codec_id_amr_wb_oa = 0x00000001 << 2, + tdav_codec_id_amr_wb_be = 0x00000001 << 3, + tdav_codec_id_gsm = 0x00000001 << 4, + tdav_codec_id_pcma = 0x00000001 << 5, + tdav_codec_id_pcmu = 0x00000001 << 6, + tdav_codec_id_ilbc = 0x00000001 << 7, + tdav_codec_id_speex_nb = 0x00000001 << 8, + tdav_codec_id_speex_wb = 0x00000001 << 9, + tdav_codec_id_speex_uwb = 0x00000001 << 10, + tdav_codec_id_bv16 = 0x00000001 << 11, + tdav_codec_id_bv32 = 0x00000001 << 12, + tdav_codec_id_opus = 0x00000001 << 13, + tdav_codec_id_g729ab = 0x00000001 << 14, + tdav_codec_id_g722 = 0x00000001 << 15, + tdav_codec_id_h261 = 0x00010000 << 0, + tdav_codec_id_h263 = 0x00010000 << 1, + tdav_codec_id_h263p = 0x00010000 << 2, + tdav_codec_id_h263pp = 0x00010000 << 3, + tdav_codec_id_h264_bp = 0x00010000 << 4, + tdav_codec_id_h264_mp = 0x00010000 << 5, + tdav_codec_id_h264_hp = 0x00010000 << 6, + tdav_codec_id_h264_bp10 = tdav_codec_id_h264_bp, + tdav_codec_id_h264_bp20 = tdav_codec_id_h264_bp, + tdav_codec_id_h264_bp30 = tdav_codec_id_h264_bp, + 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_t140 = 0x00010000 << 14, + tdav_codec_id_red = 0x00010000 << 15 +} + +} diff --git a/bindings/csharp/thttp_event_type_t.cs b/bindings/csharp/thttp_event_type_t.cs new file mode 100644 index 0000000..82fc9f1 --- /dev/null +++ b/bindings/csharp/thttp_event_type_t.cs @@ -0,0 +1,20 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 thttp_event_type_t { + thttp_event_dialog_started, + thttp_event_message, + thttp_event_auth_failed, + thttp_event_closed, + thttp_event_transport_error, + thttp_event_dialog_terminated +} + +} diff --git a/bindings/csharp/tinyWRAP.cs b/bindings/csharp/tinyWRAP.cs new file mode 100644 index 0000000..91b84fc --- /dev/null +++ b/bindings/csharp/tinyWRAP.cs @@ -0,0 +1,35 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tinyWRAP { + public static readonly int tsip_event_code_dialog_transport_error = tinyWRAPPINVOKE.tsip_event_code_dialog_transport_error_get(); + public static readonly int tsip_event_code_dialog_global_error = tinyWRAPPINVOKE.tsip_event_code_dialog_global_error_get(); + public static readonly int tsip_event_code_dialog_message_error = tinyWRAPPINVOKE.tsip_event_code_dialog_message_error_get(); + public static readonly int tsip_event_code_dialog_request_incoming = tinyWRAPPINVOKE.tsip_event_code_dialog_request_incoming_get(); + public static readonly int tsip_event_code_dialog_request_outgoing = tinyWRAPPINVOKE.tsip_event_code_dialog_request_outgoing_get(); + public static readonly int tsip_event_code_dialog_request_cancelled = tinyWRAPPINVOKE.tsip_event_code_dialog_request_cancelled_get(); + public static readonly int tsip_event_code_dialog_request_sent = tinyWRAPPINVOKE.tsip_event_code_dialog_request_sent_get(); + public static readonly int tsip_event_code_dialog_connecting = tinyWRAPPINVOKE.tsip_event_code_dialog_connecting_get(); + public static readonly int tsip_event_code_dialog_connected = tinyWRAPPINVOKE.tsip_event_code_dialog_connected_get(); + public static readonly int tsip_event_code_dialog_terminating = tinyWRAPPINVOKE.tsip_event_code_dialog_terminating_get(); + public static readonly int tsip_event_code_dialog_terminated = tinyWRAPPINVOKE.tsip_event_code_dialog_terminated_get(); + public static readonly int tsip_event_code_stack_starting = tinyWRAPPINVOKE.tsip_event_code_stack_starting_get(); + public static readonly int tsip_event_code_stack_started = tinyWRAPPINVOKE.tsip_event_code_stack_started_get(); + public static readonly int tsip_event_code_stack_stopping = tinyWRAPPINVOKE.tsip_event_code_stack_stopping_get(); + public static readonly int tsip_event_code_stack_stopped = tinyWRAPPINVOKE.tsip_event_code_stack_stopped_get(); + public static readonly int tsip_event_code_stack_failed_to_start = tinyWRAPPINVOKE.tsip_event_code_stack_failed_to_start_get(); + public static readonly int tsip_event_code_stack_failed_to_stop = tinyWRAPPINVOKE.tsip_event_code_stack_failed_to_stop_get(); + public static readonly int tsip_event_code_stack_disconnected = tinyWRAPPINVOKE.tsip_event_code_stack_disconnected_get(); +} + +} diff --git a/bindings/csharp/tinyWRAP.sln b/bindings/csharp/tinyWRAP.sln new file mode 100644 index 0000000..e70d6a0 --- /dev/null +++ b/bindings/csharp/tinyWRAP.sln @@ -0,0 +1,530 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyWRAP", "tinyWRAP.vcproj", "{6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{CE53BD89-639D-4F7D-BC47-FB82A294AFDC}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyNET", "..\..\tinyNET\tinyNET.vcproj", "{7522A458-92F4-4259-B906-E84C2A65D9F1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyHTTP", "..\..\tinyHTTP\tinyHTTP.vcproj", "{B3E45009-C7C3-4090-837C-2D30C9058443}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIP", "..\..\tinySIP\tinySIP.vcproj", "{4CE20732-9978-4A88-B586-CFEFCB63E82D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySDP", "..\..\tinySDP\tinySDP.vcproj", "{E45DB518-6562-4033-80E8-60030F0B169F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMEDIA", "..\..\tinyMEDIA\tinyMEDIA.vcproj", "{52814B0D-7DCA-45B8-9A16-8B147040D619}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyIPSec", "..\..\tinyIPSec\tinyIPSec.vcproj", "{002FF064-588F-402E-A096-C8D033F49F40}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySAK", "..\..\tinySAK\tinySAK.vcproj", "{6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIGCOMP", "..\..\tinySIGCOMP\tinySIGCOMP.vcproj", "{76261DC8-25B3-43F4-9FB5-112C4AC0880E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDAV", "..\..\tinyDAV\tinyDAV.vcproj", "{8E2F0B2E-2596-4010-BF4A-2F688975B5C1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyRTP", "..\..\tinyRTP\tinyRTP.vcproj", "{99B7D02F-8C70-4B45-AF3C-92313C3CEE15}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDSHOW", "..\..\tinyDSHOW\tinyDSHOW.vcproj", "{0CCC02F1-4233-424F-AD5E-A021456E6E8D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test_xcap", "test_xcap\test_xcap.csproj", "{FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyXCAP", "..\..\tinyXCAP\tinyXCAP.vcproj", "{570CF33D-E65F-448F-8AC2-F9AE2F23152F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySMS", "..\..\tinySMS\tinySMS.vcproj", "{9A3A5AF3-2333-4477-B880-7F901F9D8972}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMSRP", "..\..\tinyMSRP\tinyMSRP.vcproj", "{AA46AF16-9678-4054-8E48-98DC21ECEC82}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + Static_Debug|Any CPU = Static_Debug|Any CPU + Static_Debug|Mixed Platforms = Static_Debug|Mixed Platforms + Static_Debug|Win32 = Static_Debug|Win32 + Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + Static_Release|Any CPU = Static_Release|Any CPU + Static_Release|Mixed Platforms = Static_Release|Mixed Platforms + Static_Release|Win32 = Static_Release|Win32 + Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Win32.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Win32.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Any CPU.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Mixed Platforms.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Win32.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Win32.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Win32.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Win32.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Win32.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Debug|Win32.ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Release|Any CPU.Build.0 = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Release|Win32.ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Debug|Any CPU.Build.0 = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Debug|Win32.ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Release|Any CPU.ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Release|Any CPU.Build.0 = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Release|Mixed Platforms.Build.0 = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Release|Win32.ActiveCfg = Release|Any CPU + {CE53BD89-639D-4F7D-BC47-FB82A294AFDC}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.ActiveCfg = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.Build.0 = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Win32.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Win32.ActiveCfg = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Win32.Build.0 = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.ActiveCfg = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.Build.0 = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Win32.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Win32.ActiveCfg = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Win32.Build.0 = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Win32.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Win32.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Win32.ActiveCfg = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Win32.Build.0 = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Win32.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Win32.ActiveCfg = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Win32.Build.0 = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Win32.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Win32.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Any CPU.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Mixed Platforms.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Win32.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Win32.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Win32.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Win32.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Win32.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Win32.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Win32.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Any CPU.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Mixed Platforms.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Win32.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Win32.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Win32.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Win32.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Win32.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Win32.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Win32.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Any CPU.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Mixed Platforms.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Win32.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Win32.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Win32.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Win32.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Win32.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.ActiveCfg = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.Build.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.ActiveCfg = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.Build.0 = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Any CPU.ActiveCfg = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Mixed Platforms.ActiveCfg = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Mixed Platforms.Build.0 = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Mixed Platforms.Deploy.0 = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Win32.ActiveCfg = Static_Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Win32.Build.0 = Static_Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Any CPU.ActiveCfg = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Mixed Platforms.ActiveCfg = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Mixed Platforms.Build.0 = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Mixed Platforms.Deploy.0 = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Win32.ActiveCfg = Static_Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Win32.Build.0 = Static_Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Win32.ActiveCfg = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Win32.Build.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Win32.ActiveCfg = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Win32.Build.0 = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Win32.Build.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Win32.ActiveCfg = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Win32.Build.0 = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Win32.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Win32.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Any CPU.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Mixed Platforms.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Win32.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Win32.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Win32.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Win32.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Win32.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Win32.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Win32.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Any CPU.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Mixed Platforms.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Win32.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Win32.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Win32.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Win32.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Win32.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Win32.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Win32.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Any CPU.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Mixed Platforms.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Win32.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Win32.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Win32.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Win32.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Win32.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Debug|Win32.ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Release|Any CPU.Build.0 = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Release|Win32.ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Debug|Any CPU.Build.0 = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Debug|Win32.ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Release|Any CPU.ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Release|Any CPU.Build.0 = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Release|Mixed Platforms.Build.0 = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Release|Win32.ActiveCfg = Release|Any CPU + {FCC7ACB3-6809-4FA6-A5AC-961B7B874B57}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Win32.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Win32.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Any CPU.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Mixed Platforms.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Win32.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Win32.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Win32.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Win32.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Win32.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Any CPU.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Mixed Platforms.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Win32.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Win32.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Win32.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Win32.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Win32.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Any CPU.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Mixed Platforms.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Win32.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Win32.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Win32.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Win32.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Win32.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/bindings/csharp/tinyWRAP.vcproj b/bindings/csharp/tinyWRAP.vcproj new file mode 100644 index 0000000..97bd276 --- /dev/null +++ b/bindings/csharp/tinyWRAP.vcproj @@ -0,0 +1,412 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bindings/csharp/tinyWRAPPINVOKE.cs b/bindings/csharp/tinyWRAPPINVOKE.cs new file mode 100644 index 0000000..84f9165 --- /dev/null +++ b/bindings/csharp/tinyWRAPPINVOKE.cs @@ -0,0 +1,2203 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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; + +class tinyWRAPPINVOKE { + + protected class SWIGExceptionHelper { + + public delegate void ExceptionDelegate(string message); + public delegate void ExceptionArgumentDelegate(string message, string paramName); + + static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); + static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); + static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); + static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); + static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); + static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); + static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); + static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); + static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); + static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); + static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); + + static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); + static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); + static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); + + [DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionCallbacks_tinyWRAP")] + public static extern void SWIGRegisterExceptionCallbacks_tinyWRAP( + ExceptionDelegate applicationDelegate, + ExceptionDelegate arithmeticDelegate, + ExceptionDelegate divideByZeroDelegate, + ExceptionDelegate indexOutOfRangeDelegate, + ExceptionDelegate invalidCastDelegate, + ExceptionDelegate invalidOperationDelegate, + ExceptionDelegate ioDelegate, + ExceptionDelegate nullReferenceDelegate, + ExceptionDelegate outOfMemoryDelegate, + ExceptionDelegate overflowDelegate, + ExceptionDelegate systemExceptionDelegate); + + [DllImport("tinyWRAP", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_tinyWRAP")] + public static extern void SWIGRegisterExceptionCallbacksArgument_tinyWRAP( + ExceptionArgumentDelegate argumentDelegate, + ExceptionArgumentDelegate argumentNullDelegate, + ExceptionArgumentDelegate argumentOutOfRangeDelegate); + + static void SetPendingApplicationException(string message) { + SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingArithmeticException(string message) { + SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingDivideByZeroException(string message) { + SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIndexOutOfRangeException(string message) { + SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidCastException(string message) { + SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidOperationException(string message) { + SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIOException(string message) { + SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingNullReferenceException(string message) { + SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOutOfMemoryException(string message) { + SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOverflowException(string message) { + SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingSystemException(string message) { + SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve())); + } + + static void SetPendingArgumentException(string message, string paramName) { + SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); + } + static void SetPendingArgumentNullException(string message, string paramName) { + Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new System.ArgumentNullException(paramName, message)); + } + static void SetPendingArgumentOutOfRangeException(string message, string paramName) { + Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message)); + } + + static SWIGExceptionHelper() { + SWIGRegisterExceptionCallbacks_tinyWRAP( + applicationDelegate, + arithmeticDelegate, + divideByZeroDelegate, + indexOutOfRangeDelegate, + invalidCastDelegate, + invalidOperationDelegate, + ioDelegate, + nullReferenceDelegate, + outOfMemoryDelegate, + overflowDelegate, + systemDelegate); + + SWIGRegisterExceptionCallbacksArgument_tinyWRAP( + argumentDelegate, + argumentNullDelegate, + argumentOutOfRangeDelegate); + } + } + + protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); + + public class SWIGPendingException { + [ThreadStatic] + private static Exception pendingException = null; + private static int numExceptionsPending = 0; + + public static bool Pending { + get { + bool pending = false; + if (numExceptionsPending > 0) + if (pendingException != null) + pending = true; + return pending; + } + } + + public static void Set(Exception e) { + if (pendingException != null) + throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); + pendingException = e; + lock(typeof(tinyWRAPPINVOKE)) { + numExceptionsPending++; + } + } + + public static Exception Retrieve() { + Exception e = null; + if (numExceptionsPending > 0) { + if (pendingException != null) { + e = pendingException; + pendingException = null; + lock(typeof(tinyWRAPPINVOKE)) { + numExceptionsPending--; + } + } + } + return e; + } + } + + + protected class SWIGStringHelper { + + public delegate string SWIGStringDelegate(string message); + static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); + + [DllImport("tinyWRAP", EntryPoint="SWIGRegisterStringCallback_tinyWRAP")] + public static extern void SWIGRegisterStringCallback_tinyWRAP(SWIGStringDelegate stringDelegate); + + static string CreateString(string cString) { + return cString; + } + + static SWIGStringHelper() { + SWIGRegisterStringCallback_tinyWRAP(stringDelegate); + } + } + + static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); + + + static tinyWRAPPINVOKE() { + } + + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_DDebugCallback")] + public static extern IntPtr new_DDebugCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_DDebugCallback")] + public static extern void delete_DDebugCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugInfo")] + public static extern int DDebugCallback_OnDebugInfo(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback")] + public static extern int DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugWarn")] + public static extern int DDebugCallback_OnDebugWarn(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback")] + public static extern int DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugError")] + public static extern int DDebugCallback_OnDebugError(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback")] + public static extern int DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugFatal")] + public static extern int DDebugCallback_OnDebugFatal(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback")] + public static extern int DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DDebugCallback_director_connect")] + public static extern void DDebugCallback_director_connect(HandleRef jarg1, DDebugCallback.SwigDelegateDDebugCallback_0 delegate0, DDebugCallback.SwigDelegateDDebugCallback_1 delegate1, DDebugCallback.SwigDelegateDDebugCallback_2 delegate2, DDebugCallback.SwigDelegateDDebugCallback_3 delegate3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_AudioResampler")] + public static extern IntPtr new_AudioResampler(uint jarg1, uint jarg2, uint jarg3, uint jarg4, uint jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_AudioResampler")] + public static extern void delete_AudioResampler(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_AudioResampler_isValid")] + public static extern bool AudioResampler_isValid(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_AudioResampler_getOutputRequiredSizeInShort")] + public static extern uint AudioResampler_getOutputRequiredSizeInShort(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_AudioResampler_getInputRequiredSizeInShort")] + public static extern uint AudioResampler_getInputRequiredSizeInShort(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_AudioResampler_process")] + 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(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ActionConfig")] + public static extern void delete_ActionConfig(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_addHeader")] + 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, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_setActiveMedia")] + public static extern bool ActionConfig_setActiveMedia(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_setResponseLine")] + public static extern IntPtr ActionConfig_setResponseLine(HandleRef jarg1, short jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_setMediaString")] + public static extern IntPtr ActionConfig_setMediaString(HandleRef jarg1, int jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ActionConfig_setMediaInt")] + public static extern IntPtr ActionConfig_setMediaInt(HandleRef jarg1, int jarg2, string jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_Codec")] + public static extern void delete_Codec(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getMediaType")] + public static extern int Codec_getMediaType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getName")] + public static extern string Codec_getName(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getDescription")] + public static extern string Codec_getDescription(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getNegFormat")] + public static extern string Codec_getNegFormat(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getAudioSamplingRate")] + public static extern int Codec_getAudioSamplingRate(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getAudioChannels")] + public static extern int Codec_getAudioChannels(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_Codec_getAudioPTime")] + public static extern int Codec_getAudioPTime(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MediaSessionMgr")] + public static extern void delete_MediaSessionMgr(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_sessionSetInt32")] + public static extern bool MediaSessionMgr_sessionSetInt32(HandleRef jarg1, int jarg2, string jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_sessionGetInt32")] + public static extern int MediaSessionMgr_sessionGetInt32(HandleRef jarg1, int jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_consumerSetInt32")] + public static extern bool MediaSessionMgr_consumerSetInt32(HandleRef jarg1, int jarg2, string jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_consumerSetInt64")] + public static extern bool MediaSessionMgr_consumerSetInt64(HandleRef jarg1, int jarg2, string jarg3, long jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_producerSetInt32")] + public static extern bool MediaSessionMgr_producerSetInt32(HandleRef jarg1, int jarg2, string jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_producerSetInt64")] + public static extern bool MediaSessionMgr_producerSetInt64(HandleRef jarg1, int jarg2, string jarg3, long jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_producerGetCodec")] + public static extern IntPtr MediaSessionMgr_producerGetCodec(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_findProxyPluginConsumer")] + public static extern IntPtr MediaSessionMgr_findProxyPluginConsumer(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_findProxyPluginProducer")] + public static extern IntPtr MediaSessionMgr_findProxyPluginProducer(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_registerAudioPluginFromFile")] + public static extern uint MediaSessionMgr_registerAudioPluginFromFile(string jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_getSessionId")] + public static extern ulong MediaSessionMgr_getSessionId(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetProfile")] + public static extern bool MediaSessionMgr_defaultsSetProfile(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetProfile")] + public static extern int MediaSessionMgr_defaultsGetProfile(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetBandwidthLevel")] + public static extern bool MediaSessionMgr_defaultsSetBandwidthLevel(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetBandwidthLevel")] + public static extern int MediaSessionMgr_defaultsGetBandwidthLevel(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetCongestionCtrlEnabled")] + public static extern bool MediaSessionMgr_defaultsSetCongestionCtrlEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetVideoMotionRank")] + public static extern bool MediaSessionMgr_defaultsSetVideoMotionRank(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetVideoFps")] + public static extern bool MediaSessionMgr_defaultsSetVideoFps(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetBandwidthVideoUploadMax")] + public static extern bool MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax")] + public static extern bool MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetPrefVideoSize")] + public static extern bool MediaSessionMgr_defaultsSetPrefVideoSize(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetJbMargin")] + public static extern bool MediaSessionMgr_defaultsSetJbMargin(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetJbMaxLateRate")] + public static extern bool MediaSessionMgr_defaultsSetJbMaxLateRate(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetEchoTail")] + public static extern bool MediaSessionMgr_defaultsSetEchoTail(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetEchoTail")] + public static extern uint MediaSessionMgr_defaultsGetEchoTail(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetEchoSkew")] + public static extern bool MediaSessionMgr_defaultsSetEchoSkew(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetEchoSuppEnabled")] + public static extern bool MediaSessionMgr_defaultsSetEchoSuppEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetEchoSuppEnabled")] + public static extern bool MediaSessionMgr_defaultsGetEchoSuppEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAgcEnabled")] + public static extern bool MediaSessionMgr_defaultsSetAgcEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetAgcEnabled")] + public static extern bool MediaSessionMgr_defaultsGetAgcEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAgcLevel")] + public static extern bool MediaSessionMgr_defaultsSetAgcLevel(float jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetAgcLevel")] + public static extern float MediaSessionMgr_defaultsGetAgcLevel(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetVadEnabled")] + public static extern bool MediaSessionMgr_defaultsSetVadEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetGetVadEnabled")] + public static extern bool MediaSessionMgr_defaultsGetGetVadEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetNoiseSuppEnabled")] + public static extern bool MediaSessionMgr_defaultsSetNoiseSuppEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetNoiseSuppEnabled")] + public static extern bool MediaSessionMgr_defaultsGetNoiseSuppEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetNoiseSuppLevel")] + public static extern bool MediaSessionMgr_defaultsSetNoiseSuppLevel(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetNoiseSuppLevel")] + public static extern int MediaSessionMgr_defaultsGetNoiseSuppLevel(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSet100relEnabled")] + public static extern bool MediaSessionMgr_defaultsSet100relEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGet100relEnabled")] + public static extern bool MediaSessionMgr_defaultsGet100relEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetScreenSize")] + public static extern bool MediaSessionMgr_defaultsSetScreenSize(int jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAudioGain")] + public static extern bool MediaSessionMgr_defaultsSetAudioGain(int jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAudioPtime")] + public static extern bool MediaSessionMgr_defaultsSetAudioPtime(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAudioChannels")] + public static extern bool MediaSessionMgr_defaultsSetAudioChannels(int jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetRtpPortRange")] + public static extern bool MediaSessionMgr_defaultsSetRtpPortRange(ushort jarg1, ushort jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetRtpSymetricEnabled")] + public static extern bool MediaSessionMgr_defaultsSetRtpSymetricEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetMediaType")] + public static extern bool MediaSessionMgr_defaultsSetMediaType(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetVolume")] + public static extern bool MediaSessionMgr_defaultsSetVolume(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetVolume")] + public static extern int MediaSessionMgr_defaultsGetVolume(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetInviteSessionTimers")] + public static extern bool MediaSessionMgr_defaultsSetInviteSessionTimers(int jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetSRtpMode")] + public static extern bool MediaSessionMgr_defaultsSetSRtpMode(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetSRtpMode")] + public static extern int MediaSessionMgr_defaultsGetSRtpMode(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetSRtpType")] + public static extern bool MediaSessionMgr_defaultsSetSRtpType(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetSRtpType")] + public static extern int MediaSessionMgr_defaultsGetSRtpType(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetRtcpEnabled")] + public static extern bool MediaSessionMgr_defaultsSetRtcpEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetRtcpEnabled")] + public static extern bool MediaSessionMgr_defaultsGetRtcpEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetRtcpMuxEnabled")] + public static extern bool MediaSessionMgr_defaultsSetRtcpMuxEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetRtcpMuxEnabled")] + public static extern bool MediaSessionMgr_defaultsGetRtcpMuxEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetStunEnabled")] + public static extern bool MediaSessionMgr_defaultsSetStunEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetIceStunEnabled")] + public static extern bool MediaSessionMgr_defaultsSetIceStunEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetIceTurnEnabled")] + public static extern bool MediaSessionMgr_defaultsSetIceTurnEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetStunServer")] + public static extern bool MediaSessionMgr_defaultsSetStunServer(string jarg1, ushort jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetStunCred")] + public static extern bool MediaSessionMgr_defaultsSetStunCred(string jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetIceEnabled")] + public static extern bool MediaSessionMgr_defaultsSetIceEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetByPassEncoding")] + public static extern bool MediaSessionMgr_defaultsSetByPassEncoding(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetByPassEncoding")] + public static extern bool MediaSessionMgr_defaultsGetByPassEncoding(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetByPassDecoding")] + public static extern bool MediaSessionMgr_defaultsSetByPassDecoding(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetByPassDecoding")] + public static extern bool MediaSessionMgr_defaultsGetByPassDecoding(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetVideoJbEnabled")] + public static extern bool MediaSessionMgr_defaultsSetVideoJbEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetVideoJbEnabled")] + public static extern bool MediaSessionMgr_defaultsGetVideoJbEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled")] + public static extern bool MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled")] + public static extern bool MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetRtpBuffSize")] + public static extern bool MediaSessionMgr_defaultsSetRtpBuffSize(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsGetRtpBuffSize")] + public static extern uint MediaSessionMgr_defaultsGetRtpBuffSize(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAvpfTail")] + public static extern bool MediaSessionMgr_defaultsSetAvpfTail(uint jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetAvpfMode")] + public static extern bool MediaSessionMgr_defaultsSetAvpfMode(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetOpusMaxCaptureRate")] + public static extern bool MediaSessionMgr_defaultsSetOpusMaxCaptureRate(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetOpusMaxPlaybackRate")] + public static extern bool MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(uint jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaSessionMgr_defaultsSetMaxFds")] + public static extern bool MediaSessionMgr_defaultsSetMaxFds(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MediaContent")] + public static extern void delete_MediaContent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_getType")] + public static extern string MediaContent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_getDataLength")] + public static extern uint MediaContent_getDataLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_getData")] + 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(IntPtr jarg1, uint jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContent_parse__SWIG_1")] + 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, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MediaContentCPIM")] + public static extern void delete_MediaContentCPIM(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContentCPIM_getPayloadLength")] + public static extern uint MediaContentCPIM_getPayloadLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContentCPIM_getPayload")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipUri__SWIG_0")] + public static extern IntPtr new_SipUri__SWIG_0(string jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipUri__SWIG_1")] + public static extern IntPtr new_SipUri__SWIG_1(string jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipUri")] + public static extern void delete_SipUri(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_0")] + public static extern bool SipUri_isValid__SWIG_0(string jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_isValid__SWIG_1")] + public static extern bool SipUri_isValid__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getScheme")] + public static extern string SipUri_getScheme(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getHost")] + public static extern string SipUri_getHost(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getPort")] + public static extern ushort SipUri_getPort(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getUserName")] + public static extern string SipUri_getUserName(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getPassword")] + public static extern string SipUri_getPassword(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getDisplayName")] + public static extern string SipUri_getDisplayName(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_getParamValue")] + public static extern string SipUri_getParamValue(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipUri_setDisplayName")] + public static extern void SipUri_setDisplayName(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SdpMessage")] + public static extern IntPtr new_SdpMessage(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SdpMessage")] + public static extern void delete_SdpMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SdpMessage_getSdpHeaderValue__SWIG_0")] + public static extern string SdpMessage_getSdpHeaderValue__SWIG_0(HandleRef jarg1, string jarg2, char jarg3, uint jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SdpMessage_getSdpHeaderValue__SWIG_1")] + public static extern string SdpMessage_getSdpHeaderValue__SWIG_1(HandleRef jarg1, string jarg2, char jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SdpMessage_getSdpHeaderAValue")] + public static extern string SdpMessage_getSdpHeaderAValue(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipMessage")] + public static extern IntPtr new_SipMessage(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipMessage")] + public static extern void delete_SipMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_isResponse")] + public static extern bool SipMessage_isResponse(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getRequestType")] + public static extern int SipMessage_getRequestType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getResponseCode")] + public static extern short SipMessage_getResponseCode(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getResponsePhrase")] + public static extern string SipMessage_getResponsePhrase(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderValue__SWIG_0")] + public static extern string SipMessage_getSipHeaderValue__SWIG_0(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderValue__SWIG_1")] + public static extern string SipMessage_getSipHeaderValue__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderParamValue__SWIG_0")] + public static extern string SipMessage_getSipHeaderParamValue__SWIG_0(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipHeaderParamValue__SWIG_1")] + public static extern string SipMessage_getSipHeaderParamValue__SWIG_1(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipContentLength")] + public static extern uint SipMessage_getSipContentLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipMessage_getSipContent")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipEvent")] + public static extern void delete_SipEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getCode")] + public static extern short SipEvent_getCode(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getPhrase")] + public static extern string SipEvent_getPhrase(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getBaseSession")] + public static extern IntPtr SipEvent_getBaseSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipEvent_getSipMessage")] + public static extern IntPtr SipEvent_getSipMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_DialogEvent")] + public static extern void delete_DialogEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_StackEvent")] + public static extern void delete_StackEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_InviteEvent")] + public static extern void delete_InviteEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteEvent_getType")] + public static extern int InviteEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteEvent_getMediaType")] + public static extern int InviteEvent_getMediaType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteEvent_getSession")] + public static extern IntPtr InviteEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteEvent_takeCallSessionOwnership")] + public static extern IntPtr InviteEvent_takeCallSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteEvent_takeMsrpSessionOwnership")] + public static extern IntPtr InviteEvent_takeMsrpSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MessagingEvent")] + public static extern void delete_MessagingEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingEvent_getType")] + public static extern int MessagingEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingEvent_getSession")] + public static extern IntPtr MessagingEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingEvent_takeSessionOwnership")] + public static extern IntPtr MessagingEvent_takeSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_InfoEvent")] + public static extern void delete_InfoEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoEvent_getType")] + public static extern int InfoEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoEvent_getSession")] + public static extern IntPtr InfoEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoEvent_takeSessionOwnership")] + public static extern IntPtr InfoEvent_takeSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_OptionsEvent")] + public static extern void delete_OptionsEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsEvent_getType")] + public static extern int OptionsEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsEvent_getSession")] + public static extern IntPtr OptionsEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsEvent_takeSessionOwnership")] + public static extern IntPtr OptionsEvent_takeSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_PublicationEvent")] + public static extern void delete_PublicationEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEvent_getType")] + public static extern int PublicationEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEvent_getSession")] + public static extern IntPtr PublicationEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEvent_takeSessionOwnership")] + public static extern IntPtr PublicationEvent_takeSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationEvent")] + public static extern void delete_RegistrationEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getType")] + public static extern int RegistrationEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_getSession")] + public static extern IntPtr RegistrationEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_takeSessionOwnership")] + public static extern IntPtr RegistrationEvent_takeSessionOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionEvent")] + public static extern void delete_SubscriptionEvent(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getType")] + public static extern int SubscriptionEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_getSession")] + public static extern IntPtr SubscriptionEvent_getSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_takeSessionOwnership")] + public static extern IntPtr SubscriptionEvent_takeSessionOwnership(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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipSession")] + public static extern void delete_SipSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_haveOwnership")] + public static extern bool SipSession_haveOwnership(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addHeader")] + public static extern bool SipSession_addHeader(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeHeader")] + public static extern bool SipSession_removeHeader(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_0")] + public static extern bool SipSession_addCaps__SWIG_0(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addCaps__SWIG_1")] + public static extern bool SipSession_addCaps__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeCaps")] + public static extern bool SipSession_removeCaps(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setExpires")] + public static extern bool SipSession_setExpires(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setFromUri__SWIG_0")] + public static extern bool SipSession_setFromUri__SWIG_0(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setFromUri__SWIG_1")] + public static extern bool SipSession_setFromUri__SWIG_1(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri__SWIG_0")] + public static extern bool SipSession_setToUri__SWIG_0(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setToUri__SWIG_1")] + public static extern bool SipSession_setToUri__SWIG_1(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_setSilentHangup")] + public static extern bool SipSession_setSilentHangup(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_addSigCompCompartment")] + public static extern bool SipSession_addSigCompCompartment(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_removeSigCompCompartment")] + public static extern bool SipSession_removeSigCompCompartment(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipSession_getId")] + public static extern uint SipSession_getId(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_InviteSession")] + public static extern IntPtr new_InviteSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_InviteSession")] + public static extern void delete_InviteSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_accept__SWIG_0")] + public static extern bool InviteSession_accept__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_accept__SWIG_1")] + public static extern bool InviteSession_accept__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_hangup__SWIG_0")] + public static extern bool InviteSession_hangup__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_hangup__SWIG_1")] + public static extern bool InviteSession_hangup__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_reject__SWIG_0")] + public static extern bool InviteSession_reject__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_reject__SWIG_1")] + 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, IntPtr jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_sendInfo__SWIG_1")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_CallSession")] + public static extern IntPtr new_CallSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_CallSession")] + public static extern void delete_CallSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudio__SWIG_0")] + public static extern bool CallSession_callAudio__SWIG_0(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudio__SWIG_1")] + public static extern bool CallSession_callAudio__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudio__SWIG_2")] + public static extern bool CallSession_callAudio__SWIG_2(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudio__SWIG_3")] + public static extern bool CallSession_callAudio__SWIG_3(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudioVideo__SWIG_0")] + public static extern bool CallSession_callAudioVideo__SWIG_0(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudioVideo__SWIG_1")] + public static extern bool CallSession_callAudioVideo__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudioVideo__SWIG_2")] + public static extern bool CallSession_callAudioVideo__SWIG_2(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callAudioVideo__SWIG_3")] + public static extern bool CallSession_callAudioVideo__SWIG_3(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callVideo__SWIG_0")] + public static extern bool CallSession_callVideo__SWIG_0(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callVideo__SWIG_1")] + public static extern bool CallSession_callVideo__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_callVideo__SWIG_2")] + public static extern bool CallSession_callVideo__SWIG_2(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_set100rel")] + public static extern bool CallSession_set100rel(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setRtcp")] + public static extern bool CallSession_setRtcp(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setRtcpMux")] + public static extern bool CallSession_setRtcpMux(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setSRtpMode")] + public static extern bool CallSession_setSRtpMode(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setAvpfMode")] + public static extern bool CallSession_setAvpfMode(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setICE")] + public static extern bool CallSession_setICE(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setICEStun")] + public static extern bool CallSession_setICEStun(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setICETurn")] + public static extern bool CallSession_setICETurn(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setSTUNServer")] + public static extern bool CallSession_setSTUNServer(HandleRef jarg1, string jarg2, ushort jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setSTUNCred")] + public static extern bool CallSession_setSTUNCred(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setVideoFps")] + public static extern bool CallSession_setVideoFps(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setVideoBandwidthUploadMax")] + public static extern bool CallSession_setVideoBandwidthUploadMax(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setVideoBandwidthDownloadMax")] + public static extern bool CallSession_setVideoBandwidthDownloadMax(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setVideoPrefSize")] + public static extern bool CallSession_setVideoPrefSize(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_setQoS")] + public static extern bool CallSession_setQoS(HandleRef jarg1, int jarg2, int jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_hold__SWIG_0")] + public static extern bool CallSession_hold__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_hold__SWIG_1")] + public static extern bool CallSession_hold__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_resume__SWIG_0")] + public static extern bool CallSession_resume__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_resume__SWIG_1")] + public static extern bool CallSession_resume__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_transfer__SWIG_0")] + public static extern bool CallSession_transfer__SWIG_0(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_transfer__SWIG_1")] + public static extern bool CallSession_transfer__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_acceptTransfer__SWIG_0")] + public static extern bool CallSession_acceptTransfer__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_acceptTransfer__SWIG_1")] + public static extern bool CallSession_acceptTransfer__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_rejectTransfer__SWIG_0")] + public static extern bool CallSession_rejectTransfer__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_rejectTransfer__SWIG_1")] + public static extern bool CallSession_rejectTransfer__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_sendDTMF")] + public static extern bool CallSession_sendDTMF(HandleRef jarg1, int jarg2); + + [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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MsrpSession")] + public static extern void delete_MsrpSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_setCallback")] + public static extern bool MsrpSession_setCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_callMsrp__SWIG_0")] + public static extern bool MsrpSession_callMsrp__SWIG_0(HandleRef jarg1, string jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_callMsrp__SWIG_1")] + public static extern bool MsrpSession_callMsrp__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_callMsrp__SWIG_2")] + public static extern bool MsrpSession_callMsrp__SWIG_2(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_callMsrp__SWIG_3")] + 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, IntPtr jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_sendMessage__SWIG_1")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_sendFile__SWIG_1")] + public static extern bool MsrpSession_sendFile__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_MessagingSession")] + public static extern IntPtr new_MessagingSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MessagingSession")] + 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, IntPtr jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_send__SWIG_1")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_accept__SWIG_1")] + public static extern bool MessagingSession_accept__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_reject__SWIG_0")] + public static extern bool MessagingSession_reject__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_reject__SWIG_1")] + public static extern bool MessagingSession_reject__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_InfoSession")] + public static extern IntPtr new_InfoSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_InfoSession")] + 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, IntPtr jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_send__SWIG_1")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_accept__SWIG_1")] + public static extern bool InfoSession_accept__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_reject__SWIG_0")] + public static extern bool InfoSession_reject__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_reject__SWIG_1")] + public static extern bool InfoSession_reject__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_OptionsSession")] + public static extern IntPtr new_OptionsSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_OptionsSession")] + public static extern void delete_OptionsSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_send__SWIG_0")] + public static extern bool OptionsSession_send__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_send__SWIG_1")] + public static extern bool OptionsSession_send__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_accept__SWIG_0")] + public static extern bool OptionsSession_accept__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_accept__SWIG_1")] + public static extern bool OptionsSession_accept__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_reject__SWIG_0")] + public static extern bool OptionsSession_reject__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_reject__SWIG_1")] + public static extern bool OptionsSession_reject__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_PublicationSession")] + public static extern IntPtr new_PublicationSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_PublicationSession")] + 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, IntPtr jarg2, uint jarg3, HandleRef jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_publish__SWIG_1")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_unPublish__SWIG_1")] + public static extern bool PublicationSession_unPublish__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_RegistrationSession")] + public static extern IntPtr new_RegistrationSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RegistrationSession")] + public static extern void delete_RegistrationSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_register___SWIG_0")] + public static extern bool RegistrationSession_register___SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_register___SWIG_1")] + public static extern bool RegistrationSession_register___SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_unRegister__SWIG_0")] + public static extern bool RegistrationSession_unRegister__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_unRegister__SWIG_1")] + public static extern bool RegistrationSession_unRegister__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_accept__SWIG_0")] + public static extern bool RegistrationSession_accept__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_accept__SWIG_1")] + public static extern bool RegistrationSession_accept__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_reject__SWIG_0")] + public static extern bool RegistrationSession_reject__SWIG_0(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_reject__SWIG_1")] + public static extern bool RegistrationSession_reject__SWIG_1(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SubscriptionSession")] + public static extern IntPtr new_SubscriptionSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SubscriptionSession")] + public static extern void delete_SubscriptionSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_subscribe")] + public static extern bool SubscriptionSession_subscribe(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_unSubscribe")] + public static extern bool SubscriptionSession_unSubscribe(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyPluginMgr")] + public static extern void delete_ProxyPluginMgr(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_createInstance")] + public static extern IntPtr ProxyPluginMgr_createInstance(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_getInstance")] + public static extern IntPtr ProxyPluginMgr_getInstance(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_findPlugin")] + public static extern IntPtr ProxyPluginMgr_findPlugin(HandleRef jarg1, ulong jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_findAudioConsumer")] + public static extern IntPtr ProxyPluginMgr_findAudioConsumer(HandleRef jarg1, ulong jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_findVideoConsumer")] + public static extern IntPtr ProxyPluginMgr_findVideoConsumer(HandleRef jarg1, ulong jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_findAudioProducer")] + public static extern IntPtr ProxyPluginMgr_findAudioProducer(HandleRef jarg1, ulong jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgr_findVideoProducer")] + public static extern IntPtr ProxyPluginMgr_findVideoProducer(HandleRef jarg1, ulong jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_ProxyPluginMgrCallback")] + public static extern IntPtr new_ProxyPluginMgrCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyPluginMgrCallback")] + public static extern void delete_ProxyPluginMgrCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgrCallback_OnPluginCreated")] + public static extern int ProxyPluginMgrCallback_OnPluginCreated(HandleRef jarg1, ulong jarg2, int jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback")] + public static extern int ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(HandleRef jarg1, ulong jarg2, int jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgrCallback_OnPluginDestroyed")] + public static extern int ProxyPluginMgrCallback_OnPluginDestroyed(HandleRef jarg1, ulong jarg2, int jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback")] + public static extern int ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(HandleRef jarg1, ulong jarg2, int jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPluginMgrCallback_director_connect")] + public static extern void ProxyPluginMgrCallback_director_connect(HandleRef jarg1, ProxyPluginMgrCallback.SwigDelegateProxyPluginMgrCallback_0 delegate0, ProxyPluginMgrCallback.SwigDelegateProxyPluginMgrCallback_1 delegate1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyPlugin")] + public static extern void delete_ProxyPlugin(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPlugin_getType")] + public static extern int ProxyPlugin_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyPlugin_getId")] + public static extern ulong ProxyPlugin_getId(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_ProxyAudioConsumerCallback")] + public static extern IntPtr new_ProxyAudioConsumerCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyAudioConsumerCallback")] + public static extern void delete_ProxyAudioConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_prepare")] + public static extern int ProxyAudioConsumerCallback_prepare(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback")] + public static extern int ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_start")] + public static extern int ProxyAudioConsumerCallback_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback")] + public static extern int ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_pause")] + public static extern int ProxyAudioConsumerCallback_pause(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback")] + public static extern int ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_stop")] + public static extern int ProxyAudioConsumerCallback_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback")] + public static extern int ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumerCallback_director_connect")] + public static extern void ProxyAudioConsumerCallback_director_connect(HandleRef jarg1, ProxyAudioConsumerCallback.SwigDelegateProxyAudioConsumerCallback_0 delegate0, ProxyAudioConsumerCallback.SwigDelegateProxyAudioConsumerCallback_1 delegate1, ProxyAudioConsumerCallback.SwigDelegateProxyAudioConsumerCallback_2 delegate2, ProxyAudioConsumerCallback.SwigDelegateProxyAudioConsumerCallback_3 delegate3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyAudioConsumer")] + public static extern void delete_ProxyAudioConsumer(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_setActualSndCardPlaybackParams")] + public static extern bool ProxyAudioConsumer_setActualSndCardPlaybackParams(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_queryForResampler")] + 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, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_pull__SWIG_0")] + 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, IntPtr jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_pull__SWIG_2")] + public static extern uint ProxyAudioConsumer_pull__SWIG_2(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_setGain")] + public static extern bool ProxyAudioConsumer_setGain(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_getGain")] + public static extern uint ProxyAudioConsumer_getGain(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_reset")] + public static extern bool ProxyAudioConsumer_reset(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_setCallback")] + public static extern void ProxyAudioConsumer_setCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_getMediaSessionId")] + public static extern ulong ProxyAudioConsumer_getMediaSessionId(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_registerPlugin")] + public static extern bool ProxyAudioConsumer_registerPlugin(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_ProxyVideoConsumerCallback")] + public static extern IntPtr new_ProxyVideoConsumerCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyVideoConsumerCallback")] + public static extern void delete_ProxyVideoConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_prepare")] + public static extern int ProxyVideoConsumerCallback_prepare(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback")] + public static extern int ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_consume")] + public static extern int ProxyVideoConsumerCallback_consume(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback")] + public static extern int ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_bufferCopied")] + public static extern int ProxyVideoConsumerCallback_bufferCopied(HandleRef jarg1, uint jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback")] + public static extern int ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(HandleRef jarg1, uint jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_start")] + public static extern int ProxyVideoConsumerCallback_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback")] + public static extern int ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_pause")] + public static extern int ProxyVideoConsumerCallback_pause(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback")] + public static extern int ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_stop")] + public static extern int ProxyVideoConsumerCallback_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback")] + public static extern int ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumerCallback_director_connect")] + public static extern void ProxyVideoConsumerCallback_director_connect(HandleRef jarg1, ProxyVideoConsumerCallback.SwigDelegateProxyVideoConsumerCallback_0 delegate0, ProxyVideoConsumerCallback.SwigDelegateProxyVideoConsumerCallback_1 delegate1, ProxyVideoConsumerCallback.SwigDelegateProxyVideoConsumerCallback_2 delegate2, ProxyVideoConsumerCallback.SwigDelegateProxyVideoConsumerCallback_3 delegate3, ProxyVideoConsumerCallback.SwigDelegateProxyVideoConsumerCallback_4 delegate4, ProxyVideoConsumerCallback.SwigDelegateProxyVideoConsumerCallback_5 delegate5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyVideoConsumer")] + public static extern void delete_ProxyVideoConsumer(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setDisplaySize")] + public static extern bool ProxyVideoConsumer_setDisplaySize(HandleRef jarg1, uint jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_getDisplayWidth")] + public static extern uint ProxyVideoConsumer_getDisplayWidth(HandleRef jarg1); + + [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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setAutoResizeDisplay")] + public static extern bool ProxyVideoConsumer_setAutoResizeDisplay(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_getAutoResizeDisplay")] + public static extern bool ProxyVideoConsumer_getAutoResizeDisplay(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setConsumeBuffer")] + 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, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_reset")] + public static extern bool ProxyVideoConsumer_reset(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_getMediaSessionId")] + public static extern ulong ProxyVideoConsumer_getMediaSessionId(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_registerPlugin")] + public static extern bool ProxyVideoConsumer_registerPlugin(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setDefaultChroma")] + public static extern void ProxyVideoConsumer_setDefaultChroma(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_setDefaultAutoResizeDisplay")] + public static extern void ProxyVideoConsumer_setDefaultAutoResizeDisplay(bool jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyVideoFrame")] + public static extern void delete_ProxyVideoFrame(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoFrame_getSize")] + public static extern uint ProxyVideoFrame_getSize(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoFrame_getContent")] + public static extern uint ProxyVideoFrame_getContent(HandleRef jarg1, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoFrame_getFrameWidth")] + public static extern uint ProxyVideoFrame_getFrameWidth(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoFrame_getFrameHeight")] + public static extern uint ProxyVideoFrame_getFrameHeight(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_ProxyAudioProducerCallback")] + public static extern IntPtr new_ProxyAudioProducerCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyAudioProducerCallback")] + public static extern void delete_ProxyAudioProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_prepare")] + public static extern int ProxyAudioProducerCallback_prepare(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback")] + public static extern int ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_start")] + public static extern int ProxyAudioProducerCallback_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback")] + public static extern int ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_pause")] + public static extern int ProxyAudioProducerCallback_pause(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback")] + public static extern int ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_stop")] + public static extern int ProxyAudioProducerCallback_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback")] + public static extern int ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_fillPushBuffer")] + public static extern int ProxyAudioProducerCallback_fillPushBuffer(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback")] + public static extern int ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducerCallback_director_connect")] + public static extern void ProxyAudioProducerCallback_director_connect(HandleRef jarg1, ProxyAudioProducerCallback.SwigDelegateProxyAudioProducerCallback_0 delegate0, ProxyAudioProducerCallback.SwigDelegateProxyAudioProducerCallback_1 delegate1, ProxyAudioProducerCallback.SwigDelegateProxyAudioProducerCallback_2 delegate2, ProxyAudioProducerCallback.SwigDelegateProxyAudioProducerCallback_3 delegate3, ProxyAudioProducerCallback.SwigDelegateProxyAudioProducerCallback_4 delegate4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyAudioProducer")] + public static extern void delete_ProxyAudioProducer(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setActualSndCardRecordParams")] + public static extern bool ProxyAudioProducer_setActualSndCardRecordParams(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setPushBuffer__SWIG_0")] + 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, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_push__SWIG_0")] + 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, IntPtr jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_push__SWIG_2")] + public static extern int ProxyAudioProducer_push__SWIG_2(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setGain")] + public static extern bool ProxyAudioProducer_setGain(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_getGain")] + public static extern uint ProxyAudioProducer_getGain(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_setCallback")] + public static extern void ProxyAudioProducer_setCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_getMediaSessionId")] + public static extern ulong ProxyAudioProducer_getMediaSessionId(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_registerPlugin")] + public static extern bool ProxyAudioProducer_registerPlugin(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_ProxyVideoProducerCallback")] + public static extern IntPtr new_ProxyVideoProducerCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyVideoProducerCallback")] + public static extern void delete_ProxyVideoProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_prepare")] + public static extern int ProxyVideoProducerCallback_prepare(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback")] + public static extern int ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(HandleRef jarg1, int jarg2, int jarg3, int jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_start")] + public static extern int ProxyVideoProducerCallback_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback")] + public static extern int ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_pause")] + public static extern int ProxyVideoProducerCallback_pause(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback")] + public static extern int ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_stop")] + public static extern int ProxyVideoProducerCallback_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback")] + public static extern int ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducerCallback_director_connect")] + public static extern void ProxyVideoProducerCallback_director_connect(HandleRef jarg1, ProxyVideoProducerCallback.SwigDelegateProxyVideoProducerCallback_0 delegate0, ProxyVideoProducerCallback.SwigDelegateProxyVideoProducerCallback_1 delegate1, ProxyVideoProducerCallback.SwigDelegateProxyVideoProducerCallback_2 delegate2, ProxyVideoProducerCallback.SwigDelegateProxyVideoProducerCallback_3 delegate3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_ProxyVideoProducer")] + public static extern void delete_ProxyVideoProducer(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_getRotation")] + public static extern int ProxyVideoProducer_getRotation(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_setRotation")] + public static extern bool ProxyVideoProducer_setRotation(HandleRef jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_getMirror")] + public static extern bool ProxyVideoProducer_getMirror(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_setMirror")] + public static extern bool ProxyVideoProducer_setMirror(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_setActualCameraOutputSize")] + 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, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_setCallback")] + public static extern void ProxyVideoProducer_setCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_getMediaSessionId")] + public static extern ulong ProxyVideoProducer_getMediaSessionId(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_registerPlugin")] + public static extern bool ProxyVideoProducer_registerPlugin(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_setDefaultChroma")] + public static extern void ProxyVideoProducer_setDefaultChroma(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipCallback")] + public static extern IntPtr new_SipCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipCallback")] + public static extern void delete_SipCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnDialogEvent")] + public static extern int SipCallback_OnDialogEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnDialogEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnDialogEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnStackEvent")] + public static extern int SipCallback_OnStackEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnStackEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnStackEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnInviteEvent")] + public static extern int SipCallback_OnInviteEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnInviteEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnInviteEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnMessagingEvent")] + public static extern int SipCallback_OnMessagingEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnMessagingEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnMessagingEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnInfoEvent")] + public static extern int SipCallback_OnInfoEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnInfoEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnInfoEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnOptionsEvent")] + public static extern int SipCallback_OnOptionsEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnOptionsEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnOptionsEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnPublicationEvent")] + public static extern int SipCallback_OnPublicationEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnPublicationEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnPublicationEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationEvent")] + public static extern int SipCallback_OnRegistrationEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnRegistrationEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnRegistrationEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionEvent")] + public static extern int SipCallback_OnSubscriptionEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_OnSubscriptionEventSwigExplicitSipCallback")] + public static extern int SipCallback_OnSubscriptionEventSwigExplicitSipCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipCallback_director_connect")] + public static extern void SipCallback_director_connect(HandleRef jarg1, SipCallback.SwigDelegateSipCallback_0 delegate0, SipCallback.SwigDelegateSipCallback_1 delegate1, SipCallback.SwigDelegateSipCallback_2 delegate2, SipCallback.SwigDelegateSipCallback_3 delegate3, SipCallback.SwigDelegateSipCallback_4 delegate4, SipCallback.SwigDelegateSipCallback_5 delegate5, SipCallback.SwigDelegateSipCallback_6 delegate6, SipCallback.SwigDelegateSipCallback_7 delegate7, SipCallback.SwigDelegateSipCallback_8 delegate8); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SafeObject")] + public static extern IntPtr new_SafeObject(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SafeObject")] + public static extern void delete_SafeObject(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_Lock")] + public static extern int SafeObject_Lock(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SafeObject_UnLock")] + public static extern int SafeObject_UnLock(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SipStack")] + public static extern IntPtr new_SipStack(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SipStack")] + public static extern void delete_SipStack(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_start")] + public static extern bool SipStack_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDebugCallback")] + public static extern bool SipStack_setDebugCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDisplayName")] + public static extern bool SipStack_setDisplayName(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setRealm")] + public static extern bool SipStack_setRealm(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPI")] + public static extern bool SipStack_setIMPI(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIMPU")] + public static extern bool SipStack_setIMPU(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setPassword")] + public static extern bool SipStack_setPassword(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setAMF")] + public static extern bool SipStack_setAMF(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setOperatorId")] + public static extern bool SipStack_setOperatorId(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setProxyCSCF")] + public static extern bool SipStack_setProxyCSCF(HandleRef jarg1, string jarg2, ushort jarg3, string jarg4, string jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalIP__SWIG_0")] + public static extern bool SipStack_setLocalIP__SWIG_0(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalIP__SWIG_1")] + public static extern bool SipStack_setLocalIP__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalPort__SWIG_0")] + public static extern bool SipStack_setLocalPort__SWIG_0(HandleRef jarg1, ushort jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setLocalPort__SWIG_1")] + public static extern bool SipStack_setLocalPort__SWIG_1(HandleRef jarg1, ushort jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setEarlyIMS")] + public static extern bool SipStack_setEarlyIMS(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addHeader")] + public static extern bool SipStack_addHeader(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeHeader")] + public static extern bool SipStack_removeHeader(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addDnsServer")] + public static extern bool SipStack_addDnsServer(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setDnsDiscovery")] + public static extern bool SipStack_setDnsDiscovery(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setAoR")] + public static extern bool SipStack_setAoR(HandleRef jarg1, string jarg2, int jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSigCompParams")] + public static extern bool SipStack_setSigCompParams(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4, bool jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_addSigCompCompartment")] + public static extern bool SipStack_addSigCompCompartment(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_removeSigCompCompartment")] + public static extern bool SipStack_removeSigCompCompartment(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSTUNEnabledForICE")] + public static extern bool SipStack_setSTUNEnabledForICE(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSTUNServer")] + public static extern bool SipStack_setSTUNServer(HandleRef jarg1, string jarg2, ushort jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSTUNCred")] + public static extern bool SipStack_setSTUNCred(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSTUNEnabled")] + public static extern bool SipStack_setSTUNEnabled(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setTLSSecAgree")] + public static extern bool SipStack_setTLSSecAgree(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSSLCertificates__SWIG_0")] + public static extern bool SipStack_setSSLCertificates__SWIG_0(HandleRef jarg1, string jarg2, string jarg3, string jarg4, bool jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSSLCertificates__SWIG_1")] + public static extern bool SipStack_setSSLCertificates__SWIG_1(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSSLCretificates__SWIG_0")] + public static extern bool SipStack_setSSLCretificates__SWIG_0(HandleRef jarg1, string jarg2, string jarg3, string jarg4, bool jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setSSLCretificates__SWIG_1")] + public static extern bool SipStack_setSSLCretificates__SWIG_1(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIPSecSecAgree")] + public static extern bool SipStack_setIPSecSecAgree(HandleRef jarg1, bool jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setIPSecParameters")] + public static extern bool SipStack_setIPSecParameters(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_dnsENUM")] + public static extern string SipStack_dnsENUM(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_dnsNaptrSrv")] + public static extern string SipStack_dnsNaptrSrv(HandleRef jarg1, string jarg2, string jarg3, out ushort jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_dnsSrv")] + public static extern string SipStack_dnsSrv(HandleRef jarg1, string jarg2, out ushort jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setMaxFDs")] + public static extern bool SipStack_setMaxFDs(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_getLocalIPnPort")] + public static extern string SipStack_getLocalIPnPort(HandleRef jarg1, string jarg2, out ushort jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_getPreferredIdentity")] + public static extern string SipStack_getPreferredIdentity(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isValid")] + public static extern bool SipStack_isValid(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_stop")] + public static extern bool SipStack_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_initialize")] + public static extern bool SipStack_initialize(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_deInitialize")] + public static extern bool SipStack_deInitialize(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setCodecs")] + public static extern void SipStack_setCodecs(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setCodecs_2")] + public static extern void SipStack_setCodecs_2(long jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setCodecPriority")] + public static extern bool SipStack_setCodecPriority(int jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_setCodecPriority_2")] + public static extern bool SipStack_setCodecPriority_2(int jarg1, int jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isCodecSupported")] + public static extern bool SipStack_isCodecSupported(int jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_isIPSecSupported")] + public static extern bool SipStack_isIPSecSupported(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_transport_error_get")] + public static extern int tsip_event_code_dialog_transport_error_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_global_error_get")] + public static extern int tsip_event_code_dialog_global_error_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_message_error_get")] + public static extern int tsip_event_code_dialog_message_error_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_request_incoming_get")] + public static extern int tsip_event_code_dialog_request_incoming_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_request_outgoing_get")] + public static extern int tsip_event_code_dialog_request_outgoing_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_request_cancelled_get")] + public static extern int tsip_event_code_dialog_request_cancelled_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_request_sent_get")] + public static extern int tsip_event_code_dialog_request_sent_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_connecting_get")] + public static extern int tsip_event_code_dialog_connecting_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_connected_get")] + public static extern int tsip_event_code_dialog_connected_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_terminating_get")] + public static extern int tsip_event_code_dialog_terminating_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_dialog_terminated_get")] + public static extern int tsip_event_code_dialog_terminated_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_starting_get")] + public static extern int tsip_event_code_stack_starting_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_started_get")] + public static extern int tsip_event_code_stack_started_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_stopping_get")] + public static extern int tsip_event_code_stack_stopping_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_stopped_get")] + public static extern int tsip_event_code_stack_stopped_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_failed_to_start_get")] + public static extern int tsip_event_code_stack_failed_to_start_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_failed_to_stop_get")] + public static extern int tsip_event_code_stack_failed_to_stop_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_tsip_event_code_stack_disconnected_get")] + public static extern int tsip_event_code_stack_disconnected_get(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_XcapSelector")] + public static extern IntPtr new_XcapSelector(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_XcapSelector")] + public static extern void delete_XcapSelector(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_setAUID")] + public static extern IntPtr XcapSelector_setAUID(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_setName")] + public static extern IntPtr XcapSelector_setName(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_setAttribute")] + public static extern IntPtr XcapSelector_setAttribute(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_setPos")] + public static extern IntPtr XcapSelector_setPos(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_setPosAttribute")] + public static extern IntPtr XcapSelector_setPosAttribute(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_setNamespace")] + public static extern IntPtr XcapSelector_setNamespace(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_getString")] + public static extern string XcapSelector_getString(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapSelector_reset")] + public static extern void XcapSelector_reset(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_XcapMessage")] + public static extern IntPtr new_XcapMessage(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_XcapMessage")] + public static extern void delete_XcapMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getCode")] + public static extern short XcapMessage_getCode(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getPhrase")] + public static extern string XcapMessage_getPhrase(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapHeaderValue__SWIG_0")] + public static extern string XcapMessage_getXcapHeaderValue__SWIG_0(HandleRef jarg1, string jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapHeaderValue__SWIG_1")] + public static extern string XcapMessage_getXcapHeaderValue__SWIG_1(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapHeaderParamValue__SWIG_0")] + public static extern string XcapMessage_getXcapHeaderParamValue__SWIG_0(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapHeaderParamValue__SWIG_1")] + public static extern string XcapMessage_getXcapHeaderParamValue__SWIG_1(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapContentLength")] + public static extern uint XcapMessage_getXcapContentLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapMessage_getXcapContent")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapEvent_getType")] + public static extern int XcapEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapEvent_getXcapMessage")] + public static extern IntPtr XcapEvent_getXcapMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_XcapCallback")] + public static extern IntPtr new_XcapCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_XcapCallback")] + public static extern void delete_XcapCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapCallback_onEvent")] + public static extern int XcapCallback_onEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapCallback_onEventSwigExplicitXcapCallback")] + public static extern int XcapCallback_onEventSwigExplicitXcapCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapCallback_director_connect")] + public static extern void XcapCallback_director_connect(HandleRef jarg1, XcapCallback.SwigDelegateXcapCallback_0 delegate0); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_XcapStack")] + public static extern IntPtr new_XcapStack(HandleRef jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_XcapStack")] + public static extern void delete_XcapStack(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_registerAUID")] + public static extern bool XcapStack_registerAUID(HandleRef jarg1, string jarg2, string jarg3, string jarg4, string jarg5, bool jarg6); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_start")] + public static extern bool XcapStack_start(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_setCredentials")] + public static extern bool XcapStack_setCredentials(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_setXcapRoot")] + public static extern bool XcapStack_setXcapRoot(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_setLocalIP")] + public static extern bool XcapStack_setLocalIP(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_setLocalPort")] + public static extern bool XcapStack_setLocalPort(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_addHeader")] + public static extern bool XcapStack_addHeader(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_removeHeader")] + public static extern bool XcapStack_removeHeader(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_setTimeout")] + public static extern bool XcapStack_setTimeout(HandleRef jarg1, uint jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_getDocument")] + public static extern bool XcapStack_getDocument(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_getElement")] + public static extern bool XcapStack_getElement(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_getAttribute")] + public static extern bool XcapStack_getAttribute(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_deleteDocument")] + public static extern bool XcapStack_deleteDocument(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_deleteElement")] + public static extern bool XcapStack_deleteElement(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_deleteAttribute")] + 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, IntPtr jarg3, uint jarg4, string jarg5); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_putElement")] + 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, IntPtr jarg3, uint jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_XcapStack_stop")] + public static extern bool XcapStack_stop(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_RPMessage")] + public static extern IntPtr new_RPMessage(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_RPMessage")] + public static extern void delete_RPMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RPMessage_getType")] + public static extern int RPMessage_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RPMessage_getPayloadLength")] + public static extern uint RPMessage_getPayloadLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RPMessage_getPayload")] + public static extern uint RPMessage_getPayload(HandleRef jarg1, IntPtr jarg2, uint jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_SMSData")] + public static extern IntPtr new_SMSData(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SMSData")] + public static extern void delete_SMSData(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getType")] + public static extern int SMSData_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getMR")] + public static extern int SMSData_getMR(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getPayloadLength")] + public static extern uint SMSData_getPayloadLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getPayload")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSData_getDA")] + public static extern string SMSData_getDA(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSEncoder_encodeSubmit")] + public static extern IntPtr SMSEncoder_encodeSubmit(int jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSEncoder_encodeDeliver")] + public static extern IntPtr SMSEncoder_encodeDeliver(int jarg1, string jarg2, string jarg3, string jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSEncoder_encodeACK")] + public static extern IntPtr SMSEncoder_encodeACK(int jarg1, string jarg2, string jarg3, bool jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SMSEncoder_encodeError")] + 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(IntPtr jarg1, uint jarg2, bool jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_SMSEncoder")] + public static extern void delete_SMSEncoder(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_MsrpMessage")] + public static extern IntPtr new_MsrpMessage(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MsrpMessage")] + public static extern void delete_MsrpMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_isRequest")] + public static extern bool MsrpMessage_isRequest(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getCode")] + public static extern short MsrpMessage_getCode(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getPhrase")] + public static extern string MsrpMessage_getPhrase(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getRequestType")] + public static extern int MsrpMessage_getRequestType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getByteRange")] + public static extern void MsrpMessage_getByteRange(HandleRef jarg1, out long jarg2, out long jarg3, out long jarg4); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_isLastChunck")] + public static extern bool MsrpMessage_isLastChunck(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_isFirstChunck")] + public static extern bool MsrpMessage_isFirstChunck(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_isSuccessReport")] + public static extern bool MsrpMessage_isSuccessReport(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getMsrpHeaderValue")] + public static extern string MsrpMessage_getMsrpHeaderValue(HandleRef jarg1, string jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getMsrpHeaderParamValue")] + public static extern string MsrpMessage_getMsrpHeaderParamValue(HandleRef jarg1, string jarg2, string jarg3); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getMsrpContentLength")] + public static extern uint MsrpMessage_getMsrpContentLength(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpMessage_getMsrpContent")] + 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); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpEvent_getType")] + public static extern int MsrpEvent_getType(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpEvent_getSipSession")] + public static extern IntPtr MsrpEvent_getSipSession(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpEvent_getMessage")] + public static extern IntPtr MsrpEvent_getMessage(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_new_MsrpCallback")] + public static extern IntPtr new_MsrpCallback(); + + [DllImport("tinyWRAP", EntryPoint="CSharp_delete_MsrpCallback")] + public static extern void delete_MsrpCallback(HandleRef jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpCallback_OnEvent")] + public static extern int MsrpCallback_OnEvent(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpCallback_OnEventSwigExplicitMsrpCallback")] + public static extern int MsrpCallback_OnEventSwigExplicitMsrpCallback(HandleRef jarg1, HandleRef jarg2); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpCallback_director_connect")] + public static extern void MsrpCallback_director_connect(HandleRef jarg1, MsrpCallback.SwigDelegateMsrpCallback_0 delegate0); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MediaContentCPIM_SWIGUpcast")] + public static extern IntPtr MediaContentCPIM_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_DialogEvent_SWIGUpcast")] + public static extern IntPtr DialogEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_StackEvent_SWIGUpcast")] + public static extern IntPtr StackEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteEvent_SWIGUpcast")] + public static extern IntPtr InviteEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingEvent_SWIGUpcast")] + public static extern IntPtr MessagingEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoEvent_SWIGUpcast")] + public static extern IntPtr InfoEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsEvent_SWIGUpcast")] + public static extern IntPtr OptionsEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationEvent_SWIGUpcast")] + public static extern IntPtr PublicationEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationEvent_SWIGUpcast")] + public static extern IntPtr RegistrationEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionEvent_SWIGUpcast")] + public static extern IntPtr SubscriptionEvent_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InviteSession_SWIGUpcast")] + public static extern IntPtr InviteSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_CallSession_SWIGUpcast")] + public static extern IntPtr CallSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MsrpSession_SWIGUpcast")] + public static extern IntPtr MsrpSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_MessagingSession_SWIGUpcast")] + public static extern IntPtr MessagingSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_InfoSession_SWIGUpcast")] + public static extern IntPtr InfoSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_OptionsSession_SWIGUpcast")] + public static extern IntPtr OptionsSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_PublicationSession_SWIGUpcast")] + public static extern IntPtr PublicationSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_RegistrationSession_SWIGUpcast")] + public static extern IntPtr RegistrationSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SubscriptionSession_SWIGUpcast")] + public static extern IntPtr SubscriptionSession_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioConsumer_SWIGUpcast")] + public static extern IntPtr ProxyAudioConsumer_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoConsumer_SWIGUpcast")] + public static extern IntPtr ProxyVideoConsumer_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyAudioProducer_SWIGUpcast")] + public static extern IntPtr ProxyAudioProducer_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_ProxyVideoProducer_SWIGUpcast")] + public static extern IntPtr ProxyVideoProducer_SWIGUpcast(IntPtr jarg1); + + [DllImport("tinyWRAP", EntryPoint="CSharp_SipStack_SWIGUpcast")] + public static extern IntPtr SipStack_SWIGUpcast(IntPtr jarg1); +} + +} diff --git a/bindings/csharp/tinyWRAP_wrap.cxx b/bindings/csharp/tinyWRAP_wrap.cxx new file mode 100644 index 0000000..d2c8e32 --- /dev/null +++ b/bindings/csharp/tinyWRAP_wrap.cxx @@ -0,0 +1,9552 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGCSHARP +#define SWIG_DIRECTORS + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +#include +#include +#include + + +/* Support for throwing C# exceptions from C/C++. There are two types: + * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ +typedef enum { + SWIG_CSharpApplicationException, + SWIG_CSharpArithmeticException, + SWIG_CSharpDivideByZeroException, + SWIG_CSharpIndexOutOfRangeException, + SWIG_CSharpInvalidCastException, + SWIG_CSharpInvalidOperationException, + SWIG_CSharpIOException, + SWIG_CSharpNullReferenceException, + SWIG_CSharpOutOfMemoryException, + SWIG_CSharpOverflowException, + SWIG_CSharpSystemException +} SWIG_CSharpExceptionCodes; + +typedef enum { + SWIG_CSharpArgumentException, + SWIG_CSharpArgumentNullException, + SWIG_CSharpArgumentOutOfRangeException +} SWIG_CSharpExceptionArgumentCodes; + +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); + +typedef struct { + SWIG_CSharpExceptionCodes code; + SWIG_CSharpExceptionCallback_t callback; +} SWIG_CSharpException_t; + +typedef struct { + SWIG_CSharpExceptionArgumentCodes code; + SWIG_CSharpExceptionArgumentCallback_t callback; +} SWIG_CSharpExceptionArgument_t; + +static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { + { SWIG_CSharpApplicationException, NULL }, + { SWIG_CSharpArithmeticException, NULL }, + { SWIG_CSharpDivideByZeroException, NULL }, + { SWIG_CSharpIndexOutOfRangeException, NULL }, + { SWIG_CSharpInvalidCastException, NULL }, + { SWIG_CSharpInvalidOperationException, NULL }, + { SWIG_CSharpIOException, NULL }, + { SWIG_CSharpNullReferenceException, NULL }, + { SWIG_CSharpOutOfMemoryException, NULL }, + { SWIG_CSharpOverflowException, NULL }, + { SWIG_CSharpSystemException, NULL } +}; + +static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { + { SWIG_CSharpArgumentException, NULL }, + { SWIG_CSharpArgumentNullException, NULL }, + { SWIG_CSharpArgumentOutOfRangeException, NULL } +}; + +static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { + SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { + callback = SWIG_csharp_exceptions[code].callback; + } + callback(msg); +} + +static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { + SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { + callback = SWIG_csharp_exceptions_argument[code].callback; + } + callback(msg, param_name); +} + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_tinyWRAP( + SWIG_CSharpExceptionCallback_t applicationCallback, + SWIG_CSharpExceptionCallback_t arithmeticCallback, + SWIG_CSharpExceptionCallback_t divideByZeroCallback, + SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, + SWIG_CSharpExceptionCallback_t invalidCastCallback, + SWIG_CSharpExceptionCallback_t invalidOperationCallback, + SWIG_CSharpExceptionCallback_t ioCallback, + SWIG_CSharpExceptionCallback_t nullReferenceCallback, + SWIG_CSharpExceptionCallback_t outOfMemoryCallback, + SWIG_CSharpExceptionCallback_t overflowCallback, + SWIG_CSharpExceptionCallback_t systemCallback) { + SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; + SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; + SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; + SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; + SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; + SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; + SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; + SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; + SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; +} + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_tinyWRAP( + SWIG_CSharpExceptionArgumentCallback_t argumentCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; +} + + +/* Callback for returning strings to C# without leaking memory */ +typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); +static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_tinyWRAP(SWIG_CSharpStringHelperCallback callback) { + SWIG_csharp_string_callback = callback; +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else + +/* ----------------------------------------------------------------------------- + * director.swg + * + * This file contains support for director classes so that C# proxy + * methods can be called from C++. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus + +#if defined(DEBUG_DIRECTOR_OWNED) +#include +#endif +#include + +namespace Swig { + /* Director base class - not currently used in C# directors */ + class Director { + }; + + /* Base class for director exceptions */ + class DirectorException { + protected: + std::string swig_msg; + + public: + DirectorException(const char* msg) : swig_msg(msg) { + } + DirectorException(const std::string &msg) : swig_msg(msg) { + } + const std::string& what() const { + return swig_msg; + } + virtual ~DirectorException() { + } + }; + + /* Pure virtual method exception */ + class DirectorPureVirtualException : public Swig::DirectorException { + public: + DirectorPureVirtualException(const char* msg) : DirectorException(std::string("Attempt to invoke pure virtual method ") + msg) { + } + }; +} + +#endif /* __cplusplus */ + + + +#include // Use the C99 official header + + +#include "tinyWRAP_config.h" +#include "DDebug.h" +#include "AudioResampler.h" + + +#include "ActionConfig.h" +#include "MediaSessionMgr.h" +#include "MediaContent.h" +#include "SipUri.h" +#include "SipMessage.h" +#include "SipEvent.h" +#include "SipSession.h" + +#include "ProxyPluginMgr.h" +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" + + +#include "Xcap.h" + + +#include "SMSEncoder.h" + + +#include "Msrp.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "tinyWRAP_wrap.h" + +SwigDirector_DDebugCallback::SwigDirector_DDebugCallback() : DDebugCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_DDebugCallback::~SwigDirector_DDebugCallback() { + +} + + +int SwigDirector_DDebugCallback::OnDebugInfo(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugInfo) { + return DDebugCallback::OnDebugInfo(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugInfo(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugWarn(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugWarn) { + return DDebugCallback::OnDebugWarn(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugWarn(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugError(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugError) { + return DDebugCallback::OnDebugError(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugError(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugFatal(char const *message) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + char * jmessage = 0 ; + + if (!swig_callbackOnDebugFatal) { + return DDebugCallback::OnDebugFatal(message); + } else { + jmessage = SWIG_csharp_string_callback((const char *)message); + jresult = (int) swig_callbackOnDebugFatal(jmessage); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_DDebugCallback::swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal) { + swig_callbackOnDebugInfo = callbackOnDebugInfo; + swig_callbackOnDebugWarn = callbackOnDebugWarn; + swig_callbackOnDebugError = callbackOnDebugError; + swig_callbackOnDebugFatal = callbackOnDebugFatal; +} + +void SwigDirector_DDebugCallback::swig_init_callbacks() { + swig_callbackOnDebugInfo = 0; + swig_callbackOnDebugWarn = 0; + swig_callbackOnDebugError = 0; + 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(); +} + +SwigDirector_ProxyPluginMgrCallback::~SwigDirector_ProxyPluginMgrCallback() { + +} + + +int SwigDirector_ProxyPluginMgrCallback::OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + unsigned long long jid ; + int jtype ; + + if (!swig_callbackOnPluginCreated) { + return ProxyPluginMgrCallback::OnPluginCreated(id,type); + } else { + jid = id; + jtype = type; + jresult = (int) swig_callbackOnPluginCreated(jid, jtype); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyPluginMgrCallback::OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + unsigned long long jid ; + int jtype ; + + if (!swig_callbackOnPluginDestroyed) { + return ProxyPluginMgrCallback::OnPluginDestroyed(id,type); + } else { + jid = id; + jtype = type; + jresult = (int) swig_callbackOnPluginDestroyed(jid, jtype); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_ProxyPluginMgrCallback::swig_connect_director(SWIG_Callback0_t callbackOnPluginCreated, SWIG_Callback1_t callbackOnPluginDestroyed) { + swig_callbackOnPluginCreated = callbackOnPluginCreated; + swig_callbackOnPluginDestroyed = callbackOnPluginDestroyed; +} + +void SwigDirector_ProxyPluginMgrCallback::swig_init_callbacks() { + swig_callbackOnPluginCreated = 0; + swig_callbackOnPluginDestroyed = 0; +} + +SwigDirector_ProxyAudioConsumerCallback::SwigDirector_ProxyAudioConsumerCallback() : ProxyAudioConsumerCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_ProxyAudioConsumerCallback::~SwigDirector_ProxyAudioConsumerCallback() { + +} + + +int SwigDirector_ProxyAudioConsumerCallback::prepare(int ptime, int rate, int channels) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + int jptime ; + int jrate ; + int jchannels ; + + if (!swig_callbackprepare) { + return ProxyAudioConsumerCallback::prepare(ptime,rate,channels); + } else { + jptime = ptime; + jrate = rate; + jchannels = channels; + jresult = (int) swig_callbackprepare(jptime, jrate, jchannels); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::start() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstart) { + return ProxyAudioConsumerCallback::start(); + } else { + jresult = (int) swig_callbackstart(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::pause() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackpause) { + return ProxyAudioConsumerCallback::pause(); + } else { + jresult = (int) swig_callbackpause(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::stop() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstop) { + return ProxyAudioConsumerCallback::stop(); + } else { + jresult = (int) swig_callbackstop(); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_ProxyAudioConsumerCallback::swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackstart, SWIG_Callback2_t callbackpause, SWIG_Callback3_t callbackstop) { + swig_callbackprepare = callbackprepare; + swig_callbackstart = callbackstart; + swig_callbackpause = callbackpause; + swig_callbackstop = callbackstop; +} + +void SwigDirector_ProxyAudioConsumerCallback::swig_init_callbacks() { + swig_callbackprepare = 0; + swig_callbackstart = 0; + swig_callbackpause = 0; + swig_callbackstop = 0; +} + +SwigDirector_ProxyVideoConsumerCallback::SwigDirector_ProxyVideoConsumerCallback() : ProxyVideoConsumerCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_ProxyVideoConsumerCallback::~SwigDirector_ProxyVideoConsumerCallback() { + +} + + +int SwigDirector_ProxyVideoConsumerCallback::prepare(int nWidth, int nHeight, int nFps) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + int jnWidth ; + int jnHeight ; + int jnFps ; + + if (!swig_callbackprepare) { + return ProxyVideoConsumerCallback::prepare(nWidth,nHeight,nFps); + } else { + jnWidth = nWidth; + jnHeight = nHeight; + jnFps = nFps; + jresult = (int) swig_callbackprepare(jnWidth, jnHeight, jnFps); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::consume(ProxyVideoFrame const *frame) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * jframe = 0 ; + + if (!swig_callbackconsume) { + return ProxyVideoConsumerCallback::consume(frame); + } else { + jframe = (void *) frame; + jresult = (int) swig_callbackconsume(jframe); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + unsigned int jnCopiedSize ; + unsigned int jnAvailableSize ; + + if (!swig_callbackbufferCopied) { + return ProxyVideoConsumerCallback::bufferCopied(nCopiedSize,nAvailableSize); + } else { + jnCopiedSize = nCopiedSize; + jnAvailableSize = nAvailableSize; + jresult = (int) swig_callbackbufferCopied(jnCopiedSize, jnAvailableSize); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::start() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstart) { + return ProxyVideoConsumerCallback::start(); + } else { + jresult = (int) swig_callbackstart(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::pause() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackpause) { + return ProxyVideoConsumerCallback::pause(); + } else { + jresult = (int) swig_callbackpause(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::stop() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstop) { + return ProxyVideoConsumerCallback::stop(); + } else { + jresult = (int) swig_callbackstop(); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_ProxyVideoConsumerCallback::swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackconsume, SWIG_Callback2_t callbackbufferCopied, SWIG_Callback3_t callbackstart, SWIG_Callback4_t callbackpause, SWIG_Callback5_t callbackstop) { + swig_callbackprepare = callbackprepare; + swig_callbackconsume = callbackconsume; + swig_callbackbufferCopied = callbackbufferCopied; + swig_callbackstart = callbackstart; + swig_callbackpause = callbackpause; + swig_callbackstop = callbackstop; +} + +void SwigDirector_ProxyVideoConsumerCallback::swig_init_callbacks() { + swig_callbackprepare = 0; + swig_callbackconsume = 0; + swig_callbackbufferCopied = 0; + swig_callbackstart = 0; + swig_callbackpause = 0; + swig_callbackstop = 0; +} + +SwigDirector_ProxyAudioProducerCallback::SwigDirector_ProxyAudioProducerCallback() : ProxyAudioProducerCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_ProxyAudioProducerCallback::~SwigDirector_ProxyAudioProducerCallback() { + +} + + +int SwigDirector_ProxyAudioProducerCallback::prepare(int ptime, int rate, int channels) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + int jptime ; + int jrate ; + int jchannels ; + + if (!swig_callbackprepare) { + return ProxyAudioProducerCallback::prepare(ptime,rate,channels); + } else { + jptime = ptime; + jrate = rate; + jchannels = channels; + jresult = (int) swig_callbackprepare(jptime, jrate, jchannels); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::start() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstart) { + return ProxyAudioProducerCallback::start(); + } else { + jresult = (int) swig_callbackstart(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::pause() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackpause) { + return ProxyAudioProducerCallback::pause(); + } else { + jresult = (int) swig_callbackpause(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::stop() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstop) { + return ProxyAudioProducerCallback::stop(); + } else { + jresult = (int) swig_callbackstop(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::fillPushBuffer() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackfillPushBuffer) { + return ProxyAudioProducerCallback::fillPushBuffer(); + } else { + jresult = (int) swig_callbackfillPushBuffer(); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_ProxyAudioProducerCallback::swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackstart, SWIG_Callback2_t callbackpause, SWIG_Callback3_t callbackstop, SWIG_Callback4_t callbackfillPushBuffer) { + swig_callbackprepare = callbackprepare; + swig_callbackstart = callbackstart; + swig_callbackpause = callbackpause; + swig_callbackstop = callbackstop; + swig_callbackfillPushBuffer = callbackfillPushBuffer; +} + +void SwigDirector_ProxyAudioProducerCallback::swig_init_callbacks() { + swig_callbackprepare = 0; + swig_callbackstart = 0; + swig_callbackpause = 0; + swig_callbackstop = 0; + swig_callbackfillPushBuffer = 0; +} + +SwigDirector_ProxyVideoProducerCallback::SwigDirector_ProxyVideoProducerCallback() : ProxyVideoProducerCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_ProxyVideoProducerCallback::~SwigDirector_ProxyVideoProducerCallback() { + +} + + +int SwigDirector_ProxyVideoProducerCallback::prepare(int width, int height, int fps) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + int jwidth ; + int jheight ; + int jfps ; + + if (!swig_callbackprepare) { + return ProxyVideoProducerCallback::prepare(width,height,fps); + } else { + jwidth = width; + jheight = height; + jfps = fps; + jresult = (int) swig_callbackprepare(jwidth, jheight, jfps); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::start() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstart) { + return ProxyVideoProducerCallback::start(); + } else { + jresult = (int) swig_callbackstart(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::pause() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackpause) { + return ProxyVideoProducerCallback::pause(); + } else { + jresult = (int) swig_callbackpause(); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::stop() { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + + if (!swig_callbackstop) { + return ProxyVideoProducerCallback::stop(); + } else { + jresult = (int) swig_callbackstop(); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_ProxyVideoProducerCallback::swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackstart, SWIG_Callback2_t callbackpause, SWIG_Callback3_t callbackstop) { + swig_callbackprepare = callbackprepare; + swig_callbackstart = callbackstart; + swig_callbackpause = callbackpause; + swig_callbackstop = callbackstop; +} + +void SwigDirector_ProxyVideoProducerCallback::swig_init_callbacks() { + swig_callbackprepare = 0; + swig_callbackstart = 0; + swig_callbackpause = 0; + swig_callbackstop = 0; +} + +SwigDirector_SipCallback::SwigDirector_SipCallback() : SipCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { + +} + + +int SwigDirector_SipCallback::OnDialogEvent(DialogEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnDialogEvent) { + return SipCallback::OnDialogEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnDialogEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnStackEvent) { + return SipCallback::OnStackEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnStackEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnInviteEvent(InviteEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnInviteEvent) { + return SipCallback::OnInviteEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnInviteEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnMessagingEvent) { + return SipCallback::OnMessagingEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnMessagingEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnInfoEvent(InfoEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnInfoEvent) { + return SipCallback::OnInfoEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnInfoEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnOptionsEvent) { + return SipCallback::OnOptionsEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnOptionsEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnPublicationEvent) { + return SipCallback::OnPublicationEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnPublicationEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnRegistrationEvent) { + return SipCallback::OnRegistrationEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnRegistrationEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnSubscriptionEvent) { + return SipCallback::OnSubscriptionEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnSubscriptionEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_SipCallback::swig_connect_director(SWIG_Callback0_t callbackOnDialogEvent, SWIG_Callback1_t callbackOnStackEvent, SWIG_Callback2_t callbackOnInviteEvent, SWIG_Callback3_t callbackOnMessagingEvent, SWIG_Callback4_t callbackOnInfoEvent, SWIG_Callback5_t callbackOnOptionsEvent, SWIG_Callback6_t callbackOnPublicationEvent, SWIG_Callback7_t callbackOnRegistrationEvent, SWIG_Callback8_t callbackOnSubscriptionEvent) { + swig_callbackOnDialogEvent = callbackOnDialogEvent; + swig_callbackOnStackEvent = callbackOnStackEvent; + swig_callbackOnInviteEvent = callbackOnInviteEvent; + swig_callbackOnMessagingEvent = callbackOnMessagingEvent; + swig_callbackOnInfoEvent = callbackOnInfoEvent; + swig_callbackOnOptionsEvent = callbackOnOptionsEvent; + swig_callbackOnPublicationEvent = callbackOnPublicationEvent; + swig_callbackOnRegistrationEvent = callbackOnRegistrationEvent; + swig_callbackOnSubscriptionEvent = callbackOnSubscriptionEvent; +} + +void SwigDirector_SipCallback::swig_init_callbacks() { + swig_callbackOnDialogEvent = 0; + swig_callbackOnStackEvent = 0; + swig_callbackOnInviteEvent = 0; + swig_callbackOnMessagingEvent = 0; + swig_callbackOnInfoEvent = 0; + swig_callbackOnOptionsEvent = 0; + swig_callbackOnPublicationEvent = 0; + swig_callbackOnRegistrationEvent = 0; + swig_callbackOnSubscriptionEvent = 0; +} + +SwigDirector_XcapCallback::SwigDirector_XcapCallback() : XcapCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_XcapCallback::~SwigDirector_XcapCallback() { + +} + + +int SwigDirector_XcapCallback::onEvent(XcapEvent const *e) const { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackonEvent) { + return XcapCallback::onEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackonEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_XcapCallback::swig_connect_director(SWIG_Callback0_t callbackonEvent) { + swig_callbackonEvent = callbackonEvent; +} + +void SwigDirector_XcapCallback::swig_init_callbacks() { + swig_callbackonEvent = 0; +} + +SwigDirector_MsrpCallback::SwigDirector_MsrpCallback() : MsrpCallback(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_MsrpCallback::~SwigDirector_MsrpCallback() { + +} + + +int SwigDirector_MsrpCallback::OnEvent(MsrpEvent const *e) { + int c_result = SwigValueInit< int >() ; + int jresult = 0 ; + void * je = 0 ; + + if (!swig_callbackOnEvent) { + return MsrpCallback::OnEvent(e); + } else { + je = (void *) e; + jresult = (int) swig_callbackOnEvent(je); + c_result = (int)jresult; + } + return c_result; +} + +void SwigDirector_MsrpCallback::swig_connect_director(SWIG_Callback0_t callbackOnEvent) { + swig_callbackOnEvent = callbackOnEvent; +} + +void SwigDirector_MsrpCallback::swig_init_callbacks() { + swig_callbackOnEvent = 0; +} + + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_DDebugCallback() { + void * jresult ; + DDebugCallback *result = 0 ; + + result = (DDebugCallback *)new SwigDirector_DDebugCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_DDebugCallback(void * jarg1) { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + + arg1 = (DDebugCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugInfo(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->DDebugCallback::OnDebugInfo((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugWarn(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->DDebugCallback::OnDebugWarn((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugError(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugError((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->DDebugCallback::OnDebugError((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugFatal(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(void * jarg1, char * jarg2) { + int jresult ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (DDebugCallback *)jarg1; + arg2 = (char *)jarg2; + result = (int)(arg1)->DDebugCallback::OnDebugFatal((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_DDebugCallback_director_connect(void *objarg, SwigDirector_DDebugCallback::SWIG_Callback0_t callback0, SwigDirector_DDebugCallback::SWIG_Callback1_t callback1, SwigDirector_DDebugCallback::SWIG_Callback2_t callback2, SwigDirector_DDebugCallback::SWIG_Callback3_t callback3) { + DDebugCallback *obj = (DDebugCallback *)objarg; + SwigDirector_DDebugCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_AudioResampler(unsigned int jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4, unsigned int jarg5) { + void * jresult ; + uint32_t arg1 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + AudioResampler *result = 0 ; + + arg1 = (uint32_t)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_AudioResampler(void * jarg1) { + AudioResampler *arg1 = (AudioResampler *) 0 ; + + arg1 = (AudioResampler *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_AudioResampler_isValid(void * jarg1) { + unsigned int jresult ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + bool result; + + arg1 = (AudioResampler *)jarg1; + result = (bool)(arg1)->isValid(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_AudioResampler_getOutputRequiredSizeInShort(void * jarg1) { + unsigned int jresult ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + uint32_t result; + + arg1 = (AudioResampler *)jarg1; + result = (uint32_t)(arg1)->getOutputRequiredSizeInShort(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_AudioResampler_getInputRequiredSizeInShort(void * jarg1) { + unsigned int jresult ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + uint32_t result; + + arg1 = (AudioResampler *)jarg1; + result = (uint32_t)(arg1)->getInputRequiredSizeInShort(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_AudioResampler_process(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4, unsigned int jarg5) { + unsigned int jresult ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t arg3 ; + void *arg4 = (void *) 0 ; + uint32_t arg5 ; + uint32_t result; + + arg1 = (AudioResampler *)jarg1; + arg2 = jarg2; + arg3 = (uint32_t)jarg3; + arg4 = jarg4; + arg5 = (uint32_t)jarg5; + result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ActionConfig() { + void * jresult ; + ActionConfig *result = 0 ; + + result = (ActionConfig *)new ActionConfig(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ActionConfig(void * jarg1) { + ActionConfig *arg1 = (ActionConfig *) 0 ; + + arg1 = (ActionConfig *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ActionConfig_addHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (ActionConfig *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ActionConfig_addPayload(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (ActionConfig *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->addPayload((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ActionConfig_setActiveMedia(void * jarg1, int jarg2) { + unsigned int jresult ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + bool result; + + arg1 = (ActionConfig *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (bool)(arg1)->setActiveMedia(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ActionConfig_setResponseLine(void * jarg1, short jarg2, char * jarg3) { + void * jresult ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + short arg2 ; + char *arg3 = (char *) 0 ; + ActionConfig *result = 0 ; + + arg1 = (ActionConfig *)jarg1; + arg2 = (short)jarg2; + arg3 = (char *)jarg3; + result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ActionConfig_setMediaString(void * jarg1, int jarg2, char * jarg3, char * jarg4) { + void * jresult ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + ActionConfig *result = 0 ; + + arg1 = (ActionConfig *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ActionConfig_setMediaInt(void * jarg1, int jarg2, char * jarg3, int jarg4) { + void * jresult ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + ActionConfig *result = 0 ; + + arg1 = (ActionConfig *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (int)jarg4; + result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_Codec(void * jarg1) { + Codec *arg1 = (Codec *) 0 ; + + arg1 = (Codec *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Codec_getMediaType(void * jarg1) { + int jresult ; + Codec *arg1 = (Codec *) 0 ; + twrap_media_type_t result; + + arg1 = (Codec *)jarg1; + result = (twrap_media_type_t)(arg1)->getMediaType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Codec_getName(void * jarg1) { + char * jresult ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + arg1 = (Codec *)jarg1; + result = (char *)(arg1)->getName(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Codec_getDescription(void * jarg1) { + char * jresult ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + arg1 = (Codec *)jarg1; + result = (char *)(arg1)->getDescription(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Codec_getNegFormat(void * jarg1) { + char * jresult ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + arg1 = (Codec *)jarg1; + result = (char *)(arg1)->getNegFormat(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Codec_getAudioSamplingRate(void * jarg1) { + int jresult ; + Codec *arg1 = (Codec *) 0 ; + int result; + + arg1 = (Codec *)jarg1; + result = (int)(arg1)->getAudioSamplingRate(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Codec_getAudioChannels(void * jarg1) { + int jresult ; + Codec *arg1 = (Codec *) 0 ; + int result; + + arg1 = (Codec *)jarg1; + result = (int)(arg1)->getAudioChannels(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Codec_getAudioPTime(void * jarg1) { + int jresult ; + Codec *arg1 = (Codec *) 0 ; + int result; + + arg1 = (Codec *)jarg1; + result = (int)(arg1)->getAudioPTime(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MediaSessionMgr(void * jarg1) { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + + arg1 = (MediaSessionMgr *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_sessionSetInt32(void * jarg1, int jarg2, char * jarg3, int jarg4) { + unsigned int jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_sessionGetInt32(void * jarg1, int jarg2, char * jarg3) { + int jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_consumerSetInt32(void * jarg1, int jarg2, char * jarg3, int jarg4) { + unsigned int jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_consumerSetInt64(void * jarg1, int jarg2, char * jarg3, long long jarg4) { + unsigned int jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + bool result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (int64_t)jarg4; + result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_producerSetInt32(void * jarg1, int jarg2, char * jarg3, int jarg4) { + unsigned int jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_producerSetInt64(void * jarg1, int jarg2, char * jarg3, long long jarg4) { + unsigned int jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + bool result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = (char *)jarg3; + arg4 = (int64_t)jarg4; + result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MediaSessionMgr_producerGetCodec(void * jarg1, int jarg2) { + void * jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + Codec *result = 0 ; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (Codec *)(arg1)->producerGetCodec(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MediaSessionMgr_findProxyPluginConsumer(void * jarg1, int jarg2) { + void * jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + ProxyPlugin *result = 0 ; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MediaSessionMgr_findProxyPluginProducer(void * jarg1, int jarg2) { + void * jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + ProxyPlugin *result = 0 ; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_registerAudioPluginFromFile(char * jarg1) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + unsigned int result; + + arg1 = (char *)jarg1; + result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_MediaSessionMgr_getSessionId(void * jarg1, int jarg2) { + unsigned long long jresult ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + uint64_t result; + + arg1 = (MediaSessionMgr *)jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetProfile(int jarg1) { + unsigned int jresult ; + tmedia_profile_t arg1 ; + bool result; + + arg1 = (tmedia_profile_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetProfile(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetProfile() { + int jresult ; + tmedia_profile_t result; + + result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetBandwidthLevel(int jarg1) { + unsigned int jresult ; + tmedia_bandwidth_level_t arg1 ; + bool result; + + arg1 = (tmedia_bandwidth_level_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetBandwidthLevel() { + int jresult ; + tmedia_bandwidth_level_t result; + + result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetCongestionCtrlEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetVideoMotionRank(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetVideoFps(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetPrefVideoSize(int jarg1) { + unsigned int jresult ; + tmedia_pref_video_size_t arg1 ; + bool result; + + arg1 = (tmedia_pref_video_size_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetJbMargin(unsigned int jarg1) { + unsigned int jresult ; + uint32_t arg1 ; + bool result; + + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetJbMaxLateRate(unsigned int jarg1) { + unsigned int jresult ; + uint32_t arg1 ; + bool result; + + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetEchoTail(unsigned int jarg1) { + unsigned int jresult ; + uint32_t arg1 ; + bool result; + + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetEchoTail() { + unsigned int jresult ; + uint32_t result; + + result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetEchoSkew(unsigned int jarg1) { + unsigned int jresult ; + uint32_t arg1 ; + bool result; + + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetEchoSuppEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetEchoSuppEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAgcEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetAgcEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetAgcEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAgcLevel(float jarg1) { + unsigned int jresult ; + float arg1 ; + bool result; + + arg1 = (float)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetAgcLevel() { + float jresult ; + float result; + + result = (float)MediaSessionMgr::defaultsGetAgcLevel(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetVadEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetGetVadEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetNoiseSuppEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetNoiseSuppEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetNoiseSuppLevel(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetNoiseSuppLevel() { + int jresult ; + int32_t result; + + result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSet100relEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGet100relEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGet100relEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetScreenSize(int jarg1, int jarg2) { + unsigned int jresult ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAudioGain(int jarg1, int jarg2) { + unsigned int jresult ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAudioPtime(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAudioChannels(int jarg1, int jarg2) { + unsigned int jresult ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetRtpPortRange(unsigned short jarg1, unsigned short jarg2) { + unsigned int jresult ; + uint16_t arg1 ; + uint16_t arg2 ; + bool result; + + arg1 = (uint16_t)jarg1; + arg2 = (uint16_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetRtpSymetricEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetMediaType(int jarg1) { + unsigned int jresult ; + twrap_media_type_t arg1 ; + bool result; + + arg1 = (twrap_media_type_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetVolume(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVolume(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetVolume() { + int jresult ; + int32_t result; + + result = (int32_t)MediaSessionMgr::defaultsGetVolume(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetInviteSessionTimers(int jarg1, char * jarg2) { + unsigned int jresult ; + int32_t arg1 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (int32_t)jarg1; + arg2 = (char *)jarg2; + result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetSRtpMode(int jarg1) { + unsigned int jresult ; + tmedia_srtp_mode_t arg1 ; + bool result; + + arg1 = (tmedia_srtp_mode_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetSRtpMode() { + int jresult ; + tmedia_srtp_mode_t result; + + result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetSRtpType(int jarg1) { + unsigned int jresult ; + tmedia_srtp_type_t arg1 ; + bool result; + + arg1 = (tmedia_srtp_type_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetSRtpType() { + int jresult ; + tmedia_srtp_type_t result; + + result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetRtcpEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetRtcpEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetRtcpMuxEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetRtcpMuxEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetStunEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetIceStunEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetIceTurnEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetStunServer(char * jarg1, unsigned short jarg2) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + uint16_t arg2 ; + bool result; + + arg1 = (char *)jarg1; + arg2 = (uint16_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetStunCred(char * jarg1, char * jarg2) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetIceEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetByPassEncoding(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetByPassEncoding() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetByPassEncoding(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetByPassDecoding(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetByPassDecoding() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetByPassDecoding(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetVideoJbEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetVideoJbEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(unsigned int jarg1) { + unsigned int jresult ; + bool arg1 ; + bool result; + + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled() { + unsigned int jresult ; + bool result; + + result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetRtpBuffSize(unsigned int jarg1) { + unsigned int jresult ; + unsigned int arg1 ; + bool result; + + arg1 = (unsigned int)jarg1; + result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsGetRtpBuffSize() { + unsigned int jresult ; + unsigned int result; + + result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAvpfTail(unsigned int jarg1, unsigned int jarg2) { + unsigned int jresult ; + unsigned int arg1 ; + unsigned int arg2 ; + bool result; + + arg1 = (unsigned int)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetAvpfMode(int jarg1) { + unsigned int jresult ; + enum tmedia_mode_e arg1 ; + bool result; + + arg1 = (enum tmedia_mode_e)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetOpusMaxCaptureRate(unsigned int jarg1) { + unsigned int jresult ; + uint32_t arg1 ; + bool result; + + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(unsigned int jarg1) { + unsigned int jresult ; + uint32_t arg1 ; + bool result; + + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaSessionMgr_defaultsSetMaxFds(int jarg1) { + unsigned int jresult ; + int32_t arg1 ; + bool result; + + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MediaContent(void * jarg1) { + MediaContent *arg1 = (MediaContent *) 0 ; + + arg1 = (MediaContent *)jarg1; + delete arg1; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_MediaContent_getType(void * jarg1) { + char * jresult ; + MediaContent *arg1 = (MediaContent *) 0 ; + char *result = 0 ; + + arg1 = (MediaContent *)jarg1; + result = (char *)(arg1)->getType(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaContent_getDataLength(void * jarg1) { + unsigned int jresult ; + MediaContent *arg1 = (MediaContent *) 0 ; + unsigned int result; + + arg1 = (MediaContent *)jarg1; + result = (unsigned int)(arg1)->getDataLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaContent_getData(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (MediaContent *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getData(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MediaContent_parse__SWIG_0(void * jarg1, unsigned int jarg2, char * jarg3) { + void * jresult ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + MediaContent *result = 0 ; + + arg1 = jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (char *)jarg3; + result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MediaContent_parse__SWIG_1(void * jarg1, unsigned int jarg2) { + void * jresult ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + MediaContentCPIM *result = 0 ; + + arg1 = jarg1; + arg2 = (unsigned int)jarg2; + result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaContent_getPayloadLength(void * jarg1) { + unsigned int jresult ; + MediaContent *arg1 = (MediaContent *) 0 ; + unsigned int result; + + arg1 = (MediaContent *)jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaContent_getPayload(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (MediaContent *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MediaContentCPIM(void * jarg1) { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + + arg1 = (MediaContentCPIM *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaContentCPIM_getPayloadLength(void * jarg1) { + unsigned int jresult ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + unsigned int result; + + arg1 = (MediaContentCPIM *)jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MediaContentCPIM_getPayload(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (MediaContentCPIM *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_MediaContentCPIM_getHeaderValue(void * jarg1, char * jarg2) { + char * jresult ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (MediaContentCPIM *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getHeaderValue((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipUri__SWIG_0(char * jarg1, char * jarg2) { + void * jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + SipUri *result = 0 ; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipUri__SWIG_1(char * jarg1) { + void * jresult ; + char *arg1 = (char *) 0 ; + SipUri *result = 0 ; + + arg1 = (char *)jarg1; + result = (SipUri *)new SipUri((char const *)arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipUri(void * jarg1) { + SipUri *arg1 = (SipUri *) 0 ; + + arg1 = (SipUri *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_0(char * jarg1) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + bool result; + + arg1 = (char *)jarg1; + result = (bool)SipUri::isValid((char const *)arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipUri_isValid__SWIG_1(void * jarg1) { + unsigned int jresult ; + SipUri *arg1 = (SipUri *) 0 ; + bool result; + + arg1 = (SipUri *)jarg1; + result = (bool)(arg1)->isValid(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipUri_getScheme(void * jarg1) { + char * jresult ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + arg1 = (SipUri *)jarg1; + result = (char *)(arg1)->getScheme(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipUri_getHost(void * jarg1) { + char * jresult ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + arg1 = (SipUri *)jarg1; + result = (char *)(arg1)->getHost(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_SipUri_getPort(void * jarg1) { + unsigned short jresult ; + SipUri *arg1 = (SipUri *) 0 ; + unsigned short result; + + arg1 = (SipUri *)jarg1; + result = (unsigned short)(arg1)->getPort(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipUri_getUserName(void * jarg1) { + char * jresult ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + arg1 = (SipUri *)jarg1; + result = (char *)(arg1)->getUserName(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipUri_getPassword(void * jarg1) { + char * jresult ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + arg1 = (SipUri *)jarg1; + result = (char *)(arg1)->getPassword(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipUri_getDisplayName(void * jarg1) { + char * jresult ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + arg1 = (SipUri *)jarg1; + result = (char *)(arg1)->getDisplayName(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipUri_getParamValue(void * jarg1, char * jarg2) { + char * jresult ; + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (SipUri *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getParamValue((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SipUri_setDisplayName(void * jarg1, char * jarg2) { + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (SipUri *)jarg1; + arg2 = (char *)jarg2; + (arg1)->setDisplayName((char const *)arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SdpMessage() { + void * jresult ; + SdpMessage *result = 0 ; + + result = (SdpMessage *)new SdpMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SdpMessage(void * jarg1) { + SdpMessage *arg1 = (SdpMessage *) 0 ; + + arg1 = (SdpMessage *)jarg1; + delete arg1; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SdpMessage_getSdpHeaderValue__SWIG_0(void * jarg1, char * jarg2, char jarg3, unsigned int jarg4) { + char * jresult ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + unsigned int arg4 ; + char *result = 0 ; + + arg1 = (SdpMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char)jarg3; + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SdpMessage_getSdpHeaderValue__SWIG_1(void * jarg1, char * jarg2, char jarg3) { + char * jresult ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + char *result = 0 ; + + arg1 = (SdpMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char)jarg3; + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SdpMessage_getSdpHeaderAValue(void * jarg1, char * jarg2, char * jarg3) { + char * jresult ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (SdpMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipMessage() { + void * jresult ; + SipMessage *result = 0 ; + + result = (SipMessage *)new SipMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipMessage(void * jarg1) { + SipMessage *arg1 = (SipMessage *) 0 ; + + arg1 = (SipMessage *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipMessage_isResponse(void * jarg1) { + unsigned int jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + bool result; + + arg1 = (SipMessage *)jarg1; + result = (bool)(arg1)->isResponse(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipMessage_getRequestType(void * jarg1) { + int jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + tsip_request_type_t result; + + arg1 = (SipMessage *)jarg1; + result = (tsip_request_type_t)(arg1)->getRequestType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT short SWIGSTDCALL CSharp_SipMessage_getResponseCode(void * jarg1) { + short jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + short result; + + arg1 = (SipMessage *)jarg1; + result = (short)(arg1)->getResponseCode(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getResponsePhrase(void * jarg1) { + char * jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *result = 0 ; + + arg1 = (SipMessage *)jarg1; + result = (char *)(arg1)->getResponsePhrase(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getSipHeaderValue__SWIG_0(void * jarg1, char * jarg2, unsigned int jarg3) { + char * jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *result = 0 ; + + arg1 = (SipMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned int)jarg3; + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getSipHeaderValue__SWIG_1(void * jarg1, char * jarg2) { + char * jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (SipMessage *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getSipHeaderParamValue__SWIG_0(void * jarg1, char * jarg2, char * jarg3, unsigned int jarg4) { + char * jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + char *result = 0 ; + + arg1 = (SipMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipMessage_getSipHeaderParamValue__SWIG_1(void * jarg1, char * jarg2, char * jarg3) { + char * jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (SipMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipMessage_getSipContentLength(void * jarg1) { + unsigned int jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + unsigned int result; + + arg1 = (SipMessage *)jarg1; + result = (unsigned int)(arg1)->getSipContentLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipMessage_getSipContent(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (SipMessage *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getSipContent(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SipMessage_getSdpMessage(void * jarg1) { + void * jresult ; + SipMessage *arg1 = (SipMessage *) 0 ; + SdpMessage *result = 0 ; + + arg1 = (SipMessage *)jarg1; + result = (SdpMessage *)(arg1)->getSdpMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipEvent(void * jarg1) { + SipEvent *arg1 = (SipEvent *) 0 ; + + arg1 = (SipEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT short SWIGSTDCALL CSharp_SipEvent_getCode(void * jarg1) { + short jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + short result; + + arg1 = (SipEvent *)jarg1; + result = (short)((SipEvent const *)arg1)->getCode(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipEvent_getPhrase(void * jarg1) { + char * jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + char *result = 0 ; + + arg1 = (SipEvent *)jarg1; + result = (char *)((SipEvent const *)arg1)->getPhrase(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SipEvent_getBaseSession(void * jarg1) { + void * jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipSession *result = 0 ; + + arg1 = (SipEvent *)jarg1; + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SipEvent_getSipMessage(void * jarg1) { + void * jresult ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipMessage *result = 0 ; + + arg1 = (SipEvent *)jarg1; + result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_DialogEvent(void * jarg1) { + DialogEvent *arg1 = (DialogEvent *) 0 ; + + arg1 = (DialogEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_StackEvent(void * jarg1) { + StackEvent *arg1 = (StackEvent *) 0 ; + + arg1 = (StackEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_InviteEvent(void * jarg1) { + InviteEvent *arg1 = (InviteEvent *) 0 ; + + arg1 = (InviteEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_InviteEvent_getType(void * jarg1) { + int jresult ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + tsip_invite_event_type_t result; + + arg1 = (InviteEvent *)jarg1; + result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_InviteEvent_getMediaType(void * jarg1) { + int jresult ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + twrap_media_type_t result; + + arg1 = (InviteEvent *)jarg1; + result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_InviteEvent_getSession(void * jarg1) { + void * jresult ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + InviteSession *result = 0 ; + + arg1 = (InviteEvent *)jarg1; + result = (InviteSession *)((InviteEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_InviteEvent_takeCallSessionOwnership(void * jarg1) { + void * jresult ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + CallSession *result = 0 ; + + arg1 = (InviteEvent *)jarg1; + result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_InviteEvent_takeMsrpSessionOwnership(void * jarg1) { + void * jresult ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + MsrpSession *result = 0 ; + + arg1 = (InviteEvent *)jarg1; + result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MessagingEvent(void * jarg1) { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + + arg1 = (MessagingEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MessagingEvent_getType(void * jarg1) { + int jresult ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + tsip_message_event_type_t result; + + arg1 = (MessagingEvent *)jarg1; + result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MessagingEvent_getSession(void * jarg1) { + void * jresult ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + MessagingSession *result = 0 ; + + arg1 = (MessagingEvent *)jarg1; + result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MessagingEvent_takeSessionOwnership(void * jarg1) { + void * jresult ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + MessagingSession *result = 0 ; + + arg1 = (MessagingEvent *)jarg1; + result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_InfoEvent(void * jarg1) { + InfoEvent *arg1 = (InfoEvent *) 0 ; + + arg1 = (InfoEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_InfoEvent_getType(void * jarg1) { + int jresult ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + tsip_info_event_type_t result; + + arg1 = (InfoEvent *)jarg1; + result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_InfoEvent_getSession(void * jarg1) { + void * jresult ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + InfoSession *result = 0 ; + + arg1 = (InfoEvent *)jarg1; + result = (InfoSession *)((InfoEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_InfoEvent_takeSessionOwnership(void * jarg1) { + void * jresult ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + InfoSession *result = 0 ; + + arg1 = (InfoEvent *)jarg1; + result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_OptionsEvent(void * jarg1) { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + + arg1 = (OptionsEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_OptionsEvent_getType(void * jarg1) { + int jresult ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + tsip_options_event_type_t result; + + arg1 = (OptionsEvent *)jarg1; + result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_OptionsEvent_getSession(void * jarg1) { + void * jresult ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + OptionsSession *result = 0 ; + + arg1 = (OptionsEvent *)jarg1; + result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_OptionsEvent_takeSessionOwnership(void * jarg1) { + void * jresult ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + OptionsSession *result = 0 ; + + arg1 = (OptionsEvent *)jarg1; + result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_PublicationEvent(void * jarg1) { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + + arg1 = (PublicationEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_PublicationEvent_getType(void * jarg1) { + int jresult ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + tsip_publish_event_type_t result; + + arg1 = (PublicationEvent *)jarg1; + result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_PublicationEvent_getSession(void * jarg1) { + void * jresult ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + PublicationSession *result = 0 ; + + arg1 = (PublicationEvent *)jarg1; + result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_PublicationEvent_takeSessionOwnership(void * jarg1) { + void * jresult ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + PublicationSession *result = 0 ; + + arg1 = (PublicationEvent *)jarg1; + result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_RegistrationEvent(void * jarg1) { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + + arg1 = (RegistrationEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_RegistrationEvent_getType(void * jarg1) { + int jresult ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + tsip_register_event_type_t result; + + arg1 = (RegistrationEvent *)jarg1; + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_RegistrationEvent_getSession(void * jarg1) { + void * jresult ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + arg1 = (RegistrationEvent *)jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_RegistrationEvent_takeSessionOwnership(void * jarg1) { + void * jresult ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + arg1 = (RegistrationEvent *)jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SubscriptionEvent(void * jarg1) { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + + arg1 = (SubscriptionEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SubscriptionEvent_getType(void * jarg1) { + int jresult ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + tsip_subscribe_event_type_t result; + + arg1 = (SubscriptionEvent *)jarg1; + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SubscriptionEvent_getSession(void * jarg1) { + void * jresult ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + arg1 = (SubscriptionEvent *)jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SubscriptionEvent_takeSessionOwnership(void * jarg1) { + void * jresult ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + arg1 = (SubscriptionEvent *)jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership(); + jresult = (void *)result; + return jresult; +} + + +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)((T140CallbackData const *)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)((T140CallbackData const *)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)((T140CallbackData const *)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(obj); + if (director) { + director->swig_connect_director(callback0); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + SipSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (SipSession *)new SipSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipSession(void * jarg1) { + SipSession *arg1 = (SipSession *) 0 ; + + arg1 = (SipSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_haveOwnership(void * jarg1) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + result = (bool)(arg1)->haveOwnership(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeHeader(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addCaps__SWIG_0(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addCaps__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addCaps((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeCaps(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeCaps((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setExpires(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setExpires(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setFromUri__SWIG_0(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setFromUri((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setFromUri__SWIG_1(void * jarg1, void * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (SipUri *)jarg2; + result = (bool)(arg1)->setFromUri((SipUri const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setToUri__SWIG_0(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setToUri((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setToUri__SWIG_1(void * jarg1, void * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (SipUri *)jarg2; + result = (bool)(arg1)->setToUri((SipUri const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_setSilentHangup(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSilentHangup(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_addSigCompCompartment(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_removeSigCompCompartment(void * jarg1) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + bool result; + + arg1 = (SipSession *)jarg1; + result = (bool)(arg1)->removeSigCompCompartment(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipSession_getId(void * jarg1) { + unsigned int jresult ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int result; + + arg1 = (SipSession *)jarg1; + result = (unsigned int)((SipSession const *)arg1)->getId(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_InviteSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + InviteSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (InviteSession *)new InviteSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_InviteSession(void * jarg1) { + InviteSession *arg1 = (InviteSession *) 0 ; + + arg1 = (InviteSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_accept__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_accept__SWIG_1(void * jarg1) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + result = (bool)(arg1)->accept(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_hangup__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->hangup(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_hangup__SWIG_1(void * jarg1) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + result = (bool)(arg1)->hangup(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_reject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_reject__SWIG_1(void * jarg1) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + result = (bool)(arg1)->reject(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_sendInfo__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InviteSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (ActionConfig *)jarg4; + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InviteSession_sendInfo__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (InviteSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_InviteSession_getMediaMgr(void * jarg1) { + void * jresult ; + InviteSession *arg1 = (InviteSession *) 0 ; + MediaSessionMgr *result = 0 ; + + arg1 = (InviteSession *)jarg1; + result = (MediaSessionMgr *)(arg1)->getMediaMgr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_CallSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + CallSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (CallSession *)new CallSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_CallSession(void * jarg1) { + CallSession *arg1 = (CallSession *) 0 ; + + arg1 = (CallSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudio__SWIG_0(void * jarg1, char * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callAudio((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudio__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->callAudio((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudio__SWIG_2(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (SipUri *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudio__SWIG_3(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (SipUri *)jarg2; + result = (bool)(arg1)->callAudio((SipUri const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudioVideo__SWIG_0(void * jarg1, char * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudioVideo__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->callAudioVideo((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudioVideo__SWIG_2(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (SipUri *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callAudioVideo__SWIG_3(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (SipUri *)jarg2; + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callVideo__SWIG_0(void * jarg1, char * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callVideo((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callVideo__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->callVideo((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callVideo__SWIG_2(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (SipUri *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_callVideo__SWIG_3(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (SipUri *)jarg2; + result = (bool)(arg1)->callVideo((SipUri const *)arg2); + jresult = result; + return jresult; +} + + +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 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_set100rel(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->set100rel(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setRtcp(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setRtcp(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setRtcpMux(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setRtcpMux(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setSRtpMode(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_srtp_mode_e arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (enum tmedia_srtp_mode_e)jarg2; + result = (bool)(arg1)->setSRtpMode(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setAvpfMode(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_mode_e arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (enum tmedia_mode_e)jarg2; + result = (bool)(arg1)->setAvpfMode(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setICE(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICE(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setICEStun(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICEStun(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setICETurn(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICETurn(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setSTUNServer(void * jarg1, char * jarg2, unsigned short jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + uint16_t arg3 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (uint16_t)jarg3; + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setSTUNCred(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setVideoFps(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoFps(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setVideoBandwidthUploadMax(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setVideoBandwidthDownloadMax(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setVideoPrefSize(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_pref_video_size_t arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (tmedia_pref_video_size_t)jarg2; + result = (bool)(arg1)->setVideoPrefSize(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_setQoS(void * jarg1, int jarg2, int jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_qos_stype_t arg2 ; + tmedia_qos_strength_t arg3 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (tmedia_qos_stype_t)jarg2; + arg3 = (tmedia_qos_strength_t)jarg3; + result = (bool)(arg1)->setQoS(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_hold__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->hold(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_hold__SWIG_1(void * jarg1) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + result = (bool)(arg1)->hold(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_resume__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->resume(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_resume__SWIG_1(void * jarg1) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + result = (bool)(arg1)->resume(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_transfer__SWIG_0(void * jarg1, char * jarg2, void * jarg3) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->transfer((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_transfer__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->transfer((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_acceptTransfer__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->acceptTransfer(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_acceptTransfer__SWIG_1(void * jarg1) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + result = (bool)(arg1)->acceptTransfer(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_rejectTransfer__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->rejectTransfer(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_rejectTransfer__SWIG_1(void * jarg1) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + arg1 = (CallSession *)jarg1; + result = (bool)(arg1)->rejectTransfer(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_sendDTMF(void * jarg1, int jarg2) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + int arg2 ; + bool result; + + arg1 = (CallSession *)jarg1; + arg2 = (int)jarg2; + result = (bool)(arg1)->sendDTMF(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_CallSession_getSessionTransferId(void * jarg1) { + unsigned int jresult ; + CallSession *arg1 = (CallSession *) 0 ; + unsigned int result; + + arg1 = (CallSession *)jarg1; + result = (unsigned int)(arg1)->getSessionTransferId(); + jresult = result; + return jresult; +} + + +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 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + MsrpSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + arg2 = (MsrpCallback *)jarg2; + result = (MsrpSession *)new MsrpSession(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MsrpSession(void * jarg1) { + MsrpSession *arg1 = (MsrpSession *) 0 ; + + arg1 = (MsrpSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_setCallback(void * jarg1, void * jarg2) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = (MsrpCallback *)jarg2; + result = (bool)(arg1)->setCallback(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_callMsrp__SWIG_0(void * jarg1, char * jarg2, void * jarg3) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = (char *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callMsrp((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_callMsrp__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->callMsrp((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_callMsrp__SWIG_2(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = (SipUri *)jarg2; + arg3 = (ActionConfig *)jarg3; + result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_callMsrp__SWIG_3(void * jarg1, void * jarg2) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = (SipUri *)jarg2; + result = (bool)(arg1)->callMsrp((SipUri const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_sendMessage__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (ActionConfig *)jarg4; + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_sendMessage__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_sendFile__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->sendFile(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpSession_sendFile__SWIG_1(void * jarg1) { + unsigned int jresult ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + bool result; + + arg1 = (MsrpSession *)jarg1; + result = (bool)(arg1)->sendFile(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_MessagingSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + MessagingSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (MessagingSession *)new MessagingSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MessagingSession(void * jarg1) { + MessagingSession *arg1 = (MessagingSession *) 0 ; + + arg1 = (MessagingSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MessagingSession_send__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { + unsigned int jresult ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MessagingSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (ActionConfig *)jarg4; + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MessagingSession_send__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (MessagingSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->send((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MessagingSession_accept__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MessagingSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MessagingSession_accept__SWIG_1(void * jarg1) { + unsigned int jresult ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + bool result; + + arg1 = (MessagingSession *)jarg1; + result = (bool)(arg1)->accept(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MessagingSession_reject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (MessagingSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MessagingSession_reject__SWIG_1(void * jarg1) { + unsigned int jresult ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + bool result; + + arg1 = (MessagingSession *)jarg1; + result = (bool)(arg1)->reject(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_InfoSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + InfoSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (InfoSession *)new InfoSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_InfoSession(void * jarg1) { + InfoSession *arg1 = (InfoSession *) 0 ; + + arg1 = (InfoSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InfoSession_send__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { + unsigned int jresult ; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InfoSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (ActionConfig *)jarg4; + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InfoSession_send__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (InfoSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->send((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InfoSession_accept__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InfoSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InfoSession_accept__SWIG_1(void * jarg1) { + unsigned int jresult ; + InfoSession *arg1 = (InfoSession *) 0 ; + bool result; + + arg1 = (InfoSession *)jarg1; + result = (bool)(arg1)->accept(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InfoSession_reject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (InfoSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_InfoSession_reject__SWIG_1(void * jarg1) { + unsigned int jresult ; + InfoSession *arg1 = (InfoSession *) 0 ; + bool result; + + arg1 = (InfoSession *)jarg1; + result = (bool)(arg1)->reject(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_OptionsSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + OptionsSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (OptionsSession *)new OptionsSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_OptionsSession(void * jarg1) { + OptionsSession *arg1 = (OptionsSession *) 0 ; + + arg1 = (OptionsSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_OptionsSession_send__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (OptionsSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->send(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_OptionsSession_send__SWIG_1(void * jarg1) { + unsigned int jresult ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + arg1 = (OptionsSession *)jarg1; + result = (bool)(arg1)->send(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_OptionsSession_accept__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (OptionsSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_OptionsSession_accept__SWIG_1(void * jarg1) { + unsigned int jresult ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + arg1 = (OptionsSession *)jarg1; + result = (bool)(arg1)->accept(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_OptionsSession_reject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (OptionsSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_OptionsSession_reject__SWIG_1(void * jarg1) { + unsigned int jresult ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + arg1 = (OptionsSession *)jarg1; + result = (bool)(arg1)->reject(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_PublicationSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + PublicationSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (PublicationSession *)new PublicationSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_PublicationSession(void * jarg1) { + PublicationSession *arg1 = (PublicationSession *) 0 ; + + arg1 = (PublicationSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_PublicationSession_publish__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, void * jarg4) { + unsigned int jresult ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + arg1 = (PublicationSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (ActionConfig *)jarg4; + result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_PublicationSession_publish__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (PublicationSession *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->publish((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_PublicationSession_unPublish__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (PublicationSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->unPublish(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_PublicationSession_unPublish__SWIG_1(void * jarg1) { + unsigned int jresult ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + bool result; + + arg1 = (PublicationSession *)jarg1; + result = (bool)(arg1)->unPublish(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_RegistrationSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + RegistrationSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (RegistrationSession *)new RegistrationSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_RegistrationSession(void * jarg1) { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + + arg1 = (RegistrationSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_register___SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->register_(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_register___SWIG_1(void * jarg1) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + result = (bool)(arg1)->register_(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_unRegister__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->unRegister(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_unRegister__SWIG_1(void * jarg1) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + result = (bool)(arg1)->unRegister(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_accept__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_accept__SWIG_1(void * jarg1) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + result = (bool)(arg1)->accept(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_reject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + arg2 = (ActionConfig *)jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RegistrationSession_reject__SWIG_1(void * jarg1) { + unsigned int jresult ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + arg1 = (RegistrationSession *)jarg1; + result = (bool)(arg1)->reject(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SubscriptionSession(void * jarg1) { + void * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + SubscriptionSession *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (SubscriptionSession *)new SubscriptionSession(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SubscriptionSession(void * jarg1) { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + + arg1 = (SubscriptionSession *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SubscriptionSession_subscribe(void * jarg1) { + unsigned int jresult ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + arg1 = (SubscriptionSession *)jarg1; + result = (bool)(arg1)->subscribe(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SubscriptionSession_unSubscribe(void * jarg1) { + unsigned int jresult ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + arg1 = (SubscriptionSession *)jarg1; + result = (bool)(arg1)->unSubscribe(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyPluginMgr(void * jarg1) { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + + arg1 = (ProxyPluginMgr *)jarg1; + delete arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_createInstance(void * jarg1) { + void * jresult ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + ProxyPluginMgr *result = 0 ; + + arg1 = (ProxyPluginMgrCallback *)jarg1; + result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_getInstance() { + void * jresult ; + ProxyPluginMgr *result = 0 ; + + result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_findPlugin(void * jarg1, unsigned long long jarg2) { + void * jresult ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyPlugin *result = 0 ; + + arg1 = (ProxyPluginMgr *)jarg1; + arg2 = (uint64_t)jarg2; + result = (ProxyPlugin *)(arg1)->findPlugin(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_findAudioConsumer(void * jarg1, unsigned long long jarg2) { + void * jresult ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyAudioConsumer *result = 0 ; + + arg1 = (ProxyPluginMgr *)jarg1; + arg2 = (uint64_t)jarg2; + result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_findVideoConsumer(void * jarg1, unsigned long long jarg2) { + void * jresult ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyVideoConsumer *result = 0 ; + + arg1 = (ProxyPluginMgr *)jarg1; + arg2 = (uint64_t)jarg2; + result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_findAudioProducer(void * jarg1, unsigned long long jarg2) { + void * jresult ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyAudioProducer *result = 0 ; + + arg1 = (ProxyPluginMgr *)jarg1; + arg2 = (uint64_t)jarg2; + result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_ProxyPluginMgr_findVideoProducer(void * jarg1, unsigned long long jarg2) { + void * jresult ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyVideoProducer *result = 0 ; + + arg1 = (ProxyPluginMgr *)jarg1; + arg2 = (uint64_t)jarg2; + result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ProxyPluginMgrCallback() { + void * jresult ; + ProxyPluginMgrCallback *result = 0 ; + + result = (ProxyPluginMgrCallback *)new SwigDirector_ProxyPluginMgrCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyPluginMgrCallback(void * jarg1) { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + + arg1 = (ProxyPluginMgrCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyPluginMgrCallback_OnPluginCreated(void * jarg1, unsigned long long jarg2, int jarg3) { + int jresult ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + arg1 = (ProxyPluginMgrCallback *)jarg1; + arg2 = (uint64_t)jarg2; + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->OnPluginCreated(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(void * jarg1, unsigned long long jarg2, int jarg3) { + int jresult ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + arg1 = (ProxyPluginMgrCallback *)jarg1; + arg2 = (uint64_t)jarg2; + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginCreated(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyPluginMgrCallback_OnPluginDestroyed(void * jarg1, unsigned long long jarg2, int jarg3) { + int jresult ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + arg1 = (ProxyPluginMgrCallback *)jarg1; + arg2 = (uint64_t)jarg2; + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->OnPluginDestroyed(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(void * jarg1, unsigned long long jarg2, int jarg3) { + int jresult ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + arg1 = (ProxyPluginMgrCallback *)jarg1; + arg2 = (uint64_t)jarg2; + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginDestroyed(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyPluginMgrCallback_director_connect(void *objarg, SwigDirector_ProxyPluginMgrCallback::SWIG_Callback0_t callback0, SwigDirector_ProxyPluginMgrCallback::SWIG_Callback1_t callback1) { + ProxyPluginMgrCallback *obj = (ProxyPluginMgrCallback *)objarg; + SwigDirector_ProxyPluginMgrCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyPlugin(void * jarg1) { + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + + arg1 = (ProxyPlugin *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyPlugin_getType(void * jarg1) { + int jresult ; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + twrap_proxy_plugin_type_t result; + + arg1 = (ProxyPlugin *)jarg1; + result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_ProxyPlugin_getId(void * jarg1) { + unsigned long long jresult ; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + uint64_t result; + + arg1 = (ProxyPlugin *)jarg1; + result = (uint64_t)((ProxyPlugin const *)arg1)->getId(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ProxyAudioConsumerCallback() { + void * jresult ; + ProxyAudioConsumerCallback *result = 0 ; + + result = (ProxyAudioConsumerCallback *)new SwigDirector_ProxyAudioConsumerCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyAudioConsumerCallback(void * jarg1) { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_prepare(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyAudioConsumerCallback::prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_start(void * jarg1) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + result = (int)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(void * jarg1) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_pause(void * jarg1) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + result = (int)(arg1)->pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(void * jarg1) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_stop(void * jarg1) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + result = (int)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(void * jarg1) { + int jresult ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioConsumerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioConsumerCallback_director_connect(void *objarg, SwigDirector_ProxyAudioConsumerCallback::SWIG_Callback0_t callback0, SwigDirector_ProxyAudioConsumerCallback::SWIG_Callback1_t callback1, SwigDirector_ProxyAudioConsumerCallback::SWIG_Callback2_t callback2, SwigDirector_ProxyAudioConsumerCallback::SWIG_Callback3_t callback3) { + ProxyAudioConsumerCallback *obj = (ProxyAudioConsumerCallback *)objarg; + SwigDirector_ProxyAudioConsumerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyAudioConsumer(void * jarg1) { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + + arg1 = (ProxyAudioConsumer *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_setActualSndCardPlaybackParams(void * jarg1, int jarg2, int jarg3, int jarg4) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + bool result; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_queryForResampler(void * jarg1, unsigned short jarg2, unsigned short jarg3, unsigned short jarg4, unsigned short jarg5, unsigned short jarg6) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + uint16_t arg4 ; + uint16_t arg5 ; + uint16_t arg6 ; + bool result; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = (uint16_t)jarg2; + arg3 = (uint16_t)jarg3; + arg4 = (uint16_t)jarg4; + arg5 = (uint16_t)jarg5; + arg6 = (uint16_t)jarg6; + result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_setPullBuffer(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_pull__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->pull(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_pull__SWIG_1(void * jarg1, void * jarg2) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int result; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = jarg2; + result = (unsigned int)(arg1)->pull(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_pull__SWIG_2(void * jarg1) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int result; + + arg1 = (ProxyAudioConsumer *)jarg1; + result = (unsigned int)(arg1)->pull(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_setGain(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setGain(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_getGain(void * jarg1) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int result; + + arg1 = (ProxyAudioConsumer *)jarg1; + result = (unsigned int)(arg1)->getGain(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_reset(void * jarg1) { + unsigned int jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + bool result; + + arg1 = (ProxyAudioConsumer *)jarg1; + result = (bool)(arg1)->reset(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioConsumer_setCallback(void * jarg1, void * jarg2) { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ; + + arg1 = (ProxyAudioConsumer *)jarg1; + arg2 = (ProxyAudioConsumerCallback *)jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_ProxyAudioConsumer_getMediaSessionId(void * jarg1) { + unsigned long long jresult ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint64_t result; + + arg1 = (ProxyAudioConsumer *)jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioConsumer_registerPlugin() { + unsigned int jresult ; + bool result; + + result = (bool)ProxyAudioConsumer::registerPlugin(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ProxyVideoConsumerCallback() { + void * jresult ; + ProxyVideoConsumerCallback *result = 0 ; + + result = (ProxyVideoConsumerCallback *)new SwigDirector_ProxyVideoConsumerCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyVideoConsumerCallback(void * jarg1) { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_prepare(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyVideoConsumerCallback::prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_consume(void * jarg1, void * jarg2) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + arg2 = (ProxyVideoFrame *)jarg2; + result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(void * jarg1, void * jarg2) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + arg2 = (ProxyVideoFrame *)jarg2; + result = (int)(arg1)->ProxyVideoConsumerCallback::consume((ProxyVideoFrame const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_bufferCopied(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->bufferCopied(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->ProxyVideoConsumerCallback::bufferCopied(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_start(void * jarg1) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + result = (int)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(void * jarg1) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_pause(void * jarg1) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + result = (int)(arg1)->pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(void * jarg1) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_stop(void * jarg1) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + result = (int)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(void * jarg1) { + int jresult ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoConsumerCallback *)jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoConsumerCallback_director_connect(void *objarg, SwigDirector_ProxyVideoConsumerCallback::SWIG_Callback0_t callback0, SwigDirector_ProxyVideoConsumerCallback::SWIG_Callback1_t callback1, SwigDirector_ProxyVideoConsumerCallback::SWIG_Callback2_t callback2, SwigDirector_ProxyVideoConsumerCallback::SWIG_Callback3_t callback3, SwigDirector_ProxyVideoConsumerCallback::SWIG_Callback4_t callback4, SwigDirector_ProxyVideoConsumerCallback::SWIG_Callback5_t callback5) { + ProxyVideoConsumerCallback *obj = (ProxyVideoConsumerCallback *)objarg; + SwigDirector_ProxyVideoConsumerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyVideoConsumer(void * jarg1) { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + + arg1 = (ProxyVideoConsumer *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_setDisplaySize(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + bool result; + + arg1 = (ProxyVideoConsumer *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setDisplaySize(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_getDisplayWidth(void * jarg1) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + arg1 = (ProxyVideoConsumer *)jarg1; + result = (unsigned int)(arg1)->getDisplayWidth(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_getDisplayHeight(void * jarg1) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + arg1 = (ProxyVideoConsumer *)jarg1; + result = (unsigned int)(arg1)->getDisplayHeight(); + jresult = result; + return jresult; +} + + +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 ; + + arg1 = (ProxyVideoConsumer *)jarg1; + arg2 = (ProxyVideoConsumerCallback *)jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_setAutoResizeDisplay(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool arg2 ; + bool result; + + arg1 = (ProxyVideoConsumer *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setAutoResizeDisplay(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_getAutoResizeDisplay(void * jarg1) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool result; + + arg1 = (ProxyVideoConsumer *)jarg1; + result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_setConsumeBuffer(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (ProxyVideoConsumer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_pull(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (ProxyVideoConsumer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->pull(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_reset(void * jarg1) { + unsigned int jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool result; + + arg1 = (ProxyVideoConsumer *)jarg1; + result = (bool)(arg1)->reset(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_ProxyVideoConsumer_getMediaSessionId(void * jarg1) { + unsigned long long jresult ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + uint64_t result; + + arg1 = (ProxyVideoConsumer *)jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoConsumer_registerPlugin() { + unsigned int jresult ; + bool result; + + result = (bool)ProxyVideoConsumer::registerPlugin(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoConsumer_setDefaultChroma(int jarg1) { + tmedia_chroma_t arg1 ; + + arg1 = (tmedia_chroma_t)jarg1; + ProxyVideoConsumer::setDefaultChroma(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoConsumer_setDefaultAutoResizeDisplay(unsigned int jarg1) { + bool arg1 ; + + arg1 = jarg1 ? true : false; + ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyVideoFrame(void * jarg1) { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + + arg1 = (ProxyVideoFrame *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoFrame_getSize(void * jarg1) { + unsigned int jresult ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + arg1 = (ProxyVideoFrame *)jarg1; + result = (unsigned int)(arg1)->getSize(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoFrame_getContent(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (ProxyVideoFrame *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getContent(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoFrame_getFrameWidth(void * jarg1) { + unsigned int jresult ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + arg1 = (ProxyVideoFrame *)jarg1; + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoFrame_getFrameHeight(void * jarg1) { + unsigned int jresult ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + arg1 = (ProxyVideoFrame *)jarg1; + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ProxyAudioProducerCallback() { + void * jresult ; + ProxyAudioProducerCallback *result = 0 ; + + result = (ProxyAudioProducerCallback *)new SwigDirector_ProxyAudioProducerCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyAudioProducerCallback(void * jarg1) { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_prepare(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyAudioProducerCallback::prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_start(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_pause(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_stop(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_fillPushBuffer(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->fillPushBuffer(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(void * jarg1) { + int jresult ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + arg1 = (ProxyAudioProducerCallback *)jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::fillPushBuffer(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioProducerCallback_director_connect(void *objarg, SwigDirector_ProxyAudioProducerCallback::SWIG_Callback0_t callback0, SwigDirector_ProxyAudioProducerCallback::SWIG_Callback1_t callback1, SwigDirector_ProxyAudioProducerCallback::SWIG_Callback2_t callback2, SwigDirector_ProxyAudioProducerCallback::SWIG_Callback3_t callback3, SwigDirector_ProxyAudioProducerCallback::SWIG_Callback4_t callback4) { + ProxyAudioProducerCallback *obj = (ProxyAudioProducerCallback *)objarg; + SwigDirector_ProxyAudioProducerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3, callback4); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyAudioProducer(void * jarg1) { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + + arg1 = (ProxyAudioProducer *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioProducer_setActualSndCardRecordParams(void * jarg1, int jarg2, int jarg3, int jarg4) { + unsigned int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + bool result; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioProducer_setPushBuffer__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, unsigned int jarg4) { + unsigned int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool arg4 ; + bool result; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + arg4 = jarg4 ? true : false; + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioProducer_setPushBuffer__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducer_push__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3) { + int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + int result; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->push((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducer_push__SWIG_1(void * jarg1, void * jarg2) { + int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + int result; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = jarg2; + result = (int)(arg1)->push((void const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyAudioProducer_push__SWIG_2(void * jarg1) { + int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int result; + + arg1 = (ProxyAudioProducer *)jarg1; + result = (int)(arg1)->push(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioProducer_setGain(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setGain(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioProducer_getGain(void * jarg1) { + unsigned int jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int result; + + arg1 = (ProxyAudioProducer *)jarg1; + result = (unsigned int)(arg1)->getGain(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyAudioProducer_setCallback(void * jarg1, void * jarg2) { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ; + + arg1 = (ProxyAudioProducer *)jarg1; + arg2 = (ProxyAudioProducerCallback *)jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_ProxyAudioProducer_getMediaSessionId(void * jarg1) { + unsigned long long jresult ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + uint64_t result; + + arg1 = (ProxyAudioProducer *)jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyAudioProducer_registerPlugin() { + unsigned int jresult ; + bool result; + + result = (bool)ProxyAudioProducer::registerPlugin(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_ProxyVideoProducerCallback() { + void * jresult ; + ProxyVideoProducerCallback *result = 0 ; + + result = (ProxyVideoProducerCallback *)new SwigDirector_ProxyVideoProducerCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyVideoProducerCallback(void * jarg1) { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_prepare(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(void * jarg1, int jarg2, int jarg3, int jarg4) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyVideoProducerCallback::prepare(arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_start(void * jarg1) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + result = (int)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(void * jarg1) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_pause(void * jarg1) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + result = (int)(arg1)->pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(void * jarg1) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::pause(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_stop(void * jarg1) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + result = (int)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(void * jarg1) { + int jresult ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + arg1 = (ProxyVideoProducerCallback *)jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoProducerCallback_director_connect(void *objarg, SwigDirector_ProxyVideoProducerCallback::SWIG_Callback0_t callback0, SwigDirector_ProxyVideoProducerCallback::SWIG_Callback1_t callback1, SwigDirector_ProxyVideoProducerCallback::SWIG_Callback2_t callback2, SwigDirector_ProxyVideoProducerCallback::SWIG_Callback3_t callback3) { + ProxyVideoProducerCallback *obj = (ProxyVideoProducerCallback *)objarg; + SwigDirector_ProxyVideoProducerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_ProxyVideoProducer(void * jarg1) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + + arg1 = (ProxyVideoProducer *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducer_getRotation(void * jarg1) { + int jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int result; + + arg1 = (ProxyVideoProducer *)jarg1; + result = (int)((ProxyVideoProducer const *)arg1)->getRotation(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoProducer_setRotation(void * jarg1, int jarg2) { + unsigned int jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int arg2 ; + bool result; + + arg1 = (ProxyVideoProducer *)jarg1; + arg2 = (int)jarg2; + result = (bool)(arg1)->setRotation(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoProducer_getMirror(void * jarg1) { + unsigned int jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool result; + + arg1 = (ProxyVideoProducer *)jarg1; + result = (bool)((ProxyVideoProducer const *)arg1)->getMirror(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoProducer_setMirror(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool arg2 ; + bool result; + + arg1 = (ProxyVideoProducer *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setMirror(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoProducer_setActualCameraOutputSize(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + unsigned int jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + bool result; + + arg1 = (ProxyVideoProducer *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_ProxyVideoProducer_push(void * jarg1, void * jarg2, unsigned int jarg3) { + int jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + int result; + + arg1 = (ProxyVideoProducer *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->push((void const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoProducer_setCallback(void * jarg1, void * jarg2) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ; + + arg1 = (ProxyVideoProducer *)jarg1; + arg2 = (ProxyVideoProducerCallback *)jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_ProxyVideoProducer_getMediaSessionId(void * jarg1) { + unsigned long long jresult ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + uint64_t result; + + arg1 = (ProxyVideoProducer *)jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ProxyVideoProducer_registerPlugin() { + unsigned int jresult ; + bool result; + + result = (bool)ProxyVideoProducer::registerPlugin(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_ProxyVideoProducer_setDefaultChroma(int jarg1) { + tmedia_chroma_t arg1 ; + + arg1 = (tmedia_chroma_t)jarg1; + ProxyVideoProducer::setDefaultChroma(arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipCallback() { + void * jresult ; + SipCallback *result = 0 ; + + result = (SipCallback *)new SwigDirector_SipCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipCallback(void * jarg1) { + SipCallback *arg1 = (SipCallback *) 0 ; + + arg1 = (SipCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnDialogEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (DialogEvent *)jarg2; + result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnDialogEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (DialogEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnDialogEvent((DialogEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnStackEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (StackEvent *)jarg2; + result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnStackEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (StackEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnStackEvent((StackEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnInviteEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (InviteEvent *)jarg2; + result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnInviteEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (InviteEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnInviteEvent((InviteEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnMessagingEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (MessagingEvent *)jarg2; + result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnMessagingEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (MessagingEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnMessagingEvent((MessagingEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnInfoEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (InfoEvent *)jarg2; + result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnInfoEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (InfoEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnInfoEvent((InfoEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnOptionsEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (OptionsEvent *)jarg2; + result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnOptionsEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (OptionsEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnOptionsEvent((OptionsEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnPublicationEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (PublicationEvent *)jarg2; + result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnPublicationEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (PublicationEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnPublicationEvent((PublicationEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnRegistrationEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (RegistrationEvent *)jarg2; + result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnRegistrationEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (RegistrationEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnRegistrationEvent((RegistrationEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionEvent(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (SubscriptionEvent *)jarg2; + result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SipCallback_OnSubscriptionEventSwigExplicitSipCallback(void * jarg1, void * jarg2) { + int jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + arg1 = (SipCallback *)jarg1; + arg2 = (SubscriptionEvent *)jarg2; + result = (int)(arg1)->SipCallback::OnSubscriptionEvent((SubscriptionEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SipCallback_director_connect(void *objarg, SwigDirector_SipCallback::SWIG_Callback0_t callback0, SwigDirector_SipCallback::SWIG_Callback1_t callback1, SwigDirector_SipCallback::SWIG_Callback2_t callback2, SwigDirector_SipCallback::SWIG_Callback3_t callback3, SwigDirector_SipCallback::SWIG_Callback4_t callback4, SwigDirector_SipCallback::SWIG_Callback5_t callback5, SwigDirector_SipCallback::SWIG_Callback6_t callback6, SwigDirector_SipCallback::SWIG_Callback7_t callback7, SwigDirector_SipCallback::SWIG_Callback8_t callback8) { + SipCallback *obj = (SipCallback *)objarg; + SwigDirector_SipCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6, callback7, callback8); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SafeObject() { + void * jresult ; + SafeObject *result = 0 ; + + result = (SafeObject *)new SafeObject(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SafeObject(void * jarg1) { + SafeObject *arg1 = (SafeObject *) 0 ; + + arg1 = (SafeObject *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_Lock(void * jarg1) { + int jresult ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + arg1 = (SafeObject *)jarg1; + result = (int)((SafeObject const *)arg1)->Lock(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SafeObject_UnLock(void * jarg1) { + int jresult ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + arg1 = (SafeObject *)jarg1; + result = (int)((SafeObject const *)arg1)->UnLock(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SipStack(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + SipStack *result = 0 ; + + arg1 = (SipCallback *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SipStack(void * jarg1) { + SipStack *arg1 = (SipStack *) 0 ; + + arg1 = (SipStack *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_start(void * jarg1) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + result = (bool)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setDebugCallback(void * jarg1, void * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + DDebugCallback *arg2 = (DDebugCallback *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (DDebugCallback *)jarg2; + result = (bool)(arg1)->setDebugCallback(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setDisplayName(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setDisplayName((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setRealm(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setRealm((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPI(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setIMPI((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIMPU(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setIMPU((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setPassword(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setPassword((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setAMF(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setAMF((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setOperatorId(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setOperatorId((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setProxyCSCF(void * jarg1, char * jarg2, unsigned short jarg3, char * jarg4, char * jarg5) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned short)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalIP__SWIG_0(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalIP__SWIG_1(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalPort__SWIG_0(void * jarg1, unsigned short jarg2, char * jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (unsigned short)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setLocalPort__SWIG_1(void * jarg1, unsigned short jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (unsigned short)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setEarlyIMS(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setEarlyIMS(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_removeHeader(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addDnsServer(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addDnsServer((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setDnsDiscovery(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setDnsDiscovery(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setAoR(void * jarg1, char * jarg2, int jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (int)jarg3; + result = (bool)(arg1)->setAoR((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSigCompParams(void * jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4, unsigned int jarg5) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + bool arg5 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (unsigned int)jarg4; + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_addSigCompCompartment(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_removeSigCompCompartment(void * jarg1, char * jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSTUNEnabledForICE(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSTUNEnabledForICE(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSTUNServer(void * jarg1, char * jarg2, unsigned short jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned short)jarg3; + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSTUNCred(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSTUNEnabled(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSTUNEnabled(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setTLSSecAgree(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setTLSSecAgree(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSSLCertificates__SWIG_0(void * jarg1, char * jarg2, char * jarg3, char * jarg4, unsigned int jarg5) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSSLCertificates__SWIG_1(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSSLCretificates__SWIG_0(void * jarg1, char * jarg2, char * jarg3, char * jarg4, unsigned int jarg5) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setSSLCretificates__SWIG_1(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIPSecSecAgree(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setIPSecSecAgree(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setIPSecParameters(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipStack_dnsENUM(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + char * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *result = 0 ; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipStack_dnsNaptrSrv(void * jarg1, char * jarg2, char * jarg3, unsigned short * jarg4) { + char * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned short *arg4 = (unsigned short *) 0 ; + char *result = 0 ; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (unsigned short *)jarg4; + result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipStack_dnsSrv(void * jarg1, char * jarg2, unsigned short * jarg3) { + char * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + char *result = 0 ; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned short *)jarg3; + result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setMaxFDs(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (SipStack *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setMaxFDs(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipStack_getLocalIPnPort(void * jarg1, char * jarg2, unsigned short * jarg3) { + char * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + char *result = 0 ; + + arg1 = (SipStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned short *)jarg3; + result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SipStack_getPreferredIdentity(void * jarg1) { + char * jresult ; + SipStack *arg1 = (SipStack *) 0 ; + char *result = 0 ; + + arg1 = (SipStack *)jarg1; + result = (char *)(arg1)->getPreferredIdentity(); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_isValid(void * jarg1) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + result = (bool)(arg1)->isValid(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_stop(void * jarg1) { + unsigned int jresult ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + arg1 = (SipStack *)jarg1; + result = (bool)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_initialize() { + unsigned int jresult ; + bool result; + + result = (bool)SipStack::initialize(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_deInitialize() { + unsigned int jresult ; + bool result; + + result = (bool)SipStack::deInitialize(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SipStack_setCodecs(int jarg1) { + tdav_codec_id_t arg1 ; + + arg1 = (tdav_codec_id_t)jarg1; + SipStack::setCodecs(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_SipStack_setCodecs_2(long long jarg1) { + int64_t arg1 ; + + arg1 = (int64_t)jarg1; + SipStack::setCodecs_2(arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setCodecPriority(int jarg1, int jarg2) { + unsigned int jresult ; + tdav_codec_id_t arg1 ; + int arg2 ; + bool result; + + arg1 = (tdav_codec_id_t)jarg1; + arg2 = (int)jarg2; + result = (bool)SipStack::setCodecPriority(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_setCodecPriority_2(int jarg1, int jarg2) { + unsigned int jresult ; + int arg1 ; + int arg2 ; + bool result; + + arg1 = (int)jarg1; + arg2 = (int)jarg2; + result = (bool)SipStack::setCodecPriority_2(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_isCodecSupported(int jarg1) { + unsigned int jresult ; + tdav_codec_id_t arg1 ; + bool result; + + arg1 = (tdav_codec_id_t)jarg1; + result = (bool)SipStack::isCodecSupported(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SipStack_isIPSecSupported() { + unsigned int jresult ; + bool result; + + result = (bool)SipStack::isIPSecSupported(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_transport_error_get() { + int jresult ; + int result; + + result = (int)(702); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_global_error_get() { + int jresult ; + int result; + + result = (int)(703); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_message_error_get() { + int jresult ; + int result; + + result = (int)(704); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_request_incoming_get() { + int jresult ; + int result; + + result = (int)(800); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_request_outgoing_get() { + int jresult ; + int result; + + result = (int)(802); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_request_cancelled_get() { + int jresult ; + int result; + + result = (int)(803); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_request_sent_get() { + int jresult ; + int result; + + result = (int)(804); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_connecting_get() { + int jresult ; + int result; + + result = (int)(900); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_connected_get() { + int jresult ; + int result; + + result = (int)(901); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_terminating_get() { + int jresult ; + int result; + + result = (int)(902); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_dialog_terminated_get() { + int jresult ; + int result; + + result = (int)(903); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_starting_get() { + int jresult ; + int result; + + result = (int)(950); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_started_get() { + int jresult ; + int result; + + result = (int)(951); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_stopping_get() { + int jresult ; + int result; + + result = (int)(952); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_stopped_get() { + int jresult ; + int result; + + result = (int)(953); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_failed_to_start_get() { + int jresult ; + int result; + + result = (int)(954); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_failed_to_stop_get() { + int jresult ; + int result; + + result = (int)(955); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_tsip_event_code_stack_disconnected_get() { + int jresult ; + int result; + + result = (int)(956); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_XcapSelector(void * jarg1) { + void * jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + XcapSelector *result = 0 ; + + arg1 = (XcapStack *)jarg1; + result = (XcapSelector *)new XcapSelector(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_XcapSelector(void * jarg1) { + XcapSelector *arg1 = (XcapSelector *) 0 ; + + arg1 = (XcapSelector *)jarg1; + delete arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapSelector_setAUID(void * jarg1, char * jarg2) { + void * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + XcapSelector *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + arg2 = (char *)jarg2; + result = (XcapSelector *)(arg1)->setAUID((char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapSelector_setName(void * jarg1, char * jarg2) { + void * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + XcapSelector *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + arg2 = (char *)jarg2; + result = (XcapSelector *)(arg1)->setName((char const *)arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapSelector_setAttribute(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + XcapSelector *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapSelector_setPos(void * jarg1, char * jarg2, unsigned int jarg3) { + void * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + XcapSelector *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned int)jarg3; + result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapSelector_setPosAttribute(void * jarg1, char * jarg2, unsigned int jarg3, char * jarg4, char * jarg5) { + void * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + XcapSelector *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapSelector_setNamespace(void * jarg1, char * jarg2, char * jarg3) { + void * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + XcapSelector *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_XcapSelector_getString(void * jarg1) { + char * jresult ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *result = 0 ; + + arg1 = (XcapSelector *)jarg1; + result = (char *)(arg1)->getString(); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_XcapSelector_reset(void * jarg1) { + XcapSelector *arg1 = (XcapSelector *) 0 ; + + arg1 = (XcapSelector *)jarg1; + (arg1)->reset(); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_XcapMessage() { + void * jresult ; + XcapMessage *result = 0 ; + + result = (XcapMessage *)new XcapMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_XcapMessage(void * jarg1) { + XcapMessage *arg1 = (XcapMessage *) 0 ; + + arg1 = (XcapMessage *)jarg1; + delete arg1; +} + + +SWIGEXPORT short SWIGSTDCALL CSharp_XcapMessage_getCode(void * jarg1) { + short jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + short result; + + arg1 = (XcapMessage *)jarg1; + result = (short)((XcapMessage const *)arg1)->getCode(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_XcapMessage_getPhrase(void * jarg1) { + char * jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *result = 0 ; + + arg1 = (XcapMessage *)jarg1; + result = (char *)((XcapMessage const *)arg1)->getPhrase(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_XcapMessage_getXcapHeaderValue__SWIG_0(void * jarg1, char * jarg2, unsigned int jarg3) { + char * jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *result = 0 ; + + arg1 = (XcapMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (unsigned int)jarg3; + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_XcapMessage_getXcapHeaderValue__SWIG_1(void * jarg1, char * jarg2) { + char * jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (XcapMessage *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_XcapMessage_getXcapHeaderParamValue__SWIG_0(void * jarg1, char * jarg2, char * jarg3, unsigned int jarg4) { + char * jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + char *result = 0 ; + + arg1 = (XcapMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_XcapMessage_getXcapHeaderParamValue__SWIG_1(void * jarg1, char * jarg2, char * jarg3) { + char * jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (XcapMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapMessage_getXcapContentLength(void * jarg1) { + unsigned int jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + unsigned int result; + + arg1 = (XcapMessage *)jarg1; + result = (unsigned int)(arg1)->getXcapContentLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapMessage_getXcapContent(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (XcapMessage *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getXcapContent(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_XcapEvent(void * jarg1) { + XcapEvent *arg1 = (XcapEvent *) 0 ; + + arg1 = (XcapEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_XcapEvent_getType(void * jarg1) { + int jresult ; + XcapEvent *arg1 = (XcapEvent *) 0 ; + thttp_event_type_t result; + + arg1 = (XcapEvent *)jarg1; + result = (thttp_event_type_t)(arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_XcapEvent_getXcapMessage(void * jarg1) { + void * jresult ; + XcapEvent *arg1 = (XcapEvent *) 0 ; + XcapMessage *result = 0 ; + + arg1 = (XcapEvent *)jarg1; + result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_XcapCallback() { + void * jresult ; + XcapCallback *result = 0 ; + + result = (XcapCallback *)new SwigDirector_XcapCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_XcapCallback(void * jarg1) { + XcapCallback *arg1 = (XcapCallback *) 0 ; + + arg1 = (XcapCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_XcapCallback_onEvent(void * jarg1, void * jarg2) { + int jresult ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + int result; + + arg1 = (XcapCallback *)jarg1; + arg2 = (XcapEvent *)jarg2; + result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_XcapCallback_onEventSwigExplicitXcapCallback(void * jarg1, void * jarg2) { + int jresult ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + int result; + + arg1 = (XcapCallback *)jarg1; + arg2 = (XcapEvent *)jarg2; + result = (int)((XcapCallback const *)arg1)->XcapCallback::onEvent((XcapEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_XcapCallback_director_connect(void *objarg, SwigDirector_XcapCallback::SWIG_Callback0_t callback0) { + XcapCallback *obj = (XcapCallback *)objarg; + SwigDirector_XcapCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_XcapStack(void * jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + XcapStack *result = 0 ; + + arg1 = (XcapCallback *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_XcapStack(void * jarg1) { + XcapStack *arg1 = (XcapStack *) 0 ; + + arg1 = (XcapStack *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_registerAUID(void * jarg1, char * jarg2, char * jarg3, char * jarg4, char * jarg5, unsigned int jarg6) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool arg6 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + arg5 = (char *)jarg5; + arg6 = jarg6 ? true : false; + result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_start(void * jarg1) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + result = (bool)(arg1)->start(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_setCredentials(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_setXcapRoot(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setXcapRoot((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_setLocalIP(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_setLocalPort(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_addHeader(void * jarg1, char * jarg2, char * jarg3) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_removeHeader(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_setTimeout(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setTimeout(arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_getDocument(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->getDocument((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_getElement(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->getElement((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_getAttribute(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->getAttribute((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_deleteDocument(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->deleteDocument((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_deleteElement(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->deleteElement((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_deleteAttribute(void * jarg1, char * jarg2) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + result = (bool)(arg1)->deleteAttribute((char const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_putDocument(void * jarg1, char * jarg2, void * jarg3, unsigned int jarg4, char * jarg5) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + char *arg5 = (char *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = jarg3; + arg4 = (unsigned int)jarg4; + arg5 = (char *)jarg5; + result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_putElement(void * jarg1, char * jarg2, void * jarg3, unsigned int jarg4) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = jarg3; + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_putAttribute(void * jarg1, char * jarg2, void * jarg3, unsigned int jarg4) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + arg1 = (XcapStack *)jarg1; + arg2 = (char *)jarg2; + arg3 = jarg3; + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_XcapStack_stop(void * jarg1) { + unsigned int jresult ; + XcapStack *arg1 = (XcapStack *) 0 ; + bool result; + + arg1 = (XcapStack *)jarg1; + result = (bool)(arg1)->stop(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_RPMessage() { + void * jresult ; + RPMessage *result = 0 ; + + result = (RPMessage *)new RPMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_RPMessage(void * jarg1) { + RPMessage *arg1 = (RPMessage *) 0 ; + + arg1 = (RPMessage *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_RPMessage_getType(void * jarg1) { + int jresult ; + RPMessage *arg1 = (RPMessage *) 0 ; + twrap_rpmessage_type_t result; + + arg1 = (RPMessage *)jarg1; + result = (twrap_rpmessage_type_t)(arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RPMessage_getPayloadLength(void * jarg1) { + unsigned int jresult ; + RPMessage *arg1 = (RPMessage *) 0 ; + unsigned int result; + + arg1 = (RPMessage *)jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_RPMessage_getPayload(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + RPMessage *arg1 = (RPMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (RPMessage *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_SMSData() { + void * jresult ; + SMSData *result = 0 ; + + result = (SMSData *)new SMSData(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SMSData(void * jarg1) { + SMSData *arg1 = (SMSData *) 0 ; + + arg1 = (SMSData *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SMSData_getType(void * jarg1) { + int jresult ; + SMSData *arg1 = (SMSData *) 0 ; + twrap_sms_type_t result; + + arg1 = (SMSData *)jarg1; + result = (twrap_sms_type_t)(arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_SMSData_getMR(void * jarg1) { + int jresult ; + SMSData *arg1 = (SMSData *) 0 ; + int result; + + arg1 = (SMSData *)jarg1; + result = (int)(arg1)->getMR(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SMSData_getPayloadLength(void * jarg1) { + unsigned int jresult ; + SMSData *arg1 = (SMSData *) 0 ; + unsigned int result; + + arg1 = (SMSData *)jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_SMSData_getPayload(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + SMSData *arg1 = (SMSData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (SMSData *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SMSData_getOA(void * jarg1) { + char * jresult ; + SMSData *arg1 = (SMSData *) 0 ; + char *result = 0 ; + + arg1 = (SMSData *)jarg1; + result = (char *)(arg1)->getOA(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_SMSData_getDA(void * jarg1) { + char * jresult ; + SMSData *arg1 = (SMSData *) 0 ; + char *result = 0 ; + + arg1 = (SMSData *)jarg1; + result = (char *)(arg1)->getDA(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SMSEncoder_encodeSubmit(int jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + RPMessage *result = 0 ; + + arg1 = (int)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SMSEncoder_encodeDeliver(int jarg1, char * jarg2, char * jarg3, char * jarg4) { + void * jresult ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + RPMessage *result = 0 ; + + arg1 = (int)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = (char *)jarg4; + result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SMSEncoder_encodeACK(int jarg1, char * jarg2, char * jarg3, unsigned int jarg4) { + void * jresult ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + RPMessage *result = 0 ; + + arg1 = (int)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = jarg4 ? true : false; + result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SMSEncoder_encodeError(int jarg1, char * jarg2, char * jarg3, unsigned int jarg4) { + void * jresult ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + RPMessage *result = 0 ; + + arg1 = (int)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + arg4 = jarg4 ? true : false; + result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_SMSEncoder_decode(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + void * jresult ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + bool arg3 ; + SMSData *result = 0 ; + + arg1 = jarg1; + arg2 = (unsigned int)jarg2; + arg3 = jarg3 ? true : false; + result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_SMSEncoder(void * jarg1) { + SMSEncoder *arg1 = (SMSEncoder *) 0 ; + + arg1 = (SMSEncoder *)jarg1; + delete arg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_MsrpMessage() { + void * jresult ; + MsrpMessage *result = 0 ; + + result = (MsrpMessage *)new MsrpMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MsrpMessage(void * jarg1) { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + + arg1 = (MsrpMessage *)jarg1; + delete arg1; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpMessage_isRequest(void * jarg1) { + unsigned int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + arg1 = (MsrpMessage *)jarg1; + result = (bool)(arg1)->isRequest(); + jresult = result; + return jresult; +} + + +SWIGEXPORT short SWIGSTDCALL CSharp_MsrpMessage_getCode(void * jarg1) { + short jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + short result; + + arg1 = (MsrpMessage *)jarg1; + result = (short)(arg1)->getCode(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_MsrpMessage_getPhrase(void * jarg1) { + char * jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *result = 0 ; + + arg1 = (MsrpMessage *)jarg1; + result = (char *)(arg1)->getPhrase(); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MsrpMessage_getRequestType(void * jarg1) { + int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + tmsrp_request_type_t result; + + arg1 = (MsrpMessage *)jarg1; + result = (tmsrp_request_type_t)(arg1)->getRequestType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_MsrpMessage_getByteRange(void * jarg1, long long * jarg2, long long * jarg3, long long * jarg4) { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + int64_t *arg2 = (int64_t *) 0 ; + int64_t *arg3 = (int64_t *) 0 ; + int64_t *arg4 = (int64_t *) 0 ; + + arg1 = (MsrpMessage *)jarg1; + arg2 = (int64_t *)jarg2; + arg3 = (int64_t *)jarg3; + arg4 = (int64_t *)jarg4; + (arg1)->getByteRange(arg2,arg3,arg4); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpMessage_isLastChunck(void * jarg1) { + unsigned int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + arg1 = (MsrpMessage *)jarg1; + result = (bool)(arg1)->isLastChunck(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpMessage_isFirstChunck(void * jarg1) { + unsigned int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + arg1 = (MsrpMessage *)jarg1; + result = (bool)(arg1)->isFirstChunck(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpMessage_isSuccessReport(void * jarg1) { + unsigned int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + arg1 = (MsrpMessage *)jarg1; + result = (bool)(arg1)->isSuccessReport(); + jresult = result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_MsrpMessage_getMsrpHeaderValue(void * jarg1, char * jarg2) { + char * jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + arg1 = (MsrpMessage *)jarg1; + arg2 = (char *)jarg2; + result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_MsrpMessage_getMsrpHeaderParamValue(void * jarg1, char * jarg2, char * jarg3) { + char * jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + arg1 = (MsrpMessage *)jarg1; + arg2 = (char *)jarg2; + arg3 = (char *)jarg3; + result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3); + jresult = SWIG_csharp_string_callback((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpMessage_getMsrpContentLength(void * jarg1) { + unsigned int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + unsigned int result; + + arg1 = (MsrpMessage *)jarg1; + result = (unsigned int)(arg1)->getMsrpContentLength(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_MsrpMessage_getMsrpContent(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + arg1 = (MsrpMessage *)jarg1; + arg2 = jarg2; + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MsrpEvent(void * jarg1) { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + + arg1 = (MsrpEvent *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MsrpEvent_getType(void * jarg1) { + int jresult ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + tmsrp_event_type_t result; + + arg1 = (MsrpEvent *)jarg1; + result = (tmsrp_event_type_t)(arg1)->getType(); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MsrpEvent_getSipSession(void * jarg1) { + void * jresult ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + MsrpSession *result = 0 ; + + arg1 = (MsrpEvent *)jarg1; + result = (MsrpSession *)(arg1)->getSipSession(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_MsrpEvent_getMessage(void * jarg1) { + void * jresult ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + MsrpMessage *result = 0 ; + + arg1 = (MsrpEvent *)jarg1; + result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_new_MsrpCallback() { + void * jresult ; + MsrpCallback *result = 0 ; + + result = (MsrpCallback *)new SwigDirector_MsrpCallback(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_delete_MsrpCallback(void * jarg1) { + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + + arg1 = (MsrpCallback *)jarg1; + delete arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MsrpCallback_OnEvent(void * jarg1, void * jarg2) { + int jresult ; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + int result; + + arg1 = (MsrpCallback *)jarg1; + arg2 = (MsrpEvent *)jarg2; + result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_MsrpCallback_OnEventSwigExplicitMsrpCallback(void * jarg1, void * jarg2) { + int jresult ; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + int result; + + arg1 = (MsrpCallback *)jarg1; + arg2 = (MsrpEvent *)jarg2; + result = (int)(arg1)->MsrpCallback::OnEvent((MsrpEvent const *)arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_MsrpCallback_director_connect(void *objarg, SwigDirector_MsrpCallback::SWIG_Callback0_t callback0) { + MsrpCallback *obj = (MsrpCallback *)objarg; + SwigDirector_MsrpCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(callback0); + } +} + + +SWIGEXPORT MediaContent * SWIGSTDCALL CSharp_MediaContentCPIM_SWIGUpcast(MediaContentCPIM *jarg1) { + return (MediaContent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_DialogEvent_SWIGUpcast(DialogEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_StackEvent_SWIGUpcast(StackEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_InviteEvent_SWIGUpcast(InviteEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_MessagingEvent_SWIGUpcast(MessagingEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_InfoEvent_SWIGUpcast(InfoEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_OptionsEvent_SWIGUpcast(OptionsEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_PublicationEvent_SWIGUpcast(PublicationEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_RegistrationEvent_SWIGUpcast(RegistrationEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipEvent * SWIGSTDCALL CSharp_SubscriptionEvent_SWIGUpcast(SubscriptionEvent *jarg1) { + return (SipEvent *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_InviteSession_SWIGUpcast(InviteSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT InviteSession * SWIGSTDCALL CSharp_CallSession_SWIGUpcast(CallSession *jarg1) { + return (InviteSession *)jarg1; +} + +SWIGEXPORT InviteSession * SWIGSTDCALL CSharp_MsrpSession_SWIGUpcast(MsrpSession *jarg1) { + return (InviteSession *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_MessagingSession_SWIGUpcast(MessagingSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_InfoSession_SWIGUpcast(InfoSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_OptionsSession_SWIGUpcast(OptionsSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_PublicationSession_SWIGUpcast(PublicationSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_RegistrationSession_SWIGUpcast(RegistrationSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT SipSession * SWIGSTDCALL CSharp_SubscriptionSession_SWIGUpcast(SubscriptionSession *jarg1) { + return (SipSession *)jarg1; +} + +SWIGEXPORT ProxyPlugin * SWIGSTDCALL CSharp_ProxyAudioConsumer_SWIGUpcast(ProxyAudioConsumer *jarg1) { + return (ProxyPlugin *)jarg1; +} + +SWIGEXPORT ProxyPlugin * SWIGSTDCALL CSharp_ProxyVideoConsumer_SWIGUpcast(ProxyVideoConsumer *jarg1) { + return (ProxyPlugin *)jarg1; +} + +SWIGEXPORT ProxyPlugin * SWIGSTDCALL CSharp_ProxyAudioProducer_SWIGUpcast(ProxyAudioProducer *jarg1) { + return (ProxyPlugin *)jarg1; +} + +SWIGEXPORT ProxyPlugin * SWIGSTDCALL CSharp_ProxyVideoProducer_SWIGUpcast(ProxyVideoProducer *jarg1) { + return (ProxyPlugin *)jarg1; +} + +SWIGEXPORT SafeObject * SWIGSTDCALL CSharp_SipStack_SWIGUpcast(SipStack *jarg1) { + return (SafeObject *)jarg1; +} + +#ifdef __cplusplus +} +#endif + diff --git a/bindings/csharp/tinyWRAP_wrap.h b/bindings/csharp/tinyWRAP_wrap.h new file mode 100644 index 0000000..1433410 --- /dev/null +++ b/bindings/csharp/tinyWRAP_wrap.h @@ -0,0 +1,246 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_tinyWRAP_WRAP_H_ +#define SWIG_tinyWRAP_WRAP_H_ + +class SwigDirector_DDebugCallback : public DDebugCallback, public Swig::Director { + +public: + SwigDirector_DDebugCallback(); + virtual ~SwigDirector_DDebugCallback(); + virtual int OnDebugInfo(char const *message); + virtual int OnDebugWarn(char const *message); + virtual int OnDebugError(char const *message); + virtual int OnDebugFatal(char const *message); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(char *); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(char *); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(char *); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(char *); + void swig_connect_director(SWIG_Callback0_t callbackOnDebugInfo, SWIG_Callback1_t callbackOnDebugWarn, SWIG_Callback2_t callbackOnDebugError, SWIG_Callback3_t callbackOnDebugFatal); + +private: + SWIG_Callback0_t swig_callbackOnDebugInfo; + SWIG_Callback1_t swig_callbackOnDebugWarn; + SWIG_Callback2_t swig_callbackOnDebugError; + SWIG_Callback3_t swig_callbackOnDebugFatal; + 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: + SwigDirector_ProxyPluginMgrCallback(); + virtual ~SwigDirector_ProxyPluginMgrCallback(); + virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type); + virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(unsigned long long, int); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(unsigned long long, int); + void swig_connect_director(SWIG_Callback0_t callbackOnPluginCreated, SWIG_Callback1_t callbackOnPluginDestroyed); + +private: + SWIG_Callback0_t swig_callbackOnPluginCreated; + SWIG_Callback1_t swig_callbackOnPluginDestroyed; + void swig_init_callbacks(); +}; + +class SwigDirector_ProxyAudioConsumerCallback : public ProxyAudioConsumerCallback, public Swig::Director { + +public: + SwigDirector_ProxyAudioConsumerCallback(); + virtual ~SwigDirector_ProxyAudioConsumerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(int, int, int); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(); + void swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackstart, SWIG_Callback2_t callbackpause, SWIG_Callback3_t callbackstop); + +private: + SWIG_Callback0_t swig_callbackprepare; + SWIG_Callback1_t swig_callbackstart; + SWIG_Callback2_t swig_callbackpause; + SWIG_Callback3_t swig_callbackstop; + void swig_init_callbacks(); +}; + +class SwigDirector_ProxyVideoConsumerCallback : public ProxyVideoConsumerCallback, public Swig::Director { + +public: + SwigDirector_ProxyVideoConsumerCallback(); + virtual ~SwigDirector_ProxyVideoConsumerCallback(); + virtual int prepare(int nWidth, int nHeight, int nFps); + virtual int consume(ProxyVideoFrame const *frame); + virtual int bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize); + virtual int start(); + virtual int pause(); + virtual int stop(); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(int, int, int); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(unsigned int, unsigned int); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback4_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback5_t)(); + void swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackconsume, SWIG_Callback2_t callbackbufferCopied, SWIG_Callback3_t callbackstart, SWIG_Callback4_t callbackpause, SWIG_Callback5_t callbackstop); + +private: + SWIG_Callback0_t swig_callbackprepare; + SWIG_Callback1_t swig_callbackconsume; + SWIG_Callback2_t swig_callbackbufferCopied; + SWIG_Callback3_t swig_callbackstart; + SWIG_Callback4_t swig_callbackpause; + SWIG_Callback5_t swig_callbackstop; + void swig_init_callbacks(); +}; + +class SwigDirector_ProxyAudioProducerCallback : public ProxyAudioProducerCallback, public Swig::Director { + +public: + SwigDirector_ProxyAudioProducerCallback(); + virtual ~SwigDirector_ProxyAudioProducerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); + virtual int fillPushBuffer(); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(int, int, int); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback4_t)(); + void swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackstart, SWIG_Callback2_t callbackpause, SWIG_Callback3_t callbackstop, SWIG_Callback4_t callbackfillPushBuffer); + +private: + SWIG_Callback0_t swig_callbackprepare; + SWIG_Callback1_t swig_callbackstart; + SWIG_Callback2_t swig_callbackpause; + SWIG_Callback3_t swig_callbackstop; + SWIG_Callback4_t swig_callbackfillPushBuffer; + void swig_init_callbacks(); +}; + +class SwigDirector_ProxyVideoProducerCallback : public ProxyVideoProducerCallback, public Swig::Director { + +public: + SwigDirector_ProxyVideoProducerCallback(); + virtual ~SwigDirector_ProxyVideoProducerCallback(); + virtual int prepare(int width, int height, int fps); + virtual int start(); + virtual int pause(); + virtual int stop(); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(int, int, int); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(); + void swig_connect_director(SWIG_Callback0_t callbackprepare, SWIG_Callback1_t callbackstart, SWIG_Callback2_t callbackpause, SWIG_Callback3_t callbackstop); + +private: + SWIG_Callback0_t swig_callbackprepare; + SWIG_Callback1_t swig_callbackstart; + SWIG_Callback2_t swig_callbackpause; + SWIG_Callback3_t swig_callbackstop; + void swig_init_callbacks(); +}; + +class SwigDirector_SipCallback : public SipCallback, public Swig::Director { + +public: + SwigDirector_SipCallback(); + virtual ~SwigDirector_SipCallback(); + virtual int OnDialogEvent(DialogEvent const *e); + virtual int OnStackEvent(StackEvent const *e); + virtual int OnInviteEvent(InviteEvent const *e); + virtual int OnMessagingEvent(MessagingEvent const *e); + virtual int OnInfoEvent(InfoEvent const *e); + virtual int OnOptionsEvent(OptionsEvent const *e); + virtual int OnPublicationEvent(PublicationEvent const *e); + virtual int OnRegistrationEvent(RegistrationEvent const *e); + virtual int OnSubscriptionEvent(SubscriptionEvent const *e); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback1_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback2_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback3_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback4_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback5_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback6_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback7_t)(void *); + typedef int (SWIGSTDCALL* SWIG_Callback8_t)(void *); + void swig_connect_director(SWIG_Callback0_t callbackOnDialogEvent, SWIG_Callback1_t callbackOnStackEvent, SWIG_Callback2_t callbackOnInviteEvent, SWIG_Callback3_t callbackOnMessagingEvent, SWIG_Callback4_t callbackOnInfoEvent, SWIG_Callback5_t callbackOnOptionsEvent, SWIG_Callback6_t callbackOnPublicationEvent, SWIG_Callback7_t callbackOnRegistrationEvent, SWIG_Callback8_t callbackOnSubscriptionEvent); + +private: + SWIG_Callback0_t swig_callbackOnDialogEvent; + SWIG_Callback1_t swig_callbackOnStackEvent; + SWIG_Callback2_t swig_callbackOnInviteEvent; + SWIG_Callback3_t swig_callbackOnMessagingEvent; + SWIG_Callback4_t swig_callbackOnInfoEvent; + SWIG_Callback5_t swig_callbackOnOptionsEvent; + SWIG_Callback6_t swig_callbackOnPublicationEvent; + SWIG_Callback7_t swig_callbackOnRegistrationEvent; + SWIG_Callback8_t swig_callbackOnSubscriptionEvent; + void swig_init_callbacks(); +}; + +class SwigDirector_XcapCallback : public XcapCallback, public Swig::Director { + +public: + SwigDirector_XcapCallback(); + virtual ~SwigDirector_XcapCallback(); + virtual int onEvent(XcapEvent const *e) const; + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *); + void swig_connect_director(SWIG_Callback0_t callbackonEvent); + +private: + SWIG_Callback0_t swig_callbackonEvent; + void swig_init_callbacks(); +}; + +class SwigDirector_MsrpCallback : public MsrpCallback, public Swig::Director { + +public: + SwigDirector_MsrpCallback(); + virtual ~SwigDirector_MsrpCallback(); + virtual int OnEvent(MsrpEvent const *e); + + typedef int (SWIGSTDCALL* SWIG_Callback0_t)(void *); + void swig_connect_director(SWIG_Callback0_t callbackOnEvent); + +private: + SWIG_Callback0_t swig_callbackOnEvent; + void swig_init_callbacks(); +}; + + +#endif diff --git a/bindings/csharp/tmedia_bandwidth_level_t.cs b/bindings/csharp/tmedia_bandwidth_level_t.cs new file mode 100644 index 0000000..fbbaa4f --- /dev/null +++ b/bindings/csharp/tmedia_bandwidth_level_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_bandwidth_level_t { + tmedia_bl_low, + tmedia_bl_medium, + tmedia_bl_hight, + tmedia_bl_unrestricted +} + +} diff --git a/bindings/csharp/tmedia_chroma_t.cs b/bindings/csharp/tmedia_chroma_t.cs new file mode 100644 index 0000000..106fe19 --- /dev/null +++ b/bindings/csharp/tmedia_chroma_t.cs @@ -0,0 +1,27 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_chroma_t { + tmedia_chroma_none = 0, + tmedia_chroma_rgb24, + tmedia_chroma_bgr24, + tmedia_chroma_rgb32, + tmedia_chroma_rgb565le, + tmedia_chroma_rgb565be, + tmedia_chroma_nv12, + tmedia_chroma_nv21, + tmedia_chroma_yuv422p, + tmedia_chroma_uyvy422, + tmedia_chroma_yuv420p, + tmedia_chroma_mjpeg, + tmedia_chroma_yuyv422 +} + +} diff --git a/bindings/csharp/tmedia_codec_id_t.cs b/bindings/csharp/tmedia_codec_id_t.cs new file mode 100644 index 0000000..c09b74a --- /dev/null +++ b/bindings/csharp/tmedia_codec_id_t.cs @@ -0,0 +1,47 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_codec_id_t { + tmedia_codec_id_none = 0x00000000, + tmedia_codec_id_amr_nb_oa = 0x00000001 << 0, + tmedia_codec_id_amr_nb_be = 0x00000001 << 1, + tmedia_codec_id_amr_wb_oa = 0x00000001 << 2, + tmedia_codec_id_amr_wb_be = 0x00000001 << 3, + tmedia_codec_id_gsm = 0x00000001 << 4, + tmedia_codec_id_pcma = 0x00000001 << 5, + tmedia_codec_id_pcmu = 0x00000001 << 6, + tmedia_codec_id_ilbc = 0x00000001 << 7, + tmedia_codec_id_speex_nb = 0x00000001 << 8, + tmedia_codec_id_speex_wb = 0x00000001 << 9, + tmedia_codec_id_speex_uwb = 0x00000001 << 10, + tmedia_codec_id_bv16 = 0x00000001 << 11, + tmedia_codec_id_bv32 = 0x00000001 << 12, + tmedia_codec_id_opus = 0x00000001 << 13, + tmedia_codec_id_g729ab = 0x00000001 << 14, + tmedia_codec_id_g722 = 0x00000001 << 15, + tmedia_codec_id_h261 = 0x00010000 << 0, + tmedia_codec_id_h263 = 0x00010000 << 1, + tmedia_codec_id_h263p = 0x00010000 << 2, + tmedia_codec_id_h263pp = 0x00010000 << 3, + tmedia_codec_id_h264_bp = 0x00010000 << 4, + tmedia_codec_id_h264_mp = 0x00010000 << 5, + tmedia_codec_id_h264_hp = 0x00010000 << 6, + tmedia_codec_id_h264_bp10 = tmedia_codec_id_h264_bp, + tmedia_codec_id_h264_bp20 = tmedia_codec_id_h264_bp, + tmedia_codec_id_h264_bp30 = tmedia_codec_id_h264_bp, + tmedia_codec_id_h264_svc = 0x00010000 << 7, + tmedia_codec_id_theora = 0x00010000 << 8, + tmedia_codec_id_mp4ves_es = 0x00010000 << 9, + tmedia_codec_id_vp8 = 0x00010000 << 10, + tmedia_codec_id_t140 = 0x00010000 << 14, + tmedia_codec_id_red = 0x00010000 << 15 +} + +} diff --git a/bindings/csharp/tmedia_mode_t.cs b/bindings/csharp/tmedia_mode_t.cs new file mode 100644 index 0000000..c8b4fc4 --- /dev/null +++ b/bindings/csharp/tmedia_mode_t.cs @@ -0,0 +1,17 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_mode_t { + tmedia_mode_none, + tmedia_mode_optional, + tmedia_mode_mandatory +} + +} diff --git a/bindings/csharp/tmedia_pref_video_size_t.cs b/bindings/csharp/tmedia_pref_video_size_t.cs new file mode 100644 index 0000000..181c295 --- /dev/null +++ b/bindings/csharp/tmedia_pref_video_size_t.cs @@ -0,0 +1,29 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_pref_video_size_t { + tmedia_pref_video_size_sqcif, + tmedia_pref_video_size_qcif, + tmedia_pref_video_size_qvga, + tmedia_pref_video_size_cif, + tmedia_pref_video_size_hvga, + tmedia_pref_video_size_vga, + tmedia_pref_video_size_4cif, + tmedia_pref_video_size_wvga, + tmedia_pref_video_size_svga, + tmedia_pref_video_size_480p, + tmedia_pref_video_size_xga, + tmedia_pref_video_size_720p, + tmedia_pref_video_size_16cif, + tmedia_pref_video_size_1080p, + tmedia_pref_video_size_2160p +} + +} diff --git a/bindings/csharp/tmedia_profile_t.cs b/bindings/csharp/tmedia_profile_t.cs new file mode 100644 index 0000000..c440b72 --- /dev/null +++ b/bindings/csharp/tmedia_profile_t.cs @@ -0,0 +1,16 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_profile_t { + tmedia_profile_default, + tmedia_profile_rtcweb +} + +} diff --git a/bindings/csharp/tmedia_qos_strength_t.cs b/bindings/csharp/tmedia_qos_strength_t.cs new file mode 100644 index 0000000..97b5802 --- /dev/null +++ b/bindings/csharp/tmedia_qos_strength_t.cs @@ -0,0 +1,19 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_qos_strength_t { + tmedia_qos_strength_none, + tmedia_qos_strength_failure, + tmedia_qos_strength_unknown, + tmedia_qos_strength_optional, + tmedia_qos_strength_mandatory +} + +} diff --git a/bindings/csharp/tmedia_qos_stype_t.cs b/bindings/csharp/tmedia_qos_stype_t.cs new file mode 100644 index 0000000..d750e62 --- /dev/null +++ b/bindings/csharp/tmedia_qos_stype_t.cs @@ -0,0 +1,17 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_qos_stype_t { + tmedia_qos_stype_none, + tmedia_qos_stype_segmented, + tmedia_qos_stype_e2e +} + +} diff --git a/bindings/csharp/tmedia_srtp_mode_t.cs b/bindings/csharp/tmedia_srtp_mode_t.cs new file mode 100644 index 0000000..9d2a740 --- /dev/null +++ b/bindings/csharp/tmedia_srtp_mode_t.cs @@ -0,0 +1,17 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_srtp_mode_t { + tmedia_srtp_mode_none, + tmedia_srtp_mode_optional, + tmedia_srtp_mode_mandatory +} + +} diff --git a/bindings/csharp/tmedia_srtp_type_t.cs b/bindings/csharp/tmedia_srtp_type_t.cs new file mode 100644 index 0000000..07c0ced --- /dev/null +++ b/bindings/csharp/tmedia_srtp_type_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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_srtp_type_t { + tmedia_srtp_type_none = 0x00, + tmedia_srtp_type_sdes = 0x01, + tmedia_srtp_type_dtls = 0x02, + tmedia_srtp_type_sdes_dtls = (0x01|0x02) +} + +} diff --git a/bindings/csharp/tmedia_t140_data_type_t.cs b/bindings/csharp/tmedia_t140_data_type_t.cs new file mode 100644 index 0000000..2f7d8a8 --- /dev/null +++ b/bindings/csharp/tmedia_t140_data_type_t.cs @@ -0,0 +1,29 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 +} + +} diff --git a/bindings/csharp/tmsrp_event_type_t.cs b/bindings/csharp/tmsrp_event_type_t.cs new file mode 100644 index 0000000..c4435ff --- /dev/null +++ b/bindings/csharp/tmsrp_event_type_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tmsrp_event_type_t { + tmsrp_event_type_none, + tmsrp_event_type_connected, + tmsrp_event_type_disconnected, + tmsrp_event_type_message +} + +} diff --git a/bindings/csharp/tmsrp_request_type_t.cs b/bindings/csharp/tmsrp_request_type_t.cs new file mode 100644 index 0000000..6a62deb --- /dev/null +++ b/bindings/csharp/tmsrp_request_type_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tmsrp_request_type_t { + tmsrp_NONE = 0, + tmsrp_SEND, + tmsrp_REPORT, + tmsrp_AUTH +} + +} diff --git a/bindings/csharp/tsip_event_type_t.cs b/bindings/csharp/tsip_event_type_t.cs new file mode 100644 index 0000000..f2d348d --- /dev/null +++ b/bindings/csharp/tsip_event_type_t.cs @@ -0,0 +1,22 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_event_type_t { + tsip_event_invite, + tsip_event_message, + tsip_event_info, + tsip_event_options, + tsip_event_publish, + tsip_event_register, + tsip_event_subscribe, + tsip_event_dialog +} + +} diff --git a/bindings/csharp/tsip_info_event_type_t.cs b/bindings/csharp/tsip_info_event_type_t.cs new file mode 100644 index 0000000..99cc9b9 --- /dev/null +++ b/bindings/csharp/tsip_info_event_type_t.cs @@ -0,0 +1,16 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_info_event_type_t { + tsip_i_info, + tsip_ao_info +} + +} diff --git a/bindings/csharp/tsip_invite_event_type_t.cs b/bindings/csharp/tsip_invite_event_type_t.cs new file mode 100644 index 0000000..f3f025c --- /dev/null +++ b/bindings/csharp/tsip_invite_event_type_t.cs @@ -0,0 +1,36 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_invite_event_type_t { + tsip_i_newcall, + tsip_i_request, + tsip_ao_request, + tsip_o_ect_trying, + tsip_o_ect_accepted, + tsip_o_ect_completed, + tsip_o_ect_failed, + tsip_o_ect_notify, + tsip_i_ect_requested, + tsip_i_ect_newcall, + tsip_i_ect_completed, + tsip_i_ect_failed, + tsip_i_ect_notify, + tsip_m_early_media, + tsip_m_updating, + tsip_m_updated, + tsip_m_local_hold_ok, + tsip_m_local_hold_nok, + tsip_m_local_resume_ok, + tsip_m_local_resume_nok, + tsip_m_remote_hold, + tsip_m_remote_resume +} + +} diff --git a/bindings/csharp/tsip_message_event_type_t.cs b/bindings/csharp/tsip_message_event_type_t.cs new file mode 100644 index 0000000..ee9fc38 --- /dev/null +++ b/bindings/csharp/tsip_message_event_type_t.cs @@ -0,0 +1,16 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_message_event_type_t { + tsip_i_message, + tsip_ao_message +} + +} diff --git a/bindings/csharp/tsip_options_event_type_t.cs b/bindings/csharp/tsip_options_event_type_t.cs new file mode 100644 index 0000000..f427646 --- /dev/null +++ b/bindings/csharp/tsip_options_event_type_t.cs @@ -0,0 +1,16 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_options_event_type_t { + tsip_i_options, + tsip_ao_options +} + +} diff --git a/bindings/csharp/tsip_publish_event_type_t.cs b/bindings/csharp/tsip_publish_event_type_t.cs new file mode 100644 index 0000000..d726e46 --- /dev/null +++ b/bindings/csharp/tsip_publish_event_type_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_publish_event_type_t { + tsip_i_publish, + tsip_ao_publish, + tsip_i_unpublish, + tsip_ao_unpublish +} + +} diff --git a/bindings/csharp/tsip_register_event_type_t.cs b/bindings/csharp/tsip_register_event_type_t.cs new file mode 100644 index 0000000..05ed969 --- /dev/null +++ b/bindings/csharp/tsip_register_event_type_t.cs @@ -0,0 +1,19 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_register_event_type_t { + tsip_i_newreg, + tsip_i_register, + tsip_ao_register, + tsip_i_unregister, + tsip_ao_unregister +} + +} diff --git a/bindings/csharp/tsip_request_type_t.cs b/bindings/csharp/tsip_request_type_t.cs new file mode 100644 index 0000000..c1e7995 --- /dev/null +++ b/bindings/csharp/tsip_request_type_t.cs @@ -0,0 +1,29 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_request_type_t { + tsip_NONE = 0, + tsip_ACK, + tsip_BYE, + tsip_CANCEL, + tsip_INVITE, + tsip_OPTIONS, + tsip_REGISTER, + tsip_SUBSCRIBE, + tsip_NOTIFY, + tsip_REFER, + tsip_INFO, + tsip_UPDATE, + tsip_MESSAGE, + tsip_PUBLISH, + tsip_PRACK +} + +} diff --git a/bindings/csharp/tsip_stack_mode_t.cs b/bindings/csharp/tsip_stack_mode_t.cs new file mode 100644 index 0000000..f37bd8e --- /dev/null +++ b/bindings/csharp/tsip_stack_mode_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_stack_mode_t { + tsip_stack_mode_ua, + tsip_stack_mode_p2p, + tsip_stack_mode_mediaproxy, + tsip_stack_mode_mcu +} + +} diff --git a/bindings/csharp/tsip_subscribe_event_type_t.cs b/bindings/csharp/tsip_subscribe_event_type_t.cs new file mode 100644 index 0000000..e58f7b3 --- /dev/null +++ b/bindings/csharp/tsip_subscribe_event_type_t.cs @@ -0,0 +1,20 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 tsip_subscribe_event_type_t { + tsip_i_subscribe, + tsip_ao_subscribe, + tsip_i_unsubscribe, + tsip_ao_unsubscribe, + tsip_i_notify, + tsip_ao_notify +} + +} diff --git a/bindings/csharp/twrap_media_type_t.cs b/bindings/csharp/twrap_media_type_t.cs new file mode 100644 index 0000000..be5a1e8 --- /dev/null +++ b/bindings/csharp/twrap_media_type_t.cs @@ -0,0 +1,24 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 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_bfcp = 0x10, + twrap_media_bfcp_audio = 0x30, + twrap_media_bfcp_video = 0x50, + twrap_media_audiovideo = 0x03, + twrap_media_audio_video = twrap_media_audiovideo +} + +} diff --git a/bindings/csharp/twrap_proxy_plugin_type_t.cs b/bindings/csharp/twrap_proxy_plugin_type_t.cs new file mode 100644 index 0000000..6e1c62b --- /dev/null +++ b/bindings/csharp/twrap_proxy_plugin_type_t.cs @@ -0,0 +1,18 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 twrap_proxy_plugin_type_t { + twrap_proxy_plugin_audio_producer, + twrap_proxy_plugin_video_producer, + twrap_proxy_plugin_audio_consumer, + twrap_proxy_plugin_video_consumer +} + +} diff --git a/bindings/csharp/twrap_rpmessage_type_t.cs b/bindings/csharp/twrap_rpmessage_type_t.cs new file mode 100644 index 0000000..5492470 --- /dev/null +++ b/bindings/csharp/twrap_rpmessage_type_t.cs @@ -0,0 +1,19 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 twrap_rpmessage_type_t { + twrap_rpmessage_type_sms_none, + twrap_rpmessage_type_sms_submit, + twrap_rpmessage_type_sms_deliver, + twrap_rpmessage_type_sms_ack, + twrap_rpmessage_type_sms_error +} + +} diff --git a/bindings/csharp/twrap_sms_type_t.cs b/bindings/csharp/twrap_sms_type_t.cs new file mode 100644 index 0000000..084b8a0 --- /dev/null +++ b/bindings/csharp/twrap_sms_type_t.cs @@ -0,0 +1,19 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 twrap_sms_type_t { + twrap_sms_type_none, + twrap_sms_type_rpdata, + twrap_sms_type_smma, + twrap_sms_type_ack, + twrap_sms_type_error +} + +} diff --git a/bindings/java/ActionConfig.java b/bindings/java/ActionConfig.java new file mode 100644 index 0000000..cf84060 --- /dev/null +++ b/bindings/java/ActionConfig.java @@ -0,0 +1,69 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ActionConfig { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ActionConfig(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ActionConfig obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ActionConfig(swigCPtr); + } + swigCPtr = 0; + } + } + + public ActionConfig() { + this(tinyWRAPJNI.new_ActionConfig(), true); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.ActionConfig_addHeader(swigCPtr, this, name, value); + } + + public boolean addPayload(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.ActionConfig_addPayload(swigCPtr, this, payload, len); + } + + public boolean setActiveMedia(twrap_media_type_t type) { + return tinyWRAPJNI.ActionConfig_setActiveMedia(swigCPtr, this, type.swigValue()); + } + + public ActionConfig setResponseLine(short code, String phrase) { + long cPtr = tinyWRAPJNI.ActionConfig_setResponseLine(swigCPtr, this, code, phrase); + return (cPtr == 0) ? null : new ActionConfig(cPtr, false); + } + + public ActionConfig setMediaString(twrap_media_type_t type, String key, String value) { + long cPtr = tinyWRAPJNI.ActionConfig_setMediaString(swigCPtr, this, type.swigValue(), key, value); + return (cPtr == 0) ? null : new ActionConfig(cPtr, false); + } + + public ActionConfig setMediaInt(twrap_media_type_t type, String key, int value) { + long cPtr = tinyWRAPJNI.ActionConfig_setMediaInt(swigCPtr, this, type.swigValue(), key, value); + return (cPtr == 0) ? null : new ActionConfig(cPtr, false); + } + +} diff --git a/bindings/java/AudioResampler.java b/bindings/java/AudioResampler.java new file mode 100644 index 0000000..fb7b9e4 --- /dev/null +++ b/bindings/java/AudioResampler.java @@ -0,0 +1,58 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class AudioResampler { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected AudioResampler(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(AudioResampler obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_AudioResampler(swigCPtr); + } + swigCPtr = 0; + } + } + + public AudioResampler(long nInFreq, long nOutFreq, long nFrameDuration, long nChannels, long nQuality) { + this(tinyWRAPJNI.new_AudioResampler(nInFreq, nOutFreq, nFrameDuration, nChannels, nQuality), true); + } + + public boolean isValid() { + return tinyWRAPJNI.AudioResampler_isValid(swigCPtr, this); + } + + public long getOutputRequiredSizeInShort() { + return tinyWRAPJNI.AudioResampler_getOutputRequiredSizeInShort(swigCPtr, this); + } + + public long getInputRequiredSizeInShort() { + return tinyWRAPJNI.AudioResampler_getInputRequiredSizeInShort(swigCPtr, this); + } + + public long process(java.nio.ByteBuffer pInData, long nInSizeInBytes, java.nio.ByteBuffer pOutData, long nOutSizeInBytes) { + return tinyWRAPJNI.AudioResampler_process(swigCPtr, this, pInData, nInSizeInBytes, pOutData, nOutSizeInBytes); + } + +} diff --git a/bindings/java/CallSession.java b/bindings/java/CallSession.java new file mode 100644 index 0000000..ef4d254 --- /dev/null +++ b/bindings/java/CallSession.java @@ -0,0 +1,234 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class CallSession extends InviteSession { + private long swigCPtr; + + protected CallSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.CallSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(CallSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_CallSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public CallSession(SipStack pStack) { + this(tinyWRAPJNI.new_CallSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean callAudio(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callAudio(String remoteUriString) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callAudio(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callAudio(SipUri remoteUri) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri); + } + + public boolean callAudioVideo(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callAudioVideo(String remoteUriString) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callAudioVideo(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callAudioVideo(SipUri remoteUri) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri); + } + + public boolean callVideo(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callVideo(String remoteUriString) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callVideo(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callVideo(SipUri remoteUri) { + 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); + } + + public boolean set100rel(boolean enabled) { + return tinyWRAPJNI.CallSession_set100rel(swigCPtr, this, enabled); + } + + public boolean setRtcp(boolean enabled) { + return tinyWRAPJNI.CallSession_setRtcp(swigCPtr, this, enabled); + } + + public boolean setRtcpMux(boolean enabled) { + return tinyWRAPJNI.CallSession_setRtcpMux(swigCPtr, this, enabled); + } + + public boolean setSRtpMode(tmedia_srtp_mode_t mode) { + return tinyWRAPJNI.CallSession_setSRtpMode(swigCPtr, this, mode.swigValue()); + } + + public boolean setAvpfMode(tmedia_mode_t mode) { + return tinyWRAPJNI.CallSession_setAvpfMode(swigCPtr, this, mode.swigValue()); + } + + public boolean setICE(boolean enabled) { + return tinyWRAPJNI.CallSession_setICE(swigCPtr, this, enabled); + } + + public boolean setICEStun(boolean enabled) { + return tinyWRAPJNI.CallSession_setICEStun(swigCPtr, this, enabled); + } + + public boolean setICETurn(boolean enabled) { + return tinyWRAPJNI.CallSession_setICETurn(swigCPtr, this, enabled); + } + + public boolean setSTUNServer(String hostname, int port) { + return tinyWRAPJNI.CallSession_setSTUNServer(swigCPtr, this, hostname, port); + } + + public boolean setSTUNCred(String username, String password) { + return tinyWRAPJNI.CallSession_setSTUNCred(swigCPtr, this, username, password); + } + + public boolean setVideoFps(int fps) { + return tinyWRAPJNI.CallSession_setVideoFps(swigCPtr, this, fps); + } + + public boolean setVideoBandwidthUploadMax(int max) { + return tinyWRAPJNI.CallSession_setVideoBandwidthUploadMax(swigCPtr, this, max); + } + + public boolean setVideoBandwidthDownloadMax(int max) { + return tinyWRAPJNI.CallSession_setVideoBandwidthDownloadMax(swigCPtr, this, max); + } + + public boolean setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) { + return tinyWRAPJNI.CallSession_setVideoPrefSize(swigCPtr, this, pref_video_size.swigValue()); + } + + public boolean setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) { + return tinyWRAPJNI.CallSession_setQoS(swigCPtr, this, type.swigValue(), strength.swigValue()); + } + + public boolean hold(ActionConfig config) { + return tinyWRAPJNI.CallSession_hold__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean hold() { + return tinyWRAPJNI.CallSession_hold__SWIG_1(swigCPtr, this); + } + + public boolean resume(ActionConfig config) { + return tinyWRAPJNI.CallSession_resume__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean resume() { + return tinyWRAPJNI.CallSession_resume__SWIG_1(swigCPtr, this); + } + + public boolean transfer(String referToUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_transfer__SWIG_0(swigCPtr, this, referToUriString, ActionConfig.getCPtr(config), config); + } + + public boolean transfer(String referToUriString) { + return tinyWRAPJNI.CallSession_transfer__SWIG_1(swigCPtr, this, referToUriString); + } + + public boolean acceptTransfer(ActionConfig config) { + return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean acceptTransfer() { + return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_1(swigCPtr, this); + } + + public boolean rejectTransfer(ActionConfig config) { + return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean rejectTransfer() { + return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_1(swigCPtr, this); + } + + public boolean sendDTMF(int number) { + return tinyWRAPJNI.CallSession_sendDTMF(swigCPtr, this, number); + } + + public long getSessionTransferId() { + 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); + } + +} diff --git a/bindings/java/Codec.java b/bindings/java/Codec.java new file mode 100644 index 0000000..6c2a68d --- /dev/null +++ b/bindings/java/Codec.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class Codec { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected Codec(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Codec obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_Codec(swigCPtr); + } + swigCPtr = 0; + } + } + + public twrap_media_type_t getMediaType() { + return twrap_media_type_t.swigToEnum(tinyWRAPJNI.Codec_getMediaType(swigCPtr, this)); + } + + public String getName() { + return tinyWRAPJNI.Codec_getName(swigCPtr, this); + } + + public String getDescription() { + return tinyWRAPJNI.Codec_getDescription(swigCPtr, this); + } + + public String getNegFormat() { + return tinyWRAPJNI.Codec_getNegFormat(swigCPtr, this); + } + + public int getAudioSamplingRate() { + return tinyWRAPJNI.Codec_getAudioSamplingRate(swigCPtr, this); + } + + public int getAudioChannels() { + return tinyWRAPJNI.Codec_getAudioChannels(swigCPtr, this); + } + + public int getAudioPTime() { + return tinyWRAPJNI.Codec_getAudioPTime(swigCPtr, this); + } + +} diff --git a/bindings/java/DDebugCallback.java b/bindings/java/DDebugCallback.java new file mode 100644 index 0000000..e469d30 --- /dev/null +++ b/bindings/java/DDebugCallback.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class DDebugCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected DDebugCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(DDebugCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_DDebugCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.DDebugCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.DDebugCallback_change_ownership(this, swigCPtr, true); + } + + public DDebugCallback() { + this(tinyWRAPJNI.new_DDebugCallback(), true); + tinyWRAPJNI.DDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnDebugInfo(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(swigCPtr, this, message); + } + + public int OnDebugWarn(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(swigCPtr, this, message); + } + + public int OnDebugError(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(swigCPtr, this, message); + } + + public int OnDebugFatal(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(swigCPtr, this, message); + } + +} diff --git a/bindings/java/DialogEvent.java b/bindings/java/DialogEvent.java new file mode 100644 index 0000000..fc83b5f --- /dev/null +++ b/bindings/java/DialogEvent.java @@ -0,0 +1,38 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class DialogEvent extends SipEvent { + private long swigCPtr; + + protected DialogEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.DialogEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(DialogEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_DialogEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + +} diff --git a/bindings/java/InfoEvent.java b/bindings/java/InfoEvent.java new file mode 100644 index 0000000..9166a57 --- /dev/null +++ b/bindings/java/InfoEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InfoEvent extends SipEvent { + private long swigCPtr; + + protected InfoEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InfoEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InfoEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InfoEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_info_event_type_t getType() { + return tsip_info_event_type_t.swigToEnum(tinyWRAPJNI.InfoEvent_getType(swigCPtr, this)); + } + + public InfoSession getSession() { + long cPtr = tinyWRAPJNI.InfoEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new InfoSession(cPtr, false); + } + + public InfoSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.InfoEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new InfoSession(cPtr, false); + } + +} diff --git a/bindings/java/InfoSession.java b/bindings/java/InfoSession.java new file mode 100644 index 0000000..f7c7996 --- /dev/null +++ b/bindings/java/InfoSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InfoSession extends SipSession { + private long swigCPtr; + + protected InfoSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InfoSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InfoSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InfoSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public InfoSession(SipStack pStack) { + this(tinyWRAPJNI.new_InfoSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean send(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.InfoSession_send__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean send(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.InfoSession_send__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.InfoSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.InfoSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.InfoSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.InfoSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/InviteEvent.java b/bindings/java/InviteEvent.java new file mode 100644 index 0000000..11675d1 --- /dev/null +++ b/bindings/java/InviteEvent.java @@ -0,0 +1,61 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InviteEvent extends SipEvent { + private long swigCPtr; + + protected InviteEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InviteEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InviteEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InviteEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_invite_event_type_t getType() { + return tsip_invite_event_type_t.swigToEnum(tinyWRAPJNI.InviteEvent_getType(swigCPtr, this)); + } + + public twrap_media_type_t getMediaType() { + return twrap_media_type_t.swigToEnum(tinyWRAPJNI.InviteEvent_getMediaType(swigCPtr, this)); + } + + public InviteSession getSession() { + long cPtr = tinyWRAPJNI.InviteEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new InviteSession(cPtr, false); + } + + public CallSession takeCallSessionOwnership() { + long cPtr = tinyWRAPJNI.InviteEvent_takeCallSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new CallSession(cPtr, true); + } + + public MsrpSession takeMsrpSessionOwnership() { + long cPtr = tinyWRAPJNI.InviteEvent_takeMsrpSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new MsrpSession(cPtr, true); + } + +} diff --git a/bindings/java/InviteSession.java b/bindings/java/InviteSession.java new file mode 100644 index 0000000..bf85bdf --- /dev/null +++ b/bindings/java/InviteSession.java @@ -0,0 +1,79 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InviteSession extends SipSession { + private long swigCPtr; + + protected InviteSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InviteSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InviteSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InviteSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public InviteSession(SipStack Stack) { + this(tinyWRAPJNI.new_InviteSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.InviteSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.InviteSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean hangup(ActionConfig config) { + return tinyWRAPJNI.InviteSession_hangup__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean hangup() { + return tinyWRAPJNI.InviteSession_hangup__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.InviteSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.InviteSession_reject__SWIG_1(swigCPtr, this); + } + + public boolean sendInfo(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.InviteSession_sendInfo__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean sendInfo(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.InviteSession_sendInfo__SWIG_1(swigCPtr, this, payload, len); + } + + public MediaSessionMgr getMediaMgr() { + long cPtr = tinyWRAPJNI.InviteSession_getMediaMgr(swigCPtr, this); + return (cPtr == 0) ? null : new MediaSessionMgr(cPtr, false); + } + +} diff --git a/bindings/java/MediaContent.java b/bindings/java/MediaContent.java new file mode 100644 index 0000000..d7ef55f --- /dev/null +++ b/bindings/java/MediaContent.java @@ -0,0 +1,68 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MediaContent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MediaContent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MediaContent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MediaContent(swigCPtr); + } + swigCPtr = 0; + } + } + + public String getType() { + return tinyWRAPJNI.MediaContent_getType(swigCPtr, this); + } + + public long getDataLength() { + return tinyWRAPJNI.MediaContent_getDataLength(swigCPtr, this); + } + + public long getData(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.MediaContent_getData(swigCPtr, this, pOutput, nMaxsize); + } + + public static MediaContent parse(java.nio.ByteBuffer pData, long nSize, String pType) { + long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_0(pData, nSize, pType); + return (cPtr == 0) ? null : new MediaContent(cPtr, true); + } + + public static MediaContentCPIM parse(java.nio.ByteBuffer pData, long nSize) { + long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_1(pData, nSize); + return (cPtr == 0) ? null : new MediaContentCPIM(cPtr, true); + } + + public long getPayloadLength() { + return tinyWRAPJNI.MediaContent_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.MediaContent_getPayload(swigCPtr, this, pOutput, nMaxsize); + } + +} diff --git a/bindings/java/MediaContentCPIM.java b/bindings/java/MediaContentCPIM.java new file mode 100644 index 0000000..65bd4ea --- /dev/null +++ b/bindings/java/MediaContentCPIM.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MediaContentCPIM extends MediaContent { + private long swigCPtr; + + protected MediaContentCPIM(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MediaContentCPIM_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MediaContentCPIM obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MediaContentCPIM(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public long getPayloadLength() { + return tinyWRAPJNI.MediaContentCPIM_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.MediaContentCPIM_getPayload(swigCPtr, this, pOutput, nMaxsize); + } + + public String getHeaderValue(String pName) { + return tinyWRAPJNI.MediaContentCPIM_getHeaderValue(swigCPtr, this, pName); + } + +} diff --git a/bindings/java/MediaSessionMgr.java b/bindings/java/MediaSessionMgr.java new file mode 100644 index 0000000..f5d0177 --- /dev/null +++ b/bindings/java/MediaSessionMgr.java @@ -0,0 +1,357 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MediaSessionMgr { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MediaSessionMgr(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MediaSessionMgr obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MediaSessionMgr(swigCPtr); + } + swigCPtr = 0; + } + } + + public boolean sessionSetInt32(twrap_media_type_t media, String key, int value) { + return tinyWRAPJNI.MediaSessionMgr_sessionSetInt32(swigCPtr, this, media.swigValue(), key, value); + } + + public int sessionGetInt32(twrap_media_type_t media, String key) { + return tinyWRAPJNI.MediaSessionMgr_sessionGetInt32(swigCPtr, this, media.swigValue(), key); + } + + public boolean consumerSetInt32(twrap_media_type_t media, String key, int value) { + return tinyWRAPJNI.MediaSessionMgr_consumerSetInt32(swigCPtr, this, media.swigValue(), key, value); + } + + public boolean consumerSetInt64(twrap_media_type_t media, String key, long value) { + return tinyWRAPJNI.MediaSessionMgr_consumerSetInt64(swigCPtr, this, media.swigValue(), key, value); + } + + public boolean producerSetInt32(twrap_media_type_t media, String key, int value) { + return tinyWRAPJNI.MediaSessionMgr_producerSetInt32(swigCPtr, this, media.swigValue(), key, value); + } + + public boolean producerSetInt64(twrap_media_type_t media, String key, long value) { + return tinyWRAPJNI.MediaSessionMgr_producerSetInt64(swigCPtr, this, media.swigValue(), key, value); + } + + public Codec producerGetCodec(twrap_media_type_t media) { + long cPtr = tinyWRAPJNI.MediaSessionMgr_producerGetCodec(swigCPtr, this, media.swigValue()); + return (cPtr == 0) ? null : new Codec(cPtr, true); + } + + public ProxyPlugin findProxyPluginConsumer(twrap_media_type_t media) { + long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginConsumer(swigCPtr, this, media.swigValue()); + return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false); + } + + public ProxyPlugin findProxyPluginProducer(twrap_media_type_t media) { + long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginProducer(swigCPtr, this, media.swigValue()); + return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false); + } + + public static long registerAudioPluginFromFile(String path) { + return tinyWRAPJNI.MediaSessionMgr_registerAudioPluginFromFile(path); + } + + public java.math.BigInteger getSessionId(twrap_media_type_t media) { + return tinyWRAPJNI.MediaSessionMgr_getSessionId(swigCPtr, this, media.swigValue()); + } + + public static boolean defaultsSetProfile(tmedia_profile_t profile) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetProfile(profile.swigValue()); + } + + public static tmedia_profile_t defaultsGetProfile() { + return tmedia_profile_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetProfile()); + } + + public static boolean defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthLevel(bl.swigValue()); + } + + public static tmedia_bandwidth_level_t defaultsGetBandwidthLevel() { + return tmedia_bandwidth_level_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetBandwidthLevel()); + } + + public static boolean defaultsSetCongestionCtrlEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled); + } + + public static boolean defaultsSetVideoMotionRank(int video_motion_rank) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank); + } + + public static boolean defaultsSetVideoFps(int video_fps) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoFps(video_fps); + } + + public static boolean defaultsSetBandwidthVideoUploadMax(int bw_video_up_max_kbps) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps); + } + + public static boolean defaultsSetBandwidthVideoDownloadMax(int bw_video_down_max_kbps) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps); + } + + public static boolean defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetPrefVideoSize(pref_video_size.swigValue()); + } + + public static boolean defaultsSetJbMargin(long jb_margin_ms) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms); + } + + public static boolean defaultsSetJbMaxLateRate(long jb_late_rate_percent) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent); + } + + public static boolean defaultsSetEchoTail(long echo_tail) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoTail(echo_tail); + } + + public static long defaultsGetEchoTail() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoTail(); + } + + public static boolean defaultsSetEchoSkew(long echo_skew) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSkew(echo_skew); + } + + public static boolean defaultsSetEchoSuppEnabled(boolean echo_supp_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled); + } + + public static boolean defaultsGetEchoSuppEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoSuppEnabled(); + } + + public static boolean defaultsSetAgcEnabled(boolean agc_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled); + } + + public static boolean defaultsGetAgcEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcEnabled(); + } + + public static boolean defaultsSetAgcLevel(float agc_level) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcLevel(agc_level); + } + + public static float defaultsGetAgcLevel() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcLevel(); + } + + public static boolean defaultsSetVadEnabled(boolean vad_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVadEnabled(vad_enabled); + } + + public static boolean defaultsGetGetVadEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetGetVadEnabled(); + } + + public static boolean defaultsSetNoiseSuppEnabled(boolean noise_supp_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled); + } + + public static boolean defaultsGetNoiseSuppEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppEnabled(); + } + + public static boolean defaultsSetNoiseSuppLevel(int noise_supp_level) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level); + } + + public static int defaultsGetNoiseSuppLevel() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppLevel(); + } + + public static boolean defaultsSet100relEnabled(boolean _100rel_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled); + } + + public static boolean defaultsGet100relEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGet100relEnabled(); + } + + public static boolean defaultsSetScreenSize(int sx, int sy) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetScreenSize(sx, sy); + } + + public static boolean defaultsSetAudioGain(int producer_gain, int consumer_gain) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioGain(producer_gain, consumer_gain); + } + + public static boolean defaultsSetAudioPtime(int ptime) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioPtime(ptime); + } + + public static boolean defaultsSetAudioChannels(int channel_playback, int channel_record) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioChannels(channel_playback, channel_record); + } + + public static boolean defaultsSetRtpPortRange(int range_start, int range_stop) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpPortRange(range_start, range_stop); + } + + public static boolean defaultsSetRtpSymetricEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled); + } + + public static boolean defaultsSetMediaType(twrap_media_type_t media_type) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetMediaType(media_type.swigValue()); + } + + public static boolean defaultsSetVolume(int volume) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVolume(volume); + } + + public static int defaultsGetVolume() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetVolume(); + } + + public static boolean defaultsSetInviteSessionTimers(int timeout, String refresher) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetInviteSessionTimers(timeout, refresher); + } + + public static boolean defaultsSetSRtpMode(tmedia_srtp_mode_t mode) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpMode(mode.swigValue()); + } + + public static tmedia_srtp_mode_t defaultsGetSRtpMode() { + return tmedia_srtp_mode_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpMode()); + } + + public static boolean defaultsSetSRtpType(tmedia_srtp_type_t srtp_type) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpType(srtp_type.swigValue()); + } + + public static tmedia_srtp_type_t defaultsGetSRtpType() { + return tmedia_srtp_type_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpType()); + } + + public static boolean defaultsSetRtcpEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpEnabled(enabled); + } + + public static boolean defaultsGetRtcpEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpEnabled(); + } + + public static boolean defaultsSetRtcpMuxEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled); + } + + public static boolean defaultsGetRtcpMuxEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpMuxEnabled(); + } + + public static boolean defaultsSetStunEnabled(boolean stun_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunEnabled(stun_enabled); + } + + public static boolean defaultsSetIceStunEnabled(boolean icestun_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled); + } + + public static boolean defaultsSetIceTurnEnabled(boolean iceturn_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled); + } + + public static boolean defaultsSetStunServer(String server_ip, int server_port) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunServer(server_ip, server_port); + } + + public static boolean defaultsSetStunCred(String username, String password) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunCred(username, password); + } + + public static boolean defaultsSetIceEnabled(boolean ice_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceEnabled(ice_enabled); + } + + public static boolean defaultsSetByPassEncoding(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassEncoding(enabled); + } + + public static boolean defaultsGetByPassEncoding() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassEncoding(); + } + + public static boolean defaultsSetByPassDecoding(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassDecoding(enabled); + } + + public static boolean defaultsGetByPassDecoding() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassDecoding(); + } + + public static boolean defaultsSetVideoJbEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoJbEnabled(enabled); + } + + public static boolean defaultsGetVideoJbEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoJbEnabled(); + } + + public static boolean defaultsSetVideoZeroArtifactsEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled); + } + + public static boolean defaultsGetVideoZeroArtifactsEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(); + } + + public static boolean defaultsSetRtpBuffSize(long buffSize) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpBuffSize(buffSize); + } + + public static long defaultsGetRtpBuffSize() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtpBuffSize(); + } + + public static boolean defaultsSetAvpfTail(long tail_min, long tail_max) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfTail(tail_min, tail_max); + } + + public static boolean defaultsSetAvpfMode(tmedia_mode_t mode) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfMode(mode.swigValue()); + } + + public static boolean defaultsSetOpusMaxCaptureRate(long opus_maxcapturerate) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate); + } + + public static boolean defaultsSetOpusMaxPlaybackRate(long opus_maxplaybackrate) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate); + } + + public static boolean defaultsSetMaxFds(int max_fds) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetMaxFds(max_fds); + } + +} diff --git a/bindings/java/MessagingEvent.java b/bindings/java/MessagingEvent.java new file mode 100644 index 0000000..4d88c33 --- /dev/null +++ b/bindings/java/MessagingEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MessagingEvent extends SipEvent { + private long swigCPtr; + + protected MessagingEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MessagingEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MessagingEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MessagingEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_message_event_type_t getType() { + return tsip_message_event_type_t.swigToEnum(tinyWRAPJNI.MessagingEvent_getType(swigCPtr, this)); + } + + public MessagingSession getSession() { + long cPtr = tinyWRAPJNI.MessagingEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new MessagingSession(cPtr, false); + } + + public MessagingSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.MessagingEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new MessagingSession(cPtr, true); + } + +} diff --git a/bindings/java/MessagingSession.java b/bindings/java/MessagingSession.java new file mode 100644 index 0000000..95e0389 --- /dev/null +++ b/bindings/java/MessagingSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MessagingSession extends SipSession { + private long swigCPtr; + + protected MessagingSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MessagingSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MessagingSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MessagingSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public MessagingSession(SipStack pStack) { + this(tinyWRAPJNI.new_MessagingSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean send(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.MessagingSession_send__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean send(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.MessagingSession_send__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.MessagingSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.MessagingSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.MessagingSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.MessagingSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/MsrpCallback.java b/bindings/java/MsrpCallback.java new file mode 100644 index 0000000..55de1a8 --- /dev/null +++ b/bindings/java/MsrpCallback.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MsrpCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.MsrpCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.MsrpCallback_change_ownership(this, swigCPtr, true); + } + + public MsrpCallback() { + this(tinyWRAPJNI.new_MsrpCallback(), true); + tinyWRAPJNI.MsrpCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnEvent(MsrpEvent e) { + return (getClass() == MsrpCallback.class) ? tinyWRAPJNI.MsrpCallback_OnEvent(swigCPtr, this, MsrpEvent.getCPtr(e), e) : tinyWRAPJNI.MsrpCallback_OnEventSwigExplicitMsrpCallback(swigCPtr, this, MsrpEvent.getCPtr(e), e); + } + +} diff --git a/bindings/java/MsrpEvent.java b/bindings/java/MsrpEvent.java new file mode 100644 index 0000000..7a024d4 --- /dev/null +++ b/bindings/java/MsrpEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpEvent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MsrpEvent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpEvent(swigCPtr); + } + swigCPtr = 0; + } + } + + public tmsrp_event_type_t getType() { + return tmsrp_event_type_t.swigToEnum(tinyWRAPJNI.MsrpEvent_getType(swigCPtr, this)); + } + + public MsrpSession getSipSession() { + long cPtr = tinyWRAPJNI.MsrpEvent_getSipSession(swigCPtr, this); + return (cPtr == 0) ? null : new MsrpSession(cPtr, false); + } + + public MsrpMessage getMessage() { + long cPtr = tinyWRAPJNI.MsrpEvent_getMessage(swigCPtr, this); + return (cPtr == 0) ? null : new MsrpMessage(cPtr, false); + } + +} diff --git a/bindings/java/MsrpMessage.java b/bindings/java/MsrpMessage.java new file mode 100644 index 0000000..8fd6e39 --- /dev/null +++ b/bindings/java/MsrpMessage.java @@ -0,0 +1,90 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MsrpMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public MsrpMessage() { + this(tinyWRAPJNI.new_MsrpMessage(), true); + } + + public boolean isRequest() { + return tinyWRAPJNI.MsrpMessage_isRequest(swigCPtr, this); + } + + public short getCode() { + return tinyWRAPJNI.MsrpMessage_getCode(swigCPtr, this); + } + + public String getPhrase() { + return tinyWRAPJNI.MsrpMessage_getPhrase(swigCPtr, this); + } + + public tmsrp_request_type_t getRequestType() { + return tmsrp_request_type_t.swigToEnum(tinyWRAPJNI.MsrpMessage_getRequestType(swigCPtr, this)); + } + + public void getByteRange(long[] arg0, long[] arg1, long[] arg2) { + tinyWRAPJNI.MsrpMessage_getByteRange(swigCPtr, this, arg0, arg1, arg2); + } + + public boolean isLastChunck() { + return tinyWRAPJNI.MsrpMessage_isLastChunck(swigCPtr, this); + } + + public boolean isFirstChunck() { + return tinyWRAPJNI.MsrpMessage_isFirstChunck(swigCPtr, this); + } + + public boolean isSuccessReport() { + return tinyWRAPJNI.MsrpMessage_isSuccessReport(swigCPtr, this); + } + + public String getMsrpHeaderValue(String name) { + return tinyWRAPJNI.MsrpMessage_getMsrpHeaderValue(swigCPtr, this, name); + } + + public String getMsrpHeaderParamValue(String name, String param) { + return tinyWRAPJNI.MsrpMessage_getMsrpHeaderParamValue(swigCPtr, this, name, param); + } + + public long getMsrpContentLength() { + return tinyWRAPJNI.MsrpMessage_getMsrpContentLength(swigCPtr, this); + } + + public long getMsrpContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.MsrpMessage_getMsrpContent(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/MsrpSession.java b/bindings/java/MsrpSession.java new file mode 100644 index 0000000..6393dec --- /dev/null +++ b/bindings/java/MsrpSession.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpSession extends InviteSession { + private long swigCPtr; + + protected MsrpSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public MsrpSession(SipStack pStack, MsrpCallback pCallback) { + this(tinyWRAPJNI.new_MsrpSession(SipStack.getCPtr(pStack), pStack, MsrpCallback.getCPtr(pCallback), pCallback), true); + } + + public boolean setCallback(MsrpCallback pCallback) { + return tinyWRAPJNI.MsrpSession_setCallback(swigCPtr, this, MsrpCallback.getCPtr(pCallback), pCallback); + } + + public boolean callMsrp(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callMsrp(String remoteUriString) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callMsrp(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callMsrp(SipUri remoteUri) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri); + } + + public boolean sendMessage(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean sendMessage(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean sendFile(ActionConfig config) { + return tinyWRAPJNI.MsrpSession_sendFile__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean sendFile() { + return tinyWRAPJNI.MsrpSession_sendFile__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/OptionsEvent.java b/bindings/java/OptionsEvent.java new file mode 100644 index 0000000..4dde699 --- /dev/null +++ b/bindings/java/OptionsEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class OptionsEvent extends SipEvent { + private long swigCPtr; + + protected OptionsEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.OptionsEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(OptionsEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_OptionsEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_options_event_type_t getType() { + return tsip_options_event_type_t.swigToEnum(tinyWRAPJNI.OptionsEvent_getType(swigCPtr, this)); + } + + public OptionsSession getSession() { + long cPtr = tinyWRAPJNI.OptionsEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new OptionsSession(cPtr, false); + } + + public OptionsSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.OptionsEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new OptionsSession(cPtr, false); + } + +} diff --git a/bindings/java/OptionsSession.java b/bindings/java/OptionsSession.java new file mode 100644 index 0000000..fb018c4 --- /dev/null +++ b/bindings/java/OptionsSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class OptionsSession extends SipSession { + private long swigCPtr; + + protected OptionsSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.OptionsSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(OptionsSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_OptionsSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public OptionsSession(SipStack pStack) { + this(tinyWRAPJNI.new_OptionsSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean send(ActionConfig config) { + return tinyWRAPJNI.OptionsSession_send__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean send() { + return tinyWRAPJNI.OptionsSession_send__SWIG_1(swigCPtr, this); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.OptionsSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.OptionsSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.OptionsSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.OptionsSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/ProxyAudioConsumer.java b/bindings/java/ProxyAudioConsumer.java new file mode 100644 index 0000000..50c4474 --- /dev/null +++ b/bindings/java/ProxyAudioConsumer.java @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioConsumer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyAudioConsumer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyAudioConsumer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioConsumer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioConsumer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) { + return tinyWRAPJNI.ProxyAudioConsumer_setActualSndCardPlaybackParams(swigCPtr, this, nPtime, nRate, nChannels); + } + + public boolean queryForResampler(int nInFreq, int nOutFreq, int nFrameDuration, int nChannels, int nResamplerQuality) { + return tinyWRAPJNI.ProxyAudioConsumer_queryForResampler(swigCPtr, this, nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality); + } + + public boolean setPullBuffer(java.nio.ByteBuffer pPullBufferPtr, long nPullBufferSize) { + return tinyWRAPJNI.ProxyAudioConsumer_setPullBuffer(swigCPtr, this, pPullBufferPtr, nPullBufferSize); + } + + public long pull(java.nio.ByteBuffer pOutput, long nSize) { + return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, this, pOutput, nSize); + } + + public long pull(java.nio.ByteBuffer pOutput) { + return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, this, pOutput); + } + + public long pull() { + return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_2(swigCPtr, this); + } + + public boolean setGain(long nGain) { + return tinyWRAPJNI.ProxyAudioConsumer_setGain(swigCPtr, this, nGain); + } + + public long getGain() { + return tinyWRAPJNI.ProxyAudioConsumer_getGain(swigCPtr, this); + } + + public boolean reset() { + return tinyWRAPJNI.ProxyAudioConsumer_reset(swigCPtr, this); + } + + public void setCallback(ProxyAudioConsumerCallback pCallback) { + tinyWRAPJNI.ProxyAudioConsumer_setCallback(swigCPtr, this, ProxyAudioConsumerCallback.getCPtr(pCallback), pCallback); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyAudioConsumer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyAudioConsumer_registerPlugin(); + } + +} diff --git a/bindings/java/ProxyAudioConsumerCallback.java b/bindings/java/ProxyAudioConsumerCallback.java new file mode 100644 index 0000000..b48d5d3 --- /dev/null +++ b/bindings/java/ProxyAudioConsumerCallback.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioConsumerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyAudioConsumerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioConsumerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioConsumerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyAudioConsumerCallback() { + this(tinyWRAPJNI.new_ProxyAudioConsumerCallback(), true); + tinyWRAPJNI.ProxyAudioConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int ptime, int rate, int channels) { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(swigCPtr, this, ptime, rate, channels); + } + + public int start() { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/ProxyAudioProducer.java b/bindings/java/ProxyAudioProducer.java new file mode 100644 index 0000000..288287a --- /dev/null +++ b/bindings/java/ProxyAudioProducer.java @@ -0,0 +1,82 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioProducer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyAudioProducer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyAudioProducer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioProducer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioProducer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) { + return tinyWRAPJNI.ProxyAudioProducer_setActualSndCardRecordParams(swigCPtr, this, nPtime, nRate, nChannels); + } + + public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize, boolean bUsePushCallback) { + return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_0(swigCPtr, this, pPushBufferPtr, nPushBufferSize, bUsePushCallback); + } + + public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize) { + return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, this, pPushBufferPtr, nPushBufferSize); + } + + public int push(java.nio.ByteBuffer pBuffer, long nSize) { + return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_0(swigCPtr, this, pBuffer, nSize); + } + + public int push(java.nio.ByteBuffer pBuffer) { + return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_1(swigCPtr, this, pBuffer); + } + + public int push() { + return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_2(swigCPtr, this); + } + + public boolean setGain(long nGain) { + return tinyWRAPJNI.ProxyAudioProducer_setGain(swigCPtr, this, nGain); + } + + public long getGain() { + return tinyWRAPJNI.ProxyAudioProducer_getGain(swigCPtr, this); + } + + public void setCallback(ProxyAudioProducerCallback pCallback) { + tinyWRAPJNI.ProxyAudioProducer_setCallback(swigCPtr, this, ProxyAudioProducerCallback.getCPtr(pCallback), pCallback); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyAudioProducer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyAudioProducer_registerPlugin(); + } + +} diff --git a/bindings/java/ProxyAudioProducerCallback.java b/bindings/java/ProxyAudioProducerCallback.java new file mode 100644 index 0000000..7dc1bfd --- /dev/null +++ b/bindings/java/ProxyAudioProducerCallback.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioProducerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyAudioProducerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioProducerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioProducerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyAudioProducerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyAudioProducerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyAudioProducerCallback() { + this(tinyWRAPJNI.new_ProxyAudioProducerCallback(), true); + tinyWRAPJNI.ProxyAudioProducerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int ptime, int rate, int channels) { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(swigCPtr, this, ptime, rate, channels); + } + + public int start() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + + public int fillPushBuffer() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_fillPushBuffer(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/ProxyPlugin.java b/bindings/java/ProxyPlugin.java new file mode 100644 index 0000000..6ccfe9b --- /dev/null +++ b/bindings/java/ProxyPlugin.java @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyPlugin { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyPlugin(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyPlugin obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPlugin(swigCPtr); + } + swigCPtr = 0; + } + } + + public twrap_proxy_plugin_type_t getType() { + return twrap_proxy_plugin_type_t.swigToEnum(tinyWRAPJNI.ProxyPlugin_getType(swigCPtr, this)); + } + + public java.math.BigInteger getId() { + return tinyWRAPJNI.ProxyPlugin_getId(swigCPtr, this); + } + +} diff --git a/bindings/java/ProxyPluginMgr.java b/bindings/java/ProxyPluginMgr.java new file mode 100644 index 0000000..22ee6dd --- /dev/null +++ b/bindings/java/ProxyPluginMgr.java @@ -0,0 +1,73 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyPluginMgr { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyPluginMgr(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyPluginMgr obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPluginMgr(swigCPtr); + } + swigCPtr = 0; + } + } + + public static ProxyPluginMgr createInstance(ProxyPluginMgrCallback pCallback) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_createInstance(ProxyPluginMgrCallback.getCPtr(pCallback), pCallback); + return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, true); + } + + public static ProxyPluginMgr getInstance() { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_getInstance(); + return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, false); + } + + public ProxyPlugin findPlugin(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findPlugin(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false); + } + + public ProxyAudioConsumer findAudioConsumer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioConsumer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyAudioConsumer(cPtr, false); + } + + public ProxyVideoConsumer findVideoConsumer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoConsumer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyVideoConsumer(cPtr, false); + } + + public ProxyAudioProducer findAudioProducer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioProducer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyAudioProducer(cPtr, false); + } + + public ProxyVideoProducer findVideoProducer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoProducer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyVideoProducer(cPtr, false); + } + +} diff --git a/bindings/java/ProxyPluginMgrCallback.java b/bindings/java/ProxyPluginMgrCallback.java new file mode 100644 index 0000000..7e45b61 --- /dev/null +++ b/bindings/java/ProxyPluginMgrCallback.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyPluginMgrCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyPluginMgrCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyPluginMgrCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPluginMgrCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyPluginMgrCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyPluginMgrCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyPluginMgrCallback() { + this(tinyWRAPJNI.new_ProxyPluginMgrCallback(), true); + tinyWRAPJNI.ProxyPluginMgrCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnPluginCreated(java.math.BigInteger id, twrap_proxy_plugin_type_t type) { + return (getClass() == ProxyPluginMgrCallback.class) ? tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginCreated(swigCPtr, this, id, type.swigValue()) : tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(swigCPtr, this, id, type.swigValue()); + } + + public int OnPluginDestroyed(java.math.BigInteger id, twrap_proxy_plugin_type_t type) { + return (getClass() == ProxyPluginMgrCallback.class) ? tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginDestroyed(swigCPtr, this, id, type.swigValue()) : tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(swigCPtr, this, id, type.swigValue()); + } + +} diff --git a/bindings/java/ProxyVideoConsumer.java b/bindings/java/ProxyVideoConsumer.java new file mode 100644 index 0000000..53d7a70 --- /dev/null +++ b/bindings/java/ProxyVideoConsumer.java @@ -0,0 +1,98 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoConsumer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyVideoConsumer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyVideoConsumer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoConsumer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoConsumer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean setDisplaySize(long nWidth, long nHeight) { + return tinyWRAPJNI.ProxyVideoConsumer_setDisplaySize(swigCPtr, this, nWidth, nHeight); + } + + public long getDisplayWidth() { + return tinyWRAPJNI.ProxyVideoConsumer_getDisplayWidth(swigCPtr, this); + } + + public long getDisplayHeight() { + return tinyWRAPJNI.ProxyVideoConsumer_getDisplayHeight(swigCPtr, this); + } + + public long getDecodedWidth() { + return tinyWRAPJNI.ProxyVideoConsumer_getDecodedWidth(swigCPtr, this); + } + + public long getDecodedHeight() { + return tinyWRAPJNI.ProxyVideoConsumer_getDecodedHeight(swigCPtr, this); + } + + public void setCallback(ProxyVideoConsumerCallback pCallback) { + tinyWRAPJNI.ProxyVideoConsumer_setCallback(swigCPtr, this, ProxyVideoConsumerCallback.getCPtr(pCallback), pCallback); + } + + public boolean setAutoResizeDisplay(boolean bAutoResizeDisplay) { + return tinyWRAPJNI.ProxyVideoConsumer_setAutoResizeDisplay(swigCPtr, this, bAutoResizeDisplay); + } + + public boolean getAutoResizeDisplay() { + return tinyWRAPJNI.ProxyVideoConsumer_getAutoResizeDisplay(swigCPtr, this); + } + + public boolean setConsumeBuffer(java.nio.ByteBuffer pConsumeBufferPtr, long nConsumeBufferSize) { + return tinyWRAPJNI.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, this, pConsumeBufferPtr, nConsumeBufferSize); + } + + public long pull(java.nio.ByteBuffer pOutput, long nSize) { + return tinyWRAPJNI.ProxyVideoConsumer_pull(swigCPtr, this, pOutput, nSize); + } + + public boolean reset() { + return tinyWRAPJNI.ProxyVideoConsumer_reset(swigCPtr, this); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyVideoConsumer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyVideoConsumer_registerPlugin(); + } + + public static void setDefaultChroma(tmedia_chroma_t eChroma) { + tinyWRAPJNI.ProxyVideoConsumer_setDefaultChroma(eChroma.swigValue()); + } + + public static void setDefaultAutoResizeDisplay(boolean bAutoResizeDisplay) { + tinyWRAPJNI.ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay); + } + +} diff --git a/bindings/java/ProxyVideoConsumerCallback.java b/bindings/java/ProxyVideoConsumerCallback.java new file mode 100644 index 0000000..e2a4349 --- /dev/null +++ b/bindings/java/ProxyVideoConsumerCallback.java @@ -0,0 +1,82 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoConsumerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyVideoConsumerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoConsumerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoConsumerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyVideoConsumerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyVideoConsumerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyVideoConsumerCallback() { + this(tinyWRAPJNI.new_ProxyVideoConsumerCallback(), true); + tinyWRAPJNI.ProxyVideoConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int nWidth, int nHeight, int nFps) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_prepare(swigCPtr, this, nWidth, nHeight, nFps) : tinyWRAPJNI.ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, nWidth, nHeight, nFps); + } + + public int consume(ProxyVideoFrame frame) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_consume(swigCPtr, this, ProxyVideoFrame.getCPtr(frame), frame) : tinyWRAPJNI.ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, ProxyVideoFrame.getCPtr(frame), frame); + } + + public int bufferCopied(long nCopiedSize, long nAvailableSize) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_bufferCopied(swigCPtr, this, nCopiedSize, nAvailableSize) : tinyWRAPJNI.ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, nCopiedSize, nAvailableSize); + } + + public int start() { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/ProxyVideoFrame.java b/bindings/java/ProxyVideoFrame.java new file mode 100644 index 0000000..8c4ef4c --- /dev/null +++ b/bindings/java/ProxyVideoFrame.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoFrame { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyVideoFrame(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoFrame obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoFrame(swigCPtr); + } + swigCPtr = 0; + } + } + + public long getSize() { + return tinyWRAPJNI.ProxyVideoFrame_getSize(swigCPtr, this); + } + + public long getContent(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.ProxyVideoFrame_getContent(swigCPtr, this, pOutput, nMaxsize); + } + + public long getFrameWidth() { + return tinyWRAPJNI.ProxyVideoFrame_getFrameWidth(swigCPtr, this); + } + + public long getFrameHeight() { + return tinyWRAPJNI.ProxyVideoFrame_getFrameHeight(swigCPtr, this); + } + +} diff --git a/bindings/java/ProxyVideoProducer.java b/bindings/java/ProxyVideoProducer.java new file mode 100644 index 0000000..f9cfe2b --- /dev/null +++ b/bindings/java/ProxyVideoProducer.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoProducer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyVideoProducer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyVideoProducer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoProducer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoProducer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public int getRotation() { + return tinyWRAPJNI.ProxyVideoProducer_getRotation(swigCPtr, this); + } + + public boolean setRotation(int nRot) { + return tinyWRAPJNI.ProxyVideoProducer_setRotation(swigCPtr, this, nRot); + } + + public boolean getMirror() { + return tinyWRAPJNI.ProxyVideoProducer_getMirror(swigCPtr, this); + } + + public boolean setMirror(boolean bMirror) { + return tinyWRAPJNI.ProxyVideoProducer_setMirror(swigCPtr, this, bMirror); + } + + public boolean setActualCameraOutputSize(long nWidth, long nHeight) { + return tinyWRAPJNI.ProxyVideoProducer_setActualCameraOutputSize(swigCPtr, this, nWidth, nHeight); + } + + public int push(java.nio.ByteBuffer pBuffer, long nSize) { + return tinyWRAPJNI.ProxyVideoProducer_push(swigCPtr, this, pBuffer, nSize); + } + + public void setCallback(ProxyVideoProducerCallback pCallback) { + tinyWRAPJNI.ProxyVideoProducer_setCallback(swigCPtr, this, ProxyVideoProducerCallback.getCPtr(pCallback), pCallback); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyVideoProducer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyVideoProducer_registerPlugin(); + } + + public static void setDefaultChroma(tmedia_chroma_t eChroma) { + tinyWRAPJNI.ProxyVideoProducer_setDefaultChroma(eChroma.swigValue()); + } + +} diff --git a/bindings/java/ProxyVideoProducerCallback.java b/bindings/java/ProxyVideoProducerCallback.java new file mode 100644 index 0000000..c625405 --- /dev/null +++ b/bindings/java/ProxyVideoProducerCallback.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoProducerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyVideoProducerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoProducerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoProducerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyVideoProducerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyVideoProducerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyVideoProducerCallback() { + this(tinyWRAPJNI.new_ProxyVideoProducerCallback(), true); + tinyWRAPJNI.ProxyVideoProducerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int width, int height, int fps) { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_prepare(swigCPtr, this, width, height, fps) : tinyWRAPJNI.ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(swigCPtr, this, width, height, fps); + } + + public int start() { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/PublicationEvent.java b/bindings/java/PublicationEvent.java new file mode 100644 index 0000000..ba44ed8 --- /dev/null +++ b/bindings/java/PublicationEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class PublicationEvent extends SipEvent { + private long swigCPtr; + + protected PublicationEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.PublicationEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(PublicationEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_PublicationEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_publish_event_type_t getType() { + return tsip_publish_event_type_t.swigToEnum(tinyWRAPJNI.PublicationEvent_getType(swigCPtr, this)); + } + + public PublicationSession getSession() { + long cPtr = tinyWRAPJNI.PublicationEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new PublicationSession(cPtr, false); + } + + public PublicationSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.PublicationEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new PublicationSession(cPtr, false); + } + +} diff --git a/bindings/java/PublicationSession.java b/bindings/java/PublicationSession.java new file mode 100644 index 0000000..adfef9a --- /dev/null +++ b/bindings/java/PublicationSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class PublicationSession extends SipSession { + private long swigCPtr; + + protected PublicationSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.PublicationSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(PublicationSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_PublicationSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean Publish(byte[] bytes) { + if(bytes != null){ + final java.nio.ByteBuffer byteBuffer = this.getByteBuffer(bytes); + return this.publish(byteBuffer, bytes.length); + } + return false; + } + + public PublicationSession(SipStack pStack) { + this(tinyWRAPJNI.new_PublicationSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean publish(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.PublicationSession_publish__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean publish(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.PublicationSession_publish__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean unPublish(ActionConfig config) { + return tinyWRAPJNI.PublicationSession_unPublish__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean unPublish() { + return tinyWRAPJNI.PublicationSession_unPublish__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/RPMessage.java b/bindings/java/RPMessage.java new file mode 100644 index 0000000..0e9b864 --- /dev/null +++ b/bindings/java/RPMessage.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class RPMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected RPMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(RPMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RPMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public RPMessage() { + this(tinyWRAPJNI.new_RPMessage(), true); + } + + public twrap_rpmessage_type_t getType() { + return twrap_rpmessage_type_t.swigToEnum(tinyWRAPJNI.RPMessage_getType(swigCPtr, this)); + } + + public long getPayloadLength() { + return tinyWRAPJNI.RPMessage_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.RPMessage_getPayload(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/RegistrationEvent.java b/bindings/java/RegistrationEvent.java new file mode 100644 index 0000000..5a1cc25 --- /dev/null +++ b/bindings/java/RegistrationEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class RegistrationEvent extends SipEvent { + private long swigCPtr; + + protected RegistrationEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.RegistrationEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(RegistrationEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RegistrationEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_register_event_type_t getType() { + return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this)); + } + + public RegistrationSession getSession() { + long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new RegistrationSession(cPtr, false); + } + + public RegistrationSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.RegistrationEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new RegistrationSession(cPtr, true); + } + +} diff --git a/bindings/java/RegistrationSession.java b/bindings/java/RegistrationSession.java new file mode 100644 index 0000000..2857a72 --- /dev/null +++ b/bindings/java/RegistrationSession.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class RegistrationSession extends SipSession { + private long swigCPtr; + + protected RegistrationSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.RegistrationSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(RegistrationSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RegistrationSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public RegistrationSession(SipStack pStack) { + this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean register_(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_register___SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean register_() { + return tinyWRAPJNI.RegistrationSession_register___SWIG_1(swigCPtr, this); + } + + public boolean unRegister(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_unRegister__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean unRegister() { + return tinyWRAPJNI.RegistrationSession_unRegister__SWIG_1(swigCPtr, this); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.RegistrationSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.RegistrationSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/SMSData.java b/bindings/java/SMSData.java new file mode 100644 index 0000000..1ab6479 --- /dev/null +++ b/bindings/java/SMSData.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SMSData { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SMSData(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SMSData obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SMSData(swigCPtr); + } + swigCPtr = 0; + } + } + + public SMSData() { + this(tinyWRAPJNI.new_SMSData(), true); + } + + public twrap_sms_type_t getType() { + return twrap_sms_type_t.swigToEnum(tinyWRAPJNI.SMSData_getType(swigCPtr, this)); + } + + public int getMR() { + return tinyWRAPJNI.SMSData_getMR(swigCPtr, this); + } + + public long getPayloadLength() { + return tinyWRAPJNI.SMSData_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.SMSData_getPayload(swigCPtr, this, output, maxsize); + } + + public String getOA() { + return tinyWRAPJNI.SMSData_getOA(swigCPtr, this); + } + + public String getDA() { + return tinyWRAPJNI.SMSData_getDA(swigCPtr, this); + } + +} diff --git a/bindings/java/SMSEncoder.java b/bindings/java/SMSEncoder.java new file mode 100644 index 0000000..2c0885f --- /dev/null +++ b/bindings/java/SMSEncoder.java @@ -0,0 +1,63 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SMSEncoder { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SMSEncoder(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SMSEncoder obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SMSEncoder(swigCPtr); + } + swigCPtr = 0; + } + } + + public static RPMessage encodeSubmit(int mr, String smsc, String destination, String ascii) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeSubmit(mr, smsc, destination, ascii); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static RPMessage encodeDeliver(int mr, String smsc, String originator, String ascii) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeDeliver(mr, smsc, originator, ascii); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static RPMessage encodeACK(int mr, String smsc, String destination, boolean forSUBMIT) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeACK(mr, smsc, destination, forSUBMIT); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static RPMessage encodeError(int mr, String smsc, String destination, boolean forSUBMIT) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeError(mr, smsc, destination, forSUBMIT); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static SMSData decode(java.nio.ByteBuffer data, long size, boolean MobOrig) { + long cPtr = tinyWRAPJNI.SMSEncoder_decode(data, size, MobOrig); + return (cPtr == 0) ? null : new SMSData(cPtr, true); + } + +} diff --git a/bindings/java/SafeObject.java b/bindings/java/SafeObject.java new file mode 100644 index 0000000..eb984d6 --- /dev/null +++ b/bindings/java/SafeObject.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SafeObject { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SafeObject(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SafeObject obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SafeObject(swigCPtr); + } + swigCPtr = 0; + } + } + + public SafeObject() { + this(tinyWRAPJNI.new_SafeObject(), true); + } + + public int Lock() { + return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this); + } + + public int UnLock() { + return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this); + } + +} diff --git a/bindings/java/SdpMessage.java b/bindings/java/SdpMessage.java new file mode 100644 index 0000000..742ffb8 --- /dev/null +++ b/bindings/java/SdpMessage.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SdpMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SdpMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SdpMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SdpMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public SdpMessage() { + this(tinyWRAPJNI.new_SdpMessage(), true); + } + + public String getSdpHeaderValue(String media, char name, long index) { + return tinyWRAPJNI.SdpMessage_getSdpHeaderValue__SWIG_0(swigCPtr, this, media, name, index); + } + + public String getSdpHeaderValue(String media, char name) { + return tinyWRAPJNI.SdpMessage_getSdpHeaderValue__SWIG_1(swigCPtr, this, media, name); + } + + public String getSdpHeaderAValue(String media, String attributeName) { + return tinyWRAPJNI.SdpMessage_getSdpHeaderAValue(swigCPtr, this, media, attributeName); + } + +} diff --git a/bindings/java/SipCallback.java b/bindings/java/SipCallback.java new file mode 100644 index 0000000..bcfe026 --- /dev/null +++ b/bindings/java/SipCallback.java @@ -0,0 +1,94 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true); + } + + public SipCallback() { + this(tinyWRAPJNI.new_SipCallback(), true); + tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnDialogEvent(DialogEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnDialogEvent(swigCPtr, this, DialogEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnDialogEventSwigExplicitSipCallback(swigCPtr, this, DialogEvent.getCPtr(e), e); + } + + public int OnStackEvent(StackEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnStackEvent(swigCPtr, this, StackEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, this, StackEvent.getCPtr(e), e); + } + + public int OnInviteEvent(InviteEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnInviteEvent(swigCPtr, this, InviteEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnInviteEventSwigExplicitSipCallback(swigCPtr, this, InviteEvent.getCPtr(e), e); + } + + public int OnMessagingEvent(MessagingEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnMessagingEvent(swigCPtr, this, MessagingEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, this, MessagingEvent.getCPtr(e), e); + } + + public int OnInfoEvent(InfoEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnInfoEvent(swigCPtr, this, InfoEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnInfoEventSwigExplicitSipCallback(swigCPtr, this, InfoEvent.getCPtr(e), e); + } + + public int OnOptionsEvent(OptionsEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnOptionsEvent(swigCPtr, this, OptionsEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, this, OptionsEvent.getCPtr(e), e); + } + + public int OnPublicationEvent(PublicationEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnPublicationEvent(swigCPtr, this, PublicationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnPublicationEventSwigExplicitSipCallback(swigCPtr, this, PublicationEvent.getCPtr(e), e); + } + + public int OnRegistrationEvent(RegistrationEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationEvent(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationEventSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e); + } + + public int OnSubscriptionEvent(SubscriptionEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionEvent(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionEventSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); + } + +} diff --git a/bindings/java/SipEvent.java b/bindings/java/SipEvent.java new file mode 100644 index 0000000..3d03581 --- /dev/null +++ b/bindings/java/SipEvent.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipEvent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipEvent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipEvent(swigCPtr); + } + swigCPtr = 0; + } + } + + public short getCode() { + return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this); + } + + public String getPhrase() { + return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this); + } + + public SipSession getBaseSession() { + long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this); + return (cPtr == 0) ? null : new SipSession(cPtr, false); + } + + public SipMessage getSipMessage() { + long cPtr = tinyWRAPJNI.SipEvent_getSipMessage(swigCPtr, this); + return (cPtr == 0) ? null : new SipMessage(cPtr, false); + } + +} diff --git a/bindings/java/SipMessage.java b/bindings/java/SipMessage.java new file mode 100644 index 0000000..ff9b1d1 --- /dev/null +++ b/bindings/java/SipMessage.java @@ -0,0 +1,99 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public byte[] getSipContent() { + final int clen = (int)this.getSipContentLength(); + if(clen>0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen); + final int read = (int)this.getSipContent(buffer, clen); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } + + public SipMessage() { + this(tinyWRAPJNI.new_SipMessage(), true); + } + + public boolean isResponse() { + return tinyWRAPJNI.SipMessage_isResponse(swigCPtr, this); + } + + public tsip_request_type_t getRequestType() { + return tsip_request_type_t.swigToEnum(tinyWRAPJNI.SipMessage_getRequestType(swigCPtr, this)); + } + + public short getResponseCode() { + return tinyWRAPJNI.SipMessage_getResponseCode(swigCPtr, this); + } + + public String getResponsePhrase() { + return tinyWRAPJNI.SipMessage_getResponsePhrase(swigCPtr, this); + } + + public String getSipHeaderValue(String name, long index) { + return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index); + } + + public String getSipHeaderValue(String name) { + return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, this, name); + } + + public String getSipHeaderParamValue(String name, String param, long index) { + return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index); + } + + public String getSipHeaderParamValue(String name, String param) { + return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, this, name, param); + } + + public long getSipContentLength() { + return tinyWRAPJNI.SipMessage_getSipContentLength(swigCPtr, this); + } + + public long getSipContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this, output, maxsize); + } + + public SdpMessage getSdpMessage() { + long cPtr = tinyWRAPJNI.SipMessage_getSdpMessage(swigCPtr, this); + return (cPtr == 0) ? null : new SdpMessage(cPtr, false); + } + +} diff --git a/bindings/java/SipSession.java b/bindings/java/SipSession.java new file mode 100644 index 0000000..fcb8364 --- /dev/null +++ b/bindings/java/SipSession.java @@ -0,0 +1,111 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipSession { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipSession(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipSession(swigCPtr); + } + swigCPtr = 0; + } + } + + protected java.nio.ByteBuffer getByteBuffer(byte[] bytes) { + if(bytes != null){ + final java.nio.ByteBuffer byteBuffer = java.nio.ByteBuffer.allocateDirect(bytes.length); + byteBuffer.put(bytes); + return byteBuffer; + } + return null; + } + + public SipSession(SipStack stack) { + this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true); + } + + public boolean haveOwnership() { + return tinyWRAPJNI.SipSession_haveOwnership(swigCPtr, this); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value); + } + + public boolean removeHeader(String name) { + return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name); + } + + public boolean addCaps(String name, String value) { + return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value); + } + + public boolean addCaps(String name) { + return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name); + } + + public boolean removeCaps(String name) { + return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name); + } + + public boolean setExpires(long expires) { + return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires); + } + + public boolean setFromUri(String fromUriString) { + return tinyWRAPJNI.SipSession_setFromUri__SWIG_0(swigCPtr, this, fromUriString); + } + + public boolean setFromUri(SipUri fromUri) { + return tinyWRAPJNI.SipSession_setFromUri__SWIG_1(swigCPtr, this, SipUri.getCPtr(fromUri), fromUri); + } + + public boolean setToUri(String toUriString) { + return tinyWRAPJNI.SipSession_setToUri__SWIG_0(swigCPtr, this, toUriString); + } + + public boolean setToUri(SipUri toUri) { + return tinyWRAPJNI.SipSession_setToUri__SWIG_1(swigCPtr, this, SipUri.getCPtr(toUri), toUri); + } + + public boolean setSilentHangup(boolean silent) { + return tinyWRAPJNI.SipSession_setSilentHangup(swigCPtr, this, silent); + } + + public boolean addSigCompCompartment(String compId) { + return tinyWRAPJNI.SipSession_addSigCompCompartment(swigCPtr, this, compId); + } + + public boolean removeSigCompCompartment() { + return tinyWRAPJNI.SipSession_removeSigCompCompartment(swigCPtr, this); + } + + public long getId() { + return tinyWRAPJNI.SipSession_getId(swigCPtr, this); + } + +} diff --git a/bindings/java/SipStack.java b/bindings/java/SipStack.java new file mode 100644 index 0000000..5e3b41a --- /dev/null +++ b/bindings/java/SipStack.java @@ -0,0 +1,242 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipStack extends SafeObject { + private long swigCPtr; + + protected SipStack(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.SipStack_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(SipStack obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipStack(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public SipStack(SipCallback pCallback, String realm_uri, String impi_uri, String impu_uri) { + this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(pCallback), pCallback, realm_uri, impi_uri, impu_uri), true); + } + + public boolean start() { + return tinyWRAPJNI.SipStack_start(swigCPtr, this); + } + + public boolean setDebugCallback(DDebugCallback pCallback) { + return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, DDebugCallback.getCPtr(pCallback), pCallback); + } + + public boolean setDisplayName(String display_name) { + return tinyWRAPJNI.SipStack_setDisplayName(swigCPtr, this, display_name); + } + + public boolean setRealm(String realm_uri) { + return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri); + } + + public boolean setIMPI(String impi) { + return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi); + } + + public boolean setIMPU(String impu_uri) { + return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri); + } + + public boolean setPassword(String password) { + return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password); + } + + public boolean setAMF(String amf) { + return tinyWRAPJNI.SipStack_setAMF(swigCPtr, this, amf); + } + + public boolean setOperatorId(String opid) { + return tinyWRAPJNI.SipStack_setOperatorId(swigCPtr, this, opid); + } + + public boolean setProxyCSCF(String fqdn, int port, String transport, String ipversion) { + return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion); + } + + public boolean setLocalIP(String ip, String transport) { + return tinyWRAPJNI.SipStack_setLocalIP__SWIG_0(swigCPtr, this, ip, transport); + } + + public boolean setLocalIP(String ip) { + return tinyWRAPJNI.SipStack_setLocalIP__SWIG_1(swigCPtr, this, ip); + } + + public boolean setLocalPort(int port, String transport) { + return tinyWRAPJNI.SipStack_setLocalPort__SWIG_0(swigCPtr, this, port, transport); + } + + public boolean setLocalPort(int port) { + return tinyWRAPJNI.SipStack_setLocalPort__SWIG_1(swigCPtr, this, port); + } + + public boolean setEarlyIMS(boolean enabled) { + return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value); + } + + public boolean removeHeader(String name) { + return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name); + } + + public boolean addDnsServer(String ip) { + return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip); + } + + public boolean setDnsDiscovery(boolean enabled) { + return tinyWRAPJNI.SipStack_setDnsDiscovery(swigCPtr, this, enabled); + } + + public boolean setAoR(String ip, int port) { + return tinyWRAPJNI.SipStack_setAoR(swigCPtr, this, ip, port); + } + + public boolean setSigCompParams(long dms, long sms, long cpb, boolean enablePresDict) { + return tinyWRAPJNI.SipStack_setSigCompParams(swigCPtr, this, dms, sms, cpb, enablePresDict); + } + + public boolean addSigCompCompartment(String compId) { + return tinyWRAPJNI.SipStack_addSigCompCompartment(swigCPtr, this, compId); + } + + public boolean removeSigCompCompartment(String compId) { + return tinyWRAPJNI.SipStack_removeSigCompCompartment(swigCPtr, this, compId); + } + + public boolean setSTUNEnabledForICE(boolean enabled) { + return tinyWRAPJNI.SipStack_setSTUNEnabledForICE(swigCPtr, this, enabled); + } + + public boolean setSTUNServer(String hostname, int port) { + return tinyWRAPJNI.SipStack_setSTUNServer(swigCPtr, this, hostname, port); + } + + public boolean setSTUNCred(String login, String password) { + return tinyWRAPJNI.SipStack_setSTUNCred(swigCPtr, this, login, password); + } + + public boolean setSTUNEnabled(boolean enabled) { + return tinyWRAPJNI.SipStack_setSTUNEnabled(swigCPtr, this, enabled); + } + + public boolean setTLSSecAgree(boolean enabled) { + return tinyWRAPJNI.SipStack_setTLSSecAgree(swigCPtr, this, enabled); + } + + public boolean setSSLCertificates(String privKey, String pubKey, String caKey, boolean verify) { + return tinyWRAPJNI.SipStack_setSSLCertificates__SWIG_0(swigCPtr, this, privKey, pubKey, caKey, verify); + } + + public boolean setSSLCertificates(String privKey, String pubKey, String caKey) { + return tinyWRAPJNI.SipStack_setSSLCertificates__SWIG_1(swigCPtr, this, privKey, pubKey, caKey); + } + + public boolean setSSLCretificates(String privKey, String pubKey, String caKey, boolean verify) { + return tinyWRAPJNI.SipStack_setSSLCretificates__SWIG_0(swigCPtr, this, privKey, pubKey, caKey, verify); + } + + public boolean setSSLCretificates(String privKey, String pubKey, String caKey) { + return tinyWRAPJNI.SipStack_setSSLCretificates__SWIG_1(swigCPtr, this, privKey, pubKey, caKey); + } + + public boolean setIPSecSecAgree(boolean enabled) { + return tinyWRAPJNI.SipStack_setIPSecSecAgree(swigCPtr, this, enabled); + } + + public boolean setIPSecParameters(String algo, String ealgo, String mode, String proto) { + return tinyWRAPJNI.SipStack_setIPSecParameters(swigCPtr, this, algo, ealgo, mode, proto); + } + + public String dnsENUM(String service, String e164num, String domain) { + return tinyWRAPJNI.SipStack_dnsENUM(swigCPtr, this, service, e164num, domain); + } + + public String dnsNaptrSrv(String domain, String service, int[] OUTPUT) { + return tinyWRAPJNI.SipStack_dnsNaptrSrv(swigCPtr, this, domain, service, OUTPUT); + } + + public String dnsSrv(String service, int[] OUTPUT) { + return tinyWRAPJNI.SipStack_dnsSrv(swigCPtr, this, service, OUTPUT); + } + + public boolean setMaxFDs(long max_fds) { + return tinyWRAPJNI.SipStack_setMaxFDs(swigCPtr, this, max_fds); + } + + public String getLocalIPnPort(String protocol, int[] OUTPUT) { + return tinyWRAPJNI.SipStack_getLocalIPnPort(swigCPtr, this, protocol, OUTPUT); + } + + public String getPreferredIdentity() { + return tinyWRAPJNI.SipStack_getPreferredIdentity(swigCPtr, this); + } + + public boolean isValid() { + return tinyWRAPJNI.SipStack_isValid(swigCPtr, this); + } + + public boolean stop() { + return tinyWRAPJNI.SipStack_stop(swigCPtr, this); + } + + public static boolean initialize() { + return tinyWRAPJNI.SipStack_initialize(); + } + + public static boolean deInitialize() { + return tinyWRAPJNI.SipStack_deInitialize(); + } + + public static void setCodecs(tdav_codec_id_t codecs) { + tinyWRAPJNI.SipStack_setCodecs(codecs.swigValue()); + } + + public static void setCodecs_2(long codecs) { + tinyWRAPJNI.SipStack_setCodecs_2(codecs); + } + + public static boolean setCodecPriority(tdav_codec_id_t codec_id, int priority) { + return tinyWRAPJNI.SipStack_setCodecPriority(codec_id.swigValue(), priority); + } + + public static boolean setCodecPriority_2(int codec, int priority) { + return tinyWRAPJNI.SipStack_setCodecPriority_2(codec, priority); + } + + public static boolean isCodecSupported(tdav_codec_id_t codec_id) { + return tinyWRAPJNI.SipStack_isCodecSupported(codec_id.swigValue()); + } + + public static boolean isIPSecSupported() { + return tinyWRAPJNI.SipStack_isIPSecSupported(); + } + +} diff --git a/bindings/java/SipUri.java b/bindings/java/SipUri.java new file mode 100644 index 0000000..34413ef --- /dev/null +++ b/bindings/java/SipUri.java @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipUri { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipUri(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipUri obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipUri(swigCPtr); + } + swigCPtr = 0; + } + } + + public SipUri(String uriString, String displayName) { + this(tinyWRAPJNI.new_SipUri__SWIG_0(uriString, displayName), true); + } + + public SipUri(String uriString) { + this(tinyWRAPJNI.new_SipUri__SWIG_1(uriString), true); + } + + public static boolean isValid(String arg0) { + return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0); + } + + public boolean isValid() { + return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this); + } + + public String getScheme() { + return tinyWRAPJNI.SipUri_getScheme(swigCPtr, this); + } + + public String getHost() { + return tinyWRAPJNI.SipUri_getHost(swigCPtr, this); + } + + public int getPort() { + return tinyWRAPJNI.SipUri_getPort(swigCPtr, this); + } + + public String getUserName() { + return tinyWRAPJNI.SipUri_getUserName(swigCPtr, this); + } + + public String getPassword() { + return tinyWRAPJNI.SipUri_getPassword(swigCPtr, this); + } + + public String getDisplayName() { + return tinyWRAPJNI.SipUri_getDisplayName(swigCPtr, this); + } + + public String getParamValue(String pname) { + return tinyWRAPJNI.SipUri_getParamValue(swigCPtr, this, pname); + } + + public void setDisplayName(String displayName) { + tinyWRAPJNI.SipUri_setDisplayName(swigCPtr, this, displayName); + } + +} diff --git a/bindings/java/StackEvent.java b/bindings/java/StackEvent.java new file mode 100644 index 0000000..53a48dd --- /dev/null +++ b/bindings/java/StackEvent.java @@ -0,0 +1,38 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class StackEvent extends SipEvent { + private long swigCPtr; + + protected StackEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.StackEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(StackEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_StackEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + +} diff --git a/bindings/java/SubscriptionEvent.java b/bindings/java/SubscriptionEvent.java new file mode 100644 index 0000000..96c63fd --- /dev/null +++ b/bindings/java/SubscriptionEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SubscriptionEvent extends SipEvent { + private long swigCPtr; + + protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.SubscriptionEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(SubscriptionEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_subscribe_event_type_t getType() { + return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this)); + } + + public SubscriptionSession getSession() { + long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false); + } + + public SubscriptionSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.SubscriptionEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false); + } + +} diff --git a/bindings/java/SubscriptionSession.java b/bindings/java/SubscriptionSession.java new file mode 100644 index 0000000..bbe9c65 --- /dev/null +++ b/bindings/java/SubscriptionSession.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SubscriptionSession extends SipSession { + private long swigCPtr; + + protected SubscriptionSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.SubscriptionSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(SubscriptionSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SubscriptionSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public SubscriptionSession(SipStack pStack) { + this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean subscribe() { + return tinyWRAPJNI.SubscriptionSession_subscribe(swigCPtr, this); + } + + public boolean unSubscribe() { + return tinyWRAPJNI.SubscriptionSession_unSubscribe(swigCPtr, this); + } + +} diff --git a/bindings/java/T140Callback.java b/bindings/java/T140Callback.java new file mode 100644 index 0000000..c20de22 --- /dev/null +++ b/bindings/java/T140Callback.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class T140Callback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected T140Callback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(T140Callback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_T140Callback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.T140Callback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.T140Callback_change_ownership(this, swigCPtr, true); + } + + public T140Callback() { + this(tinyWRAPJNI.new_T140Callback(), true); + tinyWRAPJNI.T140Callback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int ondata(T140CallbackData pData) { + return (getClass() == T140Callback.class) ? tinyWRAPJNI.T140Callback_ondata(swigCPtr, this, T140CallbackData.getCPtr(pData), pData) : tinyWRAPJNI.T140Callback_ondataSwigExplicitT140Callback(swigCPtr, this, T140CallbackData.getCPtr(pData), pData); + } + +} diff --git a/bindings/java/T140CallbackData.java b/bindings/java/T140CallbackData.java new file mode 100644 index 0000000..b08a9c4 --- /dev/null +++ b/bindings/java/T140CallbackData.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class T140CallbackData { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected T140CallbackData(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(T140CallbackData obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_T140CallbackData(swigCPtr); + } + swigCPtr = 0; + } + } + + public byte[] getData() { + final int size = (int)this.getSize(); + if(size > 0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(size); + final int read = (int)this.getData(buffer, size); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } + + public tmedia_t140_data_type_t getType() { + return tmedia_t140_data_type_t.swigToEnum(tinyWRAPJNI.T140CallbackData_getType(swigCPtr, this)); + } + + public long getSize() { + return tinyWRAPJNI.T140CallbackData_getSize(swigCPtr, this); + } + + public long getData(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.T140CallbackData_getData(swigCPtr, this, pOutput, nMaxsize); + } + +} diff --git a/bindings/java/XcapCallback.java b/bindings/java/XcapCallback.java new file mode 100644 index 0000000..7976fec --- /dev/null +++ b/bindings/java/XcapCallback.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.XcapCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.XcapCallback_change_ownership(this, swigCPtr, true); + } + + public XcapCallback() { + this(tinyWRAPJNI.new_XcapCallback(), true); + tinyWRAPJNI.XcapCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int onEvent(XcapEvent e) { + return (getClass() == XcapCallback.class) ? tinyWRAPJNI.XcapCallback_onEvent(swigCPtr, this, XcapEvent.getCPtr(e), e) : tinyWRAPJNI.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, this, XcapEvent.getCPtr(e), e); + } + +} diff --git a/bindings/java/XcapEvent.java b/bindings/java/XcapEvent.java new file mode 100644 index 0000000..1d5f3b4 --- /dev/null +++ b/bindings/java/XcapEvent.java @@ -0,0 +1,47 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapEvent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapEvent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapEvent(swigCPtr); + } + swigCPtr = 0; + } + } + + public thttp_event_type_t getType() { + return thttp_event_type_t.swigToEnum(tinyWRAPJNI.XcapEvent_getType(swigCPtr, this)); + } + + public XcapMessage getXcapMessage() { + long cPtr = tinyWRAPJNI.XcapEvent_getXcapMessage(swigCPtr, this); + return (cPtr == 0) ? null : new XcapMessage(cPtr, false); + } + +} diff --git a/bindings/java/XcapMessage.java b/bindings/java/XcapMessage.java new file mode 100644 index 0000000..9366911 --- /dev/null +++ b/bindings/java/XcapMessage.java @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public byte[] getXcapContent() { + final int clen = (int)this.getXcapContentLength(); + if(clen>0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen); + final int read = (int)this.getXcapContent(buffer, clen); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } + + public XcapMessage() { + this(tinyWRAPJNI.new_XcapMessage(), true); + } + + public short getCode() { + return tinyWRAPJNI.XcapMessage_getCode(swigCPtr, this); + } + + public String getPhrase() { + return tinyWRAPJNI.XcapMessage_getPhrase(swigCPtr, this); + } + + public String getXcapHeaderValue(String name, long index) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderValue__SWIG_0(swigCPtr, this, name, index); + } + + public String getXcapHeaderValue(String name) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderValue__SWIG_1(swigCPtr, this, name); + } + + public String getXcapHeaderParamValue(String name, String param, long index) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index); + } + + public String getXcapHeaderParamValue(String name, String param) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderParamValue__SWIG_1(swigCPtr, this, name, param); + } + + public long getXcapContentLength() { + return tinyWRAPJNI.XcapMessage_getXcapContentLength(swigCPtr, this); + } + + public long getXcapContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.XcapMessage_getXcapContent(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/XcapSelector.java b/bindings/java/XcapSelector.java new file mode 100644 index 0000000..0a0c297 --- /dev/null +++ b/bindings/java/XcapSelector.java @@ -0,0 +1,80 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapSelector { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapSelector(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapSelector obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapSelector(swigCPtr); + } + swigCPtr = 0; + } + } + + public XcapSelector(XcapStack stack) { + this(tinyWRAPJNI.new_XcapSelector(XcapStack.getCPtr(stack), stack), true); + } + + public XcapSelector setAUID(String auid) { + long cPtr = tinyWRAPJNI.XcapSelector_setAUID(swigCPtr, this, auid); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setName(String qname) { + long cPtr = tinyWRAPJNI.XcapSelector_setName(swigCPtr, this, qname); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setAttribute(String qname, String att_qname, String att_value) { + long cPtr = tinyWRAPJNI.XcapSelector_setAttribute(swigCPtr, this, qname, att_qname, att_value); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setPos(String qname, long pos) { + long cPtr = tinyWRAPJNI.XcapSelector_setPos(swigCPtr, this, qname, pos); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setPosAttribute(String qname, long pos, String att_qname, String att_value) { + long cPtr = tinyWRAPJNI.XcapSelector_setPosAttribute(swigCPtr, this, qname, pos, att_qname, att_value); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setNamespace(String prefix, String value) { + long cPtr = tinyWRAPJNI.XcapSelector_setNamespace(swigCPtr, this, prefix, value); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public String getString() { + return tinyWRAPJNI.XcapSelector_getString(swigCPtr, this); + } + + public void reset() { + tinyWRAPJNI.XcapSelector_reset(swigCPtr, this); + } + +} diff --git a/bindings/java/XcapStack.java b/bindings/java/XcapStack.java new file mode 100644 index 0000000..80a360a --- /dev/null +++ b/bindings/java/XcapStack.java @@ -0,0 +1,118 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapStack { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapStack(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapStack obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapStack(swigCPtr); + } + swigCPtr = 0; + } + } + + public XcapStack(XcapCallback callback, String xui, String password, String xcap_root) { + this(tinyWRAPJNI.new_XcapStack(XcapCallback.getCPtr(callback), callback, xui, password, xcap_root), true); + } + + public boolean registerAUID(String id, String mime_type, String ns, String document_name, boolean is_global) { + return tinyWRAPJNI.XcapStack_registerAUID(swigCPtr, this, id, mime_type, ns, document_name, is_global); + } + + public boolean start() { + return tinyWRAPJNI.XcapStack_start(swigCPtr, this); + } + + public boolean setCredentials(String xui, String password) { + return tinyWRAPJNI.XcapStack_setCredentials(swigCPtr, this, xui, password); + } + + public boolean setXcapRoot(String xcap_root) { + return tinyWRAPJNI.XcapStack_setXcapRoot(swigCPtr, this, xcap_root); + } + + public boolean setLocalIP(String ip) { + return tinyWRAPJNI.XcapStack_setLocalIP(swigCPtr, this, ip); + } + + public boolean setLocalPort(long port) { + return tinyWRAPJNI.XcapStack_setLocalPort(swigCPtr, this, port); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.XcapStack_addHeader(swigCPtr, this, name, value); + } + + public boolean removeHeader(String name) { + return tinyWRAPJNI.XcapStack_removeHeader(swigCPtr, this, name); + } + + public boolean setTimeout(long timeout) { + return tinyWRAPJNI.XcapStack_setTimeout(swigCPtr, this, timeout); + } + + public boolean getDocument(String url) { + return tinyWRAPJNI.XcapStack_getDocument(swigCPtr, this, url); + } + + public boolean getElement(String url) { + return tinyWRAPJNI.XcapStack_getElement(swigCPtr, this, url); + } + + public boolean getAttribute(String url) { + return tinyWRAPJNI.XcapStack_getAttribute(swigCPtr, this, url); + } + + public boolean deleteDocument(String url) { + return tinyWRAPJNI.XcapStack_deleteDocument(swigCPtr, this, url); + } + + public boolean deleteElement(String url) { + return tinyWRAPJNI.XcapStack_deleteElement(swigCPtr, this, url); + } + + public boolean deleteAttribute(String url) { + return tinyWRAPJNI.XcapStack_deleteAttribute(swigCPtr, this, url); + } + + public boolean putDocument(String url, java.nio.ByteBuffer payload, long len, String contentType) { + return tinyWRAPJNI.XcapStack_putDocument(swigCPtr, this, url, payload, len, contentType); + } + + public boolean putElement(String url, java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.XcapStack_putElement(swigCPtr, this, url, payload, len); + } + + public boolean putAttribute(String url, java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.XcapStack_putAttribute(swigCPtr, this, url, payload, len); + } + + public boolean stop() { + return tinyWRAPJNI.XcapStack_stop(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ActionConfig.java b/bindings/java/android/ActionConfig.java new file mode 100644 index 0000000..cf84060 --- /dev/null +++ b/bindings/java/android/ActionConfig.java @@ -0,0 +1,69 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ActionConfig { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ActionConfig(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ActionConfig obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ActionConfig(swigCPtr); + } + swigCPtr = 0; + } + } + + public ActionConfig() { + this(tinyWRAPJNI.new_ActionConfig(), true); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.ActionConfig_addHeader(swigCPtr, this, name, value); + } + + public boolean addPayload(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.ActionConfig_addPayload(swigCPtr, this, payload, len); + } + + public boolean setActiveMedia(twrap_media_type_t type) { + return tinyWRAPJNI.ActionConfig_setActiveMedia(swigCPtr, this, type.swigValue()); + } + + public ActionConfig setResponseLine(short code, String phrase) { + long cPtr = tinyWRAPJNI.ActionConfig_setResponseLine(swigCPtr, this, code, phrase); + return (cPtr == 0) ? null : new ActionConfig(cPtr, false); + } + + public ActionConfig setMediaString(twrap_media_type_t type, String key, String value) { + long cPtr = tinyWRAPJNI.ActionConfig_setMediaString(swigCPtr, this, type.swigValue(), key, value); + return (cPtr == 0) ? null : new ActionConfig(cPtr, false); + } + + public ActionConfig setMediaInt(twrap_media_type_t type, String key, int value) { + long cPtr = tinyWRAPJNI.ActionConfig_setMediaInt(swigCPtr, this, type.swigValue(), key, value); + return (cPtr == 0) ? null : new ActionConfig(cPtr, false); + } + +} diff --git a/bindings/java/android/AudioResampler.java b/bindings/java/android/AudioResampler.java new file mode 100644 index 0000000..fb7b9e4 --- /dev/null +++ b/bindings/java/android/AudioResampler.java @@ -0,0 +1,58 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class AudioResampler { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected AudioResampler(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(AudioResampler obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_AudioResampler(swigCPtr); + } + swigCPtr = 0; + } + } + + public AudioResampler(long nInFreq, long nOutFreq, long nFrameDuration, long nChannels, long nQuality) { + this(tinyWRAPJNI.new_AudioResampler(nInFreq, nOutFreq, nFrameDuration, nChannels, nQuality), true); + } + + public boolean isValid() { + return tinyWRAPJNI.AudioResampler_isValid(swigCPtr, this); + } + + public long getOutputRequiredSizeInShort() { + return tinyWRAPJNI.AudioResampler_getOutputRequiredSizeInShort(swigCPtr, this); + } + + public long getInputRequiredSizeInShort() { + return tinyWRAPJNI.AudioResampler_getInputRequiredSizeInShort(swigCPtr, this); + } + + public long process(java.nio.ByteBuffer pInData, long nInSizeInBytes, java.nio.ByteBuffer pOutData, long nOutSizeInBytes) { + return tinyWRAPJNI.AudioResampler_process(swigCPtr, this, pInData, nInSizeInBytes, pOutData, nOutSizeInBytes); + } + +} diff --git a/bindings/java/android/CallSession.java b/bindings/java/android/CallSession.java new file mode 100644 index 0000000..ef4d254 --- /dev/null +++ b/bindings/java/android/CallSession.java @@ -0,0 +1,234 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class CallSession extends InviteSession { + private long swigCPtr; + + protected CallSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.CallSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(CallSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_CallSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public CallSession(SipStack pStack) { + this(tinyWRAPJNI.new_CallSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean callAudio(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callAudio(String remoteUriString) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callAudio(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callAudio(SipUri remoteUri) { + return tinyWRAPJNI.CallSession_callAudio__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri); + } + + public boolean callAudioVideo(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callAudioVideo(String remoteUriString) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callAudioVideo(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callAudioVideo(SipUri remoteUri) { + return tinyWRAPJNI.CallSession_callAudioVideo__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri); + } + + public boolean callVideo(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callVideo(String remoteUriString) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callVideo(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.CallSession_callVideo__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callVideo(SipUri remoteUri) { + 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); + } + + public boolean set100rel(boolean enabled) { + return tinyWRAPJNI.CallSession_set100rel(swigCPtr, this, enabled); + } + + public boolean setRtcp(boolean enabled) { + return tinyWRAPJNI.CallSession_setRtcp(swigCPtr, this, enabled); + } + + public boolean setRtcpMux(boolean enabled) { + return tinyWRAPJNI.CallSession_setRtcpMux(swigCPtr, this, enabled); + } + + public boolean setSRtpMode(tmedia_srtp_mode_t mode) { + return tinyWRAPJNI.CallSession_setSRtpMode(swigCPtr, this, mode.swigValue()); + } + + public boolean setAvpfMode(tmedia_mode_t mode) { + return tinyWRAPJNI.CallSession_setAvpfMode(swigCPtr, this, mode.swigValue()); + } + + public boolean setICE(boolean enabled) { + return tinyWRAPJNI.CallSession_setICE(swigCPtr, this, enabled); + } + + public boolean setICEStun(boolean enabled) { + return tinyWRAPJNI.CallSession_setICEStun(swigCPtr, this, enabled); + } + + public boolean setICETurn(boolean enabled) { + return tinyWRAPJNI.CallSession_setICETurn(swigCPtr, this, enabled); + } + + public boolean setSTUNServer(String hostname, int port) { + return tinyWRAPJNI.CallSession_setSTUNServer(swigCPtr, this, hostname, port); + } + + public boolean setSTUNCred(String username, String password) { + return tinyWRAPJNI.CallSession_setSTUNCred(swigCPtr, this, username, password); + } + + public boolean setVideoFps(int fps) { + return tinyWRAPJNI.CallSession_setVideoFps(swigCPtr, this, fps); + } + + public boolean setVideoBandwidthUploadMax(int max) { + return tinyWRAPJNI.CallSession_setVideoBandwidthUploadMax(swigCPtr, this, max); + } + + public boolean setVideoBandwidthDownloadMax(int max) { + return tinyWRAPJNI.CallSession_setVideoBandwidthDownloadMax(swigCPtr, this, max); + } + + public boolean setVideoPrefSize(tmedia_pref_video_size_t pref_video_size) { + return tinyWRAPJNI.CallSession_setVideoPrefSize(swigCPtr, this, pref_video_size.swigValue()); + } + + public boolean setQoS(tmedia_qos_stype_t type, tmedia_qos_strength_t strength) { + return tinyWRAPJNI.CallSession_setQoS(swigCPtr, this, type.swigValue(), strength.swigValue()); + } + + public boolean hold(ActionConfig config) { + return tinyWRAPJNI.CallSession_hold__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean hold() { + return tinyWRAPJNI.CallSession_hold__SWIG_1(swigCPtr, this); + } + + public boolean resume(ActionConfig config) { + return tinyWRAPJNI.CallSession_resume__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean resume() { + return tinyWRAPJNI.CallSession_resume__SWIG_1(swigCPtr, this); + } + + public boolean transfer(String referToUriString, ActionConfig config) { + return tinyWRAPJNI.CallSession_transfer__SWIG_0(swigCPtr, this, referToUriString, ActionConfig.getCPtr(config), config); + } + + public boolean transfer(String referToUriString) { + return tinyWRAPJNI.CallSession_transfer__SWIG_1(swigCPtr, this, referToUriString); + } + + public boolean acceptTransfer(ActionConfig config) { + return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean acceptTransfer() { + return tinyWRAPJNI.CallSession_acceptTransfer__SWIG_1(swigCPtr, this); + } + + public boolean rejectTransfer(ActionConfig config) { + return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean rejectTransfer() { + return tinyWRAPJNI.CallSession_rejectTransfer__SWIG_1(swigCPtr, this); + } + + public boolean sendDTMF(int number) { + return tinyWRAPJNI.CallSession_sendDTMF(swigCPtr, this, number); + } + + public long getSessionTransferId() { + 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); + } + +} diff --git a/bindings/java/android/Codec.java b/bindings/java/android/Codec.java new file mode 100644 index 0000000..6c2a68d --- /dev/null +++ b/bindings/java/android/Codec.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class Codec { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected Codec(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Codec obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_Codec(swigCPtr); + } + swigCPtr = 0; + } + } + + public twrap_media_type_t getMediaType() { + return twrap_media_type_t.swigToEnum(tinyWRAPJNI.Codec_getMediaType(swigCPtr, this)); + } + + public String getName() { + return tinyWRAPJNI.Codec_getName(swigCPtr, this); + } + + public String getDescription() { + return tinyWRAPJNI.Codec_getDescription(swigCPtr, this); + } + + public String getNegFormat() { + return tinyWRAPJNI.Codec_getNegFormat(swigCPtr, this); + } + + public int getAudioSamplingRate() { + return tinyWRAPJNI.Codec_getAudioSamplingRate(swigCPtr, this); + } + + public int getAudioChannels() { + return tinyWRAPJNI.Codec_getAudioChannels(swigCPtr, this); + } + + public int getAudioPTime() { + return tinyWRAPJNI.Codec_getAudioPTime(swigCPtr, this); + } + +} diff --git a/bindings/java/android/DDebugCallback.java b/bindings/java/android/DDebugCallback.java new file mode 100644 index 0000000..e469d30 --- /dev/null +++ b/bindings/java/android/DDebugCallback.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class DDebugCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected DDebugCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(DDebugCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_DDebugCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.DDebugCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.DDebugCallback_change_ownership(this, swigCPtr, true); + } + + public DDebugCallback() { + this(tinyWRAPJNI.new_DDebugCallback(), true); + tinyWRAPJNI.DDebugCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnDebugInfo(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugInfo(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(swigCPtr, this, message); + } + + public int OnDebugWarn(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugWarn(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(swigCPtr, this, message); + } + + public int OnDebugError(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugError(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(swigCPtr, this, message); + } + + public int OnDebugFatal(String message) { + return (getClass() == DDebugCallback.class) ? tinyWRAPJNI.DDebugCallback_OnDebugFatal(swigCPtr, this, message) : tinyWRAPJNI.DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(swigCPtr, this, message); + } + +} diff --git a/bindings/java/android/DialogEvent.java b/bindings/java/android/DialogEvent.java new file mode 100644 index 0000000..fc83b5f --- /dev/null +++ b/bindings/java/android/DialogEvent.java @@ -0,0 +1,38 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class DialogEvent extends SipEvent { + private long swigCPtr; + + protected DialogEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.DialogEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(DialogEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_DialogEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + +} diff --git a/bindings/java/android/InfoEvent.java b/bindings/java/android/InfoEvent.java new file mode 100644 index 0000000..9166a57 --- /dev/null +++ b/bindings/java/android/InfoEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InfoEvent extends SipEvent { + private long swigCPtr; + + protected InfoEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InfoEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InfoEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InfoEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_info_event_type_t getType() { + return tsip_info_event_type_t.swigToEnum(tinyWRAPJNI.InfoEvent_getType(swigCPtr, this)); + } + + public InfoSession getSession() { + long cPtr = tinyWRAPJNI.InfoEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new InfoSession(cPtr, false); + } + + public InfoSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.InfoEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new InfoSession(cPtr, false); + } + +} diff --git a/bindings/java/android/InfoSession.java b/bindings/java/android/InfoSession.java new file mode 100644 index 0000000..f7c7996 --- /dev/null +++ b/bindings/java/android/InfoSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InfoSession extends SipSession { + private long swigCPtr; + + protected InfoSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InfoSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InfoSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InfoSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public InfoSession(SipStack pStack) { + this(tinyWRAPJNI.new_InfoSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean send(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.InfoSession_send__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean send(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.InfoSession_send__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.InfoSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.InfoSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.InfoSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.InfoSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/android/InviteEvent.java b/bindings/java/android/InviteEvent.java new file mode 100644 index 0000000..11675d1 --- /dev/null +++ b/bindings/java/android/InviteEvent.java @@ -0,0 +1,61 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InviteEvent extends SipEvent { + private long swigCPtr; + + protected InviteEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InviteEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InviteEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InviteEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_invite_event_type_t getType() { + return tsip_invite_event_type_t.swigToEnum(tinyWRAPJNI.InviteEvent_getType(swigCPtr, this)); + } + + public twrap_media_type_t getMediaType() { + return twrap_media_type_t.swigToEnum(tinyWRAPJNI.InviteEvent_getMediaType(swigCPtr, this)); + } + + public InviteSession getSession() { + long cPtr = tinyWRAPJNI.InviteEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new InviteSession(cPtr, false); + } + + public CallSession takeCallSessionOwnership() { + long cPtr = tinyWRAPJNI.InviteEvent_takeCallSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new CallSession(cPtr, true); + } + + public MsrpSession takeMsrpSessionOwnership() { + long cPtr = tinyWRAPJNI.InviteEvent_takeMsrpSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new MsrpSession(cPtr, true); + } + +} diff --git a/bindings/java/android/InviteSession.java b/bindings/java/android/InviteSession.java new file mode 100644 index 0000000..bf85bdf --- /dev/null +++ b/bindings/java/android/InviteSession.java @@ -0,0 +1,79 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class InviteSession extends SipSession { + private long swigCPtr; + + protected InviteSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.InviteSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(InviteSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_InviteSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public InviteSession(SipStack Stack) { + this(tinyWRAPJNI.new_InviteSession(SipStack.getCPtr(Stack), Stack), true); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.InviteSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.InviteSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean hangup(ActionConfig config) { + return tinyWRAPJNI.InviteSession_hangup__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean hangup() { + return tinyWRAPJNI.InviteSession_hangup__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.InviteSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.InviteSession_reject__SWIG_1(swigCPtr, this); + } + + public boolean sendInfo(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.InviteSession_sendInfo__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean sendInfo(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.InviteSession_sendInfo__SWIG_1(swigCPtr, this, payload, len); + } + + public MediaSessionMgr getMediaMgr() { + long cPtr = tinyWRAPJNI.InviteSession_getMediaMgr(swigCPtr, this); + return (cPtr == 0) ? null : new MediaSessionMgr(cPtr, false); + } + +} diff --git a/bindings/java/android/MediaContent.java b/bindings/java/android/MediaContent.java new file mode 100644 index 0000000..d7ef55f --- /dev/null +++ b/bindings/java/android/MediaContent.java @@ -0,0 +1,68 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MediaContent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MediaContent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MediaContent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MediaContent(swigCPtr); + } + swigCPtr = 0; + } + } + + public String getType() { + return tinyWRAPJNI.MediaContent_getType(swigCPtr, this); + } + + public long getDataLength() { + return tinyWRAPJNI.MediaContent_getDataLength(swigCPtr, this); + } + + public long getData(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.MediaContent_getData(swigCPtr, this, pOutput, nMaxsize); + } + + public static MediaContent parse(java.nio.ByteBuffer pData, long nSize, String pType) { + long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_0(pData, nSize, pType); + return (cPtr == 0) ? null : new MediaContent(cPtr, true); + } + + public static MediaContentCPIM parse(java.nio.ByteBuffer pData, long nSize) { + long cPtr = tinyWRAPJNI.MediaContent_parse__SWIG_1(pData, nSize); + return (cPtr == 0) ? null : new MediaContentCPIM(cPtr, true); + } + + public long getPayloadLength() { + return tinyWRAPJNI.MediaContent_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.MediaContent_getPayload(swigCPtr, this, pOutput, nMaxsize); + } + +} diff --git a/bindings/java/android/MediaContentCPIM.java b/bindings/java/android/MediaContentCPIM.java new file mode 100644 index 0000000..65bd4ea --- /dev/null +++ b/bindings/java/android/MediaContentCPIM.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MediaContentCPIM extends MediaContent { + private long swigCPtr; + + protected MediaContentCPIM(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MediaContentCPIM_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MediaContentCPIM obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MediaContentCPIM(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public long getPayloadLength() { + return tinyWRAPJNI.MediaContentCPIM_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.MediaContentCPIM_getPayload(swigCPtr, this, pOutput, nMaxsize); + } + + public String getHeaderValue(String pName) { + return tinyWRAPJNI.MediaContentCPIM_getHeaderValue(swigCPtr, this, pName); + } + +} diff --git a/bindings/java/android/MediaSessionMgr.java b/bindings/java/android/MediaSessionMgr.java new file mode 100644 index 0000000..f5d0177 --- /dev/null +++ b/bindings/java/android/MediaSessionMgr.java @@ -0,0 +1,357 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MediaSessionMgr { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MediaSessionMgr(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MediaSessionMgr obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MediaSessionMgr(swigCPtr); + } + swigCPtr = 0; + } + } + + public boolean sessionSetInt32(twrap_media_type_t media, String key, int value) { + return tinyWRAPJNI.MediaSessionMgr_sessionSetInt32(swigCPtr, this, media.swigValue(), key, value); + } + + public int sessionGetInt32(twrap_media_type_t media, String key) { + return tinyWRAPJNI.MediaSessionMgr_sessionGetInt32(swigCPtr, this, media.swigValue(), key); + } + + public boolean consumerSetInt32(twrap_media_type_t media, String key, int value) { + return tinyWRAPJNI.MediaSessionMgr_consumerSetInt32(swigCPtr, this, media.swigValue(), key, value); + } + + public boolean consumerSetInt64(twrap_media_type_t media, String key, long value) { + return tinyWRAPJNI.MediaSessionMgr_consumerSetInt64(swigCPtr, this, media.swigValue(), key, value); + } + + public boolean producerSetInt32(twrap_media_type_t media, String key, int value) { + return tinyWRAPJNI.MediaSessionMgr_producerSetInt32(swigCPtr, this, media.swigValue(), key, value); + } + + public boolean producerSetInt64(twrap_media_type_t media, String key, long value) { + return tinyWRAPJNI.MediaSessionMgr_producerSetInt64(swigCPtr, this, media.swigValue(), key, value); + } + + public Codec producerGetCodec(twrap_media_type_t media) { + long cPtr = tinyWRAPJNI.MediaSessionMgr_producerGetCodec(swigCPtr, this, media.swigValue()); + return (cPtr == 0) ? null : new Codec(cPtr, true); + } + + public ProxyPlugin findProxyPluginConsumer(twrap_media_type_t media) { + long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginConsumer(swigCPtr, this, media.swigValue()); + return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false); + } + + public ProxyPlugin findProxyPluginProducer(twrap_media_type_t media) { + long cPtr = tinyWRAPJNI.MediaSessionMgr_findProxyPluginProducer(swigCPtr, this, media.swigValue()); + return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false); + } + + public static long registerAudioPluginFromFile(String path) { + return tinyWRAPJNI.MediaSessionMgr_registerAudioPluginFromFile(path); + } + + public java.math.BigInteger getSessionId(twrap_media_type_t media) { + return tinyWRAPJNI.MediaSessionMgr_getSessionId(swigCPtr, this, media.swigValue()); + } + + public static boolean defaultsSetProfile(tmedia_profile_t profile) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetProfile(profile.swigValue()); + } + + public static tmedia_profile_t defaultsGetProfile() { + return tmedia_profile_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetProfile()); + } + + public static boolean defaultsSetBandwidthLevel(tmedia_bandwidth_level_t bl) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthLevel(bl.swigValue()); + } + + public static tmedia_bandwidth_level_t defaultsGetBandwidthLevel() { + return tmedia_bandwidth_level_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetBandwidthLevel()); + } + + public static boolean defaultsSetCongestionCtrlEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled); + } + + public static boolean defaultsSetVideoMotionRank(int video_motion_rank) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank); + } + + public static boolean defaultsSetVideoFps(int video_fps) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoFps(video_fps); + } + + public static boolean defaultsSetBandwidthVideoUploadMax(int bw_video_up_max_kbps) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps); + } + + public static boolean defaultsSetBandwidthVideoDownloadMax(int bw_video_down_max_kbps) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps); + } + + public static boolean defaultsSetPrefVideoSize(tmedia_pref_video_size_t pref_video_size) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetPrefVideoSize(pref_video_size.swigValue()); + } + + public static boolean defaultsSetJbMargin(long jb_margin_ms) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms); + } + + public static boolean defaultsSetJbMaxLateRate(long jb_late_rate_percent) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent); + } + + public static boolean defaultsSetEchoTail(long echo_tail) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoTail(echo_tail); + } + + public static long defaultsGetEchoTail() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoTail(); + } + + public static boolean defaultsSetEchoSkew(long echo_skew) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSkew(echo_skew); + } + + public static boolean defaultsSetEchoSuppEnabled(boolean echo_supp_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled); + } + + public static boolean defaultsGetEchoSuppEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetEchoSuppEnabled(); + } + + public static boolean defaultsSetAgcEnabled(boolean agc_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled); + } + + public static boolean defaultsGetAgcEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcEnabled(); + } + + public static boolean defaultsSetAgcLevel(float agc_level) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAgcLevel(agc_level); + } + + public static float defaultsGetAgcLevel() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetAgcLevel(); + } + + public static boolean defaultsSetVadEnabled(boolean vad_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVadEnabled(vad_enabled); + } + + public static boolean defaultsGetGetVadEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetGetVadEnabled(); + } + + public static boolean defaultsSetNoiseSuppEnabled(boolean noise_supp_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled); + } + + public static boolean defaultsGetNoiseSuppEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppEnabled(); + } + + public static boolean defaultsSetNoiseSuppLevel(int noise_supp_level) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level); + } + + public static int defaultsGetNoiseSuppLevel() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetNoiseSuppLevel(); + } + + public static boolean defaultsSet100relEnabled(boolean _100rel_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled); + } + + public static boolean defaultsGet100relEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGet100relEnabled(); + } + + public static boolean defaultsSetScreenSize(int sx, int sy) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetScreenSize(sx, sy); + } + + public static boolean defaultsSetAudioGain(int producer_gain, int consumer_gain) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioGain(producer_gain, consumer_gain); + } + + public static boolean defaultsSetAudioPtime(int ptime) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioPtime(ptime); + } + + public static boolean defaultsSetAudioChannels(int channel_playback, int channel_record) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAudioChannels(channel_playback, channel_record); + } + + public static boolean defaultsSetRtpPortRange(int range_start, int range_stop) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpPortRange(range_start, range_stop); + } + + public static boolean defaultsSetRtpSymetricEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled); + } + + public static boolean defaultsSetMediaType(twrap_media_type_t media_type) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetMediaType(media_type.swigValue()); + } + + public static boolean defaultsSetVolume(int volume) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVolume(volume); + } + + public static int defaultsGetVolume() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetVolume(); + } + + public static boolean defaultsSetInviteSessionTimers(int timeout, String refresher) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetInviteSessionTimers(timeout, refresher); + } + + public static boolean defaultsSetSRtpMode(tmedia_srtp_mode_t mode) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpMode(mode.swigValue()); + } + + public static tmedia_srtp_mode_t defaultsGetSRtpMode() { + return tmedia_srtp_mode_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpMode()); + } + + public static boolean defaultsSetSRtpType(tmedia_srtp_type_t srtp_type) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetSRtpType(srtp_type.swigValue()); + } + + public static tmedia_srtp_type_t defaultsGetSRtpType() { + return tmedia_srtp_type_t.swigToEnum(tinyWRAPJNI.MediaSessionMgr_defaultsGetSRtpType()); + } + + public static boolean defaultsSetRtcpEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpEnabled(enabled); + } + + public static boolean defaultsGetRtcpEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpEnabled(); + } + + public static boolean defaultsSetRtcpMuxEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled); + } + + public static boolean defaultsGetRtcpMuxEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtcpMuxEnabled(); + } + + public static boolean defaultsSetStunEnabled(boolean stun_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunEnabled(stun_enabled); + } + + public static boolean defaultsSetIceStunEnabled(boolean icestun_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled); + } + + public static boolean defaultsSetIceTurnEnabled(boolean iceturn_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled); + } + + public static boolean defaultsSetStunServer(String server_ip, int server_port) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunServer(server_ip, server_port); + } + + public static boolean defaultsSetStunCred(String username, String password) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetStunCred(username, password); + } + + public static boolean defaultsSetIceEnabled(boolean ice_enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetIceEnabled(ice_enabled); + } + + public static boolean defaultsSetByPassEncoding(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassEncoding(enabled); + } + + public static boolean defaultsGetByPassEncoding() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassEncoding(); + } + + public static boolean defaultsSetByPassDecoding(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetByPassDecoding(enabled); + } + + public static boolean defaultsGetByPassDecoding() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetByPassDecoding(); + } + + public static boolean defaultsSetVideoJbEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoJbEnabled(enabled); + } + + public static boolean defaultsGetVideoJbEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoJbEnabled(); + } + + public static boolean defaultsSetVideoZeroArtifactsEnabled(boolean enabled) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled); + } + + public static boolean defaultsGetVideoZeroArtifactsEnabled() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(); + } + + public static boolean defaultsSetRtpBuffSize(long buffSize) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetRtpBuffSize(buffSize); + } + + public static long defaultsGetRtpBuffSize() { + return tinyWRAPJNI.MediaSessionMgr_defaultsGetRtpBuffSize(); + } + + public static boolean defaultsSetAvpfTail(long tail_min, long tail_max) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfTail(tail_min, tail_max); + } + + public static boolean defaultsSetAvpfMode(tmedia_mode_t mode) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetAvpfMode(mode.swigValue()); + } + + public static boolean defaultsSetOpusMaxCaptureRate(long opus_maxcapturerate) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate); + } + + public static boolean defaultsSetOpusMaxPlaybackRate(long opus_maxplaybackrate) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate); + } + + public static boolean defaultsSetMaxFds(int max_fds) { + return tinyWRAPJNI.MediaSessionMgr_defaultsSetMaxFds(max_fds); + } + +} diff --git a/bindings/java/android/MessagingEvent.java b/bindings/java/android/MessagingEvent.java new file mode 100644 index 0000000..4d88c33 --- /dev/null +++ b/bindings/java/android/MessagingEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MessagingEvent extends SipEvent { + private long swigCPtr; + + protected MessagingEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MessagingEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MessagingEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MessagingEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_message_event_type_t getType() { + return tsip_message_event_type_t.swigToEnum(tinyWRAPJNI.MessagingEvent_getType(swigCPtr, this)); + } + + public MessagingSession getSession() { + long cPtr = tinyWRAPJNI.MessagingEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new MessagingSession(cPtr, false); + } + + public MessagingSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.MessagingEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new MessagingSession(cPtr, true); + } + +} diff --git a/bindings/java/android/MessagingSession.java b/bindings/java/android/MessagingSession.java new file mode 100644 index 0000000..95e0389 --- /dev/null +++ b/bindings/java/android/MessagingSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MessagingSession extends SipSession { + private long swigCPtr; + + protected MessagingSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MessagingSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MessagingSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MessagingSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public MessagingSession(SipStack pStack) { + this(tinyWRAPJNI.new_MessagingSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean send(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.MessagingSession_send__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean send(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.MessagingSession_send__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.MessagingSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.MessagingSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.MessagingSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.MessagingSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/android/MsrpCallback.java b/bindings/java/android/MsrpCallback.java new file mode 100644 index 0000000..55de1a8 --- /dev/null +++ b/bindings/java/android/MsrpCallback.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MsrpCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.MsrpCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.MsrpCallback_change_ownership(this, swigCPtr, true); + } + + public MsrpCallback() { + this(tinyWRAPJNI.new_MsrpCallback(), true); + tinyWRAPJNI.MsrpCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnEvent(MsrpEvent e) { + return (getClass() == MsrpCallback.class) ? tinyWRAPJNI.MsrpCallback_OnEvent(swigCPtr, this, MsrpEvent.getCPtr(e), e) : tinyWRAPJNI.MsrpCallback_OnEventSwigExplicitMsrpCallback(swigCPtr, this, MsrpEvent.getCPtr(e), e); + } + +} diff --git a/bindings/java/android/MsrpEvent.java b/bindings/java/android/MsrpEvent.java new file mode 100644 index 0000000..7a024d4 --- /dev/null +++ b/bindings/java/android/MsrpEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpEvent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MsrpEvent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpEvent(swigCPtr); + } + swigCPtr = 0; + } + } + + public tmsrp_event_type_t getType() { + return tmsrp_event_type_t.swigToEnum(tinyWRAPJNI.MsrpEvent_getType(swigCPtr, this)); + } + + public MsrpSession getSipSession() { + long cPtr = tinyWRAPJNI.MsrpEvent_getSipSession(swigCPtr, this); + return (cPtr == 0) ? null : new MsrpSession(cPtr, false); + } + + public MsrpMessage getMessage() { + long cPtr = tinyWRAPJNI.MsrpEvent_getMessage(swigCPtr, this); + return (cPtr == 0) ? null : new MsrpMessage(cPtr, false); + } + +} diff --git a/bindings/java/android/MsrpMessage.java b/bindings/java/android/MsrpMessage.java new file mode 100644 index 0000000..8fd6e39 --- /dev/null +++ b/bindings/java/android/MsrpMessage.java @@ -0,0 +1,90 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected MsrpMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public MsrpMessage() { + this(tinyWRAPJNI.new_MsrpMessage(), true); + } + + public boolean isRequest() { + return tinyWRAPJNI.MsrpMessage_isRequest(swigCPtr, this); + } + + public short getCode() { + return tinyWRAPJNI.MsrpMessage_getCode(swigCPtr, this); + } + + public String getPhrase() { + return tinyWRAPJNI.MsrpMessage_getPhrase(swigCPtr, this); + } + + public tmsrp_request_type_t getRequestType() { + return tmsrp_request_type_t.swigToEnum(tinyWRAPJNI.MsrpMessage_getRequestType(swigCPtr, this)); + } + + public void getByteRange(long[] arg0, long[] arg1, long[] arg2) { + tinyWRAPJNI.MsrpMessage_getByteRange(swigCPtr, this, arg0, arg1, arg2); + } + + public boolean isLastChunck() { + return tinyWRAPJNI.MsrpMessage_isLastChunck(swigCPtr, this); + } + + public boolean isFirstChunck() { + return tinyWRAPJNI.MsrpMessage_isFirstChunck(swigCPtr, this); + } + + public boolean isSuccessReport() { + return tinyWRAPJNI.MsrpMessage_isSuccessReport(swigCPtr, this); + } + + public String getMsrpHeaderValue(String name) { + return tinyWRAPJNI.MsrpMessage_getMsrpHeaderValue(swigCPtr, this, name); + } + + public String getMsrpHeaderParamValue(String name, String param) { + return tinyWRAPJNI.MsrpMessage_getMsrpHeaderParamValue(swigCPtr, this, name, param); + } + + public long getMsrpContentLength() { + return tinyWRAPJNI.MsrpMessage_getMsrpContentLength(swigCPtr, this); + } + + public long getMsrpContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.MsrpMessage_getMsrpContent(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/android/MsrpSession.java b/bindings/java/android/MsrpSession.java new file mode 100644 index 0000000..6393dec --- /dev/null +++ b/bindings/java/android/MsrpSession.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class MsrpSession extends InviteSession { + private long swigCPtr; + + protected MsrpSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.MsrpSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(MsrpSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_MsrpSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public MsrpSession(SipStack pStack, MsrpCallback pCallback) { + this(tinyWRAPJNI.new_MsrpSession(SipStack.getCPtr(pStack), pStack, MsrpCallback.getCPtr(pCallback), pCallback), true); + } + + public boolean setCallback(MsrpCallback pCallback) { + return tinyWRAPJNI.MsrpSession_setCallback(swigCPtr, this, MsrpCallback.getCPtr(pCallback), pCallback); + } + + public boolean callMsrp(String remoteUriString, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_0(swigCPtr, this, remoteUriString, ActionConfig.getCPtr(config), config); + } + + public boolean callMsrp(String remoteUriString) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_1(swigCPtr, this, remoteUriString); + } + + public boolean callMsrp(SipUri remoteUri, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_2(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri, ActionConfig.getCPtr(config), config); + } + + public boolean callMsrp(SipUri remoteUri) { + return tinyWRAPJNI.MsrpSession_callMsrp__SWIG_3(swigCPtr, this, SipUri.getCPtr(remoteUri), remoteUri); + } + + public boolean sendMessage(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean sendMessage(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.MsrpSession_sendMessage__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean sendFile(ActionConfig config) { + return tinyWRAPJNI.MsrpSession_sendFile__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean sendFile() { + return tinyWRAPJNI.MsrpSession_sendFile__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/android/OptionsEvent.java b/bindings/java/android/OptionsEvent.java new file mode 100644 index 0000000..4dde699 --- /dev/null +++ b/bindings/java/android/OptionsEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class OptionsEvent extends SipEvent { + private long swigCPtr; + + protected OptionsEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.OptionsEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(OptionsEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_OptionsEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_options_event_type_t getType() { + return tsip_options_event_type_t.swigToEnum(tinyWRAPJNI.OptionsEvent_getType(swigCPtr, this)); + } + + public OptionsSession getSession() { + long cPtr = tinyWRAPJNI.OptionsEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new OptionsSession(cPtr, false); + } + + public OptionsSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.OptionsEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new OptionsSession(cPtr, false); + } + +} diff --git a/bindings/java/android/OptionsSession.java b/bindings/java/android/OptionsSession.java new file mode 100644 index 0000000..fb018c4 --- /dev/null +++ b/bindings/java/android/OptionsSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class OptionsSession extends SipSession { + private long swigCPtr; + + protected OptionsSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.OptionsSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(OptionsSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_OptionsSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public OptionsSession(SipStack pStack) { + this(tinyWRAPJNI.new_OptionsSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean send(ActionConfig config) { + return tinyWRAPJNI.OptionsSession_send__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean send() { + return tinyWRAPJNI.OptionsSession_send__SWIG_1(swigCPtr, this); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.OptionsSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.OptionsSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.OptionsSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.OptionsSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyAudioConsumer.java b/bindings/java/android/ProxyAudioConsumer.java new file mode 100644 index 0000000..50c4474 --- /dev/null +++ b/bindings/java/android/ProxyAudioConsumer.java @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioConsumer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyAudioConsumer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyAudioConsumer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioConsumer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioConsumer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean setActualSndCardPlaybackParams(int nPtime, int nRate, int nChannels) { + return tinyWRAPJNI.ProxyAudioConsumer_setActualSndCardPlaybackParams(swigCPtr, this, nPtime, nRate, nChannels); + } + + public boolean queryForResampler(int nInFreq, int nOutFreq, int nFrameDuration, int nChannels, int nResamplerQuality) { + return tinyWRAPJNI.ProxyAudioConsumer_queryForResampler(swigCPtr, this, nInFreq, nOutFreq, nFrameDuration, nChannels, nResamplerQuality); + } + + public boolean setPullBuffer(java.nio.ByteBuffer pPullBufferPtr, long nPullBufferSize) { + return tinyWRAPJNI.ProxyAudioConsumer_setPullBuffer(swigCPtr, this, pPullBufferPtr, nPullBufferSize); + } + + public long pull(java.nio.ByteBuffer pOutput, long nSize) { + return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_0(swigCPtr, this, pOutput, nSize); + } + + public long pull(java.nio.ByteBuffer pOutput) { + return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_1(swigCPtr, this, pOutput); + } + + public long pull() { + return tinyWRAPJNI.ProxyAudioConsumer_pull__SWIG_2(swigCPtr, this); + } + + public boolean setGain(long nGain) { + return tinyWRAPJNI.ProxyAudioConsumer_setGain(swigCPtr, this, nGain); + } + + public long getGain() { + return tinyWRAPJNI.ProxyAudioConsumer_getGain(swigCPtr, this); + } + + public boolean reset() { + return tinyWRAPJNI.ProxyAudioConsumer_reset(swigCPtr, this); + } + + public void setCallback(ProxyAudioConsumerCallback pCallback) { + tinyWRAPJNI.ProxyAudioConsumer_setCallback(swigCPtr, this, ProxyAudioConsumerCallback.getCPtr(pCallback), pCallback); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyAudioConsumer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyAudioConsumer_registerPlugin(); + } + +} diff --git a/bindings/java/android/ProxyAudioConsumerCallback.java b/bindings/java/android/ProxyAudioConsumerCallback.java new file mode 100644 index 0000000..b48d5d3 --- /dev/null +++ b/bindings/java/android/ProxyAudioConsumerCallback.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioConsumerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyAudioConsumerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioConsumerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioConsumerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyAudioConsumerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyAudioConsumerCallback() { + this(tinyWRAPJNI.new_ProxyAudioConsumerCallback(), true); + tinyWRAPJNI.ProxyAudioConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int ptime, int rate, int channels) { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(swigCPtr, this, ptime, rate, channels); + } + + public int start() { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyAudioConsumerCallback.class) ? tinyWRAPJNI.ProxyAudioConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyAudioProducer.java b/bindings/java/android/ProxyAudioProducer.java new file mode 100644 index 0000000..288287a --- /dev/null +++ b/bindings/java/android/ProxyAudioProducer.java @@ -0,0 +1,82 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioProducer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyAudioProducer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyAudioProducer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioProducer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioProducer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean setActualSndCardRecordParams(int nPtime, int nRate, int nChannels) { + return tinyWRAPJNI.ProxyAudioProducer_setActualSndCardRecordParams(swigCPtr, this, nPtime, nRate, nChannels); + } + + public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize, boolean bUsePushCallback) { + return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_0(swigCPtr, this, pPushBufferPtr, nPushBufferSize, bUsePushCallback); + } + + public boolean setPushBuffer(java.nio.ByteBuffer pPushBufferPtr, long nPushBufferSize) { + return tinyWRAPJNI.ProxyAudioProducer_setPushBuffer__SWIG_1(swigCPtr, this, pPushBufferPtr, nPushBufferSize); + } + + public int push(java.nio.ByteBuffer pBuffer, long nSize) { + return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_0(swigCPtr, this, pBuffer, nSize); + } + + public int push(java.nio.ByteBuffer pBuffer) { + return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_1(swigCPtr, this, pBuffer); + } + + public int push() { + return tinyWRAPJNI.ProxyAudioProducer_push__SWIG_2(swigCPtr, this); + } + + public boolean setGain(long nGain) { + return tinyWRAPJNI.ProxyAudioProducer_setGain(swigCPtr, this, nGain); + } + + public long getGain() { + return tinyWRAPJNI.ProxyAudioProducer_getGain(swigCPtr, this); + } + + public void setCallback(ProxyAudioProducerCallback pCallback) { + tinyWRAPJNI.ProxyAudioProducer_setCallback(swigCPtr, this, ProxyAudioProducerCallback.getCPtr(pCallback), pCallback); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyAudioProducer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyAudioProducer_registerPlugin(); + } + +} diff --git a/bindings/java/android/ProxyAudioProducerCallback.java b/bindings/java/android/ProxyAudioProducerCallback.java new file mode 100644 index 0000000..7dc1bfd --- /dev/null +++ b/bindings/java/android/ProxyAudioProducerCallback.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyAudioProducerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyAudioProducerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyAudioProducerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyAudioProducerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyAudioProducerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyAudioProducerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyAudioProducerCallback() { + this(tinyWRAPJNI.new_ProxyAudioProducerCallback(), true); + tinyWRAPJNI.ProxyAudioProducerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int ptime, int rate, int channels) { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_prepare(swigCPtr, this, ptime, rate, channels) : tinyWRAPJNI.ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(swigCPtr, this, ptime, rate, channels); + } + + public int start() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + + public int fillPushBuffer() { + return (getClass() == ProxyAudioProducerCallback.class) ? tinyWRAPJNI.ProxyAudioProducerCallback_fillPushBuffer(swigCPtr, this) : tinyWRAPJNI.ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyPlugin.java b/bindings/java/android/ProxyPlugin.java new file mode 100644 index 0000000..6ccfe9b --- /dev/null +++ b/bindings/java/android/ProxyPlugin.java @@ -0,0 +1,46 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyPlugin { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyPlugin(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyPlugin obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPlugin(swigCPtr); + } + swigCPtr = 0; + } + } + + public twrap_proxy_plugin_type_t getType() { + return twrap_proxy_plugin_type_t.swigToEnum(tinyWRAPJNI.ProxyPlugin_getType(swigCPtr, this)); + } + + public java.math.BigInteger getId() { + return tinyWRAPJNI.ProxyPlugin_getId(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyPluginMgr.java b/bindings/java/android/ProxyPluginMgr.java new file mode 100644 index 0000000..22ee6dd --- /dev/null +++ b/bindings/java/android/ProxyPluginMgr.java @@ -0,0 +1,73 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyPluginMgr { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyPluginMgr(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyPluginMgr obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPluginMgr(swigCPtr); + } + swigCPtr = 0; + } + } + + public static ProxyPluginMgr createInstance(ProxyPluginMgrCallback pCallback) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_createInstance(ProxyPluginMgrCallback.getCPtr(pCallback), pCallback); + return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, true); + } + + public static ProxyPluginMgr getInstance() { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_getInstance(); + return (cPtr == 0) ? null : new ProxyPluginMgr(cPtr, false); + } + + public ProxyPlugin findPlugin(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findPlugin(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyPlugin(cPtr, false); + } + + public ProxyAudioConsumer findAudioConsumer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioConsumer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyAudioConsumer(cPtr, false); + } + + public ProxyVideoConsumer findVideoConsumer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoConsumer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyVideoConsumer(cPtr, false); + } + + public ProxyAudioProducer findAudioProducer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findAudioProducer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyAudioProducer(cPtr, false); + } + + public ProxyVideoProducer findVideoProducer(java.math.BigInteger id) { + long cPtr = tinyWRAPJNI.ProxyPluginMgr_findVideoProducer(swigCPtr, this, id); + return (cPtr == 0) ? null : new ProxyVideoProducer(cPtr, false); + } + +} diff --git a/bindings/java/android/ProxyPluginMgrCallback.java b/bindings/java/android/ProxyPluginMgrCallback.java new file mode 100644 index 0000000..7e45b61 --- /dev/null +++ b/bindings/java/android/ProxyPluginMgrCallback.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyPluginMgrCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyPluginMgrCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyPluginMgrCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyPluginMgrCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyPluginMgrCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyPluginMgrCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyPluginMgrCallback() { + this(tinyWRAPJNI.new_ProxyPluginMgrCallback(), true); + tinyWRAPJNI.ProxyPluginMgrCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnPluginCreated(java.math.BigInteger id, twrap_proxy_plugin_type_t type) { + return (getClass() == ProxyPluginMgrCallback.class) ? tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginCreated(swigCPtr, this, id, type.swigValue()) : tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(swigCPtr, this, id, type.swigValue()); + } + + public int OnPluginDestroyed(java.math.BigInteger id, twrap_proxy_plugin_type_t type) { + return (getClass() == ProxyPluginMgrCallback.class) ? tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginDestroyed(swigCPtr, this, id, type.swigValue()) : tinyWRAPJNI.ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(swigCPtr, this, id, type.swigValue()); + } + +} diff --git a/bindings/java/android/ProxyVideoConsumer.java b/bindings/java/android/ProxyVideoConsumer.java new file mode 100644 index 0000000..53d7a70 --- /dev/null +++ b/bindings/java/android/ProxyVideoConsumer.java @@ -0,0 +1,98 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoConsumer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyVideoConsumer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyVideoConsumer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoConsumer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoConsumer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean setDisplaySize(long nWidth, long nHeight) { + return tinyWRAPJNI.ProxyVideoConsumer_setDisplaySize(swigCPtr, this, nWidth, nHeight); + } + + public long getDisplayWidth() { + return tinyWRAPJNI.ProxyVideoConsumer_getDisplayWidth(swigCPtr, this); + } + + public long getDisplayHeight() { + return tinyWRAPJNI.ProxyVideoConsumer_getDisplayHeight(swigCPtr, this); + } + + public long getDecodedWidth() { + return tinyWRAPJNI.ProxyVideoConsumer_getDecodedWidth(swigCPtr, this); + } + + public long getDecodedHeight() { + return tinyWRAPJNI.ProxyVideoConsumer_getDecodedHeight(swigCPtr, this); + } + + public void setCallback(ProxyVideoConsumerCallback pCallback) { + tinyWRAPJNI.ProxyVideoConsumer_setCallback(swigCPtr, this, ProxyVideoConsumerCallback.getCPtr(pCallback), pCallback); + } + + public boolean setAutoResizeDisplay(boolean bAutoResizeDisplay) { + return tinyWRAPJNI.ProxyVideoConsumer_setAutoResizeDisplay(swigCPtr, this, bAutoResizeDisplay); + } + + public boolean getAutoResizeDisplay() { + return tinyWRAPJNI.ProxyVideoConsumer_getAutoResizeDisplay(swigCPtr, this); + } + + public boolean setConsumeBuffer(java.nio.ByteBuffer pConsumeBufferPtr, long nConsumeBufferSize) { + return tinyWRAPJNI.ProxyVideoConsumer_setConsumeBuffer(swigCPtr, this, pConsumeBufferPtr, nConsumeBufferSize); + } + + public long pull(java.nio.ByteBuffer pOutput, long nSize) { + return tinyWRAPJNI.ProxyVideoConsumer_pull(swigCPtr, this, pOutput, nSize); + } + + public boolean reset() { + return tinyWRAPJNI.ProxyVideoConsumer_reset(swigCPtr, this); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyVideoConsumer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyVideoConsumer_registerPlugin(); + } + + public static void setDefaultChroma(tmedia_chroma_t eChroma) { + tinyWRAPJNI.ProxyVideoConsumer_setDefaultChroma(eChroma.swigValue()); + } + + public static void setDefaultAutoResizeDisplay(boolean bAutoResizeDisplay) { + tinyWRAPJNI.ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay); + } + +} diff --git a/bindings/java/android/ProxyVideoConsumerCallback.java b/bindings/java/android/ProxyVideoConsumerCallback.java new file mode 100644 index 0000000..e2a4349 --- /dev/null +++ b/bindings/java/android/ProxyVideoConsumerCallback.java @@ -0,0 +1,82 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoConsumerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyVideoConsumerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoConsumerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoConsumerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyVideoConsumerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyVideoConsumerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyVideoConsumerCallback() { + this(tinyWRAPJNI.new_ProxyVideoConsumerCallback(), true); + tinyWRAPJNI.ProxyVideoConsumerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int nWidth, int nHeight, int nFps) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_prepare(swigCPtr, this, nWidth, nHeight, nFps) : tinyWRAPJNI.ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, nWidth, nHeight, nFps); + } + + public int consume(ProxyVideoFrame frame) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_consume(swigCPtr, this, ProxyVideoFrame.getCPtr(frame), frame) : tinyWRAPJNI.ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, ProxyVideoFrame.getCPtr(frame), frame); + } + + public int bufferCopied(long nCopiedSize, long nAvailableSize) { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_bufferCopied(swigCPtr, this, nCopiedSize, nAvailableSize) : tinyWRAPJNI.ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(swigCPtr, this, nCopiedSize, nAvailableSize); + } + + public int start() { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyVideoConsumerCallback.class) ? tinyWRAPJNI.ProxyVideoConsumerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyVideoFrame.java b/bindings/java/android/ProxyVideoFrame.java new file mode 100644 index 0000000..8c4ef4c --- /dev/null +++ b/bindings/java/android/ProxyVideoFrame.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoFrame { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyVideoFrame(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoFrame obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoFrame(swigCPtr); + } + swigCPtr = 0; + } + } + + public long getSize() { + return tinyWRAPJNI.ProxyVideoFrame_getSize(swigCPtr, this); + } + + public long getContent(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.ProxyVideoFrame_getContent(swigCPtr, this, pOutput, nMaxsize); + } + + public long getFrameWidth() { + return tinyWRAPJNI.ProxyVideoFrame_getFrameWidth(swigCPtr, this); + } + + public long getFrameHeight() { + return tinyWRAPJNI.ProxyVideoFrame_getFrameHeight(swigCPtr, this); + } + +} diff --git a/bindings/java/android/ProxyVideoProducer.java b/bindings/java/android/ProxyVideoProducer.java new file mode 100644 index 0000000..f9cfe2b --- /dev/null +++ b/bindings/java/android/ProxyVideoProducer.java @@ -0,0 +1,78 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoProducer extends ProxyPlugin { + private long swigCPtr; + + protected ProxyVideoProducer(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.ProxyVideoProducer_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoProducer obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoProducer(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public int getRotation() { + return tinyWRAPJNI.ProxyVideoProducer_getRotation(swigCPtr, this); + } + + public boolean setRotation(int nRot) { + return tinyWRAPJNI.ProxyVideoProducer_setRotation(swigCPtr, this, nRot); + } + + public boolean getMirror() { + return tinyWRAPJNI.ProxyVideoProducer_getMirror(swigCPtr, this); + } + + public boolean setMirror(boolean bMirror) { + return tinyWRAPJNI.ProxyVideoProducer_setMirror(swigCPtr, this, bMirror); + } + + public boolean setActualCameraOutputSize(long nWidth, long nHeight) { + return tinyWRAPJNI.ProxyVideoProducer_setActualCameraOutputSize(swigCPtr, this, nWidth, nHeight); + } + + public int push(java.nio.ByteBuffer pBuffer, long nSize) { + return tinyWRAPJNI.ProxyVideoProducer_push(swigCPtr, this, pBuffer, nSize); + } + + public void setCallback(ProxyVideoProducerCallback pCallback) { + tinyWRAPJNI.ProxyVideoProducer_setCallback(swigCPtr, this, ProxyVideoProducerCallback.getCPtr(pCallback), pCallback); + } + + public java.math.BigInteger getMediaSessionId() { + return tinyWRAPJNI.ProxyVideoProducer_getMediaSessionId(swigCPtr, this); + } + + public static boolean registerPlugin() { + return tinyWRAPJNI.ProxyVideoProducer_registerPlugin(); + } + + public static void setDefaultChroma(tmedia_chroma_t eChroma) { + tinyWRAPJNI.ProxyVideoProducer_setDefaultChroma(eChroma.swigValue()); + } + +} diff --git a/bindings/java/android/ProxyVideoProducerCallback.java b/bindings/java/android/ProxyVideoProducerCallback.java new file mode 100644 index 0000000..c625405 --- /dev/null +++ b/bindings/java/android/ProxyVideoProducerCallback.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class ProxyVideoProducerCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected ProxyVideoProducerCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(ProxyVideoProducerCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_ProxyVideoProducerCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.ProxyVideoProducerCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.ProxyVideoProducerCallback_change_ownership(this, swigCPtr, true); + } + + public ProxyVideoProducerCallback() { + this(tinyWRAPJNI.new_ProxyVideoProducerCallback(), true); + tinyWRAPJNI.ProxyVideoProducerCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int prepare(int width, int height, int fps) { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_prepare(swigCPtr, this, width, height, fps) : tinyWRAPJNI.ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(swigCPtr, this, width, height, fps); + } + + public int start() { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_start(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(swigCPtr, this); + } + + public int pause() { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_pause(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(swigCPtr, this); + } + + public int stop() { + return (getClass() == ProxyVideoProducerCallback.class) ? tinyWRAPJNI.ProxyVideoProducerCallback_stop(swigCPtr, this) : tinyWRAPJNI.ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(swigCPtr, this); + } + +} diff --git a/bindings/java/android/PublicationEvent.java b/bindings/java/android/PublicationEvent.java new file mode 100644 index 0000000..ba44ed8 --- /dev/null +++ b/bindings/java/android/PublicationEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class PublicationEvent extends SipEvent { + private long swigCPtr; + + protected PublicationEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.PublicationEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(PublicationEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_PublicationEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_publish_event_type_t getType() { + return tsip_publish_event_type_t.swigToEnum(tinyWRAPJNI.PublicationEvent_getType(swigCPtr, this)); + } + + public PublicationSession getSession() { + long cPtr = tinyWRAPJNI.PublicationEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new PublicationSession(cPtr, false); + } + + public PublicationSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.PublicationEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new PublicationSession(cPtr, false); + } + +} diff --git a/bindings/java/android/PublicationSession.java b/bindings/java/android/PublicationSession.java new file mode 100644 index 0000000..adfef9a --- /dev/null +++ b/bindings/java/android/PublicationSession.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class PublicationSession extends SipSession { + private long swigCPtr; + + protected PublicationSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.PublicationSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(PublicationSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_PublicationSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public boolean Publish(byte[] bytes) { + if(bytes != null){ + final java.nio.ByteBuffer byteBuffer = this.getByteBuffer(bytes); + return this.publish(byteBuffer, bytes.length); + } + return false; + } + + public PublicationSession(SipStack pStack) { + this(tinyWRAPJNI.new_PublicationSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean publish(java.nio.ByteBuffer payload, long len, ActionConfig config) { + return tinyWRAPJNI.PublicationSession_publish__SWIG_0(swigCPtr, this, payload, len, ActionConfig.getCPtr(config), config); + } + + public boolean publish(java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.PublicationSession_publish__SWIG_1(swigCPtr, this, payload, len); + } + + public boolean unPublish(ActionConfig config) { + return tinyWRAPJNI.PublicationSession_unPublish__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean unPublish() { + return tinyWRAPJNI.PublicationSession_unPublish__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/android/RPMessage.java b/bindings/java/android/RPMessage.java new file mode 100644 index 0000000..0e9b864 --- /dev/null +++ b/bindings/java/android/RPMessage.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class RPMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected RPMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(RPMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RPMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public RPMessage() { + this(tinyWRAPJNI.new_RPMessage(), true); + } + + public twrap_rpmessage_type_t getType() { + return twrap_rpmessage_type_t.swigToEnum(tinyWRAPJNI.RPMessage_getType(swigCPtr, this)); + } + + public long getPayloadLength() { + return tinyWRAPJNI.RPMessage_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.RPMessage_getPayload(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/android/RegistrationEvent.java b/bindings/java/android/RegistrationEvent.java new file mode 100644 index 0000000..5a1cc25 --- /dev/null +++ b/bindings/java/android/RegistrationEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class RegistrationEvent extends SipEvent { + private long swigCPtr; + + protected RegistrationEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.RegistrationEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(RegistrationEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RegistrationEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_register_event_type_t getType() { + return tsip_register_event_type_t.swigToEnum(tinyWRAPJNI.RegistrationEvent_getType(swigCPtr, this)); + } + + public RegistrationSession getSession() { + long cPtr = tinyWRAPJNI.RegistrationEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new RegistrationSession(cPtr, false); + } + + public RegistrationSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.RegistrationEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new RegistrationSession(cPtr, true); + } + +} diff --git a/bindings/java/android/RegistrationSession.java b/bindings/java/android/RegistrationSession.java new file mode 100644 index 0000000..2857a72 --- /dev/null +++ b/bindings/java/android/RegistrationSession.java @@ -0,0 +1,74 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class RegistrationSession extends SipSession { + private long swigCPtr; + + protected RegistrationSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.RegistrationSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(RegistrationSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_RegistrationSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public RegistrationSession(SipStack pStack) { + this(tinyWRAPJNI.new_RegistrationSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean register_(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_register___SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean register_() { + return tinyWRAPJNI.RegistrationSession_register___SWIG_1(swigCPtr, this); + } + + public boolean unRegister(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_unRegister__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean unRegister() { + return tinyWRAPJNI.RegistrationSession_unRegister__SWIG_1(swigCPtr, this); + } + + public boolean accept(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_accept__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean accept() { + return tinyWRAPJNI.RegistrationSession_accept__SWIG_1(swigCPtr, this); + } + + public boolean reject(ActionConfig config) { + return tinyWRAPJNI.RegistrationSession_reject__SWIG_0(swigCPtr, this, ActionConfig.getCPtr(config), config); + } + + public boolean reject() { + return tinyWRAPJNI.RegistrationSession_reject__SWIG_1(swigCPtr, this); + } + +} diff --git a/bindings/java/android/SMSData.java b/bindings/java/android/SMSData.java new file mode 100644 index 0000000..1ab6479 --- /dev/null +++ b/bindings/java/android/SMSData.java @@ -0,0 +1,66 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SMSData { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SMSData(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SMSData obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SMSData(swigCPtr); + } + swigCPtr = 0; + } + } + + public SMSData() { + this(tinyWRAPJNI.new_SMSData(), true); + } + + public twrap_sms_type_t getType() { + return twrap_sms_type_t.swigToEnum(tinyWRAPJNI.SMSData_getType(swigCPtr, this)); + } + + public int getMR() { + return tinyWRAPJNI.SMSData_getMR(swigCPtr, this); + } + + public long getPayloadLength() { + return tinyWRAPJNI.SMSData_getPayloadLength(swigCPtr, this); + } + + public long getPayload(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.SMSData_getPayload(swigCPtr, this, output, maxsize); + } + + public String getOA() { + return tinyWRAPJNI.SMSData_getOA(swigCPtr, this); + } + + public String getDA() { + return tinyWRAPJNI.SMSData_getDA(swigCPtr, this); + } + +} diff --git a/bindings/java/android/SMSEncoder.java b/bindings/java/android/SMSEncoder.java new file mode 100644 index 0000000..2c0885f --- /dev/null +++ b/bindings/java/android/SMSEncoder.java @@ -0,0 +1,63 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SMSEncoder { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SMSEncoder(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SMSEncoder obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SMSEncoder(swigCPtr); + } + swigCPtr = 0; + } + } + + public static RPMessage encodeSubmit(int mr, String smsc, String destination, String ascii) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeSubmit(mr, smsc, destination, ascii); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static RPMessage encodeDeliver(int mr, String smsc, String originator, String ascii) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeDeliver(mr, smsc, originator, ascii); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static RPMessage encodeACK(int mr, String smsc, String destination, boolean forSUBMIT) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeACK(mr, smsc, destination, forSUBMIT); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static RPMessage encodeError(int mr, String smsc, String destination, boolean forSUBMIT) { + long cPtr = tinyWRAPJNI.SMSEncoder_encodeError(mr, smsc, destination, forSUBMIT); + return (cPtr == 0) ? null : new RPMessage(cPtr, true); + } + + public static SMSData decode(java.nio.ByteBuffer data, long size, boolean MobOrig) { + long cPtr = tinyWRAPJNI.SMSEncoder_decode(data, size, MobOrig); + return (cPtr == 0) ? null : new SMSData(cPtr, true); + } + +} diff --git a/bindings/java/android/SafeObject.java b/bindings/java/android/SafeObject.java new file mode 100644 index 0000000..eb984d6 --- /dev/null +++ b/bindings/java/android/SafeObject.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SafeObject { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SafeObject(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SafeObject obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SafeObject(swigCPtr); + } + swigCPtr = 0; + } + } + + public SafeObject() { + this(tinyWRAPJNI.new_SafeObject(), true); + } + + public int Lock() { + return tinyWRAPJNI.SafeObject_Lock(swigCPtr, this); + } + + public int UnLock() { + return tinyWRAPJNI.SafeObject_UnLock(swigCPtr, this); + } + +} diff --git a/bindings/java/android/SdpMessage.java b/bindings/java/android/SdpMessage.java new file mode 100644 index 0000000..742ffb8 --- /dev/null +++ b/bindings/java/android/SdpMessage.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SdpMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SdpMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SdpMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SdpMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public SdpMessage() { + this(tinyWRAPJNI.new_SdpMessage(), true); + } + + public String getSdpHeaderValue(String media, char name, long index) { + return tinyWRAPJNI.SdpMessage_getSdpHeaderValue__SWIG_0(swigCPtr, this, media, name, index); + } + + public String getSdpHeaderValue(String media, char name) { + return tinyWRAPJNI.SdpMessage_getSdpHeaderValue__SWIG_1(swigCPtr, this, media, name); + } + + public String getSdpHeaderAValue(String media, String attributeName) { + return tinyWRAPJNI.SdpMessage_getSdpHeaderAValue(swigCPtr, this, media, attributeName); + } + +} diff --git a/bindings/java/android/SipCallback.java b/bindings/java/android/SipCallback.java new file mode 100644 index 0000000..bcfe026 --- /dev/null +++ b/bindings/java/android/SipCallback.java @@ -0,0 +1,94 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.SipCallback_change_ownership(this, swigCPtr, true); + } + + public SipCallback() { + this(tinyWRAPJNI.new_SipCallback(), true); + tinyWRAPJNI.SipCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int OnDialogEvent(DialogEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnDialogEvent(swigCPtr, this, DialogEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnDialogEventSwigExplicitSipCallback(swigCPtr, this, DialogEvent.getCPtr(e), e); + } + + public int OnStackEvent(StackEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnStackEvent(swigCPtr, this, StackEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnStackEventSwigExplicitSipCallback(swigCPtr, this, StackEvent.getCPtr(e), e); + } + + public int OnInviteEvent(InviteEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnInviteEvent(swigCPtr, this, InviteEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnInviteEventSwigExplicitSipCallback(swigCPtr, this, InviteEvent.getCPtr(e), e); + } + + public int OnMessagingEvent(MessagingEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnMessagingEvent(swigCPtr, this, MessagingEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnMessagingEventSwigExplicitSipCallback(swigCPtr, this, MessagingEvent.getCPtr(e), e); + } + + public int OnInfoEvent(InfoEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnInfoEvent(swigCPtr, this, InfoEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnInfoEventSwigExplicitSipCallback(swigCPtr, this, InfoEvent.getCPtr(e), e); + } + + public int OnOptionsEvent(OptionsEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnOptionsEvent(swigCPtr, this, OptionsEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnOptionsEventSwigExplicitSipCallback(swigCPtr, this, OptionsEvent.getCPtr(e), e); + } + + public int OnPublicationEvent(PublicationEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnPublicationEvent(swigCPtr, this, PublicationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnPublicationEventSwigExplicitSipCallback(swigCPtr, this, PublicationEvent.getCPtr(e), e); + } + + public int OnRegistrationEvent(RegistrationEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnRegistrationEvent(swigCPtr, this, RegistrationEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnRegistrationEventSwigExplicitSipCallback(swigCPtr, this, RegistrationEvent.getCPtr(e), e); + } + + public int OnSubscriptionEvent(SubscriptionEvent e) { + return (getClass() == SipCallback.class) ? tinyWRAPJNI.SipCallback_OnSubscriptionEvent(swigCPtr, this, SubscriptionEvent.getCPtr(e), e) : tinyWRAPJNI.SipCallback_OnSubscriptionEventSwigExplicitSipCallback(swigCPtr, this, SubscriptionEvent.getCPtr(e), e); + } + +} diff --git a/bindings/java/android/SipEvent.java b/bindings/java/android/SipEvent.java new file mode 100644 index 0000000..3d03581 --- /dev/null +++ b/bindings/java/android/SipEvent.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipEvent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipEvent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipEvent(swigCPtr); + } + swigCPtr = 0; + } + } + + public short getCode() { + return tinyWRAPJNI.SipEvent_getCode(swigCPtr, this); + } + + public String getPhrase() { + return tinyWRAPJNI.SipEvent_getPhrase(swigCPtr, this); + } + + public SipSession getBaseSession() { + long cPtr = tinyWRAPJNI.SipEvent_getBaseSession(swigCPtr, this); + return (cPtr == 0) ? null : new SipSession(cPtr, false); + } + + public SipMessage getSipMessage() { + long cPtr = tinyWRAPJNI.SipEvent_getSipMessage(swigCPtr, this); + return (cPtr == 0) ? null : new SipMessage(cPtr, false); + } + +} diff --git a/bindings/java/android/SipMessage.java b/bindings/java/android/SipMessage.java new file mode 100644 index 0000000..ff9b1d1 --- /dev/null +++ b/bindings/java/android/SipMessage.java @@ -0,0 +1,99 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public byte[] getSipContent() { + final int clen = (int)this.getSipContentLength(); + if(clen>0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen); + final int read = (int)this.getSipContent(buffer, clen); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } + + public SipMessage() { + this(tinyWRAPJNI.new_SipMessage(), true); + } + + public boolean isResponse() { + return tinyWRAPJNI.SipMessage_isResponse(swigCPtr, this); + } + + public tsip_request_type_t getRequestType() { + return tsip_request_type_t.swigToEnum(tinyWRAPJNI.SipMessage_getRequestType(swigCPtr, this)); + } + + public short getResponseCode() { + return tinyWRAPJNI.SipMessage_getResponseCode(swigCPtr, this); + } + + public String getResponsePhrase() { + return tinyWRAPJNI.SipMessage_getResponsePhrase(swigCPtr, this); + } + + public String getSipHeaderValue(String name, long index) { + return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_0(swigCPtr, this, name, index); + } + + public String getSipHeaderValue(String name) { + return tinyWRAPJNI.SipMessage_getSipHeaderValue__SWIG_1(swigCPtr, this, name); + } + + public String getSipHeaderParamValue(String name, String param, long index) { + return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index); + } + + public String getSipHeaderParamValue(String name, String param) { + return tinyWRAPJNI.SipMessage_getSipHeaderParamValue__SWIG_1(swigCPtr, this, name, param); + } + + public long getSipContentLength() { + return tinyWRAPJNI.SipMessage_getSipContentLength(swigCPtr, this); + } + + public long getSipContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.SipMessage_getSipContent(swigCPtr, this, output, maxsize); + } + + public SdpMessage getSdpMessage() { + long cPtr = tinyWRAPJNI.SipMessage_getSdpMessage(swigCPtr, this); + return (cPtr == 0) ? null : new SdpMessage(cPtr, false); + } + +} diff --git a/bindings/java/android/SipSession.java b/bindings/java/android/SipSession.java new file mode 100644 index 0000000..fcb8364 --- /dev/null +++ b/bindings/java/android/SipSession.java @@ -0,0 +1,111 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipSession { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipSession(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipSession(swigCPtr); + } + swigCPtr = 0; + } + } + + protected java.nio.ByteBuffer getByteBuffer(byte[] bytes) { + if(bytes != null){ + final java.nio.ByteBuffer byteBuffer = java.nio.ByteBuffer.allocateDirect(bytes.length); + byteBuffer.put(bytes); + return byteBuffer; + } + return null; + } + + public SipSession(SipStack stack) { + this(tinyWRAPJNI.new_SipSession(SipStack.getCPtr(stack), stack), true); + } + + public boolean haveOwnership() { + return tinyWRAPJNI.SipSession_haveOwnership(swigCPtr, this); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.SipSession_addHeader(swigCPtr, this, name, value); + } + + public boolean removeHeader(String name) { + return tinyWRAPJNI.SipSession_removeHeader(swigCPtr, this, name); + } + + public boolean addCaps(String name, String value) { + return tinyWRAPJNI.SipSession_addCaps__SWIG_0(swigCPtr, this, name, value); + } + + public boolean addCaps(String name) { + return tinyWRAPJNI.SipSession_addCaps__SWIG_1(swigCPtr, this, name); + } + + public boolean removeCaps(String name) { + return tinyWRAPJNI.SipSession_removeCaps(swigCPtr, this, name); + } + + public boolean setExpires(long expires) { + return tinyWRAPJNI.SipSession_setExpires(swigCPtr, this, expires); + } + + public boolean setFromUri(String fromUriString) { + return tinyWRAPJNI.SipSession_setFromUri__SWIG_0(swigCPtr, this, fromUriString); + } + + public boolean setFromUri(SipUri fromUri) { + return tinyWRAPJNI.SipSession_setFromUri__SWIG_1(swigCPtr, this, SipUri.getCPtr(fromUri), fromUri); + } + + public boolean setToUri(String toUriString) { + return tinyWRAPJNI.SipSession_setToUri__SWIG_0(swigCPtr, this, toUriString); + } + + public boolean setToUri(SipUri toUri) { + return tinyWRAPJNI.SipSession_setToUri__SWIG_1(swigCPtr, this, SipUri.getCPtr(toUri), toUri); + } + + public boolean setSilentHangup(boolean silent) { + return tinyWRAPJNI.SipSession_setSilentHangup(swigCPtr, this, silent); + } + + public boolean addSigCompCompartment(String compId) { + return tinyWRAPJNI.SipSession_addSigCompCompartment(swigCPtr, this, compId); + } + + public boolean removeSigCompCompartment() { + return tinyWRAPJNI.SipSession_removeSigCompCompartment(swigCPtr, this); + } + + public long getId() { + return tinyWRAPJNI.SipSession_getId(swigCPtr, this); + } + +} diff --git a/bindings/java/android/SipStack.java b/bindings/java/android/SipStack.java new file mode 100644 index 0000000..5e3b41a --- /dev/null +++ b/bindings/java/android/SipStack.java @@ -0,0 +1,242 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipStack extends SafeObject { + private long swigCPtr; + + protected SipStack(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.SipStack_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(SipStack obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipStack(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public SipStack(SipCallback pCallback, String realm_uri, String impi_uri, String impu_uri) { + this(tinyWRAPJNI.new_SipStack(SipCallback.getCPtr(pCallback), pCallback, realm_uri, impi_uri, impu_uri), true); + } + + public boolean start() { + return tinyWRAPJNI.SipStack_start(swigCPtr, this); + } + + public boolean setDebugCallback(DDebugCallback pCallback) { + return tinyWRAPJNI.SipStack_setDebugCallback(swigCPtr, this, DDebugCallback.getCPtr(pCallback), pCallback); + } + + public boolean setDisplayName(String display_name) { + return tinyWRAPJNI.SipStack_setDisplayName(swigCPtr, this, display_name); + } + + public boolean setRealm(String realm_uri) { + return tinyWRAPJNI.SipStack_setRealm(swigCPtr, this, realm_uri); + } + + public boolean setIMPI(String impi) { + return tinyWRAPJNI.SipStack_setIMPI(swigCPtr, this, impi); + } + + public boolean setIMPU(String impu_uri) { + return tinyWRAPJNI.SipStack_setIMPU(swigCPtr, this, impu_uri); + } + + public boolean setPassword(String password) { + return tinyWRAPJNI.SipStack_setPassword(swigCPtr, this, password); + } + + public boolean setAMF(String amf) { + return tinyWRAPJNI.SipStack_setAMF(swigCPtr, this, amf); + } + + public boolean setOperatorId(String opid) { + return tinyWRAPJNI.SipStack_setOperatorId(swigCPtr, this, opid); + } + + public boolean setProxyCSCF(String fqdn, int port, String transport, String ipversion) { + return tinyWRAPJNI.SipStack_setProxyCSCF(swigCPtr, this, fqdn, port, transport, ipversion); + } + + public boolean setLocalIP(String ip, String transport) { + return tinyWRAPJNI.SipStack_setLocalIP__SWIG_0(swigCPtr, this, ip, transport); + } + + public boolean setLocalIP(String ip) { + return tinyWRAPJNI.SipStack_setLocalIP__SWIG_1(swigCPtr, this, ip); + } + + public boolean setLocalPort(int port, String transport) { + return tinyWRAPJNI.SipStack_setLocalPort__SWIG_0(swigCPtr, this, port, transport); + } + + public boolean setLocalPort(int port) { + return tinyWRAPJNI.SipStack_setLocalPort__SWIG_1(swigCPtr, this, port); + } + + public boolean setEarlyIMS(boolean enabled) { + return tinyWRAPJNI.SipStack_setEarlyIMS(swigCPtr, this, enabled); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.SipStack_addHeader(swigCPtr, this, name, value); + } + + public boolean removeHeader(String name) { + return tinyWRAPJNI.SipStack_removeHeader(swigCPtr, this, name); + } + + public boolean addDnsServer(String ip) { + return tinyWRAPJNI.SipStack_addDnsServer(swigCPtr, this, ip); + } + + public boolean setDnsDiscovery(boolean enabled) { + return tinyWRAPJNI.SipStack_setDnsDiscovery(swigCPtr, this, enabled); + } + + public boolean setAoR(String ip, int port) { + return tinyWRAPJNI.SipStack_setAoR(swigCPtr, this, ip, port); + } + + public boolean setSigCompParams(long dms, long sms, long cpb, boolean enablePresDict) { + return tinyWRAPJNI.SipStack_setSigCompParams(swigCPtr, this, dms, sms, cpb, enablePresDict); + } + + public boolean addSigCompCompartment(String compId) { + return tinyWRAPJNI.SipStack_addSigCompCompartment(swigCPtr, this, compId); + } + + public boolean removeSigCompCompartment(String compId) { + return tinyWRAPJNI.SipStack_removeSigCompCompartment(swigCPtr, this, compId); + } + + public boolean setSTUNEnabledForICE(boolean enabled) { + return tinyWRAPJNI.SipStack_setSTUNEnabledForICE(swigCPtr, this, enabled); + } + + public boolean setSTUNServer(String hostname, int port) { + return tinyWRAPJNI.SipStack_setSTUNServer(swigCPtr, this, hostname, port); + } + + public boolean setSTUNCred(String login, String password) { + return tinyWRAPJNI.SipStack_setSTUNCred(swigCPtr, this, login, password); + } + + public boolean setSTUNEnabled(boolean enabled) { + return tinyWRAPJNI.SipStack_setSTUNEnabled(swigCPtr, this, enabled); + } + + public boolean setTLSSecAgree(boolean enabled) { + return tinyWRAPJNI.SipStack_setTLSSecAgree(swigCPtr, this, enabled); + } + + public boolean setSSLCertificates(String privKey, String pubKey, String caKey, boolean verify) { + return tinyWRAPJNI.SipStack_setSSLCertificates__SWIG_0(swigCPtr, this, privKey, pubKey, caKey, verify); + } + + public boolean setSSLCertificates(String privKey, String pubKey, String caKey) { + return tinyWRAPJNI.SipStack_setSSLCertificates__SWIG_1(swigCPtr, this, privKey, pubKey, caKey); + } + + public boolean setSSLCretificates(String privKey, String pubKey, String caKey, boolean verify) { + return tinyWRAPJNI.SipStack_setSSLCretificates__SWIG_0(swigCPtr, this, privKey, pubKey, caKey, verify); + } + + public boolean setSSLCretificates(String privKey, String pubKey, String caKey) { + return tinyWRAPJNI.SipStack_setSSLCretificates__SWIG_1(swigCPtr, this, privKey, pubKey, caKey); + } + + public boolean setIPSecSecAgree(boolean enabled) { + return tinyWRAPJNI.SipStack_setIPSecSecAgree(swigCPtr, this, enabled); + } + + public boolean setIPSecParameters(String algo, String ealgo, String mode, String proto) { + return tinyWRAPJNI.SipStack_setIPSecParameters(swigCPtr, this, algo, ealgo, mode, proto); + } + + public String dnsENUM(String service, String e164num, String domain) { + return tinyWRAPJNI.SipStack_dnsENUM(swigCPtr, this, service, e164num, domain); + } + + public String dnsNaptrSrv(String domain, String service, int[] OUTPUT) { + return tinyWRAPJNI.SipStack_dnsNaptrSrv(swigCPtr, this, domain, service, OUTPUT); + } + + public String dnsSrv(String service, int[] OUTPUT) { + return tinyWRAPJNI.SipStack_dnsSrv(swigCPtr, this, service, OUTPUT); + } + + public boolean setMaxFDs(long max_fds) { + return tinyWRAPJNI.SipStack_setMaxFDs(swigCPtr, this, max_fds); + } + + public String getLocalIPnPort(String protocol, int[] OUTPUT) { + return tinyWRAPJNI.SipStack_getLocalIPnPort(swigCPtr, this, protocol, OUTPUT); + } + + public String getPreferredIdentity() { + return tinyWRAPJNI.SipStack_getPreferredIdentity(swigCPtr, this); + } + + public boolean isValid() { + return tinyWRAPJNI.SipStack_isValid(swigCPtr, this); + } + + public boolean stop() { + return tinyWRAPJNI.SipStack_stop(swigCPtr, this); + } + + public static boolean initialize() { + return tinyWRAPJNI.SipStack_initialize(); + } + + public static boolean deInitialize() { + return tinyWRAPJNI.SipStack_deInitialize(); + } + + public static void setCodecs(tdav_codec_id_t codecs) { + tinyWRAPJNI.SipStack_setCodecs(codecs.swigValue()); + } + + public static void setCodecs_2(long codecs) { + tinyWRAPJNI.SipStack_setCodecs_2(codecs); + } + + public static boolean setCodecPriority(tdav_codec_id_t codec_id, int priority) { + return tinyWRAPJNI.SipStack_setCodecPriority(codec_id.swigValue(), priority); + } + + public static boolean setCodecPriority_2(int codec, int priority) { + return tinyWRAPJNI.SipStack_setCodecPriority_2(codec, priority); + } + + public static boolean isCodecSupported(tdav_codec_id_t codec_id) { + return tinyWRAPJNI.SipStack_isCodecSupported(codec_id.swigValue()); + } + + public static boolean isIPSecSupported() { + return tinyWRAPJNI.SipStack_isIPSecSupported(); + } + +} diff --git a/bindings/java/android/SipUri.java b/bindings/java/android/SipUri.java new file mode 100644 index 0000000..34413ef --- /dev/null +++ b/bindings/java/android/SipUri.java @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SipUri { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected SipUri(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(SipUri obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SipUri(swigCPtr); + } + swigCPtr = 0; + } + } + + public SipUri(String uriString, String displayName) { + this(tinyWRAPJNI.new_SipUri__SWIG_0(uriString, displayName), true); + } + + public SipUri(String uriString) { + this(tinyWRAPJNI.new_SipUri__SWIG_1(uriString), true); + } + + public static boolean isValid(String arg0) { + return tinyWRAPJNI.SipUri_isValid__SWIG_0(arg0); + } + + public boolean isValid() { + return tinyWRAPJNI.SipUri_isValid__SWIG_1(swigCPtr, this); + } + + public String getScheme() { + return tinyWRAPJNI.SipUri_getScheme(swigCPtr, this); + } + + public String getHost() { + return tinyWRAPJNI.SipUri_getHost(swigCPtr, this); + } + + public int getPort() { + return tinyWRAPJNI.SipUri_getPort(swigCPtr, this); + } + + public String getUserName() { + return tinyWRAPJNI.SipUri_getUserName(swigCPtr, this); + } + + public String getPassword() { + return tinyWRAPJNI.SipUri_getPassword(swigCPtr, this); + } + + public String getDisplayName() { + return tinyWRAPJNI.SipUri_getDisplayName(swigCPtr, this); + } + + public String getParamValue(String pname) { + return tinyWRAPJNI.SipUri_getParamValue(swigCPtr, this, pname); + } + + public void setDisplayName(String displayName) { + tinyWRAPJNI.SipUri_setDisplayName(swigCPtr, this, displayName); + } + +} diff --git a/bindings/java/android/StackEvent.java b/bindings/java/android/StackEvent.java new file mode 100644 index 0000000..53a48dd --- /dev/null +++ b/bindings/java/android/StackEvent.java @@ -0,0 +1,38 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class StackEvent extends SipEvent { + private long swigCPtr; + + protected StackEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.StackEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(StackEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_StackEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + +} diff --git a/bindings/java/android/SubscriptionEvent.java b/bindings/java/android/SubscriptionEvent.java new file mode 100644 index 0000000..96c63fd --- /dev/null +++ b/bindings/java/android/SubscriptionEvent.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SubscriptionEvent extends SipEvent { + private long swigCPtr; + + protected SubscriptionEvent(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.SubscriptionEvent_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(SubscriptionEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SubscriptionEvent(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public tsip_subscribe_event_type_t getType() { + return tsip_subscribe_event_type_t.swigToEnum(tinyWRAPJNI.SubscriptionEvent_getType(swigCPtr, this)); + } + + public SubscriptionSession getSession() { + long cPtr = tinyWRAPJNI.SubscriptionEvent_getSession(swigCPtr, this); + return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false); + } + + public SubscriptionSession takeSessionOwnership() { + long cPtr = tinyWRAPJNI.SubscriptionEvent_takeSessionOwnership(swigCPtr, this); + return (cPtr == 0) ? null : new SubscriptionSession(cPtr, false); + } + +} diff --git a/bindings/java/android/SubscriptionSession.java b/bindings/java/android/SubscriptionSession.java new file mode 100644 index 0000000..bbe9c65 --- /dev/null +++ b/bindings/java/android/SubscriptionSession.java @@ -0,0 +1,50 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class SubscriptionSession extends SipSession { + private long swigCPtr; + + protected SubscriptionSession(long cPtr, boolean cMemoryOwn) { + super(tinyWRAPJNI.SubscriptionSession_SWIGUpcast(cPtr), cMemoryOwn); + swigCPtr = cPtr; + } + + protected static long getCPtr(SubscriptionSession obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_SubscriptionSession(swigCPtr); + } + swigCPtr = 0; + } + super.delete(); + } + + public SubscriptionSession(SipStack pStack) { + this(tinyWRAPJNI.new_SubscriptionSession(SipStack.getCPtr(pStack), pStack), true); + } + + public boolean subscribe() { + return tinyWRAPJNI.SubscriptionSession_subscribe(swigCPtr, this); + } + + public boolean unSubscribe() { + return tinyWRAPJNI.SubscriptionSession_unSubscribe(swigCPtr, this); + } + +} diff --git a/bindings/java/android/T140Callback.java b/bindings/java/android/T140Callback.java new file mode 100644 index 0000000..c20de22 --- /dev/null +++ b/bindings/java/android/T140Callback.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class T140Callback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected T140Callback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(T140Callback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_T140Callback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.T140Callback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.T140Callback_change_ownership(this, swigCPtr, true); + } + + public T140Callback() { + this(tinyWRAPJNI.new_T140Callback(), true); + tinyWRAPJNI.T140Callback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int ondata(T140CallbackData pData) { + return (getClass() == T140Callback.class) ? tinyWRAPJNI.T140Callback_ondata(swigCPtr, this, T140CallbackData.getCPtr(pData), pData) : tinyWRAPJNI.T140Callback_ondataSwigExplicitT140Callback(swigCPtr, this, T140CallbackData.getCPtr(pData), pData); + } + +} diff --git a/bindings/java/android/T140CallbackData.java b/bindings/java/android/T140CallbackData.java new file mode 100644 index 0000000..b08a9c4 --- /dev/null +++ b/bindings/java/android/T140CallbackData.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class T140CallbackData { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected T140CallbackData(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(T140CallbackData obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_T140CallbackData(swigCPtr); + } + swigCPtr = 0; + } + } + + public byte[] getData() { + final int size = (int)this.getSize(); + if(size > 0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(size); + final int read = (int)this.getData(buffer, size); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } + + public tmedia_t140_data_type_t getType() { + return tmedia_t140_data_type_t.swigToEnum(tinyWRAPJNI.T140CallbackData_getType(swigCPtr, this)); + } + + public long getSize() { + return tinyWRAPJNI.T140CallbackData_getSize(swigCPtr, this); + } + + public long getData(java.nio.ByteBuffer pOutput, long nMaxsize) { + return tinyWRAPJNI.T140CallbackData_getData(swigCPtr, this, pOutput, nMaxsize); + } + +} diff --git a/bindings/java/android/XcapCallback.java b/bindings/java/android/XcapCallback.java new file mode 100644 index 0000000..7976fec --- /dev/null +++ b/bindings/java/android/XcapCallback.java @@ -0,0 +1,62 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapCallback { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapCallback(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapCallback obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapCallback(swigCPtr); + } + swigCPtr = 0; + } + } + + protected void swigDirectorDisconnect() { + swigCMemOwn = false; + delete(); + } + + public void swigReleaseOwnership() { + swigCMemOwn = false; + tinyWRAPJNI.XcapCallback_change_ownership(this, swigCPtr, false); + } + + public void swigTakeOwnership() { + swigCMemOwn = true; + tinyWRAPJNI.XcapCallback_change_ownership(this, swigCPtr, true); + } + + public XcapCallback() { + this(tinyWRAPJNI.new_XcapCallback(), true); + tinyWRAPJNI.XcapCallback_director_connect(this, swigCPtr, swigCMemOwn, true); + } + + public int onEvent(XcapEvent e) { + return (getClass() == XcapCallback.class) ? tinyWRAPJNI.XcapCallback_onEvent(swigCPtr, this, XcapEvent.getCPtr(e), e) : tinyWRAPJNI.XcapCallback_onEventSwigExplicitXcapCallback(swigCPtr, this, XcapEvent.getCPtr(e), e); + } + +} diff --git a/bindings/java/android/XcapEvent.java b/bindings/java/android/XcapEvent.java new file mode 100644 index 0000000..1d5f3b4 --- /dev/null +++ b/bindings/java/android/XcapEvent.java @@ -0,0 +1,47 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapEvent { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapEvent(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapEvent obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapEvent(swigCPtr); + } + swigCPtr = 0; + } + } + + public thttp_event_type_t getType() { + return thttp_event_type_t.swigToEnum(tinyWRAPJNI.XcapEvent_getType(swigCPtr, this)); + } + + public XcapMessage getXcapMessage() { + long cPtr = tinyWRAPJNI.XcapEvent_getXcapMessage(swigCPtr, this); + return (cPtr == 0) ? null : new XcapMessage(cPtr, false); + } + +} diff --git a/bindings/java/android/XcapMessage.java b/bindings/java/android/XcapMessage.java new file mode 100644 index 0000000..9366911 --- /dev/null +++ b/bindings/java/android/XcapMessage.java @@ -0,0 +1,86 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapMessage(swigCPtr); + } + swigCPtr = 0; + } + } + + public byte[] getXcapContent() { + final int clen = (int)this.getXcapContentLength(); + if(clen>0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen); + final int read = (int)this.getXcapContent(buffer, clen); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } + + public XcapMessage() { + this(tinyWRAPJNI.new_XcapMessage(), true); + } + + public short getCode() { + return tinyWRAPJNI.XcapMessage_getCode(swigCPtr, this); + } + + public String getPhrase() { + return tinyWRAPJNI.XcapMessage_getPhrase(swigCPtr, this); + } + + public String getXcapHeaderValue(String name, long index) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderValue__SWIG_0(swigCPtr, this, name, index); + } + + public String getXcapHeaderValue(String name) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderValue__SWIG_1(swigCPtr, this, name); + } + + public String getXcapHeaderParamValue(String name, String param, long index) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderParamValue__SWIG_0(swigCPtr, this, name, param, index); + } + + public String getXcapHeaderParamValue(String name, String param) { + return tinyWRAPJNI.XcapMessage_getXcapHeaderParamValue__SWIG_1(swigCPtr, this, name, param); + } + + public long getXcapContentLength() { + return tinyWRAPJNI.XcapMessage_getXcapContentLength(swigCPtr, this); + } + + public long getXcapContent(java.nio.ByteBuffer output, long maxsize) { + return tinyWRAPJNI.XcapMessage_getXcapContent(swigCPtr, this, output, maxsize); + } + +} diff --git a/bindings/java/android/XcapSelector.java b/bindings/java/android/XcapSelector.java new file mode 100644 index 0000000..0a0c297 --- /dev/null +++ b/bindings/java/android/XcapSelector.java @@ -0,0 +1,80 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapSelector { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapSelector(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapSelector obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapSelector(swigCPtr); + } + swigCPtr = 0; + } + } + + public XcapSelector(XcapStack stack) { + this(tinyWRAPJNI.new_XcapSelector(XcapStack.getCPtr(stack), stack), true); + } + + public XcapSelector setAUID(String auid) { + long cPtr = tinyWRAPJNI.XcapSelector_setAUID(swigCPtr, this, auid); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setName(String qname) { + long cPtr = tinyWRAPJNI.XcapSelector_setName(swigCPtr, this, qname); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setAttribute(String qname, String att_qname, String att_value) { + long cPtr = tinyWRAPJNI.XcapSelector_setAttribute(swigCPtr, this, qname, att_qname, att_value); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setPos(String qname, long pos) { + long cPtr = tinyWRAPJNI.XcapSelector_setPos(swigCPtr, this, qname, pos); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setPosAttribute(String qname, long pos, String att_qname, String att_value) { + long cPtr = tinyWRAPJNI.XcapSelector_setPosAttribute(swigCPtr, this, qname, pos, att_qname, att_value); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public XcapSelector setNamespace(String prefix, String value) { + long cPtr = tinyWRAPJNI.XcapSelector_setNamespace(swigCPtr, this, prefix, value); + return (cPtr == 0) ? null : new XcapSelector(cPtr, false); + } + + public String getString() { + return tinyWRAPJNI.XcapSelector_getString(swigCPtr, this); + } + + public void reset() { + tinyWRAPJNI.XcapSelector_reset(swigCPtr, this); + } + +} diff --git a/bindings/java/android/XcapStack.java b/bindings/java/android/XcapStack.java new file mode 100644 index 0000000..80a360a --- /dev/null +++ b/bindings/java/android/XcapStack.java @@ -0,0 +1,118 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class XcapStack { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected XcapStack(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(XcapStack obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + tinyWRAPJNI.delete_XcapStack(swigCPtr); + } + swigCPtr = 0; + } + } + + public XcapStack(XcapCallback callback, String xui, String password, String xcap_root) { + this(tinyWRAPJNI.new_XcapStack(XcapCallback.getCPtr(callback), callback, xui, password, xcap_root), true); + } + + public boolean registerAUID(String id, String mime_type, String ns, String document_name, boolean is_global) { + return tinyWRAPJNI.XcapStack_registerAUID(swigCPtr, this, id, mime_type, ns, document_name, is_global); + } + + public boolean start() { + return tinyWRAPJNI.XcapStack_start(swigCPtr, this); + } + + public boolean setCredentials(String xui, String password) { + return tinyWRAPJNI.XcapStack_setCredentials(swigCPtr, this, xui, password); + } + + public boolean setXcapRoot(String xcap_root) { + return tinyWRAPJNI.XcapStack_setXcapRoot(swigCPtr, this, xcap_root); + } + + public boolean setLocalIP(String ip) { + return tinyWRAPJNI.XcapStack_setLocalIP(swigCPtr, this, ip); + } + + public boolean setLocalPort(long port) { + return tinyWRAPJNI.XcapStack_setLocalPort(swigCPtr, this, port); + } + + public boolean addHeader(String name, String value) { + return tinyWRAPJNI.XcapStack_addHeader(swigCPtr, this, name, value); + } + + public boolean removeHeader(String name) { + return tinyWRAPJNI.XcapStack_removeHeader(swigCPtr, this, name); + } + + public boolean setTimeout(long timeout) { + return tinyWRAPJNI.XcapStack_setTimeout(swigCPtr, this, timeout); + } + + public boolean getDocument(String url) { + return tinyWRAPJNI.XcapStack_getDocument(swigCPtr, this, url); + } + + public boolean getElement(String url) { + return tinyWRAPJNI.XcapStack_getElement(swigCPtr, this, url); + } + + public boolean getAttribute(String url) { + return tinyWRAPJNI.XcapStack_getAttribute(swigCPtr, this, url); + } + + public boolean deleteDocument(String url) { + return tinyWRAPJNI.XcapStack_deleteDocument(swigCPtr, this, url); + } + + public boolean deleteElement(String url) { + return tinyWRAPJNI.XcapStack_deleteElement(swigCPtr, this, url); + } + + public boolean deleteAttribute(String url) { + return tinyWRAPJNI.XcapStack_deleteAttribute(swigCPtr, this, url); + } + + public boolean putDocument(String url, java.nio.ByteBuffer payload, long len, String contentType) { + return tinyWRAPJNI.XcapStack_putDocument(swigCPtr, this, url, payload, len, contentType); + } + + public boolean putElement(String url, java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.XcapStack_putElement(swigCPtr, this, url, payload, len); + } + + public boolean putAttribute(String url, java.nio.ByteBuffer payload, long len) { + return tinyWRAPJNI.XcapStack_putAttribute(swigCPtr, this, url, payload, len); + } + + public boolean stop() { + return tinyWRAPJNI.XcapStack_stop(swigCPtr, this); + } + +} diff --git a/bindings/java/android/buildAll.sh b/bindings/java/android/buildAll.sh new file mode 100644 index 0000000..7b0fdb5 --- /dev/null +++ b/bindings/java/android/buildAll.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Build tinyWRAP for Google Android Systems + +for project in tinySAK tinyNET tinyHTTP tinyXCAP tinyIPSec tinySMS tinySIGCOMP tinySDP tinyMSRP tinyMEDIA tinyRTP tinyDAV tinySIP +#for project in tinyDAV +do + echo -e building "$project with parameters=$@\n" + make PROJECT=$project clean + make PROJECT=$project BT=static $@ all +done + +echo building tinyWRAP.... +make PROJECT=tinyWRAP clean +make PROJECT=tinyWRAP BT=shared LT=static $@ all \ No newline at end of file diff --git a/bindings/java/android/commercial.sh b/bindings/java/android/commercial.sh new file mode 100644 index 0000000..4e62a27 --- /dev/null +++ b/bindings/java/android/commercial.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# Build tinyWRAP for Google Android Systems + +# GPL parameters +export COMMERCIAL_PARAMS=LICENSE=lgpl \ +FFMPEG=no \ +LIBYUV=yes \ +VPX=yes \ +H264=no \ +THEORA=yes \ +OPUS=yes \ +OPENCORE_AMR=no \ +SPEEX_DSP=yes \ +SPEEX_JB=yes \ +SPEEX_RESAMPLER=yes \ +SPEEX_DENOISE=yes \ +SPEEX=yes \ +ILBC=yes \ +LIBGSM=yes \ +G729=no \ +SRTP=yes \ +TLS=yes + +for IS_NEON in no yes +do +../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $COMMERCIAL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON +done + diff --git a/bindings/java/android/droid-makefile b/bindings/java/android/droid-makefile new file mode 100644 index 0000000..5383adc --- /dev/null +++ b/bindings/java/android/droid-makefile @@ -0,0 +1,146 @@ +APP := lib$(PROJECT)_$(MARCH).$(EXT) + +CFLAGS := $(CFLAGS_LIB) -fno-rtti -fno-exceptions -I../../_common -I../../. -I../../../tinySAK/src -I../../../tinyNET/src -I../../../tinyHTTP/include -I../../../tinyXCAP/include \ + -I../../../tinySMS/include -I../../../tinySDP/include -I../../../tinyMEDIA/include -I../../../tinyMSRP/include -I../../../tinyDAV/include -I../../../tinySIP/include + +# Because of the static build, we need all librarires +THIRDPARTIES_LIB := ../../../thirdparties/android/lib +THIRDPARTIES_MARCH_LIB := ../../../thirdparties/android/lib/$(MARCH) + +########## +# Before starting to set parmeters we will override those provided by the user +# + +ifeq ($(LICENSE),lgpl) + H264 := no +endif + + +########## +# Set LD and CFLAGS according to the user parameters +# + +ifneq ($(FFMPEG), no) +FFMPEG_LDFLAGS := -lavutil-$(LICENSE) -lswscale-$(LICENSE) -lavcore-$(LICENSE) -lavcodec-$(LICENSE) + ifneq ($(H264),no) + FFMPEG_LDFLAGS := $(FFMPEG_LDFLAGS) -lx264 + endif + ifneq ($(THEORA),no) + FFMPEG_LDFLAGS := $(FFMPEG_LDFLAGS) -ltheora -logg + endif +endif + +ifneq ($(LIBYUV),no) + LIBYUV_LDLAGS := -lyuv_$(MARCH) +endif + +ifeq ($(VPX),yes) + VPX_LDLAGS := -lvpx_$(MARCH) +endif + +ifneq ($(OPUS), no) + OPUS_LDFLAGS := -lopus +endif + +ifneq ($(OPENCORE_AMR), no) + OPENCORE_ARM_LDFLAGS := -lopencore-amrnb +endif + +ifeq ($(SPEEX_DSP), yes) + SPEEX_DSP_LDFLAGS := -lspeexdsp +endif + +ifeq ($(SPEEX), yes) + SPEEX_LDFLAGS := -lspeex +endif + +ifeq ($(WEBRTC), yes) + WEBRTC_LDFLAGS := -lwebrtc_aec_$(MARCH) -lwebrtc_spl_$(MARCH) -lwebrtc_apm_utility_$(MARCH) -lwebrtc_nsx_$(MARCH) -lwebrtc_system_wrappers_$(MARCH) +endif + +ifeq ($(ILBC), yes) + ILBC_LDFLAGS := -liLBC +endif + +ifneq ($(LIBGSM),no) + LIBGSM_LDFLAGS := -lgsm +endif + +#BV16_LDFLAGS := -lbv16 + +ifeq ($(G729), yes) + G729_LDFLAGS := -lg729b_$(MARCH) + + # Reset all other ITU CODECS + OPENCORE_ARM_LDFLAGS := + BV16_LDFLAGS := +else + G729_LDFLAGS := +endif + +ifneq ($(SRTP),no) + LIBSRTP_LDFLAGS := -lsrtp +endif + +ifneq ($(TLS), no) + TLS_LDFLAGS := -lssl_$(MARCH) -lcrypto_$(MARCH) +endif + +ifeq ($(LT),shared) + _LT=Bdynamic +else + _LT=Bstatic +endif + +LDFLAGS := $(LDFLAGS_LIB) -L$(THIRDPARTIES_LIB) -L$(THIRDPARTIES_MARCH_LIB) $(FFMPEG_LDFLAGS) $(LIBYUV_LDLAGS) $(VPX_LDLAGS) $(WEBRTC_LDFLAGS) $(SPEEX_DSP_LDFLAGS) $(SPEEX_LDFLAGS) $(OPUS_LDFLAGS) $(OPENCORE_ARM_LDFLAGS) $(BV16_LDFLAGS) $(ILBC_LDFLAGS) $(LIBGSM_LDFLAGS) $(G729_LDFLAGS) \ + $(LIBSRTP_LDFLAGS) $(TLS_LDFLAGS) \ + -Wl,-Bdynamic -lm -lstdc++ -lgnustl_static -lgcc -llog -ldl \ + -Wl,-$(_LT) -ltinySAK_$(MARCH) -ltinyHTTP_$(MARCH) -ltinyXCAP_$(MARCH) -ltinyIPSec_$(MARCH) -ltinySIGCOMP_$(MARCH) -ltinySMS_$(MARCH) -ltinyNET_$(MARCH) -ltinySDP_$(MARCH) -ltinyRTP_$(MARCH) -ltinyMEDIA_$(MARCH) -ltinyMSRP_$(MARCH) -ltinyDAV_$(MARCH) -ltinySIP_$(MARCH) + + +all: $(APP) + +OBJS = tinyWRAP_wrap.o\ + ../../_common/ActionConfig.o \ + ../../_common/AudioResampler.o \ + ../../_common/DDebug.o \ + ../../_common/MediaContent.o \ + ../../_common/MediaSessionMgr.o \ + ../../_common/Msrp.o \ + ../../_common/ProxyConsumer.o \ + ../../_common/ProxyPluginMgr.o \ + ../../_common/ProxyProducer.o \ + ../../_common/SafeObject.o \ + ../../_common/SipCallback.o \ + ../../_common/SipEvent.o \ + ../../_common/SipMessage.o \ + ../../_common/SipSession.o \ + ../../_common/SipStack.o \ + ../../_common/SipUri.o \ + ../../_common/SMSEncoder.o \ + ../../_common/Xcap.o + + +$(APP): $(OBJS) +ifeq ($(EXT), a) + $(AR) rcs $@ $^ +else + $(CC) $(LDFLAGS) -o $@ $^ +endif + +%.o: %.cxx + $(CPP) -c $(INCLUDE) $(CFLAGS) $< -o $@ + +install: $(APP) + $(ANDROID_SDK_ROOT)/tools/adb remount + $(ANDROID_SDK_ROOT)/tools/adb push $(APP) $(LIB_DIR)/$(APP) + $(ANDROID_SDK_ROOT)/tools/adb shell chmod 777 $(LIB_DIR)/$(APP) + +shell: + $(ANDROID_SDK_ROOT)/tools/adb shell + +run: + $(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP) + +clean: + @rm -f $(OBJS) $(APP) \ No newline at end of file diff --git a/bindings/java/android/gpl.sh b/bindings/java/android/gpl.sh new file mode 100644 index 0000000..94cfcf3 --- /dev/null +++ b/bindings/java/android/gpl.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Build tinyWRAP for Google Android Systems + +# GPL parameters +export GPL_PARAMS=LICENSE=gpl \ +NO_FREE=yes \ +FFMPEG=yes \ +LIBYUV=yes \ +VPX=yes \ +H264=yes \ +THEORA=yes \ +OPUS=yes \ +OPENCORE_AMR=yes \ +SPEEX_DSP=yes \ +SPEEX_JB=yes \ +SPEEX_RESAMPLER=yes \ +SPEEX_DENOISE=yes \ +SPEEX=yes \ +ILBC=yes \ +LIBGSM=yes \ +G729=yes \ +SRTP=yes \ +TLS=yes + +for IS_NEON in no yes +#for IS_NEON in yes +do +../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $GPL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON +done + diff --git a/bindings/java/android/lgpl.sh b/bindings/java/android/lgpl.sh new file mode 100644 index 0000000..29e9a12 --- /dev/null +++ b/bindings/java/android/lgpl.sh @@ -0,0 +1,28 @@ +#!/bin/bash +# Build tinyWRAP for Google Android Systems + +# GPL parameters +export LGPL_PARAMS=LICENSE=lgpl \ +FFMPEG=yes \ +LIBYUV=yes \ +VPX=yes \ +H264=no \ +THEORA=yes \ +OPUS=yes \ +OPENCORE_AMR=yes \ +SPEEX_DSP=yes \ +SPEEX_JB=yes \ +SPEEX_RESAMPLER=yes \ +SPEEX_DENOISE=yes \ +SPEEX=yes \ +ILBC=yes \ +LIBGSM=yes \ +G729=yes \ +SRTP=yes \ +TLS=yes + +for IS_NEON in no yes +do +../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $LGPL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON +done + diff --git a/bindings/java/android/minimal.sh b/bindings/java/android/minimal.sh new file mode 100644 index 0000000..d451176 --- /dev/null +++ b/bindings/java/android/minimal.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Build tinyWRAP for Google Android Systems + +# GPL parameters +export MINIMAL_PARAMS= \ +FFMPEG=no \ +LIBYUV=yes \ +VPX=yes \ +H264=no \ +THEORA=no \ +OPUS=no \ +OPENCORE_AMR=no \ +SPEEX_DSP=yes \ +SPEEX_JB=yes \ +SPEEX_RESAMPLER=yes \ +SPEEX_DENOISE=yes \ +SPEEX=no \ +ILBC=no \ +LIBGSM=no \ +G729=no \ +SRTP=yes \ +TLS=yes + +for IS_NEON in no yes +do +../bindings/java/android/buildAll.sh $@ NEON=$IS_NEON $MINIMAL_PARAMS WEBRTC=$IS_NEON WEBRTC_DENOISE=$IS_NEON +done diff --git a/bindings/java/android/tdav_codec_id_t.java b/bindings/java/android/tdav_codec_id_t.java new file mode 100644 index 0000000..2556437 --- /dev/null +++ b/bindings/java/android/tdav_codec_id_t.java @@ -0,0 +1,83 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tdav_codec_id_t { + tdav_codec_id_none(0x00000000), + tdav_codec_id_amr_nb_oa(0x00000001 << 0), + tdav_codec_id_amr_nb_be(0x00000001 << 1), + tdav_codec_id_amr_wb_oa(0x00000001 << 2), + tdav_codec_id_amr_wb_be(0x00000001 << 3), + tdav_codec_id_gsm(0x00000001 << 4), + tdav_codec_id_pcma(0x00000001 << 5), + tdav_codec_id_pcmu(0x00000001 << 6), + tdav_codec_id_ilbc(0x00000001 << 7), + tdav_codec_id_speex_nb(0x00000001 << 8), + tdav_codec_id_speex_wb(0x00000001 << 9), + tdav_codec_id_speex_uwb(0x00000001 << 10), + tdav_codec_id_bv16(0x00000001 << 11), + tdav_codec_id_bv32(0x00000001 << 12), + tdav_codec_id_opus(0x00000001 << 13), + tdav_codec_id_g729ab(0x00000001 << 14), + tdav_codec_id_g722(0x00000001 << 15), + tdav_codec_id_h261(0x00010000 << 0), + tdav_codec_id_h263(0x00010000 << 1), + tdav_codec_id_h263p(0x00010000 << 2), + tdav_codec_id_h263pp(0x00010000 << 3), + tdav_codec_id_h264_bp(0x00010000 << 4), + tdav_codec_id_h264_mp(0x00010000 << 5), + tdav_codec_id_h264_hp(0x00010000 << 6), + tdav_codec_id_h264_bp10(tdav_codec_id_h264_bp), + tdav_codec_id_h264_bp20(tdav_codec_id_h264_bp), + tdav_codec_id_h264_bp30(tdav_codec_id_h264_bp), + 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_t140(0x00010000 << 14), + tdav_codec_id_red(0x00010000 << 15); + + public final int swigValue() { + return swigValue; + } + + public static tdav_codec_id_t swigToEnum(int swigValue) { + tdav_codec_id_t[] swigValues = tdav_codec_id_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tdav_codec_id_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tdav_codec_id_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tdav_codec_id_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tdav_codec_id_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tdav_codec_id_t(tdav_codec_id_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/thttp_event_type_t.java b/bindings/java/android/thttp_event_type_t.java new file mode 100644 index 0000000..022295b --- /dev/null +++ b/bindings/java/android/thttp_event_type_t.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum thttp_event_type_t { + thttp_event_dialog_started, + thttp_event_message, + thttp_event_auth_failed, + thttp_event_closed, + thttp_event_transport_error, + thttp_event_dialog_terminated; + + public final int swigValue() { + return swigValue; + } + + public static thttp_event_type_t swigToEnum(int swigValue) { + thttp_event_type_t[] swigValues = thttp_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (thttp_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + thttp_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private thttp_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private thttp_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private thttp_event_type_t(thttp_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tinyWRAP.java b/bindings/java/android/tinyWRAP.java new file mode 100644 index 0000000..1accccf --- /dev/null +++ b/bindings/java/android/tinyWRAP.java @@ -0,0 +1,12 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class tinyWRAP implements tinyWRAPConstants { +} diff --git a/bindings/java/android/tinyWRAPConstants.java b/bindings/java/android/tinyWRAPConstants.java new file mode 100644 index 0000000..5d5f094 --- /dev/null +++ b/bindings/java/android/tinyWRAPConstants.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public interface tinyWRAPConstants { + public final static int tsip_event_code_dialog_transport_error = 702; + public final static int tsip_event_code_dialog_global_error = 703; + public final static int tsip_event_code_dialog_message_error = 704; + public final static int tsip_event_code_dialog_request_incoming = 800; + public final static int tsip_event_code_dialog_request_outgoing = 802; + public final static int tsip_event_code_dialog_request_cancelled = 803; + public final static int tsip_event_code_dialog_request_sent = 804; + public final static int tsip_event_code_dialog_connecting = 900; + public final static int tsip_event_code_dialog_connected = 901; + public final static int tsip_event_code_dialog_terminating = 902; + public final static int tsip_event_code_dialog_terminated = 903; + public final static int tsip_event_code_stack_starting = 950; + public final static int tsip_event_code_stack_started = 951; + public final static int tsip_event_code_stack_stopping = 952; + public final static int tsip_event_code_stack_stopped = 953; + public final static int tsip_event_code_stack_failed_to_start = 954; + public final static int tsip_event_code_stack_failed_to_stop = 955; + public final static int tsip_event_code_stack_disconnected = 956; +} diff --git a/bindings/java/android/tinyWRAPJNI.java b/bindings/java/android/tinyWRAPJNI.java new file mode 100644 index 0000000..e7e86fc --- /dev/null +++ b/bindings/java/android/tinyWRAPJNI.java @@ -0,0 +1,791 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class tinyWRAPJNI { + public final static native long new_DDebugCallback(); + public final static native void delete_DDebugCallback(long jarg1); + public final static native int DDebugCallback_OnDebugInfo(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugWarn(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugError(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugFatal(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native void DDebugCallback_director_connect(DDebugCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void DDebugCallback_change_ownership(DDebugCallback obj, long cptr, boolean take_or_release); + public final static native long new_AudioResampler(long jarg1, long jarg2, long jarg3, long jarg4, long jarg5); + public final static native void delete_AudioResampler(long jarg1); + public final static native boolean AudioResampler_isValid(long jarg1, AudioResampler jarg1_); + public final static native long AudioResampler_getOutputRequiredSizeInShort(long jarg1, AudioResampler jarg1_); + public final static native long AudioResampler_getInputRequiredSizeInShort(long jarg1, AudioResampler jarg1_); + public final static native long AudioResampler_process(long jarg1, AudioResampler jarg1_, java.nio.ByteBuffer jarg2, long jarg3, java.nio.ByteBuffer jarg4, long jarg5); + public final static native long new_ActionConfig(); + public final static native void delete_ActionConfig(long jarg1); + public final static native boolean ActionConfig_addHeader(long jarg1, ActionConfig jarg1_, String jarg2, String jarg3); + public final static native boolean ActionConfig_addPayload(long jarg1, ActionConfig jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean ActionConfig_setActiveMedia(long jarg1, ActionConfig jarg1_, int jarg2); + public final static native long ActionConfig_setResponseLine(long jarg1, ActionConfig jarg1_, short jarg2, String jarg3); + public final static native long ActionConfig_setMediaString(long jarg1, ActionConfig jarg1_, int jarg2, String jarg3, String jarg4); + public final static native long ActionConfig_setMediaInt(long jarg1, ActionConfig jarg1_, int jarg2, String jarg3, int jarg4); + public final static native void delete_Codec(long jarg1); + public final static native int Codec_getMediaType(long jarg1, Codec jarg1_); + public final static native String Codec_getName(long jarg1, Codec jarg1_); + public final static native String Codec_getDescription(long jarg1, Codec jarg1_); + public final static native String Codec_getNegFormat(long jarg1, Codec jarg1_); + public final static native int Codec_getAudioSamplingRate(long jarg1, Codec jarg1_); + public final static native int Codec_getAudioChannels(long jarg1, Codec jarg1_); + public final static native int Codec_getAudioPTime(long jarg1, Codec jarg1_); + public final static native void delete_MediaSessionMgr(long jarg1); + public final static native boolean MediaSessionMgr_sessionSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + public final static native int MediaSessionMgr_sessionGetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3); + public final static native boolean MediaSessionMgr_consumerSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + public final static native boolean MediaSessionMgr_consumerSetInt64(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, long jarg4); + public final static native boolean MediaSessionMgr_producerSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + public final static native boolean MediaSessionMgr_producerSetInt64(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, long jarg4); + public final static native long MediaSessionMgr_producerGetCodec(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_findProxyPluginConsumer(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_findProxyPluginProducer(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_registerAudioPluginFromFile(String jarg1); + public final static native java.math.BigInteger MediaSessionMgr_getSessionId(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetProfile(int jarg1); + public final static native int MediaSessionMgr_defaultsGetProfile(); + public final static native boolean MediaSessionMgr_defaultsSetBandwidthLevel(int jarg1); + public final static native int MediaSessionMgr_defaultsGetBandwidthLevel(); + public final static native boolean MediaSessionMgr_defaultsSetCongestionCtrlEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetVideoMotionRank(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetVideoFps(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetPrefVideoSize(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetJbMargin(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetJbMaxLateRate(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetEchoTail(long jarg1); + public final static native long MediaSessionMgr_defaultsGetEchoTail(); + public final static native boolean MediaSessionMgr_defaultsSetEchoSkew(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetEchoSuppEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetEchoSuppEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetAgcEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetAgcEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetAgcLevel(float jarg1); + public final static native float MediaSessionMgr_defaultsGetAgcLevel(); + public final static native boolean MediaSessionMgr_defaultsSetVadEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetGetVadEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetNoiseSuppEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetNoiseSuppEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetNoiseSuppLevel(int jarg1); + public final static native int MediaSessionMgr_defaultsGetNoiseSuppLevel(); + public final static native boolean MediaSessionMgr_defaultsSet100relEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGet100relEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetScreenSize(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetAudioGain(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetAudioPtime(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetAudioChannels(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetRtpPortRange(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetRtpSymetricEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetMediaType(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetVolume(int jarg1); + public final static native int MediaSessionMgr_defaultsGetVolume(); + public final static native boolean MediaSessionMgr_defaultsSetInviteSessionTimers(int jarg1, String jarg2); + public final static native boolean MediaSessionMgr_defaultsSetSRtpMode(int jarg1); + public final static native int MediaSessionMgr_defaultsGetSRtpMode(); + public final static native boolean MediaSessionMgr_defaultsSetSRtpType(int jarg1); + public final static native int MediaSessionMgr_defaultsGetSRtpType(); + public final static native boolean MediaSessionMgr_defaultsSetRtcpEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetRtcpEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetRtcpMuxEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetRtcpMuxEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetStunEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetIceStunEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetIceTurnEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetStunServer(String jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetStunCred(String jarg1, String jarg2); + public final static native boolean MediaSessionMgr_defaultsSetIceEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetByPassEncoding(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetByPassEncoding(); + public final static native boolean MediaSessionMgr_defaultsSetByPassDecoding(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetByPassDecoding(); + public final static native boolean MediaSessionMgr_defaultsSetVideoJbEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetVideoJbEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetRtpBuffSize(long jarg1); + public final static native long MediaSessionMgr_defaultsGetRtpBuffSize(); + public final static native boolean MediaSessionMgr_defaultsSetAvpfTail(long jarg1, long jarg2); + public final static native boolean MediaSessionMgr_defaultsSetAvpfMode(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetOpusMaxCaptureRate(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetMaxFds(int jarg1); + public final static native void delete_MediaContent(long jarg1); + public final static native String MediaContent_getType(long jarg1, MediaContent jarg1_); + public final static native long MediaContent_getDataLength(long jarg1, MediaContent jarg1_); + public final static native long MediaContent_getData(long jarg1, MediaContent jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long MediaContent_parse__SWIG_0(java.nio.ByteBuffer jarg1, long jarg2, String jarg3); + public final static native long MediaContent_parse__SWIG_1(java.nio.ByteBuffer jarg1, long jarg2); + public final static native long MediaContent_getPayloadLength(long jarg1, MediaContent jarg1_); + public final static native long MediaContent_getPayload(long jarg1, MediaContent jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void delete_MediaContentCPIM(long jarg1); + public final static native long MediaContentCPIM_getPayloadLength(long jarg1, MediaContentCPIM jarg1_); + public final static native long MediaContentCPIM_getPayload(long jarg1, MediaContentCPIM jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native String MediaContentCPIM_getHeaderValue(long jarg1, MediaContentCPIM jarg1_, String jarg2); + public final static native long new_SipUri__SWIG_0(String jarg1, String jarg2); + public final static native long new_SipUri__SWIG_1(String jarg1); + public final static native void delete_SipUri(long jarg1); + public final static native boolean SipUri_isValid__SWIG_0(String jarg1); + public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_); + public final static native String SipUri_getScheme(long jarg1, SipUri jarg1_); + public final static native String SipUri_getHost(long jarg1, SipUri jarg1_); + public final static native int SipUri_getPort(long jarg1, SipUri jarg1_); + public final static native String SipUri_getUserName(long jarg1, SipUri jarg1_); + public final static native String SipUri_getPassword(long jarg1, SipUri jarg1_); + public final static native String SipUri_getDisplayName(long jarg1, SipUri jarg1_); + public final static native String SipUri_getParamValue(long jarg1, SipUri jarg1_, String jarg2); + public final static native void SipUri_setDisplayName(long jarg1, SipUri jarg1_, String jarg2); + public final static native long new_SdpMessage(); + public final static native void delete_SdpMessage(long jarg1); + public final static native String SdpMessage_getSdpHeaderValue__SWIG_0(long jarg1, SdpMessage jarg1_, String jarg2, char jarg3, long jarg4); + public final static native String SdpMessage_getSdpHeaderValue__SWIG_1(long jarg1, SdpMessage jarg1_, String jarg2, char jarg3); + public final static native String SdpMessage_getSdpHeaderAValue(long jarg1, SdpMessage jarg1_, String jarg2, String jarg3); + public final static native long new_SipMessage(); + public final static native void delete_SipMessage(long jarg1); + public final static native boolean SipMessage_isResponse(long jarg1, SipMessage jarg1_); + public final static native int SipMessage_getRequestType(long jarg1, SipMessage jarg1_); + public final static native short SipMessage_getResponseCode(long jarg1, SipMessage jarg1_); + public final static native String SipMessage_getResponsePhrase(long jarg1, SipMessage jarg1_); + public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3); + public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2); + public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4); + public final static native String SipMessage_getSipHeaderParamValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2, String jarg3); + public final static native long SipMessage_getSipContentLength(long jarg1, SipMessage jarg1_); + public final static native long SipMessage_getSipContent(long jarg1, SipMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long SipMessage_getSdpMessage(long jarg1, SipMessage jarg1_); + public final static native void delete_SipEvent(long jarg1); + public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_); + public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_); + public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_); + public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_); + public final static native void delete_DialogEvent(long jarg1); + public final static native void delete_StackEvent(long jarg1); + public final static native void delete_InviteEvent(long jarg1); + public final static native int InviteEvent_getType(long jarg1, InviteEvent jarg1_); + public final static native int InviteEvent_getMediaType(long jarg1, InviteEvent jarg1_); + public final static native long InviteEvent_getSession(long jarg1, InviteEvent jarg1_); + public final static native long InviteEvent_takeCallSessionOwnership(long jarg1, InviteEvent jarg1_); + public final static native long InviteEvent_takeMsrpSessionOwnership(long jarg1, InviteEvent jarg1_); + public final static native void delete_MessagingEvent(long jarg1); + public final static native int MessagingEvent_getType(long jarg1, MessagingEvent jarg1_); + public final static native long MessagingEvent_getSession(long jarg1, MessagingEvent jarg1_); + public final static native long MessagingEvent_takeSessionOwnership(long jarg1, MessagingEvent jarg1_); + public final static native void delete_InfoEvent(long jarg1); + public final static native int InfoEvent_getType(long jarg1, InfoEvent jarg1_); + public final static native long InfoEvent_getSession(long jarg1, InfoEvent jarg1_); + public final static native long InfoEvent_takeSessionOwnership(long jarg1, InfoEvent jarg1_); + public final static native void delete_OptionsEvent(long jarg1); + public final static native int OptionsEvent_getType(long jarg1, OptionsEvent jarg1_); + public final static native long OptionsEvent_getSession(long jarg1, OptionsEvent jarg1_); + public final static native long OptionsEvent_takeSessionOwnership(long jarg1, OptionsEvent jarg1_); + public final static native void delete_PublicationEvent(long jarg1); + public final static native int PublicationEvent_getType(long jarg1, PublicationEvent jarg1_); + public final static native long PublicationEvent_getSession(long jarg1, PublicationEvent jarg1_); + public final static native long PublicationEvent_takeSessionOwnership(long jarg1, PublicationEvent jarg1_); + public final static native void delete_RegistrationEvent(long jarg1); + public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_); + public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_); + public final static native long RegistrationEvent_takeSessionOwnership(long jarg1, RegistrationEvent jarg1_); + public final static native void delete_SubscriptionEvent(long jarg1); + public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_); + public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_); + public final static native long SubscriptionEvent_takeSessionOwnership(long jarg1, SubscriptionEvent jarg1_); + public final static native void delete_T140CallbackData(long jarg1); + public final static native int T140CallbackData_getType(long jarg1, T140CallbackData jarg1_); + public final static native long T140CallbackData_getSize(long jarg1, T140CallbackData jarg1_); + public final static native long T140CallbackData_getData(long jarg1, T140CallbackData jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long new_T140Callback(); + public final static native void delete_T140Callback(long jarg1); + public final static native int T140Callback_ondata(long jarg1, T140Callback jarg1_, long jarg2, T140CallbackData jarg2_); + public final static native int T140Callback_ondataSwigExplicitT140Callback(long jarg1, T140Callback jarg1_, long jarg2, T140CallbackData jarg2_); + public final static native void T140Callback_director_connect(T140Callback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void T140Callback_change_ownership(T140Callback obj, long cptr, boolean take_or_release); + public final static native long new_SipSession(long jarg1, SipStack jarg1_); + public final static native void delete_SipSession(long jarg1); + public final static native boolean SipSession_haveOwnership(long jarg1, SipSession jarg1_); + public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3); + public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3); + public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2); + public final static native boolean SipSession_setFromUri__SWIG_0(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setFromUri__SWIG_1(long jarg1, SipSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean SipSession_setToUri__SWIG_0(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setToUri__SWIG_1(long jarg1, SipSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean SipSession_setSilentHangup(long jarg1, SipSession jarg1_, boolean jarg2); + public final static native boolean SipSession_addSigCompCompartment(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_removeSigCompCompartment(long jarg1, SipSession jarg1_); + public final static native long SipSession_getId(long jarg1, SipSession jarg1_); + public final static native long new_InviteSession(long jarg1, SipStack jarg1_); + public final static native void delete_InviteSession(long jarg1); + public final static native boolean InviteSession_accept__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InviteSession_accept__SWIG_1(long jarg1, InviteSession jarg1_); + public final static native boolean InviteSession_hangup__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InviteSession_hangup__SWIG_1(long jarg1, InviteSession jarg1_); + public final static native boolean InviteSession_reject__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InviteSession_reject__SWIG_1(long jarg1, InviteSession jarg1_); + public final static native boolean InviteSession_sendInfo__SWIG_0(long jarg1, InviteSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean InviteSession_sendInfo__SWIG_1(long jarg1, InviteSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long InviteSession_getMediaMgr(long jarg1, InviteSession jarg1_); + public final static native long new_CallSession(long jarg1, SipStack jarg1_); + public final static native void delete_CallSession(long jarg1); + public final static native boolean CallSession_callAudio__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudio__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_callAudio__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudio__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean CallSession_callAudioVideo__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudioVideo__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_callAudioVideo__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudioVideo__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean CallSession_callVideo__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callVideo__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_callVideo__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callVideo__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean CallSession_call__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, int jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean CallSession_call__SWIG_1(long jarg1, CallSession jarg1_, String jarg2, int jarg3); + public final static native boolean CallSession_call__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, int jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean CallSession_call__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, int jarg3); + public final static native boolean CallSession_setSessionTimer(long jarg1, CallSession jarg1_, long jarg2, String jarg3); + public final static native boolean CallSession_set100rel(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setRtcp(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setRtcpMux(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setSRtpMode(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setAvpfMode(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setICE(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setICEStun(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setICETurn(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setSTUNServer(long jarg1, CallSession jarg1_, String jarg2, int jarg3); + public final static native boolean CallSession_setSTUNCred(long jarg1, CallSession jarg1_, String jarg2, String jarg3); + public final static native boolean CallSession_setVideoFps(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setVideoBandwidthUploadMax(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setVideoBandwidthDownloadMax(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setVideoPrefSize(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setQoS(long jarg1, CallSession jarg1_, int jarg2, int jarg3); + public final static native boolean CallSession_hold__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_hold__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_resume__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_resume__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_transfer__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_transfer__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_acceptTransfer__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_acceptTransfer__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_rejectTransfer__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_rejectTransfer__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_sendDTMF(long jarg1, CallSession jarg1_, int jarg2); + public final static native long CallSession_getSessionTransferId(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_sendT140Data__SWIG_0(long jarg1, CallSession jarg1_, int jarg2, java.nio.ByteBuffer jarg3, long jarg4); + public final static native boolean CallSession_sendT140Data__SWIG_1(long jarg1, CallSession jarg1_, int jarg2, java.nio.ByteBuffer jarg3); + public final static native boolean CallSession_sendT140Data__SWIG_2(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setT140Callback(long jarg1, CallSession jarg1_, long jarg2, T140Callback jarg2_); + public final static native long new_MsrpSession(long jarg1, SipStack jarg1_, long jarg2, MsrpCallback jarg2_); + public final static native void delete_MsrpSession(long jarg1); + public final static native boolean MsrpSession_setCallback(long jarg1, MsrpSession jarg1_, long jarg2, MsrpCallback jarg2_); + public final static native boolean MsrpSession_callMsrp__SWIG_0(long jarg1, MsrpSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean MsrpSession_callMsrp__SWIG_1(long jarg1, MsrpSession jarg1_, String jarg2); + public final static native boolean MsrpSession_callMsrp__SWIG_2(long jarg1, MsrpSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean MsrpSession_callMsrp__SWIG_3(long jarg1, MsrpSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean MsrpSession_sendMessage__SWIG_0(long jarg1, MsrpSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean MsrpSession_sendMessage__SWIG_1(long jarg1, MsrpSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean MsrpSession_sendFile__SWIG_0(long jarg1, MsrpSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean MsrpSession_sendFile__SWIG_1(long jarg1, MsrpSession jarg1_); + public final static native long new_MessagingSession(long jarg1, SipStack jarg1_); + public final static native void delete_MessagingSession(long jarg1); + public final static native boolean MessagingSession_send__SWIG_0(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean MessagingSession_send__SWIG_1(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean MessagingSession_accept__SWIG_0(long jarg1, MessagingSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean MessagingSession_accept__SWIG_1(long jarg1, MessagingSession jarg1_); + public final static native boolean MessagingSession_reject__SWIG_0(long jarg1, MessagingSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean MessagingSession_reject__SWIG_1(long jarg1, MessagingSession jarg1_); + public final static native long new_InfoSession(long jarg1, SipStack jarg1_); + public final static native void delete_InfoSession(long jarg1); + public final static native boolean InfoSession_send__SWIG_0(long jarg1, InfoSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean InfoSession_send__SWIG_1(long jarg1, InfoSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean InfoSession_accept__SWIG_0(long jarg1, InfoSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InfoSession_accept__SWIG_1(long jarg1, InfoSession jarg1_); + public final static native boolean InfoSession_reject__SWIG_0(long jarg1, InfoSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InfoSession_reject__SWIG_1(long jarg1, InfoSession jarg1_); + public final static native long new_OptionsSession(long jarg1, SipStack jarg1_); + public final static native void delete_OptionsSession(long jarg1); + public final static native boolean OptionsSession_send__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean OptionsSession_send__SWIG_1(long jarg1, OptionsSession jarg1_); + public final static native boolean OptionsSession_accept__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean OptionsSession_accept__SWIG_1(long jarg1, OptionsSession jarg1_); + public final static native boolean OptionsSession_reject__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean OptionsSession_reject__SWIG_1(long jarg1, OptionsSession jarg1_); + public final static native long new_PublicationSession(long jarg1, SipStack jarg1_); + public final static native void delete_PublicationSession(long jarg1); + public final static native boolean PublicationSession_publish__SWIG_0(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean PublicationSession_publish__SWIG_1(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean PublicationSession_unPublish__SWIG_0(long jarg1, PublicationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean PublicationSession_unPublish__SWIG_1(long jarg1, PublicationSession jarg1_); + public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_); + public final static native void delete_RegistrationSession(long jarg1); + public final static native boolean RegistrationSession_register___SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_register___SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_unRegister__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_unRegister__SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_accept__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_accept__SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_reject__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_reject__SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_); + public final static native void delete_SubscriptionSession(long jarg1); + public final static native boolean SubscriptionSession_subscribe(long jarg1, SubscriptionSession jarg1_); + public final static native boolean SubscriptionSession_unSubscribe(long jarg1, SubscriptionSession jarg1_); + public final static native void delete_ProxyPluginMgr(long jarg1); + public final static native long ProxyPluginMgr_createInstance(long jarg1, ProxyPluginMgrCallback jarg1_); + public final static native long ProxyPluginMgr_getInstance(); + public final static native long ProxyPluginMgr_findPlugin(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findAudioConsumer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findVideoConsumer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findAudioProducer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findVideoProducer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long new_ProxyPluginMgrCallback(); + public final static native void delete_ProxyPluginMgrCallback(long jarg1); + public final static native int ProxyPluginMgrCallback_OnPluginCreated(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native int ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native int ProxyPluginMgrCallback_OnPluginDestroyed(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native int ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native void ProxyPluginMgrCallback_director_connect(ProxyPluginMgrCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyPluginMgrCallback_change_ownership(ProxyPluginMgrCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyPlugin(long jarg1); + public final static native int ProxyPlugin_getType(long jarg1, ProxyPlugin jarg1_); + public final static native java.math.BigInteger ProxyPlugin_getId(long jarg1, ProxyPlugin jarg1_); + public final static native long new_ProxyAudioConsumerCallback(); + public final static native void delete_ProxyAudioConsumerCallback(long jarg1); + public final static native int ProxyAudioConsumerCallback_prepare(long jarg1, ProxyAudioConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioConsumerCallback_start(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_pause(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_stop(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native void ProxyAudioConsumerCallback_director_connect(ProxyAudioConsumerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyAudioConsumerCallback_change_ownership(ProxyAudioConsumerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyAudioConsumer(long jarg1); + public final static native boolean ProxyAudioConsumer_setActualSndCardPlaybackParams(long jarg1, ProxyAudioConsumer jarg1_, int jarg2, int jarg3, int jarg4); + public final static native boolean ProxyAudioConsumer_queryForResampler(long jarg1, ProxyAudioConsumer jarg1_, int jarg2, int jarg3, int jarg4, int jarg5, int jarg6); + public final static native boolean ProxyAudioConsumer_setPullBuffer(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyAudioConsumer_pull__SWIG_0(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyAudioConsumer_pull__SWIG_1(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2); + public final static native long ProxyAudioConsumer_pull__SWIG_2(long jarg1, ProxyAudioConsumer jarg1_); + public final static native boolean ProxyAudioConsumer_setGain(long jarg1, ProxyAudioConsumer jarg1_, long jarg2); + public final static native long ProxyAudioConsumer_getGain(long jarg1, ProxyAudioConsumer jarg1_); + public final static native boolean ProxyAudioConsumer_reset(long jarg1, ProxyAudioConsumer jarg1_); + public final static native void ProxyAudioConsumer_setCallback(long jarg1, ProxyAudioConsumer jarg1_, long jarg2, ProxyAudioConsumerCallback jarg2_); + public final static native java.math.BigInteger ProxyAudioConsumer_getMediaSessionId(long jarg1, ProxyAudioConsumer jarg1_); + public final static native boolean ProxyAudioConsumer_registerPlugin(); + public final static native long new_ProxyVideoConsumerCallback(); + public final static native void delete_ProxyVideoConsumerCallback(long jarg1); + public final static native int ProxyVideoConsumerCallback_prepare(long jarg1, ProxyVideoConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoConsumerCallback_consume(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, ProxyVideoFrame jarg2_); + public final static native int ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, ProxyVideoFrame jarg2_); + public final static native int ProxyVideoConsumerCallback_bufferCopied(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, long jarg3); + public final static native int ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, long jarg3); + public final static native int ProxyVideoConsumerCallback_start(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_pause(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_stop(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native void ProxyVideoConsumerCallback_director_connect(ProxyVideoConsumerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyVideoConsumerCallback_change_ownership(ProxyVideoConsumerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyVideoConsumer(long jarg1); + public final static native boolean ProxyVideoConsumer_setDisplaySize(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, long jarg3); + public final static native long ProxyVideoConsumer_getDisplayWidth(long jarg1, ProxyVideoConsumer jarg1_); + public final static native long ProxyVideoConsumer_getDisplayHeight(long jarg1, ProxyVideoConsumer jarg1_); + public final static native long ProxyVideoConsumer_getDecodedWidth(long jarg1, ProxyVideoConsumer jarg1_); + public final static native long ProxyVideoConsumer_getDecodedHeight(long jarg1, ProxyVideoConsumer jarg1_); + public final static native void ProxyVideoConsumer_setCallback(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, ProxyVideoConsumerCallback jarg2_); + public final static native boolean ProxyVideoConsumer_setAutoResizeDisplay(long jarg1, ProxyVideoConsumer jarg1_, boolean jarg2); + public final static native boolean ProxyVideoConsumer_getAutoResizeDisplay(long jarg1, ProxyVideoConsumer jarg1_); + public final static native boolean ProxyVideoConsumer_setConsumeBuffer(long jarg1, ProxyVideoConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyVideoConsumer_pull(long jarg1, ProxyVideoConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean ProxyVideoConsumer_reset(long jarg1, ProxyVideoConsumer jarg1_); + public final static native java.math.BigInteger ProxyVideoConsumer_getMediaSessionId(long jarg1, ProxyVideoConsumer jarg1_); + public final static native boolean ProxyVideoConsumer_registerPlugin(); + public final static native void ProxyVideoConsumer_setDefaultChroma(int jarg1); + public final static native void ProxyVideoConsumer_setDefaultAutoResizeDisplay(boolean jarg1); + public final static native void delete_ProxyVideoFrame(long jarg1); + public final static native long ProxyVideoFrame_getSize(long jarg1, ProxyVideoFrame jarg1_); + public final static native long ProxyVideoFrame_getContent(long jarg1, ProxyVideoFrame jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyVideoFrame_getFrameWidth(long jarg1, ProxyVideoFrame jarg1_); + public final static native long ProxyVideoFrame_getFrameHeight(long jarg1, ProxyVideoFrame jarg1_); + public final static native long new_ProxyAudioProducerCallback(); + public final static native void delete_ProxyAudioProducerCallback(long jarg1); + public final static native int ProxyAudioProducerCallback_prepare(long jarg1, ProxyAudioProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioProducerCallback_start(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_pause(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_stop(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_fillPushBuffer(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native void ProxyAudioProducerCallback_director_connect(ProxyAudioProducerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyAudioProducerCallback_change_ownership(ProxyAudioProducerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyAudioProducer(long jarg1); + public final static native boolean ProxyAudioProducer_setActualSndCardRecordParams(long jarg1, ProxyAudioProducer jarg1_, int jarg2, int jarg3, int jarg4); + public final static native boolean ProxyAudioProducer_setPushBuffer__SWIG_0(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3, boolean jarg4); + public final static native boolean ProxyAudioProducer_setPushBuffer__SWIG_1(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native int ProxyAudioProducer_push__SWIG_0(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native int ProxyAudioProducer_push__SWIG_1(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2); + public final static native int ProxyAudioProducer_push__SWIG_2(long jarg1, ProxyAudioProducer jarg1_); + public final static native boolean ProxyAudioProducer_setGain(long jarg1, ProxyAudioProducer jarg1_, long jarg2); + public final static native long ProxyAudioProducer_getGain(long jarg1, ProxyAudioProducer jarg1_); + public final static native void ProxyAudioProducer_setCallback(long jarg1, ProxyAudioProducer jarg1_, long jarg2, ProxyAudioProducerCallback jarg2_); + public final static native java.math.BigInteger ProxyAudioProducer_getMediaSessionId(long jarg1, ProxyAudioProducer jarg1_); + public final static native boolean ProxyAudioProducer_registerPlugin(); + public final static native long new_ProxyVideoProducerCallback(); + public final static native void delete_ProxyVideoProducerCallback(long jarg1); + public final static native int ProxyVideoProducerCallback_prepare(long jarg1, ProxyVideoProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoProducerCallback_start(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_pause(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_stop(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native void ProxyVideoProducerCallback_director_connect(ProxyVideoProducerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyVideoProducerCallback_change_ownership(ProxyVideoProducerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyVideoProducer(long jarg1); + public final static native int ProxyVideoProducer_getRotation(long jarg1, ProxyVideoProducer jarg1_); + public final static native boolean ProxyVideoProducer_setRotation(long jarg1, ProxyVideoProducer jarg1_, int jarg2); + public final static native boolean ProxyVideoProducer_getMirror(long jarg1, ProxyVideoProducer jarg1_); + public final static native boolean ProxyVideoProducer_setMirror(long jarg1, ProxyVideoProducer jarg1_, boolean jarg2); + public final static native boolean ProxyVideoProducer_setActualCameraOutputSize(long jarg1, ProxyVideoProducer jarg1_, long jarg2, long jarg3); + public final static native int ProxyVideoProducer_push(long jarg1, ProxyVideoProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void ProxyVideoProducer_setCallback(long jarg1, ProxyVideoProducer jarg1_, long jarg2, ProxyVideoProducerCallback jarg2_); + public final static native java.math.BigInteger ProxyVideoProducer_getMediaSessionId(long jarg1, ProxyVideoProducer jarg1_); + public final static native boolean ProxyVideoProducer_registerPlugin(); + public final static native void ProxyVideoProducer_setDefaultChroma(int jarg1); + public final static native long new_SipCallback(); + public final static native void delete_SipCallback(long jarg1); + public final static native int SipCallback_OnDialogEvent(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_); + public final static native int SipCallback_OnDialogEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_); + public final static native int SipCallback_OnStackEvent(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_); + public final static native int SipCallback_OnStackEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_); + public final static native int SipCallback_OnInviteEvent(long jarg1, SipCallback jarg1_, long jarg2, InviteEvent jarg2_); + public final static native int SipCallback_OnInviteEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, InviteEvent jarg2_); + public final static native int SipCallback_OnMessagingEvent(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_); + public final static native int SipCallback_OnMessagingEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_); + public final static native int SipCallback_OnInfoEvent(long jarg1, SipCallback jarg1_, long jarg2, InfoEvent jarg2_); + public final static native int SipCallback_OnInfoEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, InfoEvent jarg2_); + public final static native int SipCallback_OnOptionsEvent(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_); + public final static native int SipCallback_OnOptionsEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_); + public final static native int SipCallback_OnPublicationEvent(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_); + public final static native int SipCallback_OnPublicationEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_); + public final static native int SipCallback_OnRegistrationEvent(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnRegistrationEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnSubscriptionEvent(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); + public final static native int SipCallback_OnSubscriptionEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); + public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release); + public final static native long new_SafeObject(); + public final static native void delete_SafeObject(long jarg1); + public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_); + public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_); + public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4); + public final static native void delete_SipStack(long jarg1); + public final static native boolean SipStack_start(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, DDebugCallback jarg2_); + public final static native boolean SipStack_setDisplayName(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setAMF(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setOperatorId(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, int jarg3, String jarg4, String jarg5); + public final static native boolean SipStack_setLocalIP__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3); + public final static native boolean SipStack_setLocalIP__SWIG_1(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setLocalPort__SWIG_0(long jarg1, SipStack jarg1_, int jarg2, String jarg3); + public final static native boolean SipStack_setLocalPort__SWIG_1(long jarg1, SipStack jarg1_, int jarg2); + public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3); + public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setDnsDiscovery(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setAoR(long jarg1, SipStack jarg1_, String jarg2, int jarg3); + public final static native boolean SipStack_setSigCompParams(long jarg1, SipStack jarg1_, long jarg2, long jarg3, long jarg4, boolean jarg5); + public final static native boolean SipStack_addSigCompCompartment(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_removeSigCompCompartment(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setSTUNEnabledForICE(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setSTUNServer(long jarg1, SipStack jarg1_, String jarg2, int jarg3); + public final static native boolean SipStack_setSTUNCred(long jarg1, SipStack jarg1_, String jarg2, String jarg3); + public final static native boolean SipStack_setSTUNEnabled(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setTLSSecAgree(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setSSLCertificates__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, boolean jarg5); + public final static native boolean SipStack_setSSLCertificates__SWIG_1(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4); + public final static native boolean SipStack_setSSLCretificates__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, boolean jarg5); + public final static native boolean SipStack_setSSLCretificates__SWIG_1(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4); + public final static native boolean SipStack_setIPSecSecAgree(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setIPSecParameters(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, String jarg5); + public final static native String SipStack_dnsENUM(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4); + public final static native String SipStack_dnsNaptrSrv(long jarg1, SipStack jarg1_, String jarg2, String jarg3, int[] jarg4); + public final static native String SipStack_dnsSrv(long jarg1, SipStack jarg1_, String jarg2, int[] jarg3); + public final static native boolean SipStack_setMaxFDs(long jarg1, SipStack jarg1_, long jarg2); + public final static native String SipStack_getLocalIPnPort(long jarg1, SipStack jarg1_, String jarg2, int[] jarg3); + public final static native String SipStack_getPreferredIdentity(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_initialize(); + public final static native boolean SipStack_deInitialize(); + public final static native void SipStack_setCodecs(int jarg1); + public final static native void SipStack_setCodecs_2(long jarg1); + public final static native boolean SipStack_setCodecPriority(int jarg1, int jarg2); + public final static native boolean SipStack_setCodecPriority_2(int jarg1, int jarg2); + public final static native boolean SipStack_isCodecSupported(int jarg1); + public final static native boolean SipStack_isIPSecSupported(); + public final static native long new_XcapSelector(long jarg1, XcapStack jarg1_); + public final static native void delete_XcapSelector(long jarg1); + public final static native long XcapSelector_setAUID(long jarg1, XcapSelector jarg1_, String jarg2); + public final static native long XcapSelector_setName(long jarg1, XcapSelector jarg1_, String jarg2); + public final static native long XcapSelector_setAttribute(long jarg1, XcapSelector jarg1_, String jarg2, String jarg3, String jarg4); + public final static native long XcapSelector_setPos(long jarg1, XcapSelector jarg1_, String jarg2, long jarg3); + public final static native long XcapSelector_setPosAttribute(long jarg1, XcapSelector jarg1_, String jarg2, long jarg3, String jarg4, String jarg5); + public final static native long XcapSelector_setNamespace(long jarg1, XcapSelector jarg1_, String jarg2, String jarg3); + public final static native String XcapSelector_getString(long jarg1, XcapSelector jarg1_); + public final static native void XcapSelector_reset(long jarg1, XcapSelector jarg1_); + public final static native long new_XcapMessage(); + public final static native void delete_XcapMessage(long jarg1); + public final static native short XcapMessage_getCode(long jarg1, XcapMessage jarg1_); + public final static native String XcapMessage_getPhrase(long jarg1, XcapMessage jarg1_); + public final static native String XcapMessage_getXcapHeaderValue__SWIG_0(long jarg1, XcapMessage jarg1_, String jarg2, long jarg3); + public final static native String XcapMessage_getXcapHeaderValue__SWIG_1(long jarg1, XcapMessage jarg1_, String jarg2); + public final static native String XcapMessage_getXcapHeaderParamValue__SWIG_0(long jarg1, XcapMessage jarg1_, String jarg2, String jarg3, long jarg4); + public final static native String XcapMessage_getXcapHeaderParamValue__SWIG_1(long jarg1, XcapMessage jarg1_, String jarg2, String jarg3); + public final static native long XcapMessage_getXcapContentLength(long jarg1, XcapMessage jarg1_); + public final static native long XcapMessage_getXcapContent(long jarg1, XcapMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void delete_XcapEvent(long jarg1); + public final static native int XcapEvent_getType(long jarg1, XcapEvent jarg1_); + public final static native long XcapEvent_getXcapMessage(long jarg1, XcapEvent jarg1_); + public final static native long new_XcapCallback(); + public final static native void delete_XcapCallback(long jarg1); + public final static native int XcapCallback_onEvent(long jarg1, XcapCallback jarg1_, long jarg2, XcapEvent jarg2_); + public final static native int XcapCallback_onEventSwigExplicitXcapCallback(long jarg1, XcapCallback jarg1_, long jarg2, XcapEvent jarg2_); + public final static native void XcapCallback_director_connect(XcapCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void XcapCallback_change_ownership(XcapCallback obj, long cptr, boolean take_or_release); + public final static native long new_XcapStack(long jarg1, XcapCallback jarg1_, String jarg2, String jarg3, String jarg4); + public final static native void delete_XcapStack(long jarg1); + public final static native boolean XcapStack_registerAUID(long jarg1, XcapStack jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, boolean jarg6); + public final static native boolean XcapStack_start(long jarg1, XcapStack jarg1_); + public final static native boolean XcapStack_setCredentials(long jarg1, XcapStack jarg1_, String jarg2, String jarg3); + public final static native boolean XcapStack_setXcapRoot(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_setLocalIP(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_setLocalPort(long jarg1, XcapStack jarg1_, long jarg2); + public final static native boolean XcapStack_addHeader(long jarg1, XcapStack jarg1_, String jarg2, String jarg3); + public final static native boolean XcapStack_removeHeader(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_setTimeout(long jarg1, XcapStack jarg1_, long jarg2); + public final static native boolean XcapStack_getDocument(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_getElement(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_getAttribute(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_deleteDocument(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_deleteElement(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_deleteAttribute(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_putDocument(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4, String jarg5); + public final static native boolean XcapStack_putElement(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4); + public final static native boolean XcapStack_putAttribute(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4); + public final static native boolean XcapStack_stop(long jarg1, XcapStack jarg1_); + public final static native long new_RPMessage(); + public final static native void delete_RPMessage(long jarg1); + public final static native int RPMessage_getType(long jarg1, RPMessage jarg1_); + public final static native long RPMessage_getPayloadLength(long jarg1, RPMessage jarg1_); + public final static native long RPMessage_getPayload(long jarg1, RPMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long new_SMSData(); + public final static native void delete_SMSData(long jarg1); + public final static native int SMSData_getType(long jarg1, SMSData jarg1_); + public final static native int SMSData_getMR(long jarg1, SMSData jarg1_); + public final static native long SMSData_getPayloadLength(long jarg1, SMSData jarg1_); + public final static native long SMSData_getPayload(long jarg1, SMSData jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native String SMSData_getOA(long jarg1, SMSData jarg1_); + public final static native String SMSData_getDA(long jarg1, SMSData jarg1_); + public final static native long SMSEncoder_encodeSubmit(int jarg1, String jarg2, String jarg3, String jarg4); + public final static native long SMSEncoder_encodeDeliver(int jarg1, String jarg2, String jarg3, String jarg4); + public final static native long SMSEncoder_encodeACK(int jarg1, String jarg2, String jarg3, boolean jarg4); + public final static native long SMSEncoder_encodeError(int jarg1, String jarg2, String jarg3, boolean jarg4); + public final static native long SMSEncoder_decode(java.nio.ByteBuffer jarg1, long jarg2, boolean jarg3); + public final static native void delete_SMSEncoder(long jarg1); + public final static native long new_MsrpMessage(); + public final static native void delete_MsrpMessage(long jarg1); + public final static native boolean MsrpMessage_isRequest(long jarg1, MsrpMessage jarg1_); + public final static native short MsrpMessage_getCode(long jarg1, MsrpMessage jarg1_); + public final static native String MsrpMessage_getPhrase(long jarg1, MsrpMessage jarg1_); + public final static native int MsrpMessage_getRequestType(long jarg1, MsrpMessage jarg1_); + public final static native void MsrpMessage_getByteRange(long jarg1, MsrpMessage jarg1_, long[] jarg2, long[] jarg3, long[] jarg4); + public final static native boolean MsrpMessage_isLastChunck(long jarg1, MsrpMessage jarg1_); + public final static native boolean MsrpMessage_isFirstChunck(long jarg1, MsrpMessage jarg1_); + public final static native boolean MsrpMessage_isSuccessReport(long jarg1, MsrpMessage jarg1_); + public final static native String MsrpMessage_getMsrpHeaderValue(long jarg1, MsrpMessage jarg1_, String jarg2); + public final static native String MsrpMessage_getMsrpHeaderParamValue(long jarg1, MsrpMessage jarg1_, String jarg2, String jarg3); + public final static native long MsrpMessage_getMsrpContentLength(long jarg1, MsrpMessage jarg1_); + public final static native long MsrpMessage_getMsrpContent(long jarg1, MsrpMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void delete_MsrpEvent(long jarg1); + public final static native int MsrpEvent_getType(long jarg1, MsrpEvent jarg1_); + public final static native long MsrpEvent_getSipSession(long jarg1, MsrpEvent jarg1_); + public final static native long MsrpEvent_getMessage(long jarg1, MsrpEvent jarg1_); + public final static native long new_MsrpCallback(); + public final static native void delete_MsrpCallback(long jarg1); + public final static native int MsrpCallback_OnEvent(long jarg1, MsrpCallback jarg1_, long jarg2, MsrpEvent jarg2_); + public final static native int MsrpCallback_OnEventSwigExplicitMsrpCallback(long jarg1, MsrpCallback jarg1_, long jarg2, MsrpEvent jarg2_); + public final static native void MsrpCallback_director_connect(MsrpCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void MsrpCallback_change_ownership(MsrpCallback obj, long cptr, boolean take_or_release); + public final static native long MediaContentCPIM_SWIGUpcast(long jarg1); + public final static native long DialogEvent_SWIGUpcast(long jarg1); + public final static native long StackEvent_SWIGUpcast(long jarg1); + public final static native long InviteEvent_SWIGUpcast(long jarg1); + public final static native long MessagingEvent_SWIGUpcast(long jarg1); + public final static native long InfoEvent_SWIGUpcast(long jarg1); + public final static native long OptionsEvent_SWIGUpcast(long jarg1); + public final static native long PublicationEvent_SWIGUpcast(long jarg1); + public final static native long RegistrationEvent_SWIGUpcast(long jarg1); + public final static native long SubscriptionEvent_SWIGUpcast(long jarg1); + public final static native long InviteSession_SWIGUpcast(long jarg1); + public final static native long CallSession_SWIGUpcast(long jarg1); + public final static native long MsrpSession_SWIGUpcast(long jarg1); + public final static native long MessagingSession_SWIGUpcast(long jarg1); + public final static native long InfoSession_SWIGUpcast(long jarg1); + public final static native long OptionsSession_SWIGUpcast(long jarg1); + public final static native long PublicationSession_SWIGUpcast(long jarg1); + public final static native long RegistrationSession_SWIGUpcast(long jarg1); + public final static native long SubscriptionSession_SWIGUpcast(long jarg1); + public final static native long ProxyAudioConsumer_SWIGUpcast(long jarg1); + public final static native long ProxyVideoConsumer_SWIGUpcast(long jarg1); + public final static native long ProxyAudioProducer_SWIGUpcast(long jarg1); + public final static native long ProxyVideoProducer_SWIGUpcast(long jarg1); + public final static native long SipStack_SWIGUpcast(long jarg1); + + public static int SwigDirector_DDebugCallback_OnDebugInfo(DDebugCallback self, String message) { + return self.OnDebugInfo(message); + } + public static int SwigDirector_DDebugCallback_OnDebugWarn(DDebugCallback self, String message) { + return self.OnDebugWarn(message); + } + public static int SwigDirector_DDebugCallback_OnDebugError(DDebugCallback self, String message) { + return self.OnDebugError(message); + } + public static int SwigDirector_DDebugCallback_OnDebugFatal(DDebugCallback self, String message) { + return self.OnDebugFatal(message); + } + public static int SwigDirector_T140Callback_ondata(T140Callback self, long pData) { + return self.ondata((pData == 0) ? null : new T140CallbackData(pData, false)); + } + public static int SwigDirector_ProxyPluginMgrCallback_OnPluginCreated(ProxyPluginMgrCallback self, java.math.BigInteger id, int type) { + return self.OnPluginCreated(id, twrap_proxy_plugin_type_t.swigToEnum(type)); + } + public static int SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed(ProxyPluginMgrCallback self, java.math.BigInteger id, int type) { + return self.OnPluginDestroyed(id, twrap_proxy_plugin_type_t.swigToEnum(type)); + } + public static int SwigDirector_ProxyAudioConsumerCallback_prepare(ProxyAudioConsumerCallback self, int ptime, int rate, int channels) { + return self.prepare(ptime, rate, channels); + } + public static int SwigDirector_ProxyAudioConsumerCallback_start(ProxyAudioConsumerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyAudioConsumerCallback_pause(ProxyAudioConsumerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyAudioConsumerCallback_stop(ProxyAudioConsumerCallback self) { + return self.stop(); + } + public static int SwigDirector_ProxyVideoConsumerCallback_prepare(ProxyVideoConsumerCallback self, int nWidth, int nHeight, int nFps) { + return self.prepare(nWidth, nHeight, nFps); + } + public static int SwigDirector_ProxyVideoConsumerCallback_consume(ProxyVideoConsumerCallback self, long frame) { + return self.consume((frame == 0) ? null : new ProxyVideoFrame(frame, false)); + } + public static int SwigDirector_ProxyVideoConsumerCallback_bufferCopied(ProxyVideoConsumerCallback self, long nCopiedSize, long nAvailableSize) { + return self.bufferCopied(nCopiedSize, nAvailableSize); + } + public static int SwigDirector_ProxyVideoConsumerCallback_start(ProxyVideoConsumerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyVideoConsumerCallback_pause(ProxyVideoConsumerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyVideoConsumerCallback_stop(ProxyVideoConsumerCallback self) { + return self.stop(); + } + public static int SwigDirector_ProxyAudioProducerCallback_prepare(ProxyAudioProducerCallback self, int ptime, int rate, int channels) { + return self.prepare(ptime, rate, channels); + } + public static int SwigDirector_ProxyAudioProducerCallback_start(ProxyAudioProducerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyAudioProducerCallback_pause(ProxyAudioProducerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyAudioProducerCallback_stop(ProxyAudioProducerCallback self) { + return self.stop(); + } + public static int SwigDirector_ProxyAudioProducerCallback_fillPushBuffer(ProxyAudioProducerCallback self) { + return self.fillPushBuffer(); + } + public static int SwigDirector_ProxyVideoProducerCallback_prepare(ProxyVideoProducerCallback self, int width, int height, int fps) { + return self.prepare(width, height, fps); + } + public static int SwigDirector_ProxyVideoProducerCallback_start(ProxyVideoProducerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyVideoProducerCallback_pause(ProxyVideoProducerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyVideoProducerCallback_stop(ProxyVideoProducerCallback self) { + return self.stop(); + } + public static int SwigDirector_SipCallback_OnDialogEvent(SipCallback self, long e) { + return self.OnDialogEvent((e == 0) ? null : new DialogEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnStackEvent(SipCallback self, long e) { + return self.OnStackEvent((e == 0) ? null : new StackEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnInviteEvent(SipCallback self, long e) { + return self.OnInviteEvent((e == 0) ? null : new InviteEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnMessagingEvent(SipCallback self, long e) { + return self.OnMessagingEvent((e == 0) ? null : new MessagingEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnInfoEvent(SipCallback self, long e) { + return self.OnInfoEvent((e == 0) ? null : new InfoEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnOptionsEvent(SipCallback self, long e) { + return self.OnOptionsEvent((e == 0) ? null : new OptionsEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnPublicationEvent(SipCallback self, long e) { + return self.OnPublicationEvent((e == 0) ? null : new PublicationEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnRegistrationEvent(SipCallback self, long e) { + return self.OnRegistrationEvent((e == 0) ? null : new RegistrationEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnSubscriptionEvent(SipCallback self, long e) { + return self.OnSubscriptionEvent((e == 0) ? null : new SubscriptionEvent(e, false)); + } + public static int SwigDirector_XcapCallback_onEvent(XcapCallback self, long e) { + return self.onEvent((e == 0) ? null : new XcapEvent(e, false)); + } + public static int SwigDirector_MsrpCallback_OnEvent(MsrpCallback self, long e) { + return self.OnEvent((e == 0) ? null : new MsrpEvent(e, false)); + } + + private final static native void swig_module_init(); + static { + swig_module_init(); + } +} diff --git a/bindings/java/android/tinyWRAP_wrap.cxx b/bindings/java/android/tinyWRAP_wrap.cxx new file mode 100644 index 0000000..e68ff27 --- /dev/null +++ b/bindings/java/android/tinyWRAP_wrap.cxx @@ -0,0 +1,13579 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGJAVA +#define SWIG_DIRECTORS + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +/* Fix for jlong on some versions of gcc on Windows */ +#if defined(__GNUC__) && !defined(__INTEL_COMPILER) + typedef long long __int64; +#endif + +/* Fix for jlong on 64-bit x86 Solaris */ +#if defined(__x86_64) +# ifdef _LP64 +# undef _LP64 +# endif +#endif + +#include +#include +#include + + +/* Support for throwing Java exceptions */ +typedef enum { + SWIG_JavaOutOfMemoryError = 1, + SWIG_JavaIOException, + SWIG_JavaRuntimeException, + SWIG_JavaIndexOutOfBoundsException, + SWIG_JavaArithmeticException, + SWIG_JavaIllegalArgumentException, + SWIG_JavaNullPointerException, + SWIG_JavaDirectorPureVirtual, + SWIG_JavaUnknownError +} SWIG_JavaExceptionCodes; + +typedef struct { + SWIG_JavaExceptionCodes code; + const char *java_exception; +} SWIG_JavaExceptions_t; + + +static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) { + jclass excep; + static const SWIG_JavaExceptions_t java_exceptions[] = { + { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" }, + { SWIG_JavaIOException, "java/io/IOException" }, + { SWIG_JavaRuntimeException, "java/lang/RuntimeException" }, + { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" }, + { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" }, + { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" }, + { SWIG_JavaNullPointerException, "java/lang/NullPointerException" }, + { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" }, + { SWIG_JavaUnknownError, "java/lang/UnknownError" }, + { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } + }; + const SWIG_JavaExceptions_t *except_ptr = java_exceptions; + + while (except_ptr->code != code && except_ptr->code) + except_ptr++; + + jenv->ExceptionClear(); + excep = jenv->FindClass(except_ptr->java_exception); + if (excep) + jenv->ThrowNew(excep, msg); +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else + +/* ----------------------------------------------------------------------------- + * director.swg + * + * This file contains support for director classes that proxy + * method calls from C++ to Java extensions. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus + +#if defined(DEBUG_DIRECTOR_OWNED) +#include +#endif + +namespace Swig { + /* Java object wrapper */ + class JObjectWrapper { + public: + JObjectWrapper() : jthis_(NULL), weak_global_(true) { + } + + ~JObjectWrapper() { + jthis_ = NULL; + weak_global_ = true; + } + + bool set(JNIEnv *jenv, jobject jobj, bool mem_own, bool weak_global) { + if (!jthis_) { + weak_global_ = weak_global || !mem_own; // hold as weak global if explicitly requested or not owned + if (jobj) + jthis_ = weak_global_ ? jenv->NewWeakGlobalRef(jobj) : jenv->NewGlobalRef(jobj); +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> " << jthis_ << std::endl; +#endif + return true; + } else { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> already set" << std::endl; +#endif + return false; + } + } + + jobject get(JNIEnv *jenv) const { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::get("; + if (jthis_) + std::cout << jthis_; + else + std::cout << "null"; + std::cout << ") -> return new local ref" << std::endl; +#endif + return (jthis_ ? jenv->NewLocalRef(jthis_) : jthis_); + } + + void release(JNIEnv *jenv) { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::release(" << jthis_ << "): " << (weak_global_ ? "weak global ref" : "global ref") << std::endl; +#endif + if (jthis_) { + if (weak_global_) { + if (jenv->IsSameObject(jthis_, NULL) == JNI_FALSE) + jenv->DeleteWeakGlobalRef((jweak)jthis_); + } else + jenv->DeleteGlobalRef(jthis_); + } + + jthis_ = NULL; + weak_global_ = true; + } + + /* Only call peek if you know what you are doing wrt to weak/global references */ + jobject peek() { + return jthis_; + } + + /* Java proxy releases ownership of C++ object, C++ object is now + responsible for destruction (creates NewGlobalRef to pin Java + proxy) */ + void java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) { + if (take_or_release) { /* Java takes ownership of C++ object's lifetime. */ + if (!weak_global_) { + jenv->DeleteGlobalRef(jthis_); + jthis_ = jenv->NewWeakGlobalRef(jself); + weak_global_ = true; + } + } else { /* Java releases ownership of C++ object's lifetime */ + if (weak_global_) { + jenv->DeleteWeakGlobalRef((jweak)jthis_); + jthis_ = jenv->NewGlobalRef(jself); + weak_global_ = false; + } + } + } + + private: + /* pointer to Java object */ + jobject jthis_; + /* Local or global reference flag */ + bool weak_global_; + }; + + /* director base class */ + class Director { + /* pointer to Java virtual machine */ + JavaVM *swig_jvm_; + + protected: +#if defined (_MSC_VER) && (_MSC_VER<1300) + class JNIEnvWrapper; + friend class JNIEnvWrapper; +#endif + /* Utility class for managing the JNI environment */ + class JNIEnvWrapper { + const Director *director_; + JNIEnv *jenv_; + int env_status; + public: + JNIEnvWrapper(const Director *director) : director_(director), jenv_(0), env_status(0) { +#if defined(__ANDROID__) + JNIEnv **jenv = &jenv_; +#else + void **jenv = (void **)&jenv_; +#endif + env_status = director_->swig_jvm_->GetEnv((void **)&jenv_, JNI_VERSION_1_2); +#if defined(SWIG_JAVA_ATTACH_CURRENT_THREAD_AS_DAEMON) + // Attach a daemon thread to the JVM. Useful when the JVM should not wait for + // the thread to exit upon shutdown. Only for jdk-1.4 and later. + director_->swig_jvm_->AttachCurrentThreadAsDaemon(jenv, NULL); +#else + director_->swig_jvm_->AttachCurrentThread(jenv, NULL); +#endif + } + ~JNIEnvWrapper() { +#if !defined(SWIG_JAVA_NO_DETACH_CURRENT_THREAD) + // Some JVMs, eg jdk-1.4.2 and lower on Solaris have a bug and crash with the DetachCurrentThread call. + // However, without this call, the JVM hangs on exit when the thread was not created by the JVM and creates a memory leak. + if (env_status == JNI_EDETACHED) + director_->swig_jvm_->DetachCurrentThread(); +#endif + } + JNIEnv *getJNIEnv() const { + return jenv_; + } + }; + + /* Java object wrapper */ + JObjectWrapper swig_self_; + + /* Disconnect director from Java object */ + void swig_disconnect_director_self(const char *disconn_method) { + JNIEnvWrapper jnienv(this) ; + JNIEnv *jenv = jnienv.getJNIEnv() ; + jobject jobj = swig_self_.get(jenv); +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "Swig::Director::disconnect_director_self(" << jobj << ")" << std::endl; +#endif + if (jobj && jenv->IsSameObject(jobj, NULL) == JNI_FALSE) { + jmethodID disconn_meth = jenv->GetMethodID(jenv->GetObjectClass(jobj), disconn_method, "()V"); + if (disconn_meth) { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "Swig::Director::disconnect_director_self upcall to " << disconn_method << std::endl; +#endif + jenv->CallVoidMethod(jobj, disconn_meth); + } + } + jenv->DeleteLocalRef(jobj); + } + + public: + Director(JNIEnv *jenv) : swig_jvm_((JavaVM *) NULL), swig_self_() { + /* Acquire the Java VM pointer */ + jenv->GetJavaVM(&swig_jvm_); + } + + virtual ~Director() { + JNIEnvWrapper jnienv(this) ; + JNIEnv *jenv = jnienv.getJNIEnv() ; + swig_self_.release(jenv); + } + + bool swig_set_self(JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global) { + return swig_self_.set(jenv, jself, mem_own, weak_global); + } + + jobject swig_get_self(JNIEnv *jenv) const { + return swig_self_.get(jenv); + } + + // Change C++ object's ownership, relative to Java + void swig_java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) { + swig_self_.java_change_ownership(jenv, jself, take_or_release); + } + }; +} + +#endif /* __cplusplus */ + + +namespace Swig { + namespace { + jclass jclass_tinyWRAPJNI = NULL; + jmethodID director_methids[37]; + } +} + +#include // Use the C99 official header + + +#include "tinyWRAP_config.h" +#include "DDebug.h" +#include "AudioResampler.h" + + +#include "ActionConfig.h" +#include "MediaSessionMgr.h" +#include "MediaContent.h" +#include "SipUri.h" +#include "SipMessage.h" +#include "SipEvent.h" +#include "SipSession.h" + +#include "ProxyPluginMgr.h" +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" + + +#include "Xcap.h" + + +#include "SMSEncoder.h" + + +#include "Msrp.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "tinyWRAP_wrap.h" + +SwigDirector_DDebugCallback::SwigDirector_DDebugCallback(JNIEnv *jenv) : DDebugCallback(), Swig::Director(jenv) { +} + +SwigDirector_DDebugCallback::~SwigDirector_DDebugCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_DDebugCallback::OnDebugInfo(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[0]) { + return DDebugCallback::OnDebugInfo(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[0], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugWarn(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[1]) { + return DDebugCallback::OnDebugWarn(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[1], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugError(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[2]) { + return DDebugCallback::OnDebugError(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugFatal(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[3]) { + return DDebugCallback::OnDebugFatal(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_DDebugCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnDebugInfo", "(Ljava/lang/String;)I", NULL + }, + { + "OnDebugWarn", "(Ljava/lang/String;)I", NULL + }, + { + "OnDebugError", "(Ljava/lang/String;)I", NULL + }, + { + "OnDebugFatal", "(Ljava/lang/String;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/DDebugCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 4; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_T140Callback::SwigDirector_T140Callback(JNIEnv *jenv) : T140Callback(), Swig::Director(jenv) { +} + +SwigDirector_T140Callback::~SwigDirector_T140Callback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_T140Callback::ondata(T140CallbackData const *pData) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong jpData = 0 ; + + if (!swig_override[0]) { + return T140Callback::ondata(pData); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((T140CallbackData **)&jpData) = (T140CallbackData *) pData; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jpData); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_T140Callback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "ondata", "(Lorg/doubango/tinyWRAP/T140CallbackData;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/T140Callback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 1; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyPluginMgrCallback::SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv) : ProxyPluginMgrCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyPluginMgrCallback::~SwigDirector_ProxyPluginMgrCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyPluginMgrCallback::OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jobject jid ; + jint jtype ; + + if (!swig_override[0]) { + return ProxyPluginMgrCallback::OnPluginCreated(id,type); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int swig_i; + + bae[0] = 0; + for(swig_i=1; swig_i<9; swig_i++ ) { + bae[swig_i] = (jbyte)(id>>8*(8-swig_i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jid = bigint; + } + jtype = (jint) type; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jid, jtype); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyPluginMgrCallback::OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jobject jid ; + jint jtype ; + + if (!swig_override[1]) { + return ProxyPluginMgrCallback::OnPluginDestroyed(id,type); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int swig_i; + + bae[0] = 0; + for(swig_i=1; swig_i<9; swig_i++ ) { + bae[swig_i] = (jbyte)(id>>8*(8-swig_i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jid = bigint; + } + jtype = (jint) type; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[6], swigjobj, jid, jtype); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyPluginMgrCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnPluginCreated", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL + }, + { + "OnPluginDestroyed", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyPluginMgrCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 2; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyAudioConsumerCallback::SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv) : ProxyAudioConsumerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyAudioConsumerCallback::~SwigDirector_ProxyAudioConsumerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyAudioConsumerCallback::prepare(int ptime, int rate, int channels) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jptime ; + jint jrate ; + jint jchannels ; + + if (!swig_override[0]) { + return ProxyAudioConsumerCallback::prepare(ptime,rate,channels); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jptime = (jint) ptime; + jrate = (jint) rate; + jchannels = (jint) channels; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[7], swigjobj, jptime, jrate, jchannels); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[1]) { + return ProxyAudioConsumerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[8], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[2]) { + return ProxyAudioConsumerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[9], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyAudioConsumerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyAudioConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioConsumerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 4; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyVideoConsumerCallback::SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv) : ProxyVideoConsumerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyVideoConsumerCallback::~SwigDirector_ProxyVideoConsumerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyVideoConsumerCallback::prepare(int nWidth, int nHeight, int nFps) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jnWidth ; + jint jnHeight ; + jint jnFps ; + + if (!swig_override[0]) { + return ProxyVideoConsumerCallback::prepare(nWidth,nHeight,nFps); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jnWidth = (jint) nWidth; + jnHeight = (jint) nHeight; + jnFps = (jint) nFps; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, jnWidth, jnHeight, jnFps); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::consume(ProxyVideoFrame const *frame) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong jframe = 0 ; + + if (!swig_override[1]) { + return ProxyVideoConsumerCallback::consume(frame); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((ProxyVideoFrame **)&jframe) = (ProxyVideoFrame *) frame; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[12], swigjobj, jframe); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong jnCopiedSize ; + jlong jnAvailableSize ; + + if (!swig_override[2]) { + return ProxyVideoConsumerCallback::bufferCopied(nCopiedSize,nAvailableSize); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jnCopiedSize = (jlong) nCopiedSize; + jnAvailableSize = (jlong) nAvailableSize; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, jnCopiedSize, jnAvailableSize); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyVideoConsumerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[4]) { + return ProxyVideoConsumerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[15], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[5]) { + return ProxyVideoConsumerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[16], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyVideoConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "consume", "(Lorg/doubango/tinyWRAP/ProxyVideoFrame;)I", NULL + }, + { + "bufferCopied", "(JJ)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoConsumerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 6; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyAudioProducerCallback::SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv) : ProxyAudioProducerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyAudioProducerCallback::~SwigDirector_ProxyAudioProducerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyAudioProducerCallback::prepare(int ptime, int rate, int channels) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jptime ; + jint jrate ; + jint jchannels ; + + if (!swig_override[0]) { + return ProxyAudioProducerCallback::prepare(ptime,rate,channels); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jptime = (jint) ptime; + jrate = (jint) rate; + jchannels = (jint) channels; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[17], swigjobj, jptime, jrate, jchannels); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[1]) { + return ProxyAudioProducerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[18], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[2]) { + return ProxyAudioProducerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[19], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyAudioProducerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[20], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::fillPushBuffer() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[4]) { + return ProxyAudioProducerCallback::fillPushBuffer(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[21], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyAudioProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + }, + { + "fillPushBuffer", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioProducerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 5; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyVideoProducerCallback::SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv) : ProxyVideoProducerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyVideoProducerCallback::~SwigDirector_ProxyVideoProducerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyVideoProducerCallback::prepare(int width, int height, int fps) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jwidth ; + jint jheight ; + jint jfps ; + + if (!swig_override[0]) { + return ProxyVideoProducerCallback::prepare(width,height,fps); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jwidth = (jint) width; + jheight = (jint) height; + jfps = (jint) fps; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[22], swigjobj, jwidth, jheight, jfps); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[1]) { + return ProxyVideoProducerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[23], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[2]) { + return ProxyVideoProducerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[24], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyVideoProducerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[25], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyVideoProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoProducerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 4; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) { +} + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_SipCallback::OnDialogEvent(DialogEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[0]) { + return SipCallback::OnDialogEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((DialogEvent **)&je) = (DialogEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[26], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[1]) { + return SipCallback::OnStackEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((StackEvent **)&je) = (StackEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[27], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnInviteEvent(InviteEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[2]) { + return SipCallback::OnInviteEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((InviteEvent **)&je) = (InviteEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[28], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[3]) { + return SipCallback::OnMessagingEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((MessagingEvent **)&je) = (MessagingEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[29], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnInfoEvent(InfoEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[4]) { + return SipCallback::OnInfoEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((InfoEvent **)&je) = (InfoEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[30], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[5]) { + return SipCallback::OnOptionsEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((OptionsEvent **)&je) = (OptionsEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[31], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[6]) { + return SipCallback::OnPublicationEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((PublicationEvent **)&je) = (PublicationEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[32], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[7]) { + return SipCallback::OnRegistrationEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((RegistrationEvent **)&je) = (RegistrationEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[33], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[8]) { + return SipCallback::OnSubscriptionEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((SubscriptionEvent **)&je) = (SubscriptionEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[34], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnDialogEvent", "(Lorg/doubango/tinyWRAP/DialogEvent;)I", NULL + }, + { + "OnStackEvent", "(Lorg/doubango/tinyWRAP/StackEvent;)I", NULL + }, + { + "OnInviteEvent", "(Lorg/doubango/tinyWRAP/InviteEvent;)I", NULL + }, + { + "OnMessagingEvent", "(Lorg/doubango/tinyWRAP/MessagingEvent;)I", NULL + }, + { + "OnInfoEvent", "(Lorg/doubango/tinyWRAP/InfoEvent;)I", NULL + }, + { + "OnOptionsEvent", "(Lorg/doubango/tinyWRAP/OptionsEvent;)I", NULL + }, + { + "OnPublicationEvent", "(Lorg/doubango/tinyWRAP/PublicationEvent;)I", NULL + }, + { + "OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL + }, + { + "OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/SipCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 9; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_XcapCallback::SwigDirector_XcapCallback(JNIEnv *jenv) : XcapCallback(), Swig::Director(jenv) { +} + +SwigDirector_XcapCallback::~SwigDirector_XcapCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_XcapCallback::onEvent(XcapEvent const *e) const { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[0]) { + return XcapCallback::onEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((XcapEvent **)&je) = (XcapEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[35], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_XcapCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "onEvent", "(Lorg/doubango/tinyWRAP/XcapEvent;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/XcapCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 1; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_MsrpCallback::SwigDirector_MsrpCallback(JNIEnv *jenv) : MsrpCallback(), Swig::Director(jenv) { +} + +SwigDirector_MsrpCallback::~SwigDirector_MsrpCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_MsrpCallback::OnEvent(MsrpEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[0]) { + return MsrpCallback::OnEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((MsrpEvent **)&je) = (MsrpEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[36], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_MsrpCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnEvent", "(Lorg/doubango/tinyWRAP/MsrpEvent;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/MsrpCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 1; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1DDebugCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + DDebugCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (DDebugCallback *)new SwigDirector_DDebugCallback(jenv); + *(DDebugCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(DDebugCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfoSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugInfo((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarnSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugWarn((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugError((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugErrorSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugError((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatalSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugFatal((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + DDebugCallback *obj = *((DDebugCallback **)&objarg); + (void)jcls; + SwigDirector_DDebugCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + DDebugCallback *obj = *((DDebugCallback **)&objarg); + SwigDirector_DDebugCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) { + jlong jresult = 0 ; + uint32_t arg1 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + AudioResampler *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5); + *(AudioResampler **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1) { + AudioResampler *arg1 = (AudioResampler *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(AudioResampler **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + result = (bool)(arg1)->isValid(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getOutputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + uint32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + result = (uint32_t)(arg1)->getOutputRequiredSizeInShort(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getInputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + uint32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + result = (uint32_t)(arg1)->getInputRequiredSizeInShort(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1process(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jbyteArray jarg4, jlong jarg5) { + jlong jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t arg3 ; + void *arg4 = (void *) 0 ; + uint32_t arg5 ; + uint32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (uint32_t)jarg3; + + arg4 = jenv->GetDirectBufferAddress(jarg4); + + arg5 = (uint32_t)jarg5; + result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ActionConfig(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ActionConfig *)new ActionConfig(); + *(ActionConfig **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ActionConfig(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ActionConfig *arg1 = (ActionConfig *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ActionConfig **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->addPayload((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setActiveMedia(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (bool)(arg1)->setActiveMedia(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setResponseLine(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2, jstring jarg3) { + jlong jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + short arg2 ; + char *arg3 = (char *) 0 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (short)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3); + *(ActionConfig **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4); + *(ActionConfig **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaInt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jlong jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int)jarg4; + result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4); + *(ActionConfig **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1Codec(JNIEnv *jenv, jclass jcls, jlong jarg1) { + Codec *arg1 = (Codec *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(Codec **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + twrap_media_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (twrap_media_type_t)(arg1)->getMediaType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (char *)(arg1)->getName(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getDescription(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (char *)(arg1)->getDescription(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getNegFormat(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (char *)(arg1)->getNegFormat(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioSamplingRate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (int)(arg1)->getAudioSamplingRate(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioChannels(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (int)(arg1)->getAudioChannels(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioPTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (int)(arg1)->getAudioPTime(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaSessionMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MediaSessionMgr **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionGetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) { + jint jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3); + jresult = (jint)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int64_t)jarg4; + result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int64_t)jarg4; + result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerGetCodec(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jlong jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + Codec *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (Codec *)(arg1)->producerGetCodec(arg2); + *(Codec **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jlong jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + ProxyPlugin *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2); + *(ProxyPlugin **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jlong jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + ProxyPlugin *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2); + *(ProxyPlugin **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1registerAudioPluginFromFile(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1); + jresult = (jlong)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1getSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jobject jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetProfile(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_profile_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_profile_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetProfile(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetProfile(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_profile_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthLevel(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_bandwidth_level_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_bandwidth_level_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetBandwidthLevel(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_bandwidth_level_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetCongestionCtrlEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoMotionRank(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoFps(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoUploadMax(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoDownloadMax(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetPrefVideoSize(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_pref_video_size_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_pref_video_size_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMargin(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMaxLateRate(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoTail(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoTail(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + uint32_t result; + + (void)jenv; + (void)jcls; + result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSkew(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoSuppEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetAgcEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcLevel(JNIEnv *jenv, jclass jcls, jfloat jarg1) { + jboolean jresult = 0 ; + float arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (float)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcLevel(JNIEnv *jenv, jclass jcls) { + jfloat jresult = 0 ; + float result; + + (void)jenv; + (void)jcls; + result = (float)MediaSessionMgr::defaultsGetAgcLevel(); + jresult = (jfloat)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVadEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetGetVadEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppLevel(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppLevel(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + int32_t result; + + (void)jenv; + (void)jcls; + result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSet100relEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGet100relEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGet100relEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetScreenSize(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioGain(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioPtime(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioChannels(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpPortRange(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + uint16_t arg1 ; + uint16_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint16_t)jarg1; + arg2 = (uint16_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpSymetricEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMediaType(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + twrap_media_type_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (twrap_media_type_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVolume(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVolume(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVolume(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + int32_t result; + + (void)jenv; + (void)jcls; + result = (int32_t)MediaSessionMgr::defaultsGetVolume(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetInviteSessionTimers(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpMode(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_srtp_mode_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_srtp_mode_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpMode(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_srtp_mode_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpType(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_srtp_type_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_srtp_type_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpType(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_srtp_type_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceTurnEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunServer(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) { + jboolean jresult = 0 ; + char *arg1 = (char *) 0 ; + uint16_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + arg2 = (uint16_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2); + jresult = (jboolean)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunCred(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { + jboolean jresult = 0 ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2); + jresult = (jboolean)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassEncoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassEncoding(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetByPassEncoding(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassDecoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassDecoding(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetByPassDecoding(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoJbEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoJbEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpBuffSize(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + unsigned int arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (unsigned int)jarg1; + result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtpBuffSize(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfTail(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { + jboolean jresult = 0 ; + unsigned int arg1 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (unsigned int)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfMode(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + enum tmedia_mode_e arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (enum tmedia_mode_e)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxCaptureRate(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxPlaybackRate(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMaxFds(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MediaContent *arg1 = (MediaContent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MediaContent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + result = (char *)(arg1)->getType(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getDataLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + result = (unsigned int)(arg1)->getDataLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getData(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jstring jarg3) { + jlong jresult = 0 ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + MediaContent *result = 0 ; + + (void)jenv; + (void)jcls; + + arg1 = jenv->GetDirectBufferAddress(jarg1); + + arg2 = (unsigned int)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3); + *(MediaContent **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) { + jlong jresult = 0 ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + MediaContentCPIM *result = 0 ; + + (void)jenv; + (void)jcls; + + arg1 = jenv->GetDirectBufferAddress(jarg1); + + arg2 = (unsigned int)jarg2; + result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2); + *(MediaContentCPIM **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContentCPIM(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MediaContentCPIM **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContentCPIM **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContentCPIM **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContentCPIM **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + SipUri *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2); + *(SipUri **)&jresult = result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + SipUri *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + result = (SipUri *)new SipUri((char const *)arg1); + *(SipUri **)&jresult = result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipUri(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipUri *arg1 = (SipUri *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipUri **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jboolean jresult = 0 ; + char *arg1 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + result = (bool)SipUri::isValid((char const *)arg1); + jresult = (jboolean)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (bool)(arg1)->isValid(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getScheme(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getScheme(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getHost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getHost(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + unsigned short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (unsigned short)(arg1)->getPort(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getUserName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getUserName(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getPassword(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getDisplayName(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getParamValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return ; + } + (arg1)->setDisplayName((char const *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SdpMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SdpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SdpMessage *)new SdpMessage(); + *(SdpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SdpMessage *arg1 = (SdpMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SdpMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3, jlong jarg4) { + jstring jresult = 0 ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + unsigned int arg4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SdpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (char)jarg3; + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3) { + jstring jresult = 0 ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SdpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (char)jarg3; + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderAValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SdpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipMessage *)new SipMessage(); + *(SipMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipMessage *arg1 = (SipMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1isResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (bool)(arg1)->isResponse(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + tsip_request_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (tsip_request_type_t)(arg1)->getRequestType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponseCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (short)(arg1)->getResponseCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponsePhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (char *)(arg1)->getResponsePhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (unsigned int)(arg1)->getSipContentLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getSipContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + SdpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (SdpMessage *)(arg1)->getSdpMessage(); + *(SdpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipEvent *arg1 = (SipEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (short)((SipEvent const *)arg1)->getCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (char *)((SipEvent const *)arg1)->getPhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getBaseSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + *(SipSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getSipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage(); + *(SipMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + DialogEvent *arg1 = (DialogEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(DialogEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1StackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + StackEvent *arg1 = (StackEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(StackEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InviteEvent *arg1 = (InviteEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InviteEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + tsip_invite_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + twrap_media_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + InviteSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (InviteSession *)((InviteEvent const *)arg1)->getSession(); + *(InviteSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeCallSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + CallSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership(); + *(CallSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeMsrpSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + MsrpSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership(); + *(MsrpSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MessagingEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + tsip_message_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingEvent **)&jarg1; + result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + MessagingSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingEvent **)&jarg1; + result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession(); + *(MessagingSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + MessagingSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingEvent **)&jarg1; + result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership(); + *(MessagingSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InfoEvent *arg1 = (InfoEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InfoEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + tsip_info_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoEvent **)&jarg1; + result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + InfoSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoEvent **)&jarg1; + result = (InfoSession *)((InfoEvent const *)arg1)->getSession(); + *(InfoSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + InfoSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoEvent **)&jarg1; + result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership(); + *(InfoSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(OptionsEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + tsip_options_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsEvent **)&jarg1; + result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + OptionsSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsEvent **)&jarg1; + result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession(); + *(OptionsSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + OptionsSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsEvent **)&jarg1; + result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership(); + *(OptionsSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(PublicationEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + tsip_publish_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationEvent **)&jarg1; + result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + PublicationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationEvent **)&jarg1; + result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession(); + *(PublicationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + PublicationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationEvent **)&jarg1; + result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership(); + *(PublicationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(RegistrationEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + tsip_register_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationEvent **)&jarg1; + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationEvent **)&jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + *(RegistrationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationEvent **)&jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership(); + *(RegistrationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SubscriptionEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + tsip_subscribe_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionEvent **)&jarg1; + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionEvent **)&jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + *(SubscriptionSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionEvent **)&jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership(); + *(SubscriptionSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140CallbackData(JNIEnv *jenv, jclass jcls, jlong jarg1) { + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(T140CallbackData **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + enum tmedia_t140_data_type_e result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(T140CallbackData **)&jarg1; + result = (enum tmedia_t140_data_type_e)((T140CallbackData const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(T140CallbackData **)&jarg1; + result = (unsigned int)((T140CallbackData const *)arg1)->getSize(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(T140CallbackData **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)((T140CallbackData const *)arg1)->getData(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1T140Callback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + T140Callback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (T140Callback *)new SwigDirector_T140Callback(jenv); + *(T140Callback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + T140Callback *arg1 = (T140Callback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(T140Callback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondata(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + T140Callback *arg1 = (T140Callback *) 0 ; + T140CallbackData *arg2 = (T140CallbackData *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(T140Callback **)&jarg1; + arg2 = *(T140CallbackData **)&jarg2; + result = (int)(arg1)->ondata((T140CallbackData const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondataSwigExplicitT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + T140Callback *arg1 = (T140Callback *) 0 ; + T140CallbackData *arg2 = (T140CallbackData *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(T140Callback **)&jarg1; + arg2 = *(T140CallbackData **)&jarg2; + result = (int)(arg1)->T140Callback::ondata((T140CallbackData const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + T140Callback *obj = *((T140Callback **)&objarg); + (void)jcls; + SwigDirector_T140Callback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + T140Callback *obj = *((T140Callback **)&objarg); + SwigDirector_T140Callback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + SipSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (SipSession *)new SipSession(arg1); + *(SipSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipSession *arg1 = (SipSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1haveOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + result = (bool)(arg1)->haveOwnership(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addCaps((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeCaps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeCaps((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setExpires(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setExpires(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setFromUri((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->setFromUri((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setToUri((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->setToUri((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setSilentHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSilentHangup(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + result = (bool)(arg1)->removeSigCompCompartment(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + result = (unsigned int)((SipSession const *)arg1)->getId(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + InviteSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (InviteSession *)new InviteSession(arg1); + *(InviteSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InviteSession *arg1 = (InviteSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InviteSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InviteSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InviteSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->hangup(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (bool)(arg1)->hangup(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InviteSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(InviteSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1getMediaMgr(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + MediaSessionMgr *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (MediaSessionMgr *)(arg1)->getMediaMgr(); + *(MediaSessionMgr **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + CallSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (CallSession *)new CallSession(arg1); + *(CallSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + CallSession *arg1 = (CallSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(CallSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudio((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callAudio((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callAudio((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callAudioVideo((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callVideo((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callVideo((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callVideo((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (twrap_media_type_t)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->call((char const *)arg2,arg3,arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (twrap_media_type_t)jarg3; + result = (bool)(arg1)->call((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg4_; + 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 = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = (twrap_media_type_t)jarg3; + result = (bool)(arg1)->call((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSessionTimer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jstring jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1set100rel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->set100rel(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcp(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setRtcp(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcpMux(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setRtcpMux(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSRtpMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_srtp_mode_e arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_srtp_mode_e)jarg2; + result = (bool)(arg1)->setSRtpMode(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setAvpfMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_mode_e arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_mode_e)jarg2; + result = (bool)(arg1)->setAvpfMode(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICE(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICEStun(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICEStun(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICETurn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICETurn(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + uint16_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (uint16_t)jarg3; + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoFps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoFps(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthUploadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthDownloadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoPrefSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_pref_video_size_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (tmedia_pref_video_size_t)jarg2; + result = (bool)(arg1)->setVideoPrefSize(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setQoS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_qos_stype_t arg2 ; + tmedia_qos_strength_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (tmedia_qos_stype_t)jarg2; + arg3 = (tmedia_qos_strength_t)jarg3; + result = (bool)(arg1)->setQoS(arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->hold(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->hold(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->resume(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->resume(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->transfer((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->transfer((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->acceptTransfer(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->acceptTransfer(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->rejectTransfer(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->rejectTransfer(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendDTMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int)jarg2; + result = (bool)(arg1)->sendDTMF(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1getSessionTransferId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (unsigned int)(arg1)->getSessionTransferId(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3, jlong jarg4) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_t140_data_type_e)jarg2; + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_t140_data_type_e)jarg2; + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_t140_data_type_e)jarg2; + result = (bool)(arg1)->sendT140Data(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + T140Callback *arg2 = (T140Callback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(T140Callback **)&jarg2; + result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + MsrpSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipStack **)&jarg1; + arg2 = *(MsrpCallback **)&jarg2; + result = (MsrpSession *)new MsrpSession(arg1,arg2); + *(MsrpSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpSession *arg1 = (MsrpSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(MsrpCallback **)&jarg2; + result = (bool)(arg1)->setCallback(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callMsrp((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callMsrp((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callMsrp((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(MsrpSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->sendFile(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpSession **)&jarg1; + result = (bool)(arg1)->sendFile(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + MessagingSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (MessagingSession *)new MessagingSession(arg1); + *(MessagingSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MessagingSession *arg1 = (MessagingSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MessagingSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(MessagingSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->send((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MessagingSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MessagingSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + InfoSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (InfoSession *)new InfoSession(arg1); + *(InfoSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InfoSession *arg1 = (InfoSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InfoSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(InfoSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->send((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InfoSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InfoSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + OptionsSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (OptionsSession *)new OptionsSession(arg1); + *(OptionsSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + OptionsSession *arg1 = (OptionsSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(OptionsSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(OptionsSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->send(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsSession **)&jarg1; + result = (bool)(arg1)->send(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(OptionsSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(OptionsSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + PublicationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (PublicationSession *)new PublicationSession(arg1); + *(PublicationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + PublicationSession *arg1 = (PublicationSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(PublicationSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(PublicationSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->publish((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(PublicationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->unPublish(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationSession **)&jarg1; + result = (bool)(arg1)->unPublish(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + RegistrationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (RegistrationSession *)new RegistrationSession(arg1); + *(RegistrationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(RegistrationSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->register_(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->register_(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->unRegister(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->unRegister(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + SubscriptionSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (SubscriptionSession *)new SubscriptionSession(arg1); + *(SubscriptionSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SubscriptionSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1subscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionSession **)&jarg1; + result = (bool)(arg1)->subscribe(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1unSubscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionSession **)&jarg1; + result = (bool)(arg1)->unSubscribe(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyPluginMgr **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1createInstance(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + ProxyPluginMgr *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1); + *(ProxyPluginMgr **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1getInstance(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyPluginMgr *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance(); + *(ProxyPluginMgr **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyPlugin *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyPlugin *)(arg1)->findPlugin(arg2); + *(ProxyPlugin **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyAudioConsumer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2); + *(ProxyAudioConsumer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyVideoConsumer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2); + *(ProxyVideoConsumer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyAudioProducer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2); + *(ProxyAudioProducer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyVideoProducer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2); + *(ProxyVideoProducer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyPluginMgrCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyPluginMgrCallback *)new SwigDirector_ProxyPluginMgrCallback(jenv); + *(ProxyPluginMgrCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreated(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->OnPluginCreated(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreatedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginCreated(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->OnPluginDestroyed(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginDestroyed(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyPluginMgrCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg); + SwigDirector_ProxyPluginMgrCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyPlugin **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + twrap_proxy_plugin_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPlugin **)&jarg1; + result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPlugin **)&jarg1; + result = (uint64_t)((ProxyPlugin const *)arg1)->getId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyAudioConsumerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyAudioConsumerCallback *)new SwigDirector_ProxyAudioConsumerCallback(jenv); + *(ProxyAudioConsumerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepareSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyAudioConsumerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1startSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pauseSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stopSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyAudioConsumerCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg); + SwigDirector_ProxyAudioConsumerCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioConsumer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActualSndCardPlaybackParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1queryForResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jint jarg6) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + uint16_t arg4 ; + uint16_t arg5 ; + uint16_t arg6 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = (uint16_t)jarg2; + arg3 = (uint16_t)jarg3; + arg4 = (uint16_t)jarg4; + arg5 = (uint16_t)jarg5; + arg6 = (uint16_t)jarg6; + result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setPullBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->pull(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + result = (unsigned int)(arg1)->pull(arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (unsigned int)(arg1)->pull(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setGain(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (unsigned int)(arg1)->getGain(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (bool)(arg1)->reset(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = *(ProxyAudioConsumerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyAudioConsumer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyVideoConsumerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyVideoConsumerCallback *)new SwigDirector_ProxyVideoConsumerCallback(jenv); + *(ProxyVideoConsumerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepareSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyVideoConsumerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consume(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = *(ProxyVideoFrame **)&jarg2; + result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consumeSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = *(ProxyVideoFrame **)&jarg2; + result = (int)(arg1)->ProxyVideoConsumerCallback::consume((ProxyVideoFrame const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopied(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->bufferCopied(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopiedSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->ProxyVideoConsumerCallback::bufferCopied(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1startSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pauseSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stopSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyVideoConsumerCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg); + SwigDirector_ProxyVideoConsumerCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoConsumer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDisplaySize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setDisplaySize(arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDisplayWidth(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDisplayHeight(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDecodedWidth(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDecodedHeight(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = *(ProxyVideoConsumerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setAutoResizeDisplay(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setConsumeBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1pull(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->pull(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (bool)(arg1)->reset(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyVideoConsumer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) { + tmedia_chroma_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_chroma_t)jarg1; + ProxyVideoConsumer::setDefaultChroma(arg1); +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + bool arg1 ; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1); +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoFrame(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoFrame **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + result = (unsigned int)(arg1)->getSize(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyAudioProducerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyAudioProducerCallback *)new SwigDirector_ProxyAudioProducerCallback(jenv); + *(ProxyAudioProducerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepareSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyAudioProducerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1startSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pauseSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stopSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->fillPushBuffer(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBufferSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::fillPushBuffer(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyAudioProducerCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg); + SwigDirector_ProxyAudioProducerCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioProducer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActualSndCardRecordParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jboolean jarg4) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = jarg4 ? true : false; + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->push((void const *)arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) { + jint jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + result = (int)(arg1)->push((void const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + result = (int)(arg1)->push(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setGain(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + result = (unsigned int)(arg1)->getGain(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyAudioProducer **)&jarg1; + arg2 = *(ProxyAudioProducerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyAudioProducer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyVideoProducerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyVideoProducerCallback *)new SwigDirector_ProxyVideoProducerCallback(jenv); + *(ProxyVideoProducerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepareSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyVideoProducerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1startSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pauseSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stopSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyVideoProducerCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg); + SwigDirector_ProxyVideoProducerCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoProducer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + result = (int)((ProxyVideoProducer const *)arg1)->getRotation(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = (int)jarg2; + result = (bool)(arg1)->setRotation(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + result = (bool)((ProxyVideoProducer const *)arg1)->getMirror(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setMirror(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setActualCameraOutputSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1push(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->push((void const *)arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = *(ProxyVideoProducerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyVideoProducer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) { + tmedia_chroma_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_chroma_t)jarg1; + ProxyVideoProducer::setDefaultChroma(arg1); +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipCallback *)new SwigDirector_SipCallback(jenv); + *(SipCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipCallback *arg1 = (SipCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(DialogEvent **)&jarg2; + result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(DialogEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnDialogEvent((DialogEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(StackEvent **)&jarg2; + result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(StackEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnStackEvent((StackEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InviteEvent **)&jarg2; + result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InviteEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnInviteEvent((InviteEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(MessagingEvent **)&jarg2; + result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(MessagingEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnMessagingEvent((MessagingEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InfoEvent **)&jarg2; + result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InfoEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnInfoEvent((InfoEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(OptionsEvent **)&jarg2; + result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(OptionsEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnOptionsEvent((OptionsEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(PublicationEvent **)&jarg2; + result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(PublicationEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnPublicationEvent((PublicationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(RegistrationEvent **)&jarg2; + result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(RegistrationEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnRegistrationEvent((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(SubscriptionEvent **)&jarg2; + result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(SubscriptionEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnSubscriptionEvent((SubscriptionEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + SipCallback *obj = *((SipCallback **)&objarg); + (void)jcls; + SwigDirector_SipCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + SipCallback *obj = *((SipCallback **)&objarg); + SwigDirector_SipCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SafeObject(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SafeObject *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SafeObject *)new SafeObject(); + *(SafeObject **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SafeObject(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SafeObject *arg1 = (SafeObject *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SafeObject **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1Lock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SafeObject **)&jarg1; + result = (int)((SafeObject const *)arg1)->Lock(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1UnLock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SafeObject **)&jarg1; + result = (int)((SafeObject const *)arg1)->UnLock(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + SipStack *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(SipStack **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipStack *arg1 = (SipStack *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipStack **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (bool)(arg1)->start(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + DDebugCallback *arg2 = (DDebugCallback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipStack **)&jarg1; + arg2 = *(DDebugCallback **)&jarg2; + result = (bool)(arg1)->setDebugCallback(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setDisplayName((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setRealm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setRealm((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setIMPI((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPU(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setIMPU((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setPassword((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setAMF((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setOperatorId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setOperatorId((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jstring jarg4, jstring jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned short)jarg3; + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned short)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned short)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setEarlyIMS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setEarlyIMS(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addDnsServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addDnsServer((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDnsDiscovery(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setDnsDiscovery(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAoR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (int)jarg3; + result = (bool)(arg1)->setAoR((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSigCompParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4, jboolean jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + bool arg5 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (unsigned int)jarg4; + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabledForICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSTUNEnabledForICE(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned short)jarg3; + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabled(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSTUNEnabled(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setTLSSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setTLSSecAgree(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setIPSecSecAgree(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecParameters(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsENUM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsNaptrSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jintArray jarg4) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned short *arg4 = (unsigned short *) 0 ; + unsigned short temp4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + { + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return 0; + } + if (jenv->GetArrayLength(jarg4) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return 0; + } + temp4 = (unsigned short)0; + arg4 = &temp4; + } + result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + { + jint jvalue = (jint)temp4; + jenv->SetIntArrayRegion(jarg4, 0, 1, &jvalue); + } + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + unsigned short temp3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + { + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return 0; + } + if (jenv->GetArrayLength(jarg3) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return 0; + } + temp3 = (unsigned short)0; + arg3 = &temp3; + } + result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + { + jint jvalue = (jint)temp3; + jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue); + } + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + + delete [] result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setMaxFDs(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setMaxFDs(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getLocalIPnPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + unsigned short temp3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + { + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return 0; + } + if (jenv->GetArrayLength(jarg3) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return 0; + } + temp3 = (unsigned short)0; + arg3 = &temp3; + } + result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + { + jint jvalue = (jint)temp3; + jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue); + } + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getPreferredIdentity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (char *)(arg1)->getPreferredIdentity(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (bool)(arg1)->isValid(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (bool)(arg1)->stop(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1initialize(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)SipStack::initialize(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1deInitialize(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)SipStack::deInitialize(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs(JNIEnv *jenv, jclass jcls, jint jarg1) { + tdav_codec_id_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (tdav_codec_id_t)jarg1; + SipStack::setCodecs(arg1); +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs_12(JNIEnv *jenv, jclass jcls, jlong jarg1) { + int64_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (int64_t)jarg1; + SipStack::setCodecs_2(arg1); +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + tdav_codec_id_t arg1 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tdav_codec_id_t)jarg1; + arg2 = (int)jarg2; + result = (bool)SipStack::setCodecPriority(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority_12(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int arg1 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = (int)jarg2; + result = (bool)SipStack::setCodecPriority_2(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isCodecSupported(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tdav_codec_id_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tdav_codec_id_t)jarg1; + result = (bool)SipStack::isCodecSupported(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isIPSecSupported(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)SipStack::isIPSecSupported(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + result = (XcapSelector *)new XcapSelector(arg1); + *(XcapSelector **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapSelector *arg1 = (XcapSelector *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapSelector **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (XcapSelector *)(arg1)->setAUID((char const *)arg2); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (XcapSelector *)(arg1)->setName((char const *)arg2); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPos(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPosAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setNamespace(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1getString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + result = (char *)(arg1)->getString(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + XcapSelector *arg1 = (XcapSelector *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + (arg1)->reset(); +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + XcapMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (XcapMessage *)new XcapMessage(); + *(XcapMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapMessage *arg1 = (XcapMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + result = (short)((XcapMessage const *)arg1)->getCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + result = (char *)((XcapMessage const *)arg1)->getPhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + result = (unsigned int)(arg1)->getXcapContentLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getXcapContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapEvent *arg1 = (XcapEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + XcapEvent *arg1 = (XcapEvent *) 0 ; + thttp_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapEvent **)&jarg1; + result = (thttp_event_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getXcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + XcapEvent *arg1 = (XcapEvent *) 0 ; + XcapMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapEvent **)&jarg1; + result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage(); + *(XcapMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + XcapCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (XcapCallback *)new SwigDirector_XcapCallback(jenv); + *(XcapCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapCallback *arg1 = (XcapCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(XcapCallback **)&jarg1; + arg2 = *(XcapEvent **)&jarg2; + result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEventSwigExplicitXcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(XcapCallback **)&jarg1; + arg2 = *(XcapEvent **)&jarg2; + result = (int)((XcapCallback const *)arg1)->XcapCallback::onEvent((XcapEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + XcapCallback *obj = *((XcapCallback **)&objarg); + (void)jcls; + SwigDirector_XcapCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + XcapCallback *obj = *((XcapCallback **)&objarg); + SwigDirector_XcapCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + XcapStack *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(XcapStack **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapStack *arg1 = (XcapStack *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapStack **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1registerAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jboolean jarg6) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool arg6 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + arg6 = jarg6 ? true : false; + result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + result = (bool)(arg1)->start(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setCredentials(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setXcapRoot(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setXcapRoot((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalIP(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setTimeout(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setTimeout(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->getDocument((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->getElement((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->getAttribute((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->deleteDocument((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->deleteElement((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->deleteAttribute((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4, jstring jarg5) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + char *arg5 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + result = (bool)(arg1)->stop(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RPMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (RPMessage *)new RPMessage(); + *(RPMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RPMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + RPMessage *arg1 = (RPMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(RPMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + RPMessage *arg1 = (RPMessage *) 0 ; + twrap_rpmessage_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RPMessage **)&jarg1; + result = (twrap_rpmessage_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + RPMessage *arg1 = (RPMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RPMessage **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + RPMessage *arg1 = (RPMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RPMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SMSData(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SMSData *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SMSData *)new SMSData(); + *(SMSData **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSData(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SMSData *arg1 = (SMSData *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SMSData **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + twrap_sms_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (twrap_sms_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getMR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (int)(arg1)->getMR(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getOA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (char *)(arg1)->getOA(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getDA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (char *)(arg1)->getDA(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeSubmit(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeDeliver(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeACK(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = jarg4 ? true : false; + result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeError(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = jarg4 ? true : false; + result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1decode(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jboolean jarg3) { + jlong jresult = 0 ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + bool arg3 ; + SMSData *result = 0 ; + + (void)jenv; + (void)jcls; + + arg1 = jenv->GetDirectBufferAddress(jarg1); + + arg2 = (unsigned int)jarg2; + arg3 = jarg3 ? true : false; + result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3); + *(SMSData **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSEncoder(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SMSEncoder *arg1 = (SMSEncoder *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SMSEncoder **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + MsrpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (MsrpMessage *)new MsrpMessage(); + *(MsrpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isRequest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isRequest(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (short)(arg1)->getCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (char *)(arg1)->getPhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + tmsrp_request_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (tmsrp_request_type_t)(arg1)->getRequestType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getByteRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlongArray jarg2, jlongArray jarg3, jlongArray jarg4) { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + int64_t *arg2 = (int64_t *) 0 ; + int64_t *arg3 = (int64_t *) 0 ; + int64_t *arg4 = (int64_t *) 0 ; + int64_t temp2 ; + int64_t temp3 ; + int64_t temp4 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + { + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return ; + } + if (jenv->GetArrayLength(jarg2) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return ; + } + temp2 = (int64_t)0; + arg2 = &temp2; + } + { + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return ; + } + if (jenv->GetArrayLength(jarg3) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return ; + } + temp3 = (int64_t)0; + arg3 = &temp3; + } + { + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return ; + } + if (jenv->GetArrayLength(jarg4) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return ; + } + temp4 = (int64_t)0; + arg4 = &temp4; + } + (arg1)->getByteRange(arg2,arg3,arg4); + { + jlong jvalue = (jlong)temp2; + jenv->SetLongArrayRegion(jarg2, 0, 1, &jvalue); + } + { + jlong jvalue = (jlong)temp3; + jenv->SetLongArrayRegion(jarg3, 0, 1, &jvalue); + } + { + jlong jvalue = (jlong)temp4; + jenv->SetLongArrayRegion(jarg4, 0, 1, &jvalue); + } + + + +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isLastChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isLastChunck(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isFirstChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isFirstChunck(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isSuccessReport(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isSuccessReport(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (unsigned int)(arg1)->getMsrpContentLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + tmsrp_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpEvent **)&jarg1; + result = (tmsrp_event_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getSipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + MsrpSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpEvent **)&jarg1; + result = (MsrpSession *)(arg1)->getSipSession(); + *(MsrpSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + MsrpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpEvent **)&jarg1; + result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage(); + *(MsrpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + MsrpCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (MsrpCallback *)new SwigDirector_MsrpCallback(jenv); + *(MsrpCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpCallback **)&jarg1; + arg2 = *(MsrpEvent **)&jarg2; + result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEventSwigExplicitMsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpCallback **)&jarg1; + arg2 = *(MsrpEvent **)&jarg2; + result = (int)(arg1)->MsrpCallback::OnEvent((MsrpEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + MsrpCallback *obj = *((MsrpCallback **)&objarg); + (void)jcls; + SwigDirector_MsrpCallback *director = static_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + MsrpCallback *obj = *((MsrpCallback **)&objarg); + SwigDirector_MsrpCallback *director = static_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(MediaContent **)&baseptr = *(MediaContentCPIM **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DialogEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(DialogEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_StackEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(StackEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(InviteEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(MessagingEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(InfoEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(OptionsEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(PublicationEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(RegistrationEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(SubscriptionEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(InviteSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(InviteSession **)&baseptr = *(CallSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(InviteSession **)&baseptr = *(MsrpSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(MessagingSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(InfoSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(OptionsSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(PublicationSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(RegistrationSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(SubscriptionSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyAudioConsumer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyVideoConsumer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyAudioProducer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyVideoProducer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SafeObject **)&baseptr = *(SipStack **)&jarg1; + return baseptr; +} + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1init(JNIEnv *jenv, jclass jcls) { + int i; + + static struct { + const char *method; + const char *signature; + } methods[37] = { + { + "SwigDirector_DDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_DDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_DDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_DDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_T140Callback_ondata", "(Lorg/doubango/tinyWRAP/T140Callback;J)I" + }, + { + "SwigDirector_ProxyPluginMgrCallback_OnPluginCreated", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I" + }, + { + "SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;III)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;III)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_consume", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;J)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_bufferCopied", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;JJ)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;III)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_fillPushBuffer", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;III)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I" + }, + { + "SwigDirector_SipCallback_OnDialogEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnStackEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnInviteEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnMessagingEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnInfoEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnOptionsEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnPublicationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_XcapCallback_onEvent", "(Lorg/doubango/tinyWRAP/XcapCallback;J)I" + }, + { + "SwigDirector_MsrpCallback_OnEvent", "(Lorg/doubango/tinyWRAP/MsrpCallback;J)I" + } + }; + Swig::jclass_tinyWRAPJNI = (jclass) jenv->NewGlobalRef(jcls); + if (!Swig::jclass_tinyWRAPJNI) return; + for (i = 0; i < (int) (sizeof(methods)/sizeof(methods[0])); ++i) { + Swig::director_methids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature); + if (!Swig::director_methids[i]) return; + } +} + + +#ifdef __cplusplus +} +#endif + diff --git a/bindings/java/android/tinyWRAP_wrap.h b/bindings/java/android/tinyWRAP_wrap.h new file mode 100644 index 0000000..847b552 --- /dev/null +++ b/bindings/java/android/tinyWRAP_wrap.h @@ -0,0 +1,192 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_tinyWRAP_WRAP_H_ +#define SWIG_tinyWRAP_WRAP_H_ + +class SwigDirector_DDebugCallback : public DDebugCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_DDebugCallback(JNIEnv *jenv); + virtual ~SwigDirector_DDebugCallback(); + virtual int OnDebugInfo(char const *message); + virtual int OnDebugWarn(char const *message); + virtual int OnDebugError(char const *message); + virtual int OnDebugFatal(char const *message); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +class SwigDirector_T140Callback : public T140Callback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_T140Callback(JNIEnv *jenv); + virtual ~SwigDirector_T140Callback(); + virtual int ondata(T140CallbackData const *pData); +public: + bool swig_overrides(int n) { + return (n < 1 ? swig_override[n] : false); + } +protected: + bool swig_override[1]; +}; + +class SwigDirector_ProxyPluginMgrCallback : public ProxyPluginMgrCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyPluginMgrCallback(); + virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type); + virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type); +public: + bool swig_overrides(int n) { + return (n < 2 ? swig_override[n] : false); + } +protected: + bool swig_override[2]; +}; + +class SwigDirector_ProxyAudioConsumerCallback : public ProxyAudioConsumerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyAudioConsumerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +class SwigDirector_ProxyVideoConsumerCallback : public ProxyVideoConsumerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyVideoConsumerCallback(); + virtual int prepare(int nWidth, int nHeight, int nFps); + virtual int consume(ProxyVideoFrame const *frame); + virtual int bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 6 ? swig_override[n] : false); + } +protected: + bool swig_override[6]; +}; + +class SwigDirector_ProxyAudioProducerCallback : public ProxyAudioProducerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyAudioProducerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); + virtual int fillPushBuffer(); +public: + bool swig_overrides(int n) { + return (n < 5 ? swig_override[n] : false); + } +protected: + bool swig_override[5]; +}; + +class SwigDirector_ProxyVideoProducerCallback : public ProxyVideoProducerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyVideoProducerCallback(); + virtual int prepare(int width, int height, int fps); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +class SwigDirector_SipCallback : public SipCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_SipCallback(JNIEnv *jenv); + virtual ~SwigDirector_SipCallback(); + virtual int OnDialogEvent(DialogEvent const *e); + virtual int OnStackEvent(StackEvent const *e); + virtual int OnInviteEvent(InviteEvent const *e); + virtual int OnMessagingEvent(MessagingEvent const *e); + virtual int OnInfoEvent(InfoEvent const *e); + virtual int OnOptionsEvent(OptionsEvent const *e); + virtual int OnPublicationEvent(PublicationEvent const *e); + virtual int OnRegistrationEvent(RegistrationEvent const *e); + virtual int OnSubscriptionEvent(SubscriptionEvent const *e); +public: + bool swig_overrides(int n) { + return (n < 9 ? swig_override[n] : false); + } +protected: + bool swig_override[9]; +}; + +class SwigDirector_XcapCallback : public XcapCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_XcapCallback(JNIEnv *jenv); + virtual ~SwigDirector_XcapCallback(); + virtual int onEvent(XcapEvent const *e) const; +public: + bool swig_overrides(int n) { + return (n < 1 ? swig_override[n] : false); + } +protected: + bool swig_override[1]; +}; + +class SwigDirector_MsrpCallback : public MsrpCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_MsrpCallback(JNIEnv *jenv); + virtual ~SwigDirector_MsrpCallback(); + virtual int OnEvent(MsrpEvent const *e); +public: + bool swig_overrides(int n) { + return (n < 1 ? swig_override[n] : false); + } +protected: + bool swig_override[1]; +}; + + +#endif diff --git a/bindings/java/android/tmedia_bandwidth_level_t.java b/bindings/java/android/tmedia_bandwidth_level_t.java new file mode 100644 index 0000000..bc7d636 --- /dev/null +++ b/bindings/java/android/tmedia_bandwidth_level_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_bandwidth_level_t { + tmedia_bl_low, + tmedia_bl_medium, + tmedia_bl_hight, + tmedia_bl_unrestricted; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_bandwidth_level_t swigToEnum(int swigValue) { + tmedia_bandwidth_level_t[] swigValues = tmedia_bandwidth_level_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_bandwidth_level_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_bandwidth_level_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_bandwidth_level_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_bandwidth_level_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_bandwidth_level_t(tmedia_bandwidth_level_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_chroma_t.java b/bindings/java/android/tmedia_chroma_t.java new file mode 100644 index 0000000..b71da66 --- /dev/null +++ b/bindings/java/android/tmedia_chroma_t.java @@ -0,0 +1,63 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_chroma_t { + tmedia_chroma_none(0), + tmedia_chroma_rgb24, + tmedia_chroma_bgr24, + tmedia_chroma_rgb32, + tmedia_chroma_rgb565le, + tmedia_chroma_rgb565be, + tmedia_chroma_nv12, + tmedia_chroma_nv21, + tmedia_chroma_yuv422p, + tmedia_chroma_uyvy422, + tmedia_chroma_yuv420p, + tmedia_chroma_mjpeg, + tmedia_chroma_yuyv422; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_chroma_t swigToEnum(int swigValue) { + tmedia_chroma_t[] swigValues = tmedia_chroma_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_chroma_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_chroma_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_chroma_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_chroma_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_chroma_t(tmedia_chroma_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_codec_id_t.java b/bindings/java/android/tmedia_codec_id_t.java new file mode 100644 index 0000000..604270e --- /dev/null +++ b/bindings/java/android/tmedia_codec_id_t.java @@ -0,0 +1,83 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_codec_id_t { + tmedia_codec_id_none(0x00000000), + tmedia_codec_id_amr_nb_oa(0x00000001 << 0), + tmedia_codec_id_amr_nb_be(0x00000001 << 1), + tmedia_codec_id_amr_wb_oa(0x00000001 << 2), + tmedia_codec_id_amr_wb_be(0x00000001 << 3), + tmedia_codec_id_gsm(0x00000001 << 4), + tmedia_codec_id_pcma(0x00000001 << 5), + tmedia_codec_id_pcmu(0x00000001 << 6), + tmedia_codec_id_ilbc(0x00000001 << 7), + tmedia_codec_id_speex_nb(0x00000001 << 8), + tmedia_codec_id_speex_wb(0x00000001 << 9), + tmedia_codec_id_speex_uwb(0x00000001 << 10), + tmedia_codec_id_bv16(0x00000001 << 11), + tmedia_codec_id_bv32(0x00000001 << 12), + tmedia_codec_id_opus(0x00000001 << 13), + tmedia_codec_id_g729ab(0x00000001 << 14), + tmedia_codec_id_g722(0x00000001 << 15), + tmedia_codec_id_h261(0x00010000 << 0), + tmedia_codec_id_h263(0x00010000 << 1), + tmedia_codec_id_h263p(0x00010000 << 2), + tmedia_codec_id_h263pp(0x00010000 << 3), + tmedia_codec_id_h264_bp(0x00010000 << 4), + tmedia_codec_id_h264_mp(0x00010000 << 5), + tmedia_codec_id_h264_hp(0x00010000 << 6), + tmedia_codec_id_h264_bp10(tmedia_codec_id_h264_bp), + tmedia_codec_id_h264_bp20(tmedia_codec_id_h264_bp), + tmedia_codec_id_h264_bp30(tmedia_codec_id_h264_bp), + tmedia_codec_id_h264_svc(0x00010000 << 7), + tmedia_codec_id_theora(0x00010000 << 8), + tmedia_codec_id_mp4ves_es(0x00010000 << 9), + tmedia_codec_id_vp8(0x00010000 << 10), + tmedia_codec_id_t140(0x00010000 << 14), + tmedia_codec_id_red(0x00010000 << 15); + + public final int swigValue() { + return swigValue; + } + + public static tmedia_codec_id_t swigToEnum(int swigValue) { + tmedia_codec_id_t[] swigValues = tmedia_codec_id_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_codec_id_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_codec_id_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_codec_id_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_codec_id_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_codec_id_t(tmedia_codec_id_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_mode_t.java b/bindings/java/android/tmedia_mode_t.java new file mode 100644 index 0000000..83527ca --- /dev/null +++ b/bindings/java/android/tmedia_mode_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_mode_t { + tmedia_mode_none, + tmedia_mode_optional, + tmedia_mode_mandatory; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_mode_t swigToEnum(int swigValue) { + tmedia_mode_t[] swigValues = tmedia_mode_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_mode_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_mode_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_mode_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_mode_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_mode_t(tmedia_mode_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_pref_video_size_t.java b/bindings/java/android/tmedia_pref_video_size_t.java new file mode 100644 index 0000000..a93a031 --- /dev/null +++ b/bindings/java/android/tmedia_pref_video_size_t.java @@ -0,0 +1,65 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_pref_video_size_t { + tmedia_pref_video_size_sqcif, + tmedia_pref_video_size_qcif, + tmedia_pref_video_size_qvga, + tmedia_pref_video_size_cif, + tmedia_pref_video_size_hvga, + tmedia_pref_video_size_vga, + tmedia_pref_video_size_4cif, + tmedia_pref_video_size_wvga, + tmedia_pref_video_size_svga, + tmedia_pref_video_size_480p, + tmedia_pref_video_size_xga, + tmedia_pref_video_size_720p, + tmedia_pref_video_size_16cif, + tmedia_pref_video_size_1080p, + tmedia_pref_video_size_2160p; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_pref_video_size_t swigToEnum(int swigValue) { + tmedia_pref_video_size_t[] swigValues = tmedia_pref_video_size_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_pref_video_size_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_pref_video_size_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_pref_video_size_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_pref_video_size_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_pref_video_size_t(tmedia_pref_video_size_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_profile_t.java b/bindings/java/android/tmedia_profile_t.java new file mode 100644 index 0000000..bfb8f60 --- /dev/null +++ b/bindings/java/android/tmedia_profile_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_profile_t { + tmedia_profile_default, + tmedia_profile_rtcweb; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_profile_t swigToEnum(int swigValue) { + tmedia_profile_t[] swigValues = tmedia_profile_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_profile_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_profile_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_profile_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_profile_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_profile_t(tmedia_profile_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_qos_strength_t.java b/bindings/java/android/tmedia_qos_strength_t.java new file mode 100644 index 0000000..8f8e465 --- /dev/null +++ b/bindings/java/android/tmedia_qos_strength_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_qos_strength_t { + tmedia_qos_strength_none, + tmedia_qos_strength_failure, + tmedia_qos_strength_unknown, + tmedia_qos_strength_optional, + tmedia_qos_strength_mandatory; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_qos_strength_t swigToEnum(int swigValue) { + tmedia_qos_strength_t[] swigValues = tmedia_qos_strength_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_qos_strength_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_qos_strength_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_qos_strength_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_qos_strength_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_qos_strength_t(tmedia_qos_strength_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_qos_stype_t.java b/bindings/java/android/tmedia_qos_stype_t.java new file mode 100644 index 0000000..f19af37 --- /dev/null +++ b/bindings/java/android/tmedia_qos_stype_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_qos_stype_t { + tmedia_qos_stype_none, + tmedia_qos_stype_segmented, + tmedia_qos_stype_e2e; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_qos_stype_t swigToEnum(int swigValue) { + tmedia_qos_stype_t[] swigValues = tmedia_qos_stype_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_qos_stype_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_qos_stype_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_qos_stype_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_qos_stype_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_qos_stype_t(tmedia_qos_stype_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_srtp_mode_t.java b/bindings/java/android/tmedia_srtp_mode_t.java new file mode 100644 index 0000000..42a6f1c --- /dev/null +++ b/bindings/java/android/tmedia_srtp_mode_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_srtp_mode_t { + tmedia_srtp_mode_none, + tmedia_srtp_mode_optional, + tmedia_srtp_mode_mandatory; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_srtp_mode_t swigToEnum(int swigValue) { + tmedia_srtp_mode_t[] swigValues = tmedia_srtp_mode_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_srtp_mode_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_srtp_mode_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_srtp_mode_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_srtp_mode_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_srtp_mode_t(tmedia_srtp_mode_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_srtp_type_t.java b/bindings/java/android/tmedia_srtp_type_t.java new file mode 100644 index 0000000..a33778b --- /dev/null +++ b/bindings/java/android/tmedia_srtp_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_srtp_type_t { + tmedia_srtp_type_none(0x00), + tmedia_srtp_type_sdes(0x01), + tmedia_srtp_type_dtls(0x02), + tmedia_srtp_type_sdes_dtls((0x01|0x02)); + + public final int swigValue() { + return swigValue; + } + + public static tmedia_srtp_type_t swigToEnum(int swigValue) { + tmedia_srtp_type_t[] swigValues = tmedia_srtp_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_srtp_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_srtp_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_srtp_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_srtp_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_srtp_type_t(tmedia_srtp_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmedia_t140_data_type_t.java b/bindings/java/android/tmedia_t140_data_type_t.java new file mode 100644 index 0000000..4eb7a5f --- /dev/null +++ b/bindings/java/android/tmedia_t140_data_type_t.java @@ -0,0 +1,65 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package 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); + + public final int swigValue() { + return swigValue; + } + + public static tmedia_t140_data_type_t swigToEnum(int swigValue) { + tmedia_t140_data_type_t[] swigValues = tmedia_t140_data_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_t140_data_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_t140_data_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_t140_data_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_t140_data_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_t140_data_type_t(tmedia_t140_data_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmsrp_event_type_t.java b/bindings/java/android/tmsrp_event_type_t.java new file mode 100644 index 0000000..dc832bd --- /dev/null +++ b/bindings/java/android/tmsrp_event_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmsrp_event_type_t { + tmsrp_event_type_none, + tmsrp_event_type_connected, + tmsrp_event_type_disconnected, + tmsrp_event_type_message; + + public final int swigValue() { + return swigValue; + } + + public static tmsrp_event_type_t swigToEnum(int swigValue) { + tmsrp_event_type_t[] swigValues = tmsrp_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmsrp_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmsrp_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmsrp_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmsrp_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmsrp_event_type_t(tmsrp_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tmsrp_request_type_t.java b/bindings/java/android/tmsrp_request_type_t.java new file mode 100644 index 0000000..49147bd --- /dev/null +++ b/bindings/java/android/tmsrp_request_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmsrp_request_type_t { + tmsrp_NONE(0), + tmsrp_SEND, + tmsrp_REPORT, + tmsrp_AUTH; + + public final int swigValue() { + return swigValue; + } + + public static tmsrp_request_type_t swigToEnum(int swigValue) { + tmsrp_request_type_t[] swigValues = tmsrp_request_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmsrp_request_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmsrp_request_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmsrp_request_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmsrp_request_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmsrp_request_type_t(tmsrp_request_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_event_type_t.java b/bindings/java/android/tsip_event_type_t.java new file mode 100644 index 0000000..7519707 --- /dev/null +++ b/bindings/java/android/tsip_event_type_t.java @@ -0,0 +1,58 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_event_type_t { + tsip_event_invite, + tsip_event_message, + tsip_event_info, + tsip_event_options, + tsip_event_publish, + tsip_event_register, + tsip_event_subscribe, + tsip_event_dialog; + + public final int swigValue() { + return swigValue; + } + + public static tsip_event_type_t swigToEnum(int swigValue) { + tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_event_type_t(tsip_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_info_event_type_t.java b/bindings/java/android/tsip_info_event_type_t.java new file mode 100644 index 0000000..96a2064 --- /dev/null +++ b/bindings/java/android/tsip_info_event_type_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_info_event_type_t { + tsip_i_info, + tsip_ao_info; + + public final int swigValue() { + return swigValue; + } + + public static tsip_info_event_type_t swigToEnum(int swigValue) { + tsip_info_event_type_t[] swigValues = tsip_info_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_info_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_info_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_info_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_info_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_info_event_type_t(tsip_info_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_invite_event_type_t.java b/bindings/java/android/tsip_invite_event_type_t.java new file mode 100644 index 0000000..9c84c57 --- /dev/null +++ b/bindings/java/android/tsip_invite_event_type_t.java @@ -0,0 +1,72 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_invite_event_type_t { + tsip_i_newcall, + tsip_i_request, + tsip_ao_request, + tsip_o_ect_trying, + tsip_o_ect_accepted, + tsip_o_ect_completed, + tsip_o_ect_failed, + tsip_o_ect_notify, + tsip_i_ect_requested, + tsip_i_ect_newcall, + tsip_i_ect_completed, + tsip_i_ect_failed, + tsip_i_ect_notify, + tsip_m_early_media, + tsip_m_updating, + tsip_m_updated, + tsip_m_local_hold_ok, + tsip_m_local_hold_nok, + tsip_m_local_resume_ok, + tsip_m_local_resume_nok, + tsip_m_remote_hold, + tsip_m_remote_resume; + + public final int swigValue() { + return swigValue; + } + + public static tsip_invite_event_type_t swigToEnum(int swigValue) { + tsip_invite_event_type_t[] swigValues = tsip_invite_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_invite_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_invite_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_invite_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_invite_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_invite_event_type_t(tsip_invite_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_message_event_type_t.java b/bindings/java/android/tsip_message_event_type_t.java new file mode 100644 index 0000000..cbf332b --- /dev/null +++ b/bindings/java/android/tsip_message_event_type_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_message_event_type_t { + tsip_i_message, + tsip_ao_message; + + public final int swigValue() { + return swigValue; + } + + public static tsip_message_event_type_t swigToEnum(int swigValue) { + tsip_message_event_type_t[] swigValues = tsip_message_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_message_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_message_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_message_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_message_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_message_event_type_t(tsip_message_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_options_event_type_t.java b/bindings/java/android/tsip_options_event_type_t.java new file mode 100644 index 0000000..ca5ab1e --- /dev/null +++ b/bindings/java/android/tsip_options_event_type_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_options_event_type_t { + tsip_i_options, + tsip_ao_options; + + public final int swigValue() { + return swigValue; + } + + public static tsip_options_event_type_t swigToEnum(int swigValue) { + tsip_options_event_type_t[] swigValues = tsip_options_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_options_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_options_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_options_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_options_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_options_event_type_t(tsip_options_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_publish_event_type_t.java b/bindings/java/android/tsip_publish_event_type_t.java new file mode 100644 index 0000000..c04e0ae --- /dev/null +++ b/bindings/java/android/tsip_publish_event_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_publish_event_type_t { + tsip_i_publish, + tsip_ao_publish, + tsip_i_unpublish, + tsip_ao_unpublish; + + public final int swigValue() { + return swigValue; + } + + public static tsip_publish_event_type_t swigToEnum(int swigValue) { + tsip_publish_event_type_t[] swigValues = tsip_publish_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_publish_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_publish_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_publish_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_publish_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_publish_event_type_t(tsip_publish_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_register_event_type_t.java b/bindings/java/android/tsip_register_event_type_t.java new file mode 100644 index 0000000..e95d1f4 --- /dev/null +++ b/bindings/java/android/tsip_register_event_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_register_event_type_t { + tsip_i_newreg, + tsip_i_register, + tsip_ao_register, + tsip_i_unregister, + tsip_ao_unregister; + + public final int swigValue() { + return swigValue; + } + + public static tsip_register_event_type_t swigToEnum(int swigValue) { + tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_register_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_register_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_register_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_register_event_type_t(tsip_register_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_request_type_t.java b/bindings/java/android/tsip_request_type_t.java new file mode 100644 index 0000000..a96be99 --- /dev/null +++ b/bindings/java/android/tsip_request_type_t.java @@ -0,0 +1,65 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_request_type_t { + tsip_NONE(0), + tsip_ACK, + tsip_BYE, + tsip_CANCEL, + tsip_INVITE, + tsip_OPTIONS, + tsip_REGISTER, + tsip_SUBSCRIBE, + tsip_NOTIFY, + tsip_REFER, + tsip_INFO, + tsip_UPDATE, + tsip_MESSAGE, + tsip_PUBLISH, + tsip_PRACK; + + public final int swigValue() { + return swigValue; + } + + public static tsip_request_type_t swigToEnum(int swigValue) { + tsip_request_type_t[] swigValues = tsip_request_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_request_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_request_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_request_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_request_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_request_type_t(tsip_request_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_stack_mode_t.java b/bindings/java/android/tsip_stack_mode_t.java new file mode 100644 index 0000000..5dcec38 --- /dev/null +++ b/bindings/java/android/tsip_stack_mode_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_stack_mode_t { + tsip_stack_mode_ua, + tsip_stack_mode_p2p, + tsip_stack_mode_mediaproxy, + tsip_stack_mode_mcu; + + public final int swigValue() { + return swigValue; + } + + public static tsip_stack_mode_t swigToEnum(int swigValue) { + tsip_stack_mode_t[] swigValues = tsip_stack_mode_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_stack_mode_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_stack_mode_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_stack_mode_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_stack_mode_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_stack_mode_t(tsip_stack_mode_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/tsip_subscribe_event_type_t.java b/bindings/java/android/tsip_subscribe_event_type_t.java new file mode 100644 index 0000000..03cab19 --- /dev/null +++ b/bindings/java/android/tsip_subscribe_event_type_t.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_subscribe_event_type_t { + tsip_i_subscribe, + tsip_ao_subscribe, + tsip_i_unsubscribe, + tsip_ao_unsubscribe, + tsip_i_notify, + tsip_ao_notify; + + public final int swigValue() { + return swigValue; + } + + public static tsip_subscribe_event_type_t swigToEnum(int swigValue) { + tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_subscribe_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_subscribe_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_subscribe_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_subscribe_event_type_t(tsip_subscribe_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/twrap_media_type_t.java b/bindings/java/android/twrap_media_type_t.java new file mode 100644 index 0000000..25924a7 --- /dev/null +++ b/bindings/java/android/twrap_media_type_t.java @@ -0,0 +1,60 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +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_bfcp(0x10), + twrap_media_bfcp_audio(0x30), + twrap_media_bfcp_video(0x50), + twrap_media_audiovideo(0x03), + twrap_media_audio_video(twrap_media_audiovideo); + + public final int swigValue() { + return swigValue; + } + + public static twrap_media_type_t swigToEnum(int swigValue) { + twrap_media_type_t[] swigValues = twrap_media_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_media_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_media_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_media_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_media_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_media_type_t(twrap_media_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/twrap_proxy_plugin_type_t.java b/bindings/java/android/twrap_proxy_plugin_type_t.java new file mode 100644 index 0000000..eb8eb08 --- /dev/null +++ b/bindings/java/android/twrap_proxy_plugin_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum twrap_proxy_plugin_type_t { + twrap_proxy_plugin_audio_producer, + twrap_proxy_plugin_video_producer, + twrap_proxy_plugin_audio_consumer, + twrap_proxy_plugin_video_consumer; + + public final int swigValue() { + return swigValue; + } + + public static twrap_proxy_plugin_type_t swigToEnum(int swigValue) { + twrap_proxy_plugin_type_t[] swigValues = twrap_proxy_plugin_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_proxy_plugin_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_proxy_plugin_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_proxy_plugin_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_proxy_plugin_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_proxy_plugin_type_t(twrap_proxy_plugin_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/twrap_rpmessage_type_t.java b/bindings/java/android/twrap_rpmessage_type_t.java new file mode 100644 index 0000000..9e879b1 --- /dev/null +++ b/bindings/java/android/twrap_rpmessage_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum twrap_rpmessage_type_t { + twrap_rpmessage_type_sms_none, + twrap_rpmessage_type_sms_submit, + twrap_rpmessage_type_sms_deliver, + twrap_rpmessage_type_sms_ack, + twrap_rpmessage_type_sms_error; + + public final int swigValue() { + return swigValue; + } + + public static twrap_rpmessage_type_t swigToEnum(int swigValue) { + twrap_rpmessage_type_t[] swigValues = twrap_rpmessage_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_rpmessage_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_rpmessage_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_rpmessage_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_rpmessage_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_rpmessage_type_t(twrap_rpmessage_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/android/twrap_sms_type_t.java b/bindings/java/android/twrap_sms_type_t.java new file mode 100644 index 0000000..8d5a910 --- /dev/null +++ b/bindings/java/android/twrap_sms_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum twrap_sms_type_t { + twrap_sms_type_none, + twrap_sms_type_rpdata, + twrap_sms_type_smma, + twrap_sms_type_ack, + twrap_sms_type_error; + + public final int swigValue() { + return swigValue; + } + + public static twrap_sms_type_t swigToEnum(int swigValue) { + twrap_sms_type_t[] swigValues = twrap_sms_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_sms_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_sms_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_sms_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_sms_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_sms_type_t(twrap_sms_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/java.i b/bindings/java/java.i new file mode 100644 index 0000000..da617d7 --- /dev/null +++ b/bindings/java/java.i @@ -0,0 +1,93 @@ +/* File : java.i +* http://www.swig.org/Doc1.3/Java.html +*/ + +// http://www.swig.org/Doc1.3/Java.html#enumerations +%include "enums.swg" +%javaconst(1); + + +//================== Mapping void* (Java to C) as ByteBuffer +%typemap(jni) void * "jbyteArray" +%typemap(jtype) void * "java.nio.ByteBuffer" +%typemap(jstype) void * "java.nio.ByteBuffer" +%typemap(javain) void * "$javainput" +%typemap(javaout) void * { return $jnicall; } + +// (From Java to C) +%typemap(in) void * %{ + $1 = jenv->GetDirectBufferAddress($input); +%} + +// (From C to Java) +//%typemap(out) void * %{ +// $result = $1; +//%} +%typemap(javadirectorin) void * "$jniinput" +//================== + + +%typemap(javacode) SipMessage %{ + public byte[] getSipContent() { + final int clen = (int)this.getSipContentLength(); + if(clen>0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen); + final int read = (int)this.getSipContent(buffer, clen); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } +%} + +%typemap(javacode) SipSession %{ + protected java.nio.ByteBuffer getByteBuffer(byte[] bytes) { + if(bytes != null){ + final java.nio.ByteBuffer byteBuffer = java.nio.ByteBuffer.allocateDirect(bytes.length); + byteBuffer.put(bytes); + return byteBuffer; + } + return null; + } +%} + +%typemap(javacode) PublicationSession %{ + public boolean Publish(byte[] bytes) { + if(bytes != null){ + final java.nio.ByteBuffer byteBuffer = this.getByteBuffer(bytes); + return this.publish(byteBuffer, bytes.length); + } + return false; + } +%} + +%typemap(javacode) XcapMessage %{ + public byte[] getXcapContent() { + final int clen = (int)this.getXcapContentLength(); + if(clen>0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(clen); + final int read = (int)this.getXcapContent(buffer, clen); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } +%} + +%typemap(javacode) T140CallbackData %{ + public byte[] getData() { + final int size = (int)this.getSize(); + if(size > 0){ + final java.nio.ByteBuffer buffer = java.nio.ByteBuffer.allocateDirect(size); + final int read = (int)this.getData(buffer, size); + final byte[] bytes = new byte[read]; + buffer.get(bytes, 0, read); + return bytes; + } + return null; + } +%} + +%include ../_common/tinyWRAP.i \ No newline at end of file diff --git a/bindings/java/tdav_codec_id_t.java b/bindings/java/tdav_codec_id_t.java new file mode 100644 index 0000000..2556437 --- /dev/null +++ b/bindings/java/tdav_codec_id_t.java @@ -0,0 +1,83 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tdav_codec_id_t { + tdav_codec_id_none(0x00000000), + tdav_codec_id_amr_nb_oa(0x00000001 << 0), + tdav_codec_id_amr_nb_be(0x00000001 << 1), + tdav_codec_id_amr_wb_oa(0x00000001 << 2), + tdav_codec_id_amr_wb_be(0x00000001 << 3), + tdav_codec_id_gsm(0x00000001 << 4), + tdav_codec_id_pcma(0x00000001 << 5), + tdav_codec_id_pcmu(0x00000001 << 6), + tdav_codec_id_ilbc(0x00000001 << 7), + tdav_codec_id_speex_nb(0x00000001 << 8), + tdav_codec_id_speex_wb(0x00000001 << 9), + tdav_codec_id_speex_uwb(0x00000001 << 10), + tdav_codec_id_bv16(0x00000001 << 11), + tdav_codec_id_bv32(0x00000001 << 12), + tdav_codec_id_opus(0x00000001 << 13), + tdav_codec_id_g729ab(0x00000001 << 14), + tdav_codec_id_g722(0x00000001 << 15), + tdav_codec_id_h261(0x00010000 << 0), + tdav_codec_id_h263(0x00010000 << 1), + tdav_codec_id_h263p(0x00010000 << 2), + tdav_codec_id_h263pp(0x00010000 << 3), + tdav_codec_id_h264_bp(0x00010000 << 4), + tdav_codec_id_h264_mp(0x00010000 << 5), + tdav_codec_id_h264_hp(0x00010000 << 6), + tdav_codec_id_h264_bp10(tdav_codec_id_h264_bp), + tdav_codec_id_h264_bp20(tdav_codec_id_h264_bp), + tdav_codec_id_h264_bp30(tdav_codec_id_h264_bp), + 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_t140(0x00010000 << 14), + tdav_codec_id_red(0x00010000 << 15); + + public final int swigValue() { + return swigValue; + } + + public static tdav_codec_id_t swigToEnum(int swigValue) { + tdav_codec_id_t[] swigValues = tdav_codec_id_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tdav_codec_id_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tdav_codec_id_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tdav_codec_id_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tdav_codec_id_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tdav_codec_id_t(tdav_codec_id_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/thttp_event_type_t.java b/bindings/java/thttp_event_type_t.java new file mode 100644 index 0000000..022295b --- /dev/null +++ b/bindings/java/thttp_event_type_t.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum thttp_event_type_t { + thttp_event_dialog_started, + thttp_event_message, + thttp_event_auth_failed, + thttp_event_closed, + thttp_event_transport_error, + thttp_event_dialog_terminated; + + public final int swigValue() { + return swigValue; + } + + public static thttp_event_type_t swigToEnum(int swigValue) { + thttp_event_type_t[] swigValues = thttp_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (thttp_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + thttp_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private thttp_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private thttp_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private thttp_event_type_t(thttp_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tinyWRAP.java b/bindings/java/tinyWRAP.java new file mode 100644 index 0000000..1accccf --- /dev/null +++ b/bindings/java/tinyWRAP.java @@ -0,0 +1,12 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class tinyWRAP implements tinyWRAPConstants { +} diff --git a/bindings/java/tinyWRAP.sln b/bindings/java/tinyWRAP.sln new file mode 100644 index 0000000..60e29c8 --- /dev/null +++ b/bindings/java/tinyWRAP.sln @@ -0,0 +1,374 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyWRAP", "tinyWRAP.vcproj", "{6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyNET", "..\..\tinyNET\tinyNET.vcproj", "{7522A458-92F4-4259-B906-E84C2A65D9F1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyHTTP", "..\..\tinyHTTP\tinyHTTP.vcproj", "{B3E45009-C7C3-4090-837C-2D30C9058443}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIP", "..\..\tinySIP\tinySIP.vcproj", "{4CE20732-9978-4A88-B586-CFEFCB63E82D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySDP", "..\..\tinySDP\tinySDP.vcproj", "{E45DB518-6562-4033-80E8-60030F0B169F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMEDIA", "..\..\tinyMEDIA\tinyMEDIA.vcproj", "{52814B0D-7DCA-45B8-9A16-8B147040D619}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyIPSec", "..\..\tinyIPSec\tinyIPSec.vcproj", "{002FF064-588F-402E-A096-C8D033F49F40}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySAK", "..\..\tinySAK\tinySAK.vcproj", "{6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDAV", "..\..\tinyDAV\tinyDAV.vcproj", "{8E2F0B2E-2596-4010-BF4A-2F688975B5C1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDSHOW", "..\..\tinyDSHOW\tinyDSHOW.vcproj", "{0CCC02F1-4233-424F-AD5E-A021456E6E8D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMSRP", "..\..\tinyMSRP\tinyMSRP.vcproj", "{AA46AF16-9678-4054-8E48-98DC21ECEC82}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIGCOMP", "..\..\tinySIGCOMP\tinySIGCOMP.vcproj", "{76261DC8-25B3-43F4-9FB5-112C4AC0880E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySMS", "..\..\tinySMS\tinySMS.vcproj", "{9A3A5AF3-2333-4477-B880-7F901F9D8972}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyXCAP", "..\..\tinyXCAP\tinyXCAP.vcproj", "{570CF33D-E65F-448F-8AC2-F9AE2F23152F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyRTP", "..\..\tinyRTP\tinyRTP.vcproj", "{99B7D02F-8C70-4B45-AF3C-92313C3CEE15}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + Static_Debug|Any CPU = Static_Debug|Any CPU + Static_Debug|Mixed Platforms = Static_Debug|Mixed Platforms + Static_Debug|Win32 = Static_Debug|Win32 + Static_Release|Any CPU = Static_Release|Any CPU + Static_Release|Mixed Platforms = Static_Release|Mixed Platforms + Static_Release|Win32 = Static_Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Win32.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Win32.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Any CPU.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Mixed Platforms.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Win32.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Win32.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Debug|Win32.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Win32.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Static_Release|Win32.Build.0 = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.ActiveCfg = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.Build.0 = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Debug|Win32.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Win32.ActiveCfg = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Static_Release|Win32.Build.0 = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.ActiveCfg = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.Build.0 = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Debug|Win32.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Win32.ActiveCfg = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Static_Release|Win32.Build.0 = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Win32.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Win32.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Win32.ActiveCfg = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Win32.Build.0 = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Debug|Win32.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Win32.ActiveCfg = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Static_Release|Win32.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Win32.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Win32.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Any CPU.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Mixed Platforms.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Win32.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Win32.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Debug|Win32.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Win32.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Static_Release|Win32.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Win32.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Win32.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Any CPU.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Mixed Platforms.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Win32.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Win32.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Debug|Win32.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Win32.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Static_Release|Win32.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Win32.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Win32.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Any CPU.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Mixed Platforms.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Win32.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Win32.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Debug|Win32.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Win32.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Static_Release|Win32.Build.0 = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.ActiveCfg = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.Build.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.ActiveCfg = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.Build.0 = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Any CPU.ActiveCfg = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Mixed Platforms.ActiveCfg = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Mixed Platforms.Build.0 = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Mixed Platforms.Deploy.0 = Static_Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Win32.ActiveCfg = Static_Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Debug|Win32.Build.0 = Static_Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Any CPU.ActiveCfg = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Mixed Platforms.ActiveCfg = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Mixed Platforms.Build.0 = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Mixed Platforms.Deploy.0 = Static_Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Win32.ActiveCfg = Static_Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Static_Release|Win32.Build.0 = Static_Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Win32.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Win32.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Any CPU.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Mixed Platforms.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Win32.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Win32.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Debug|Win32.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Win32.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Static_Release|Win32.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Win32.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Win32.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Any CPU.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Mixed Platforms.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Win32.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Win32.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Debug|Win32.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Win32.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Static_Release|Win32.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Win32.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Debug|Win32.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Any CPU.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Mixed Platforms.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Win32.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Release|Win32.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Debug|Win32.Build.0 = Debug|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Win32.ActiveCfg = Release|Win32 + {AA46AF16-9678-4054-8E48-98DC21ECEC82}.Static_Release|Win32.Build.0 = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Win32.ActiveCfg = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Win32.Build.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Win32.ActiveCfg = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Win32.Build.0 = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Debug|Win32.Build.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Win32.ActiveCfg = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Static_Release|Win32.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Any CPU.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Mixed Platforms.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Debug|Win32.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Win32.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Static_Release|Win32.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Win32.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Debug|Win32.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Any CPU.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Mixed Platforms.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Win32.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Release|Win32.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Debug|Win32.Build.0 = Debug|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Win32.ActiveCfg = Release|Win32 + {570CF33D-E65F-448F-8AC2-F9AE2F23152F}.Static_Release|Win32.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Win32.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Win32.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Any CPU.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Mixed Platforms.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Win32.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Win32.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Any CPU.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Mixed Platforms.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Win32.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Debug|Win32.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Any CPU.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Mixed Platforms.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Mixed Platforms.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Win32.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Static_Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/bindings/java/tinyWRAP.vcproj b/bindings/java/tinyWRAP.vcproj new file mode 100644 index 0000000..15bbced --- /dev/null +++ b/bindings/java/tinyWRAP.vcproj @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bindings/java/tinyWRAPConstants.java b/bindings/java/tinyWRAPConstants.java new file mode 100644 index 0000000..5d5f094 --- /dev/null +++ b/bindings/java/tinyWRAPConstants.java @@ -0,0 +1,30 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public interface tinyWRAPConstants { + public final static int tsip_event_code_dialog_transport_error = 702; + public final static int tsip_event_code_dialog_global_error = 703; + public final static int tsip_event_code_dialog_message_error = 704; + public final static int tsip_event_code_dialog_request_incoming = 800; + public final static int tsip_event_code_dialog_request_outgoing = 802; + public final static int tsip_event_code_dialog_request_cancelled = 803; + public final static int tsip_event_code_dialog_request_sent = 804; + public final static int tsip_event_code_dialog_connecting = 900; + public final static int tsip_event_code_dialog_connected = 901; + public final static int tsip_event_code_dialog_terminating = 902; + public final static int tsip_event_code_dialog_terminated = 903; + public final static int tsip_event_code_stack_starting = 950; + public final static int tsip_event_code_stack_started = 951; + public final static int tsip_event_code_stack_stopping = 952; + public final static int tsip_event_code_stack_stopped = 953; + public final static int tsip_event_code_stack_failed_to_start = 954; + public final static int tsip_event_code_stack_failed_to_stop = 955; + public final static int tsip_event_code_stack_disconnected = 956; +} diff --git a/bindings/java/tinyWRAPJNI.java b/bindings/java/tinyWRAPJNI.java new file mode 100644 index 0000000..e7e86fc --- /dev/null +++ b/bindings/java/tinyWRAPJNI.java @@ -0,0 +1,791 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public class tinyWRAPJNI { + public final static native long new_DDebugCallback(); + public final static native void delete_DDebugCallback(long jarg1); + public final static native int DDebugCallback_OnDebugInfo(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugInfoSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugWarn(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugWarnSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugError(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugErrorSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugFatal(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native int DDebugCallback_OnDebugFatalSwigExplicitDDebugCallback(long jarg1, DDebugCallback jarg1_, String jarg2); + public final static native void DDebugCallback_director_connect(DDebugCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void DDebugCallback_change_ownership(DDebugCallback obj, long cptr, boolean take_or_release); + public final static native long new_AudioResampler(long jarg1, long jarg2, long jarg3, long jarg4, long jarg5); + public final static native void delete_AudioResampler(long jarg1); + public final static native boolean AudioResampler_isValid(long jarg1, AudioResampler jarg1_); + public final static native long AudioResampler_getOutputRequiredSizeInShort(long jarg1, AudioResampler jarg1_); + public final static native long AudioResampler_getInputRequiredSizeInShort(long jarg1, AudioResampler jarg1_); + public final static native long AudioResampler_process(long jarg1, AudioResampler jarg1_, java.nio.ByteBuffer jarg2, long jarg3, java.nio.ByteBuffer jarg4, long jarg5); + public final static native long new_ActionConfig(); + public final static native void delete_ActionConfig(long jarg1); + public final static native boolean ActionConfig_addHeader(long jarg1, ActionConfig jarg1_, String jarg2, String jarg3); + public final static native boolean ActionConfig_addPayload(long jarg1, ActionConfig jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean ActionConfig_setActiveMedia(long jarg1, ActionConfig jarg1_, int jarg2); + public final static native long ActionConfig_setResponseLine(long jarg1, ActionConfig jarg1_, short jarg2, String jarg3); + public final static native long ActionConfig_setMediaString(long jarg1, ActionConfig jarg1_, int jarg2, String jarg3, String jarg4); + public final static native long ActionConfig_setMediaInt(long jarg1, ActionConfig jarg1_, int jarg2, String jarg3, int jarg4); + public final static native void delete_Codec(long jarg1); + public final static native int Codec_getMediaType(long jarg1, Codec jarg1_); + public final static native String Codec_getName(long jarg1, Codec jarg1_); + public final static native String Codec_getDescription(long jarg1, Codec jarg1_); + public final static native String Codec_getNegFormat(long jarg1, Codec jarg1_); + public final static native int Codec_getAudioSamplingRate(long jarg1, Codec jarg1_); + public final static native int Codec_getAudioChannels(long jarg1, Codec jarg1_); + public final static native int Codec_getAudioPTime(long jarg1, Codec jarg1_); + public final static native void delete_MediaSessionMgr(long jarg1); + public final static native boolean MediaSessionMgr_sessionSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + public final static native int MediaSessionMgr_sessionGetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3); + public final static native boolean MediaSessionMgr_consumerSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + public final static native boolean MediaSessionMgr_consumerSetInt64(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, long jarg4); + public final static native boolean MediaSessionMgr_producerSetInt32(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, int jarg4); + public final static native boolean MediaSessionMgr_producerSetInt64(long jarg1, MediaSessionMgr jarg1_, int jarg2, String jarg3, long jarg4); + public final static native long MediaSessionMgr_producerGetCodec(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_findProxyPluginConsumer(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_findProxyPluginProducer(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native long MediaSessionMgr_registerAudioPluginFromFile(String jarg1); + public final static native java.math.BigInteger MediaSessionMgr_getSessionId(long jarg1, MediaSessionMgr jarg1_, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetProfile(int jarg1); + public final static native int MediaSessionMgr_defaultsGetProfile(); + public final static native boolean MediaSessionMgr_defaultsSetBandwidthLevel(int jarg1); + public final static native int MediaSessionMgr_defaultsGetBandwidthLevel(); + public final static native boolean MediaSessionMgr_defaultsSetCongestionCtrlEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetVideoMotionRank(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetVideoFps(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetPrefVideoSize(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetJbMargin(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetJbMaxLateRate(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetEchoTail(long jarg1); + public final static native long MediaSessionMgr_defaultsGetEchoTail(); + public final static native boolean MediaSessionMgr_defaultsSetEchoSkew(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetEchoSuppEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetEchoSuppEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetAgcEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetAgcEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetAgcLevel(float jarg1); + public final static native float MediaSessionMgr_defaultsGetAgcLevel(); + public final static native boolean MediaSessionMgr_defaultsSetVadEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetGetVadEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetNoiseSuppEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetNoiseSuppEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetNoiseSuppLevel(int jarg1); + public final static native int MediaSessionMgr_defaultsGetNoiseSuppLevel(); + public final static native boolean MediaSessionMgr_defaultsSet100relEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGet100relEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetScreenSize(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetAudioGain(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetAudioPtime(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetAudioChannels(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetRtpPortRange(int jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetRtpSymetricEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetMediaType(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetVolume(int jarg1); + public final static native int MediaSessionMgr_defaultsGetVolume(); + public final static native boolean MediaSessionMgr_defaultsSetInviteSessionTimers(int jarg1, String jarg2); + public final static native boolean MediaSessionMgr_defaultsSetSRtpMode(int jarg1); + public final static native int MediaSessionMgr_defaultsGetSRtpMode(); + public final static native boolean MediaSessionMgr_defaultsSetSRtpType(int jarg1); + public final static native int MediaSessionMgr_defaultsGetSRtpType(); + public final static native boolean MediaSessionMgr_defaultsSetRtcpEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetRtcpEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetRtcpMuxEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetRtcpMuxEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetStunEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetIceStunEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetIceTurnEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetStunServer(String jarg1, int jarg2); + public final static native boolean MediaSessionMgr_defaultsSetStunCred(String jarg1, String jarg2); + public final static native boolean MediaSessionMgr_defaultsSetIceEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsSetByPassEncoding(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetByPassEncoding(); + public final static native boolean MediaSessionMgr_defaultsSetByPassDecoding(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetByPassDecoding(); + public final static native boolean MediaSessionMgr_defaultsSetVideoJbEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetVideoJbEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(boolean jarg1); + public final static native boolean MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(); + public final static native boolean MediaSessionMgr_defaultsSetRtpBuffSize(long jarg1); + public final static native long MediaSessionMgr_defaultsGetRtpBuffSize(); + public final static native boolean MediaSessionMgr_defaultsSetAvpfTail(long jarg1, long jarg2); + public final static native boolean MediaSessionMgr_defaultsSetAvpfMode(int jarg1); + public final static native boolean MediaSessionMgr_defaultsSetOpusMaxCaptureRate(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(long jarg1); + public final static native boolean MediaSessionMgr_defaultsSetMaxFds(int jarg1); + public final static native void delete_MediaContent(long jarg1); + public final static native String MediaContent_getType(long jarg1, MediaContent jarg1_); + public final static native long MediaContent_getDataLength(long jarg1, MediaContent jarg1_); + public final static native long MediaContent_getData(long jarg1, MediaContent jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long MediaContent_parse__SWIG_0(java.nio.ByteBuffer jarg1, long jarg2, String jarg3); + public final static native long MediaContent_parse__SWIG_1(java.nio.ByteBuffer jarg1, long jarg2); + public final static native long MediaContent_getPayloadLength(long jarg1, MediaContent jarg1_); + public final static native long MediaContent_getPayload(long jarg1, MediaContent jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void delete_MediaContentCPIM(long jarg1); + public final static native long MediaContentCPIM_getPayloadLength(long jarg1, MediaContentCPIM jarg1_); + public final static native long MediaContentCPIM_getPayload(long jarg1, MediaContentCPIM jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native String MediaContentCPIM_getHeaderValue(long jarg1, MediaContentCPIM jarg1_, String jarg2); + public final static native long new_SipUri__SWIG_0(String jarg1, String jarg2); + public final static native long new_SipUri__SWIG_1(String jarg1); + public final static native void delete_SipUri(long jarg1); + public final static native boolean SipUri_isValid__SWIG_0(String jarg1); + public final static native boolean SipUri_isValid__SWIG_1(long jarg1, SipUri jarg1_); + public final static native String SipUri_getScheme(long jarg1, SipUri jarg1_); + public final static native String SipUri_getHost(long jarg1, SipUri jarg1_); + public final static native int SipUri_getPort(long jarg1, SipUri jarg1_); + public final static native String SipUri_getUserName(long jarg1, SipUri jarg1_); + public final static native String SipUri_getPassword(long jarg1, SipUri jarg1_); + public final static native String SipUri_getDisplayName(long jarg1, SipUri jarg1_); + public final static native String SipUri_getParamValue(long jarg1, SipUri jarg1_, String jarg2); + public final static native void SipUri_setDisplayName(long jarg1, SipUri jarg1_, String jarg2); + public final static native long new_SdpMessage(); + public final static native void delete_SdpMessage(long jarg1); + public final static native String SdpMessage_getSdpHeaderValue__SWIG_0(long jarg1, SdpMessage jarg1_, String jarg2, char jarg3, long jarg4); + public final static native String SdpMessage_getSdpHeaderValue__SWIG_1(long jarg1, SdpMessage jarg1_, String jarg2, char jarg3); + public final static native String SdpMessage_getSdpHeaderAValue(long jarg1, SdpMessage jarg1_, String jarg2, String jarg3); + public final static native long new_SipMessage(); + public final static native void delete_SipMessage(long jarg1); + public final static native boolean SipMessage_isResponse(long jarg1, SipMessage jarg1_); + public final static native int SipMessage_getRequestType(long jarg1, SipMessage jarg1_); + public final static native short SipMessage_getResponseCode(long jarg1, SipMessage jarg1_); + public final static native String SipMessage_getResponsePhrase(long jarg1, SipMessage jarg1_); + public final static native String SipMessage_getSipHeaderValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, long jarg3); + public final static native String SipMessage_getSipHeaderValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2); + public final static native String SipMessage_getSipHeaderParamValue__SWIG_0(long jarg1, SipMessage jarg1_, String jarg2, String jarg3, long jarg4); + public final static native String SipMessage_getSipHeaderParamValue__SWIG_1(long jarg1, SipMessage jarg1_, String jarg2, String jarg3); + public final static native long SipMessage_getSipContentLength(long jarg1, SipMessage jarg1_); + public final static native long SipMessage_getSipContent(long jarg1, SipMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long SipMessage_getSdpMessage(long jarg1, SipMessage jarg1_); + public final static native void delete_SipEvent(long jarg1); + public final static native short SipEvent_getCode(long jarg1, SipEvent jarg1_); + public final static native String SipEvent_getPhrase(long jarg1, SipEvent jarg1_); + public final static native long SipEvent_getBaseSession(long jarg1, SipEvent jarg1_); + public final static native long SipEvent_getSipMessage(long jarg1, SipEvent jarg1_); + public final static native void delete_DialogEvent(long jarg1); + public final static native void delete_StackEvent(long jarg1); + public final static native void delete_InviteEvent(long jarg1); + public final static native int InviteEvent_getType(long jarg1, InviteEvent jarg1_); + public final static native int InviteEvent_getMediaType(long jarg1, InviteEvent jarg1_); + public final static native long InviteEvent_getSession(long jarg1, InviteEvent jarg1_); + public final static native long InviteEvent_takeCallSessionOwnership(long jarg1, InviteEvent jarg1_); + public final static native long InviteEvent_takeMsrpSessionOwnership(long jarg1, InviteEvent jarg1_); + public final static native void delete_MessagingEvent(long jarg1); + public final static native int MessagingEvent_getType(long jarg1, MessagingEvent jarg1_); + public final static native long MessagingEvent_getSession(long jarg1, MessagingEvent jarg1_); + public final static native long MessagingEvent_takeSessionOwnership(long jarg1, MessagingEvent jarg1_); + public final static native void delete_InfoEvent(long jarg1); + public final static native int InfoEvent_getType(long jarg1, InfoEvent jarg1_); + public final static native long InfoEvent_getSession(long jarg1, InfoEvent jarg1_); + public final static native long InfoEvent_takeSessionOwnership(long jarg1, InfoEvent jarg1_); + public final static native void delete_OptionsEvent(long jarg1); + public final static native int OptionsEvent_getType(long jarg1, OptionsEvent jarg1_); + public final static native long OptionsEvent_getSession(long jarg1, OptionsEvent jarg1_); + public final static native long OptionsEvent_takeSessionOwnership(long jarg1, OptionsEvent jarg1_); + public final static native void delete_PublicationEvent(long jarg1); + public final static native int PublicationEvent_getType(long jarg1, PublicationEvent jarg1_); + public final static native long PublicationEvent_getSession(long jarg1, PublicationEvent jarg1_); + public final static native long PublicationEvent_takeSessionOwnership(long jarg1, PublicationEvent jarg1_); + public final static native void delete_RegistrationEvent(long jarg1); + public final static native int RegistrationEvent_getType(long jarg1, RegistrationEvent jarg1_); + public final static native long RegistrationEvent_getSession(long jarg1, RegistrationEvent jarg1_); + public final static native long RegistrationEvent_takeSessionOwnership(long jarg1, RegistrationEvent jarg1_); + public final static native void delete_SubscriptionEvent(long jarg1); + public final static native int SubscriptionEvent_getType(long jarg1, SubscriptionEvent jarg1_); + public final static native long SubscriptionEvent_getSession(long jarg1, SubscriptionEvent jarg1_); + public final static native long SubscriptionEvent_takeSessionOwnership(long jarg1, SubscriptionEvent jarg1_); + public final static native void delete_T140CallbackData(long jarg1); + public final static native int T140CallbackData_getType(long jarg1, T140CallbackData jarg1_); + public final static native long T140CallbackData_getSize(long jarg1, T140CallbackData jarg1_); + public final static native long T140CallbackData_getData(long jarg1, T140CallbackData jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long new_T140Callback(); + public final static native void delete_T140Callback(long jarg1); + public final static native int T140Callback_ondata(long jarg1, T140Callback jarg1_, long jarg2, T140CallbackData jarg2_); + public final static native int T140Callback_ondataSwigExplicitT140Callback(long jarg1, T140Callback jarg1_, long jarg2, T140CallbackData jarg2_); + public final static native void T140Callback_director_connect(T140Callback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void T140Callback_change_ownership(T140Callback obj, long cptr, boolean take_or_release); + public final static native long new_SipSession(long jarg1, SipStack jarg1_); + public final static native void delete_SipSession(long jarg1); + public final static native boolean SipSession_haveOwnership(long jarg1, SipSession jarg1_); + public final static native boolean SipSession_addHeader(long jarg1, SipSession jarg1_, String jarg2, String jarg3); + public final static native boolean SipSession_removeHeader(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_addCaps__SWIG_0(long jarg1, SipSession jarg1_, String jarg2, String jarg3); + public final static native boolean SipSession_addCaps__SWIG_1(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_removeCaps(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setExpires(long jarg1, SipSession jarg1_, long jarg2); + public final static native boolean SipSession_setFromUri__SWIG_0(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setFromUri__SWIG_1(long jarg1, SipSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean SipSession_setToUri__SWIG_0(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_setToUri__SWIG_1(long jarg1, SipSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean SipSession_setSilentHangup(long jarg1, SipSession jarg1_, boolean jarg2); + public final static native boolean SipSession_addSigCompCompartment(long jarg1, SipSession jarg1_, String jarg2); + public final static native boolean SipSession_removeSigCompCompartment(long jarg1, SipSession jarg1_); + public final static native long SipSession_getId(long jarg1, SipSession jarg1_); + public final static native long new_InviteSession(long jarg1, SipStack jarg1_); + public final static native void delete_InviteSession(long jarg1); + public final static native boolean InviteSession_accept__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InviteSession_accept__SWIG_1(long jarg1, InviteSession jarg1_); + public final static native boolean InviteSession_hangup__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InviteSession_hangup__SWIG_1(long jarg1, InviteSession jarg1_); + public final static native boolean InviteSession_reject__SWIG_0(long jarg1, InviteSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InviteSession_reject__SWIG_1(long jarg1, InviteSession jarg1_); + public final static native boolean InviteSession_sendInfo__SWIG_0(long jarg1, InviteSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean InviteSession_sendInfo__SWIG_1(long jarg1, InviteSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long InviteSession_getMediaMgr(long jarg1, InviteSession jarg1_); + public final static native long new_CallSession(long jarg1, SipStack jarg1_); + public final static native void delete_CallSession(long jarg1); + public final static native boolean CallSession_callAudio__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudio__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_callAudio__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudio__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean CallSession_callAudioVideo__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudioVideo__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_callAudioVideo__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callAudioVideo__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean CallSession_callVideo__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callVideo__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_callVideo__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_callVideo__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean CallSession_call__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, int jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean CallSession_call__SWIG_1(long jarg1, CallSession jarg1_, String jarg2, int jarg3); + public final static native boolean CallSession_call__SWIG_2(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, int jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean CallSession_call__SWIG_3(long jarg1, CallSession jarg1_, long jarg2, SipUri jarg2_, int jarg3); + public final static native boolean CallSession_setSessionTimer(long jarg1, CallSession jarg1_, long jarg2, String jarg3); + public final static native boolean CallSession_set100rel(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setRtcp(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setRtcpMux(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setSRtpMode(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setAvpfMode(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setICE(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setICEStun(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setICETurn(long jarg1, CallSession jarg1_, boolean jarg2); + public final static native boolean CallSession_setSTUNServer(long jarg1, CallSession jarg1_, String jarg2, int jarg3); + public final static native boolean CallSession_setSTUNCred(long jarg1, CallSession jarg1_, String jarg2, String jarg3); + public final static native boolean CallSession_setVideoFps(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setVideoBandwidthUploadMax(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setVideoBandwidthDownloadMax(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setVideoPrefSize(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setQoS(long jarg1, CallSession jarg1_, int jarg2, int jarg3); + public final static native boolean CallSession_hold__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_hold__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_resume__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_resume__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_transfer__SWIG_0(long jarg1, CallSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean CallSession_transfer__SWIG_1(long jarg1, CallSession jarg1_, String jarg2); + public final static native boolean CallSession_acceptTransfer__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_acceptTransfer__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_rejectTransfer__SWIG_0(long jarg1, CallSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean CallSession_rejectTransfer__SWIG_1(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_sendDTMF(long jarg1, CallSession jarg1_, int jarg2); + public final static native long CallSession_getSessionTransferId(long jarg1, CallSession jarg1_); + public final static native boolean CallSession_sendT140Data__SWIG_0(long jarg1, CallSession jarg1_, int jarg2, java.nio.ByteBuffer jarg3, long jarg4); + public final static native boolean CallSession_sendT140Data__SWIG_1(long jarg1, CallSession jarg1_, int jarg2, java.nio.ByteBuffer jarg3); + public final static native boolean CallSession_sendT140Data__SWIG_2(long jarg1, CallSession jarg1_, int jarg2); + public final static native boolean CallSession_setT140Callback(long jarg1, CallSession jarg1_, long jarg2, T140Callback jarg2_); + public final static native long new_MsrpSession(long jarg1, SipStack jarg1_, long jarg2, MsrpCallback jarg2_); + public final static native void delete_MsrpSession(long jarg1); + public final static native boolean MsrpSession_setCallback(long jarg1, MsrpSession jarg1_, long jarg2, MsrpCallback jarg2_); + public final static native boolean MsrpSession_callMsrp__SWIG_0(long jarg1, MsrpSession jarg1_, String jarg2, long jarg3, ActionConfig jarg3_); + public final static native boolean MsrpSession_callMsrp__SWIG_1(long jarg1, MsrpSession jarg1_, String jarg2); + public final static native boolean MsrpSession_callMsrp__SWIG_2(long jarg1, MsrpSession jarg1_, long jarg2, SipUri jarg2_, long jarg3, ActionConfig jarg3_); + public final static native boolean MsrpSession_callMsrp__SWIG_3(long jarg1, MsrpSession jarg1_, long jarg2, SipUri jarg2_); + public final static native boolean MsrpSession_sendMessage__SWIG_0(long jarg1, MsrpSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean MsrpSession_sendMessage__SWIG_1(long jarg1, MsrpSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean MsrpSession_sendFile__SWIG_0(long jarg1, MsrpSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean MsrpSession_sendFile__SWIG_1(long jarg1, MsrpSession jarg1_); + public final static native long new_MessagingSession(long jarg1, SipStack jarg1_); + public final static native void delete_MessagingSession(long jarg1); + public final static native boolean MessagingSession_send__SWIG_0(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean MessagingSession_send__SWIG_1(long jarg1, MessagingSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean MessagingSession_accept__SWIG_0(long jarg1, MessagingSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean MessagingSession_accept__SWIG_1(long jarg1, MessagingSession jarg1_); + public final static native boolean MessagingSession_reject__SWIG_0(long jarg1, MessagingSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean MessagingSession_reject__SWIG_1(long jarg1, MessagingSession jarg1_); + public final static native long new_InfoSession(long jarg1, SipStack jarg1_); + public final static native void delete_InfoSession(long jarg1); + public final static native boolean InfoSession_send__SWIG_0(long jarg1, InfoSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean InfoSession_send__SWIG_1(long jarg1, InfoSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean InfoSession_accept__SWIG_0(long jarg1, InfoSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InfoSession_accept__SWIG_1(long jarg1, InfoSession jarg1_); + public final static native boolean InfoSession_reject__SWIG_0(long jarg1, InfoSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean InfoSession_reject__SWIG_1(long jarg1, InfoSession jarg1_); + public final static native long new_OptionsSession(long jarg1, SipStack jarg1_); + public final static native void delete_OptionsSession(long jarg1); + public final static native boolean OptionsSession_send__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean OptionsSession_send__SWIG_1(long jarg1, OptionsSession jarg1_); + public final static native boolean OptionsSession_accept__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean OptionsSession_accept__SWIG_1(long jarg1, OptionsSession jarg1_); + public final static native boolean OptionsSession_reject__SWIG_0(long jarg1, OptionsSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean OptionsSession_reject__SWIG_1(long jarg1, OptionsSession jarg1_); + public final static native long new_PublicationSession(long jarg1, SipStack jarg1_); + public final static native void delete_PublicationSession(long jarg1); + public final static native boolean PublicationSession_publish__SWIG_0(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3, long jarg4, ActionConfig jarg4_); + public final static native boolean PublicationSession_publish__SWIG_1(long jarg1, PublicationSession jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean PublicationSession_unPublish__SWIG_0(long jarg1, PublicationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean PublicationSession_unPublish__SWIG_1(long jarg1, PublicationSession jarg1_); + public final static native long new_RegistrationSession(long jarg1, SipStack jarg1_); + public final static native void delete_RegistrationSession(long jarg1); + public final static native boolean RegistrationSession_register___SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_register___SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_unRegister__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_unRegister__SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_accept__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_accept__SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native boolean RegistrationSession_reject__SWIG_0(long jarg1, RegistrationSession jarg1_, long jarg2, ActionConfig jarg2_); + public final static native boolean RegistrationSession_reject__SWIG_1(long jarg1, RegistrationSession jarg1_); + public final static native long new_SubscriptionSession(long jarg1, SipStack jarg1_); + public final static native void delete_SubscriptionSession(long jarg1); + public final static native boolean SubscriptionSession_subscribe(long jarg1, SubscriptionSession jarg1_); + public final static native boolean SubscriptionSession_unSubscribe(long jarg1, SubscriptionSession jarg1_); + public final static native void delete_ProxyPluginMgr(long jarg1); + public final static native long ProxyPluginMgr_createInstance(long jarg1, ProxyPluginMgrCallback jarg1_); + public final static native long ProxyPluginMgr_getInstance(); + public final static native long ProxyPluginMgr_findPlugin(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findAudioConsumer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findVideoConsumer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findAudioProducer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long ProxyPluginMgr_findVideoProducer(long jarg1, ProxyPluginMgr jarg1_, java.math.BigInteger jarg2); + public final static native long new_ProxyPluginMgrCallback(); + public final static native void delete_ProxyPluginMgrCallback(long jarg1); + public final static native int ProxyPluginMgrCallback_OnPluginCreated(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native int ProxyPluginMgrCallback_OnPluginCreatedSwigExplicitProxyPluginMgrCallback(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native int ProxyPluginMgrCallback_OnPluginDestroyed(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native int ProxyPluginMgrCallback_OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(long jarg1, ProxyPluginMgrCallback jarg1_, java.math.BigInteger jarg2, int jarg3); + public final static native void ProxyPluginMgrCallback_director_connect(ProxyPluginMgrCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyPluginMgrCallback_change_ownership(ProxyPluginMgrCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyPlugin(long jarg1); + public final static native int ProxyPlugin_getType(long jarg1, ProxyPlugin jarg1_); + public final static native java.math.BigInteger ProxyPlugin_getId(long jarg1, ProxyPlugin jarg1_); + public final static native long new_ProxyAudioConsumerCallback(); + public final static native void delete_ProxyAudioConsumerCallback(long jarg1); + public final static native int ProxyAudioConsumerCallback_prepare(long jarg1, ProxyAudioConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioConsumerCallback_prepareSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioConsumerCallback_start(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_startSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_pause(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_pauseSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_stop(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native int ProxyAudioConsumerCallback_stopSwigExplicitProxyAudioConsumerCallback(long jarg1, ProxyAudioConsumerCallback jarg1_); + public final static native void ProxyAudioConsumerCallback_director_connect(ProxyAudioConsumerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyAudioConsumerCallback_change_ownership(ProxyAudioConsumerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyAudioConsumer(long jarg1); + public final static native boolean ProxyAudioConsumer_setActualSndCardPlaybackParams(long jarg1, ProxyAudioConsumer jarg1_, int jarg2, int jarg3, int jarg4); + public final static native boolean ProxyAudioConsumer_queryForResampler(long jarg1, ProxyAudioConsumer jarg1_, int jarg2, int jarg3, int jarg4, int jarg5, int jarg6); + public final static native boolean ProxyAudioConsumer_setPullBuffer(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyAudioConsumer_pull__SWIG_0(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyAudioConsumer_pull__SWIG_1(long jarg1, ProxyAudioConsumer jarg1_, java.nio.ByteBuffer jarg2); + public final static native long ProxyAudioConsumer_pull__SWIG_2(long jarg1, ProxyAudioConsumer jarg1_); + public final static native boolean ProxyAudioConsumer_setGain(long jarg1, ProxyAudioConsumer jarg1_, long jarg2); + public final static native long ProxyAudioConsumer_getGain(long jarg1, ProxyAudioConsumer jarg1_); + public final static native boolean ProxyAudioConsumer_reset(long jarg1, ProxyAudioConsumer jarg1_); + public final static native void ProxyAudioConsumer_setCallback(long jarg1, ProxyAudioConsumer jarg1_, long jarg2, ProxyAudioConsumerCallback jarg2_); + public final static native java.math.BigInteger ProxyAudioConsumer_getMediaSessionId(long jarg1, ProxyAudioConsumer jarg1_); + public final static native boolean ProxyAudioConsumer_registerPlugin(); + public final static native long new_ProxyVideoConsumerCallback(); + public final static native void delete_ProxyVideoConsumerCallback(long jarg1); + public final static native int ProxyVideoConsumerCallback_prepare(long jarg1, ProxyVideoConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoConsumerCallback_prepareSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoConsumerCallback_consume(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, ProxyVideoFrame jarg2_); + public final static native int ProxyVideoConsumerCallback_consumeSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, ProxyVideoFrame jarg2_); + public final static native int ProxyVideoConsumerCallback_bufferCopied(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, long jarg3); + public final static native int ProxyVideoConsumerCallback_bufferCopiedSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_, long jarg2, long jarg3); + public final static native int ProxyVideoConsumerCallback_start(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_startSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_pause(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_pauseSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_stop(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native int ProxyVideoConsumerCallback_stopSwigExplicitProxyVideoConsumerCallback(long jarg1, ProxyVideoConsumerCallback jarg1_); + public final static native void ProxyVideoConsumerCallback_director_connect(ProxyVideoConsumerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyVideoConsumerCallback_change_ownership(ProxyVideoConsumerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyVideoConsumer(long jarg1); + public final static native boolean ProxyVideoConsumer_setDisplaySize(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, long jarg3); + public final static native long ProxyVideoConsumer_getDisplayWidth(long jarg1, ProxyVideoConsumer jarg1_); + public final static native long ProxyVideoConsumer_getDisplayHeight(long jarg1, ProxyVideoConsumer jarg1_); + public final static native long ProxyVideoConsumer_getDecodedWidth(long jarg1, ProxyVideoConsumer jarg1_); + public final static native long ProxyVideoConsumer_getDecodedHeight(long jarg1, ProxyVideoConsumer jarg1_); + public final static native void ProxyVideoConsumer_setCallback(long jarg1, ProxyVideoConsumer jarg1_, long jarg2, ProxyVideoConsumerCallback jarg2_); + public final static native boolean ProxyVideoConsumer_setAutoResizeDisplay(long jarg1, ProxyVideoConsumer jarg1_, boolean jarg2); + public final static native boolean ProxyVideoConsumer_getAutoResizeDisplay(long jarg1, ProxyVideoConsumer jarg1_); + public final static native boolean ProxyVideoConsumer_setConsumeBuffer(long jarg1, ProxyVideoConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyVideoConsumer_pull(long jarg1, ProxyVideoConsumer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native boolean ProxyVideoConsumer_reset(long jarg1, ProxyVideoConsumer jarg1_); + public final static native java.math.BigInteger ProxyVideoConsumer_getMediaSessionId(long jarg1, ProxyVideoConsumer jarg1_); + public final static native boolean ProxyVideoConsumer_registerPlugin(); + public final static native void ProxyVideoConsumer_setDefaultChroma(int jarg1); + public final static native void ProxyVideoConsumer_setDefaultAutoResizeDisplay(boolean jarg1); + public final static native void delete_ProxyVideoFrame(long jarg1); + public final static native long ProxyVideoFrame_getSize(long jarg1, ProxyVideoFrame jarg1_); + public final static native long ProxyVideoFrame_getContent(long jarg1, ProxyVideoFrame jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long ProxyVideoFrame_getFrameWidth(long jarg1, ProxyVideoFrame jarg1_); + public final static native long ProxyVideoFrame_getFrameHeight(long jarg1, ProxyVideoFrame jarg1_); + public final static native long new_ProxyAudioProducerCallback(); + public final static native void delete_ProxyAudioProducerCallback(long jarg1); + public final static native int ProxyAudioProducerCallback_prepare(long jarg1, ProxyAudioProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioProducerCallback_prepareSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyAudioProducerCallback_start(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_startSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_pause(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_pauseSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_stop(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_stopSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_fillPushBuffer(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native int ProxyAudioProducerCallback_fillPushBufferSwigExplicitProxyAudioProducerCallback(long jarg1, ProxyAudioProducerCallback jarg1_); + public final static native void ProxyAudioProducerCallback_director_connect(ProxyAudioProducerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyAudioProducerCallback_change_ownership(ProxyAudioProducerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyAudioProducer(long jarg1); + public final static native boolean ProxyAudioProducer_setActualSndCardRecordParams(long jarg1, ProxyAudioProducer jarg1_, int jarg2, int jarg3, int jarg4); + public final static native boolean ProxyAudioProducer_setPushBuffer__SWIG_0(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3, boolean jarg4); + public final static native boolean ProxyAudioProducer_setPushBuffer__SWIG_1(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native int ProxyAudioProducer_push__SWIG_0(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native int ProxyAudioProducer_push__SWIG_1(long jarg1, ProxyAudioProducer jarg1_, java.nio.ByteBuffer jarg2); + public final static native int ProxyAudioProducer_push__SWIG_2(long jarg1, ProxyAudioProducer jarg1_); + public final static native boolean ProxyAudioProducer_setGain(long jarg1, ProxyAudioProducer jarg1_, long jarg2); + public final static native long ProxyAudioProducer_getGain(long jarg1, ProxyAudioProducer jarg1_); + public final static native void ProxyAudioProducer_setCallback(long jarg1, ProxyAudioProducer jarg1_, long jarg2, ProxyAudioProducerCallback jarg2_); + public final static native java.math.BigInteger ProxyAudioProducer_getMediaSessionId(long jarg1, ProxyAudioProducer jarg1_); + public final static native boolean ProxyAudioProducer_registerPlugin(); + public final static native long new_ProxyVideoProducerCallback(); + public final static native void delete_ProxyVideoProducerCallback(long jarg1); + public final static native int ProxyVideoProducerCallback_prepare(long jarg1, ProxyVideoProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoProducerCallback_prepareSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_, int jarg2, int jarg3, int jarg4); + public final static native int ProxyVideoProducerCallback_start(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_startSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_pause(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_pauseSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_stop(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native int ProxyVideoProducerCallback_stopSwigExplicitProxyVideoProducerCallback(long jarg1, ProxyVideoProducerCallback jarg1_); + public final static native void ProxyVideoProducerCallback_director_connect(ProxyVideoProducerCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void ProxyVideoProducerCallback_change_ownership(ProxyVideoProducerCallback obj, long cptr, boolean take_or_release); + public final static native void delete_ProxyVideoProducer(long jarg1); + public final static native int ProxyVideoProducer_getRotation(long jarg1, ProxyVideoProducer jarg1_); + public final static native boolean ProxyVideoProducer_setRotation(long jarg1, ProxyVideoProducer jarg1_, int jarg2); + public final static native boolean ProxyVideoProducer_getMirror(long jarg1, ProxyVideoProducer jarg1_); + public final static native boolean ProxyVideoProducer_setMirror(long jarg1, ProxyVideoProducer jarg1_, boolean jarg2); + public final static native boolean ProxyVideoProducer_setActualCameraOutputSize(long jarg1, ProxyVideoProducer jarg1_, long jarg2, long jarg3); + public final static native int ProxyVideoProducer_push(long jarg1, ProxyVideoProducer jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void ProxyVideoProducer_setCallback(long jarg1, ProxyVideoProducer jarg1_, long jarg2, ProxyVideoProducerCallback jarg2_); + public final static native java.math.BigInteger ProxyVideoProducer_getMediaSessionId(long jarg1, ProxyVideoProducer jarg1_); + public final static native boolean ProxyVideoProducer_registerPlugin(); + public final static native void ProxyVideoProducer_setDefaultChroma(int jarg1); + public final static native long new_SipCallback(); + public final static native void delete_SipCallback(long jarg1); + public final static native int SipCallback_OnDialogEvent(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_); + public final static native int SipCallback_OnDialogEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, DialogEvent jarg2_); + public final static native int SipCallback_OnStackEvent(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_); + public final static native int SipCallback_OnStackEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, StackEvent jarg2_); + public final static native int SipCallback_OnInviteEvent(long jarg1, SipCallback jarg1_, long jarg2, InviteEvent jarg2_); + public final static native int SipCallback_OnInviteEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, InviteEvent jarg2_); + public final static native int SipCallback_OnMessagingEvent(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_); + public final static native int SipCallback_OnMessagingEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, MessagingEvent jarg2_); + public final static native int SipCallback_OnInfoEvent(long jarg1, SipCallback jarg1_, long jarg2, InfoEvent jarg2_); + public final static native int SipCallback_OnInfoEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, InfoEvent jarg2_); + public final static native int SipCallback_OnOptionsEvent(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_); + public final static native int SipCallback_OnOptionsEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, OptionsEvent jarg2_); + public final static native int SipCallback_OnPublicationEvent(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_); + public final static native int SipCallback_OnPublicationEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, PublicationEvent jarg2_); + public final static native int SipCallback_OnRegistrationEvent(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnRegistrationEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, RegistrationEvent jarg2_); + public final static native int SipCallback_OnSubscriptionEvent(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); + public final static native int SipCallback_OnSubscriptionEventSwigExplicitSipCallback(long jarg1, SipCallback jarg1_, long jarg2, SubscriptionEvent jarg2_); + public final static native void SipCallback_director_connect(SipCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void SipCallback_change_ownership(SipCallback obj, long cptr, boolean take_or_release); + public final static native long new_SafeObject(); + public final static native void delete_SafeObject(long jarg1); + public final static native int SafeObject_Lock(long jarg1, SafeObject jarg1_); + public final static native int SafeObject_UnLock(long jarg1, SafeObject jarg1_); + public final static native long new_SipStack(long jarg1, SipCallback jarg1_, String jarg2, String jarg3, String jarg4); + public final static native void delete_SipStack(long jarg1); + public final static native boolean SipStack_start(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_setDebugCallback(long jarg1, SipStack jarg1_, long jarg2, DDebugCallback jarg2_); + public final static native boolean SipStack_setDisplayName(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setRealm(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setIMPI(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setIMPU(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setPassword(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setAMF(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setOperatorId(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setProxyCSCF(long jarg1, SipStack jarg1_, String jarg2, int jarg3, String jarg4, String jarg5); + public final static native boolean SipStack_setLocalIP__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3); + public final static native boolean SipStack_setLocalIP__SWIG_1(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setLocalPort__SWIG_0(long jarg1, SipStack jarg1_, int jarg2, String jarg3); + public final static native boolean SipStack_setLocalPort__SWIG_1(long jarg1, SipStack jarg1_, int jarg2); + public final static native boolean SipStack_setEarlyIMS(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_addHeader(long jarg1, SipStack jarg1_, String jarg2, String jarg3); + public final static native boolean SipStack_removeHeader(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_addDnsServer(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setDnsDiscovery(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setAoR(long jarg1, SipStack jarg1_, String jarg2, int jarg3); + public final static native boolean SipStack_setSigCompParams(long jarg1, SipStack jarg1_, long jarg2, long jarg3, long jarg4, boolean jarg5); + public final static native boolean SipStack_addSigCompCompartment(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_removeSigCompCompartment(long jarg1, SipStack jarg1_, String jarg2); + public final static native boolean SipStack_setSTUNEnabledForICE(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setSTUNServer(long jarg1, SipStack jarg1_, String jarg2, int jarg3); + public final static native boolean SipStack_setSTUNCred(long jarg1, SipStack jarg1_, String jarg2, String jarg3); + public final static native boolean SipStack_setSTUNEnabled(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setTLSSecAgree(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setSSLCertificates__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, boolean jarg5); + public final static native boolean SipStack_setSSLCertificates__SWIG_1(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4); + public final static native boolean SipStack_setSSLCretificates__SWIG_0(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, boolean jarg5); + public final static native boolean SipStack_setSSLCretificates__SWIG_1(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4); + public final static native boolean SipStack_setIPSecSecAgree(long jarg1, SipStack jarg1_, boolean jarg2); + public final static native boolean SipStack_setIPSecParameters(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4, String jarg5); + public final static native String SipStack_dnsENUM(long jarg1, SipStack jarg1_, String jarg2, String jarg3, String jarg4); + public final static native String SipStack_dnsNaptrSrv(long jarg1, SipStack jarg1_, String jarg2, String jarg3, int[] jarg4); + public final static native String SipStack_dnsSrv(long jarg1, SipStack jarg1_, String jarg2, int[] jarg3); + public final static native boolean SipStack_setMaxFDs(long jarg1, SipStack jarg1_, long jarg2); + public final static native String SipStack_getLocalIPnPort(long jarg1, SipStack jarg1_, String jarg2, int[] jarg3); + public final static native String SipStack_getPreferredIdentity(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_isValid(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_stop(long jarg1, SipStack jarg1_); + public final static native boolean SipStack_initialize(); + public final static native boolean SipStack_deInitialize(); + public final static native void SipStack_setCodecs(int jarg1); + public final static native void SipStack_setCodecs_2(long jarg1); + public final static native boolean SipStack_setCodecPriority(int jarg1, int jarg2); + public final static native boolean SipStack_setCodecPriority_2(int jarg1, int jarg2); + public final static native boolean SipStack_isCodecSupported(int jarg1); + public final static native boolean SipStack_isIPSecSupported(); + public final static native long new_XcapSelector(long jarg1, XcapStack jarg1_); + public final static native void delete_XcapSelector(long jarg1); + public final static native long XcapSelector_setAUID(long jarg1, XcapSelector jarg1_, String jarg2); + public final static native long XcapSelector_setName(long jarg1, XcapSelector jarg1_, String jarg2); + public final static native long XcapSelector_setAttribute(long jarg1, XcapSelector jarg1_, String jarg2, String jarg3, String jarg4); + public final static native long XcapSelector_setPos(long jarg1, XcapSelector jarg1_, String jarg2, long jarg3); + public final static native long XcapSelector_setPosAttribute(long jarg1, XcapSelector jarg1_, String jarg2, long jarg3, String jarg4, String jarg5); + public final static native long XcapSelector_setNamespace(long jarg1, XcapSelector jarg1_, String jarg2, String jarg3); + public final static native String XcapSelector_getString(long jarg1, XcapSelector jarg1_); + public final static native void XcapSelector_reset(long jarg1, XcapSelector jarg1_); + public final static native long new_XcapMessage(); + public final static native void delete_XcapMessage(long jarg1); + public final static native short XcapMessage_getCode(long jarg1, XcapMessage jarg1_); + public final static native String XcapMessage_getPhrase(long jarg1, XcapMessage jarg1_); + public final static native String XcapMessage_getXcapHeaderValue__SWIG_0(long jarg1, XcapMessage jarg1_, String jarg2, long jarg3); + public final static native String XcapMessage_getXcapHeaderValue__SWIG_1(long jarg1, XcapMessage jarg1_, String jarg2); + public final static native String XcapMessage_getXcapHeaderParamValue__SWIG_0(long jarg1, XcapMessage jarg1_, String jarg2, String jarg3, long jarg4); + public final static native String XcapMessage_getXcapHeaderParamValue__SWIG_1(long jarg1, XcapMessage jarg1_, String jarg2, String jarg3); + public final static native long XcapMessage_getXcapContentLength(long jarg1, XcapMessage jarg1_); + public final static native long XcapMessage_getXcapContent(long jarg1, XcapMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void delete_XcapEvent(long jarg1); + public final static native int XcapEvent_getType(long jarg1, XcapEvent jarg1_); + public final static native long XcapEvent_getXcapMessage(long jarg1, XcapEvent jarg1_); + public final static native long new_XcapCallback(); + public final static native void delete_XcapCallback(long jarg1); + public final static native int XcapCallback_onEvent(long jarg1, XcapCallback jarg1_, long jarg2, XcapEvent jarg2_); + public final static native int XcapCallback_onEventSwigExplicitXcapCallback(long jarg1, XcapCallback jarg1_, long jarg2, XcapEvent jarg2_); + public final static native void XcapCallback_director_connect(XcapCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void XcapCallback_change_ownership(XcapCallback obj, long cptr, boolean take_or_release); + public final static native long new_XcapStack(long jarg1, XcapCallback jarg1_, String jarg2, String jarg3, String jarg4); + public final static native void delete_XcapStack(long jarg1); + public final static native boolean XcapStack_registerAUID(long jarg1, XcapStack jarg1_, String jarg2, String jarg3, String jarg4, String jarg5, boolean jarg6); + public final static native boolean XcapStack_start(long jarg1, XcapStack jarg1_); + public final static native boolean XcapStack_setCredentials(long jarg1, XcapStack jarg1_, String jarg2, String jarg3); + public final static native boolean XcapStack_setXcapRoot(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_setLocalIP(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_setLocalPort(long jarg1, XcapStack jarg1_, long jarg2); + public final static native boolean XcapStack_addHeader(long jarg1, XcapStack jarg1_, String jarg2, String jarg3); + public final static native boolean XcapStack_removeHeader(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_setTimeout(long jarg1, XcapStack jarg1_, long jarg2); + public final static native boolean XcapStack_getDocument(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_getElement(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_getAttribute(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_deleteDocument(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_deleteElement(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_deleteAttribute(long jarg1, XcapStack jarg1_, String jarg2); + public final static native boolean XcapStack_putDocument(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4, String jarg5); + public final static native boolean XcapStack_putElement(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4); + public final static native boolean XcapStack_putAttribute(long jarg1, XcapStack jarg1_, String jarg2, java.nio.ByteBuffer jarg3, long jarg4); + public final static native boolean XcapStack_stop(long jarg1, XcapStack jarg1_); + public final static native long new_RPMessage(); + public final static native void delete_RPMessage(long jarg1); + public final static native int RPMessage_getType(long jarg1, RPMessage jarg1_); + public final static native long RPMessage_getPayloadLength(long jarg1, RPMessage jarg1_); + public final static native long RPMessage_getPayload(long jarg1, RPMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native long new_SMSData(); + public final static native void delete_SMSData(long jarg1); + public final static native int SMSData_getType(long jarg1, SMSData jarg1_); + public final static native int SMSData_getMR(long jarg1, SMSData jarg1_); + public final static native long SMSData_getPayloadLength(long jarg1, SMSData jarg1_); + public final static native long SMSData_getPayload(long jarg1, SMSData jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native String SMSData_getOA(long jarg1, SMSData jarg1_); + public final static native String SMSData_getDA(long jarg1, SMSData jarg1_); + public final static native long SMSEncoder_encodeSubmit(int jarg1, String jarg2, String jarg3, String jarg4); + public final static native long SMSEncoder_encodeDeliver(int jarg1, String jarg2, String jarg3, String jarg4); + public final static native long SMSEncoder_encodeACK(int jarg1, String jarg2, String jarg3, boolean jarg4); + public final static native long SMSEncoder_encodeError(int jarg1, String jarg2, String jarg3, boolean jarg4); + public final static native long SMSEncoder_decode(java.nio.ByteBuffer jarg1, long jarg2, boolean jarg3); + public final static native void delete_SMSEncoder(long jarg1); + public final static native long new_MsrpMessage(); + public final static native void delete_MsrpMessage(long jarg1); + public final static native boolean MsrpMessage_isRequest(long jarg1, MsrpMessage jarg1_); + public final static native short MsrpMessage_getCode(long jarg1, MsrpMessage jarg1_); + public final static native String MsrpMessage_getPhrase(long jarg1, MsrpMessage jarg1_); + public final static native int MsrpMessage_getRequestType(long jarg1, MsrpMessage jarg1_); + public final static native void MsrpMessage_getByteRange(long jarg1, MsrpMessage jarg1_, long[] jarg2, long[] jarg3, long[] jarg4); + public final static native boolean MsrpMessage_isLastChunck(long jarg1, MsrpMessage jarg1_); + public final static native boolean MsrpMessage_isFirstChunck(long jarg1, MsrpMessage jarg1_); + public final static native boolean MsrpMessage_isSuccessReport(long jarg1, MsrpMessage jarg1_); + public final static native String MsrpMessage_getMsrpHeaderValue(long jarg1, MsrpMessage jarg1_, String jarg2); + public final static native String MsrpMessage_getMsrpHeaderParamValue(long jarg1, MsrpMessage jarg1_, String jarg2, String jarg3); + public final static native long MsrpMessage_getMsrpContentLength(long jarg1, MsrpMessage jarg1_); + public final static native long MsrpMessage_getMsrpContent(long jarg1, MsrpMessage jarg1_, java.nio.ByteBuffer jarg2, long jarg3); + public final static native void delete_MsrpEvent(long jarg1); + public final static native int MsrpEvent_getType(long jarg1, MsrpEvent jarg1_); + public final static native long MsrpEvent_getSipSession(long jarg1, MsrpEvent jarg1_); + public final static native long MsrpEvent_getMessage(long jarg1, MsrpEvent jarg1_); + public final static native long new_MsrpCallback(); + public final static native void delete_MsrpCallback(long jarg1); + public final static native int MsrpCallback_OnEvent(long jarg1, MsrpCallback jarg1_, long jarg2, MsrpEvent jarg2_); + public final static native int MsrpCallback_OnEventSwigExplicitMsrpCallback(long jarg1, MsrpCallback jarg1_, long jarg2, MsrpEvent jarg2_); + public final static native void MsrpCallback_director_connect(MsrpCallback obj, long cptr, boolean mem_own, boolean weak_global); + public final static native void MsrpCallback_change_ownership(MsrpCallback obj, long cptr, boolean take_or_release); + public final static native long MediaContentCPIM_SWIGUpcast(long jarg1); + public final static native long DialogEvent_SWIGUpcast(long jarg1); + public final static native long StackEvent_SWIGUpcast(long jarg1); + public final static native long InviteEvent_SWIGUpcast(long jarg1); + public final static native long MessagingEvent_SWIGUpcast(long jarg1); + public final static native long InfoEvent_SWIGUpcast(long jarg1); + public final static native long OptionsEvent_SWIGUpcast(long jarg1); + public final static native long PublicationEvent_SWIGUpcast(long jarg1); + public final static native long RegistrationEvent_SWIGUpcast(long jarg1); + public final static native long SubscriptionEvent_SWIGUpcast(long jarg1); + public final static native long InviteSession_SWIGUpcast(long jarg1); + public final static native long CallSession_SWIGUpcast(long jarg1); + public final static native long MsrpSession_SWIGUpcast(long jarg1); + public final static native long MessagingSession_SWIGUpcast(long jarg1); + public final static native long InfoSession_SWIGUpcast(long jarg1); + public final static native long OptionsSession_SWIGUpcast(long jarg1); + public final static native long PublicationSession_SWIGUpcast(long jarg1); + public final static native long RegistrationSession_SWIGUpcast(long jarg1); + public final static native long SubscriptionSession_SWIGUpcast(long jarg1); + public final static native long ProxyAudioConsumer_SWIGUpcast(long jarg1); + public final static native long ProxyVideoConsumer_SWIGUpcast(long jarg1); + public final static native long ProxyAudioProducer_SWIGUpcast(long jarg1); + public final static native long ProxyVideoProducer_SWIGUpcast(long jarg1); + public final static native long SipStack_SWIGUpcast(long jarg1); + + public static int SwigDirector_DDebugCallback_OnDebugInfo(DDebugCallback self, String message) { + return self.OnDebugInfo(message); + } + public static int SwigDirector_DDebugCallback_OnDebugWarn(DDebugCallback self, String message) { + return self.OnDebugWarn(message); + } + public static int SwigDirector_DDebugCallback_OnDebugError(DDebugCallback self, String message) { + return self.OnDebugError(message); + } + public static int SwigDirector_DDebugCallback_OnDebugFatal(DDebugCallback self, String message) { + return self.OnDebugFatal(message); + } + public static int SwigDirector_T140Callback_ondata(T140Callback self, long pData) { + return self.ondata((pData == 0) ? null : new T140CallbackData(pData, false)); + } + public static int SwigDirector_ProxyPluginMgrCallback_OnPluginCreated(ProxyPluginMgrCallback self, java.math.BigInteger id, int type) { + return self.OnPluginCreated(id, twrap_proxy_plugin_type_t.swigToEnum(type)); + } + public static int SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed(ProxyPluginMgrCallback self, java.math.BigInteger id, int type) { + return self.OnPluginDestroyed(id, twrap_proxy_plugin_type_t.swigToEnum(type)); + } + public static int SwigDirector_ProxyAudioConsumerCallback_prepare(ProxyAudioConsumerCallback self, int ptime, int rate, int channels) { + return self.prepare(ptime, rate, channels); + } + public static int SwigDirector_ProxyAudioConsumerCallback_start(ProxyAudioConsumerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyAudioConsumerCallback_pause(ProxyAudioConsumerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyAudioConsumerCallback_stop(ProxyAudioConsumerCallback self) { + return self.stop(); + } + public static int SwigDirector_ProxyVideoConsumerCallback_prepare(ProxyVideoConsumerCallback self, int nWidth, int nHeight, int nFps) { + return self.prepare(nWidth, nHeight, nFps); + } + public static int SwigDirector_ProxyVideoConsumerCallback_consume(ProxyVideoConsumerCallback self, long frame) { + return self.consume((frame == 0) ? null : new ProxyVideoFrame(frame, false)); + } + public static int SwigDirector_ProxyVideoConsumerCallback_bufferCopied(ProxyVideoConsumerCallback self, long nCopiedSize, long nAvailableSize) { + return self.bufferCopied(nCopiedSize, nAvailableSize); + } + public static int SwigDirector_ProxyVideoConsumerCallback_start(ProxyVideoConsumerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyVideoConsumerCallback_pause(ProxyVideoConsumerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyVideoConsumerCallback_stop(ProxyVideoConsumerCallback self) { + return self.stop(); + } + public static int SwigDirector_ProxyAudioProducerCallback_prepare(ProxyAudioProducerCallback self, int ptime, int rate, int channels) { + return self.prepare(ptime, rate, channels); + } + public static int SwigDirector_ProxyAudioProducerCallback_start(ProxyAudioProducerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyAudioProducerCallback_pause(ProxyAudioProducerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyAudioProducerCallback_stop(ProxyAudioProducerCallback self) { + return self.stop(); + } + public static int SwigDirector_ProxyAudioProducerCallback_fillPushBuffer(ProxyAudioProducerCallback self) { + return self.fillPushBuffer(); + } + public static int SwigDirector_ProxyVideoProducerCallback_prepare(ProxyVideoProducerCallback self, int width, int height, int fps) { + return self.prepare(width, height, fps); + } + public static int SwigDirector_ProxyVideoProducerCallback_start(ProxyVideoProducerCallback self) { + return self.start(); + } + public static int SwigDirector_ProxyVideoProducerCallback_pause(ProxyVideoProducerCallback self) { + return self.pause(); + } + public static int SwigDirector_ProxyVideoProducerCallback_stop(ProxyVideoProducerCallback self) { + return self.stop(); + } + public static int SwigDirector_SipCallback_OnDialogEvent(SipCallback self, long e) { + return self.OnDialogEvent((e == 0) ? null : new DialogEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnStackEvent(SipCallback self, long e) { + return self.OnStackEvent((e == 0) ? null : new StackEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnInviteEvent(SipCallback self, long e) { + return self.OnInviteEvent((e == 0) ? null : new InviteEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnMessagingEvent(SipCallback self, long e) { + return self.OnMessagingEvent((e == 0) ? null : new MessagingEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnInfoEvent(SipCallback self, long e) { + return self.OnInfoEvent((e == 0) ? null : new InfoEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnOptionsEvent(SipCallback self, long e) { + return self.OnOptionsEvent((e == 0) ? null : new OptionsEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnPublicationEvent(SipCallback self, long e) { + return self.OnPublicationEvent((e == 0) ? null : new PublicationEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnRegistrationEvent(SipCallback self, long e) { + return self.OnRegistrationEvent((e == 0) ? null : new RegistrationEvent(e, false)); + } + public static int SwigDirector_SipCallback_OnSubscriptionEvent(SipCallback self, long e) { + return self.OnSubscriptionEvent((e == 0) ? null : new SubscriptionEvent(e, false)); + } + public static int SwigDirector_XcapCallback_onEvent(XcapCallback self, long e) { + return self.onEvent((e == 0) ? null : new XcapEvent(e, false)); + } + public static int SwigDirector_MsrpCallback_OnEvent(MsrpCallback self, long e) { + return self.OnEvent((e == 0) ? null : new MsrpEvent(e, false)); + } + + private final static native void swig_module_init(); + static { + swig_module_init(); + } +} diff --git a/bindings/java/tinyWRAP_wrap.cxx b/bindings/java/tinyWRAP_wrap.cxx new file mode 100644 index 0000000..4845801 --- /dev/null +++ b/bindings/java/tinyWRAP_wrap.cxx @@ -0,0 +1,13579 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGJAVA +#define SWIG_DIRECTORS + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +/* Fix for jlong on some versions of gcc on Windows */ +#if defined(__GNUC__) && !defined(__INTEL_COMPILER) + typedef long long __int64; +#endif + +/* Fix for jlong on 64-bit x86 Solaris */ +#if defined(__x86_64) +# ifdef _LP64 +# undef _LP64 +# endif +#endif + +#include +#include +#include + + +/* Support for throwing Java exceptions */ +typedef enum { + SWIG_JavaOutOfMemoryError = 1, + SWIG_JavaIOException, + SWIG_JavaRuntimeException, + SWIG_JavaIndexOutOfBoundsException, + SWIG_JavaArithmeticException, + SWIG_JavaIllegalArgumentException, + SWIG_JavaNullPointerException, + SWIG_JavaDirectorPureVirtual, + SWIG_JavaUnknownError +} SWIG_JavaExceptionCodes; + +typedef struct { + SWIG_JavaExceptionCodes code; + const char *java_exception; +} SWIG_JavaExceptions_t; + + +static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) { + jclass excep; + static const SWIG_JavaExceptions_t java_exceptions[] = { + { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" }, + { SWIG_JavaIOException, "java/io/IOException" }, + { SWIG_JavaRuntimeException, "java/lang/RuntimeException" }, + { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" }, + { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" }, + { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" }, + { SWIG_JavaNullPointerException, "java/lang/NullPointerException" }, + { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" }, + { SWIG_JavaUnknownError, "java/lang/UnknownError" }, + { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } + }; + const SWIG_JavaExceptions_t *except_ptr = java_exceptions; + + while (except_ptr->code != code && except_ptr->code) + except_ptr++; + + jenv->ExceptionClear(); + excep = jenv->FindClass(except_ptr->java_exception); + if (excep) + jenv->ThrowNew(excep, msg); +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else + +/* ----------------------------------------------------------------------------- + * director.swg + * + * This file contains support for director classes that proxy + * method calls from C++ to Java extensions. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus + +#if defined(DEBUG_DIRECTOR_OWNED) +#include +#endif + +namespace Swig { + /* Java object wrapper */ + class JObjectWrapper { + public: + JObjectWrapper() : jthis_(NULL), weak_global_(true) { + } + + ~JObjectWrapper() { + jthis_ = NULL; + weak_global_ = true; + } + + bool set(JNIEnv *jenv, jobject jobj, bool mem_own, bool weak_global) { + if (!jthis_) { + weak_global_ = weak_global || !mem_own; // hold as weak global if explicitly requested or not owned + if (jobj) + jthis_ = weak_global_ ? jenv->NewWeakGlobalRef(jobj) : jenv->NewGlobalRef(jobj); +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> " << jthis_ << std::endl; +#endif + return true; + } else { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::set(" << jobj << ", " << (weak_global ? "weak_global" : "global_ref") << ") -> already set" << std::endl; +#endif + return false; + } + } + + jobject get(JNIEnv *jenv) const { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::get("; + if (jthis_) + std::cout << jthis_; + else + std::cout << "null"; + std::cout << ") -> return new local ref" << std::endl; +#endif + return (jthis_ ? jenv->NewLocalRef(jthis_) : jthis_); + } + + void release(JNIEnv *jenv) { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "JObjectWrapper::release(" << jthis_ << "): " << (weak_global_ ? "weak global ref" : "global ref") << std::endl; +#endif + if (jthis_) { + if (weak_global_) { + if (jenv->IsSameObject(jthis_, NULL) == JNI_FALSE) + jenv->DeleteWeakGlobalRef((jweak)jthis_); + } else + jenv->DeleteGlobalRef(jthis_); + } + + jthis_ = NULL; + weak_global_ = true; + } + + /* Only call peek if you know what you are doing wrt to weak/global references */ + jobject peek() { + return jthis_; + } + + /* Java proxy releases ownership of C++ object, C++ object is now + responsible for destruction (creates NewGlobalRef to pin Java + proxy) */ + void java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) { + if (take_or_release) { /* Java takes ownership of C++ object's lifetime. */ + if (!weak_global_) { + jenv->DeleteGlobalRef(jthis_); + jthis_ = jenv->NewWeakGlobalRef(jself); + weak_global_ = true; + } + } else { /* Java releases ownership of C++ object's lifetime */ + if (weak_global_) { + jenv->DeleteWeakGlobalRef((jweak)jthis_); + jthis_ = jenv->NewGlobalRef(jself); + weak_global_ = false; + } + } + } + + private: + /* pointer to Java object */ + jobject jthis_; + /* Local or global reference flag */ + bool weak_global_; + }; + + /* director base class */ + class Director { + /* pointer to Java virtual machine */ + JavaVM *swig_jvm_; + + protected: +#if defined (_MSC_VER) && (_MSC_VER<1300) + class JNIEnvWrapper; + friend class JNIEnvWrapper; +#endif + /* Utility class for managing the JNI environment */ + class JNIEnvWrapper { + const Director *director_; + JNIEnv *jenv_; + int env_status; + public: + JNIEnvWrapper(const Director *director) : director_(director), jenv_(0), env_status(0) { +#if defined(__ANDROID__) + JNIEnv **jenv = &jenv_; +#else + void **jenv = (void **)&jenv_; +#endif + env_status = director_->swig_jvm_->GetEnv((void **)&jenv_, JNI_VERSION_1_2); +#if defined(SWIG_JAVA_ATTACH_CURRENT_THREAD_AS_DAEMON) + // Attach a daemon thread to the JVM. Useful when the JVM should not wait for + // the thread to exit upon shutdown. Only for jdk-1.4 and later. + director_->swig_jvm_->AttachCurrentThreadAsDaemon(jenv, NULL); +#else + director_->swig_jvm_->AttachCurrentThread(jenv, NULL); +#endif + } + ~JNIEnvWrapper() { +#if !defined(SWIG_JAVA_NO_DETACH_CURRENT_THREAD) + // Some JVMs, eg jdk-1.4.2 and lower on Solaris have a bug and crash with the DetachCurrentThread call. + // However, without this call, the JVM hangs on exit when the thread was not created by the JVM and creates a memory leak. + if (env_status == JNI_EDETACHED) + director_->swig_jvm_->DetachCurrentThread(); +#endif + } + JNIEnv *getJNIEnv() const { + return jenv_; + } + }; + + /* Java object wrapper */ + JObjectWrapper swig_self_; + + /* Disconnect director from Java object */ + void swig_disconnect_director_self(const char *disconn_method) { + JNIEnvWrapper jnienv(this) ; + JNIEnv *jenv = jnienv.getJNIEnv() ; + jobject jobj = swig_self_.get(jenv); +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "Swig::Director::disconnect_director_self(" << jobj << ")" << std::endl; +#endif + if (jobj && jenv->IsSameObject(jobj, NULL) == JNI_FALSE) { + jmethodID disconn_meth = jenv->GetMethodID(jenv->GetObjectClass(jobj), disconn_method, "()V"); + if (disconn_meth) { +#if defined(DEBUG_DIRECTOR_OWNED) + std::cout << "Swig::Director::disconnect_director_self upcall to " << disconn_method << std::endl; +#endif + jenv->CallVoidMethod(jobj, disconn_meth); + } + } + jenv->DeleteLocalRef(jobj); + } + + public: + Director(JNIEnv *jenv) : swig_jvm_((JavaVM *) NULL), swig_self_() { + /* Acquire the Java VM pointer */ + jenv->GetJavaVM(&swig_jvm_); + } + + virtual ~Director() { + JNIEnvWrapper jnienv(this) ; + JNIEnv *jenv = jnienv.getJNIEnv() ; + swig_self_.release(jenv); + } + + bool swig_set_self(JNIEnv *jenv, jobject jself, bool mem_own, bool weak_global) { + return swig_self_.set(jenv, jself, mem_own, weak_global); + } + + jobject swig_get_self(JNIEnv *jenv) const { + return swig_self_.get(jenv); + } + + // Change C++ object's ownership, relative to Java + void swig_java_change_ownership(JNIEnv *jenv, jobject jself, bool take_or_release) { + swig_self_.java_change_ownership(jenv, jself, take_or_release); + } + }; +} + +#endif /* __cplusplus */ + + +namespace Swig { + namespace { + jclass jclass_tinyWRAPJNI = NULL; + jmethodID director_methids[37]; + } +} + +#include // Use the C99 official header + + +#include "tinyWRAP_config.h" +#include "DDebug.h" +#include "AudioResampler.h" + + +#include "ActionConfig.h" +#include "MediaSessionMgr.h" +#include "MediaContent.h" +#include "SipUri.h" +#include "SipMessage.h" +#include "SipEvent.h" +#include "SipSession.h" + +#include "ProxyPluginMgr.h" +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" + + +#include "Xcap.h" + + +#include "SMSEncoder.h" + + +#include "Msrp.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "tinyWRAP_wrap.h" + +SwigDirector_DDebugCallback::SwigDirector_DDebugCallback(JNIEnv *jenv) : DDebugCallback(), Swig::Director(jenv) { +} + +SwigDirector_DDebugCallback::~SwigDirector_DDebugCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_DDebugCallback::OnDebugInfo(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[0]) { + return DDebugCallback::OnDebugInfo(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[0], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugWarn(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[1]) { + return DDebugCallback::OnDebugWarn(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[1], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugError(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[2]) { + return DDebugCallback::OnDebugError(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[2], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_DDebugCallback::OnDebugFatal(char const *message) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jstring jmessage = 0 ; + + if (!swig_override[3]) { + return DDebugCallback::OnDebugFatal(message); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jmessage = 0; + if (message) { + jmessage = jenv->NewStringUTF((const char *)message); + if (!jmessage) return c_result; + } + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[3], swigjobj, jmessage); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_DDebugCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnDebugInfo", "(Ljava/lang/String;)I", NULL + }, + { + "OnDebugWarn", "(Ljava/lang/String;)I", NULL + }, + { + "OnDebugError", "(Ljava/lang/String;)I", NULL + }, + { + "OnDebugFatal", "(Ljava/lang/String;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/DDebugCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 4; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_T140Callback::SwigDirector_T140Callback(JNIEnv *jenv) : T140Callback(), Swig::Director(jenv) { +} + +SwigDirector_T140Callback::~SwigDirector_T140Callback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_T140Callback::ondata(T140CallbackData const *pData) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong jpData = 0 ; + + if (!swig_override[0]) { + return T140Callback::ondata(pData); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((T140CallbackData **)&jpData) = (T140CallbackData *) pData; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[4], swigjobj, jpData); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_T140Callback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "ondata", "(Lorg/doubango/tinyWRAP/T140CallbackData;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/T140Callback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 1; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyPluginMgrCallback::SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv) : ProxyPluginMgrCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyPluginMgrCallback::~SwigDirector_ProxyPluginMgrCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyPluginMgrCallback::OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jobject jid ; + jint jtype ; + + if (!swig_override[0]) { + return ProxyPluginMgrCallback::OnPluginCreated(id,type); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int swig_i; + + bae[0] = 0; + for(swig_i=1; swig_i<9; swig_i++ ) { + bae[swig_i] = (jbyte)(id>>8*(8-swig_i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jid = bigint; + } + jtype = (jint) type; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[5], swigjobj, jid, jtype); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyPluginMgrCallback::OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jobject jid ; + jint jtype ; + + if (!swig_override[1]) { + return ProxyPluginMgrCallback::OnPluginDestroyed(id,type); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int swig_i; + + bae[0] = 0; + for(swig_i=1; swig_i<9; swig_i++ ) { + bae[swig_i] = (jbyte)(id>>8*(8-swig_i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jid = bigint; + } + jtype = (jint) type; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[6], swigjobj, jid, jtype); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyPluginMgrCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnPluginCreated", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL + }, + { + "OnPluginDestroyed", "(Ljava/math/BigInteger;Lorg/doubango/tinyWRAP/twrap_proxy_plugin_type_t;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyPluginMgrCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 2; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyAudioConsumerCallback::SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv) : ProxyAudioConsumerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyAudioConsumerCallback::~SwigDirector_ProxyAudioConsumerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyAudioConsumerCallback::prepare(int ptime, int rate, int channels) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jptime ; + jint jrate ; + jint jchannels ; + + if (!swig_override[0]) { + return ProxyAudioConsumerCallback::prepare(ptime,rate,channels); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jptime = (jint) ptime; + jrate = (jint) rate; + jchannels = (jint) channels; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[7], swigjobj, jptime, jrate, jchannels); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[1]) { + return ProxyAudioConsumerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[8], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[2]) { + return ProxyAudioConsumerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[9], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioConsumerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyAudioConsumerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[10], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyAudioConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioConsumerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 4; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyVideoConsumerCallback::SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv) : ProxyVideoConsumerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyVideoConsumerCallback::~SwigDirector_ProxyVideoConsumerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyVideoConsumerCallback::prepare(int nWidth, int nHeight, int nFps) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jnWidth ; + jint jnHeight ; + jint jnFps ; + + if (!swig_override[0]) { + return ProxyVideoConsumerCallback::prepare(nWidth,nHeight,nFps); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jnWidth = (jint) nWidth; + jnHeight = (jint) nHeight; + jnFps = (jint) nFps; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[11], swigjobj, jnWidth, jnHeight, jnFps); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::consume(ProxyVideoFrame const *frame) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong jframe = 0 ; + + if (!swig_override[1]) { + return ProxyVideoConsumerCallback::consume(frame); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((ProxyVideoFrame **)&jframe) = (ProxyVideoFrame *) frame; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[12], swigjobj, jframe); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong jnCopiedSize ; + jlong jnAvailableSize ; + + if (!swig_override[2]) { + return ProxyVideoConsumerCallback::bufferCopied(nCopiedSize,nAvailableSize); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jnCopiedSize = (jlong) nCopiedSize; + jnAvailableSize = (jlong) nAvailableSize; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[13], swigjobj, jnCopiedSize, jnAvailableSize); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyVideoConsumerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[14], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[4]) { + return ProxyVideoConsumerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[15], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoConsumerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[5]) { + return ProxyVideoConsumerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[16], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyVideoConsumerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "consume", "(Lorg/doubango/tinyWRAP/ProxyVideoFrame;)I", NULL + }, + { + "bufferCopied", "(JJ)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoConsumerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 6; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyAudioProducerCallback::SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv) : ProxyAudioProducerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyAudioProducerCallback::~SwigDirector_ProxyAudioProducerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyAudioProducerCallback::prepare(int ptime, int rate, int channels) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jptime ; + jint jrate ; + jint jchannels ; + + if (!swig_override[0]) { + return ProxyAudioProducerCallback::prepare(ptime,rate,channels); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jptime = (jint) ptime; + jrate = (jint) rate; + jchannels = (jint) channels; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[17], swigjobj, jptime, jrate, jchannels); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[1]) { + return ProxyAudioProducerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[18], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[2]) { + return ProxyAudioProducerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[19], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyAudioProducerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[20], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyAudioProducerCallback::fillPushBuffer() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[4]) { + return ProxyAudioProducerCallback::fillPushBuffer(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[21], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyAudioProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + }, + { + "fillPushBuffer", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyAudioProducerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 5; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_ProxyVideoProducerCallback::SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv) : ProxyVideoProducerCallback(), Swig::Director(jenv) { +} + +SwigDirector_ProxyVideoProducerCallback::~SwigDirector_ProxyVideoProducerCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_ProxyVideoProducerCallback::prepare(int width, int height, int fps) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jint jwidth ; + jint jheight ; + jint jfps ; + + if (!swig_override[0]) { + return ProxyVideoProducerCallback::prepare(width,height,fps); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jwidth = (jint) width; + jheight = (jint) height; + jfps = (jint) fps; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[22], swigjobj, jwidth, jheight, jfps); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::start() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[1]) { + return ProxyVideoProducerCallback::start(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[23], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::pause() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[2]) { + return ProxyVideoProducerCallback::pause(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[24], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_ProxyVideoProducerCallback::stop() { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + + if (!swig_override[3]) { + return ProxyVideoProducerCallback::stop(); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[25], swigjobj); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_ProxyVideoProducerCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "prepare", "(III)I", NULL + }, + { + "start", "()I", NULL + }, + { + "pause", "()I", NULL + }, + { + "stop", "()I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/ProxyVideoProducerCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 4; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_SipCallback::SwigDirector_SipCallback(JNIEnv *jenv) : SipCallback(), Swig::Director(jenv) { +} + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_SipCallback::OnDialogEvent(DialogEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[0]) { + return SipCallback::OnDialogEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((DialogEvent **)&je) = (DialogEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[26], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[1]) { + return SipCallback::OnStackEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((StackEvent **)&je) = (StackEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[27], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnInviteEvent(InviteEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[2]) { + return SipCallback::OnInviteEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((InviteEvent **)&je) = (InviteEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[28], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[3]) { + return SipCallback::OnMessagingEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((MessagingEvent **)&je) = (MessagingEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[29], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnInfoEvent(InfoEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[4]) { + return SipCallback::OnInfoEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((InfoEvent **)&je) = (InfoEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[30], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[5]) { + return SipCallback::OnOptionsEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((OptionsEvent **)&je) = (OptionsEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[31], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[6]) { + return SipCallback::OnPublicationEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((PublicationEvent **)&je) = (PublicationEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[32], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[7]) { + return SipCallback::OnRegistrationEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((RegistrationEvent **)&je) = (RegistrationEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[33], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[8]) { + return SipCallback::OnSubscriptionEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((SubscriptionEvent **)&je) = (SubscriptionEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[34], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_SipCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnDialogEvent", "(Lorg/doubango/tinyWRAP/DialogEvent;)I", NULL + }, + { + "OnStackEvent", "(Lorg/doubango/tinyWRAP/StackEvent;)I", NULL + }, + { + "OnInviteEvent", "(Lorg/doubango/tinyWRAP/InviteEvent;)I", NULL + }, + { + "OnMessagingEvent", "(Lorg/doubango/tinyWRAP/MessagingEvent;)I", NULL + }, + { + "OnInfoEvent", "(Lorg/doubango/tinyWRAP/InfoEvent;)I", NULL + }, + { + "OnOptionsEvent", "(Lorg/doubango/tinyWRAP/OptionsEvent;)I", NULL + }, + { + "OnPublicationEvent", "(Lorg/doubango/tinyWRAP/PublicationEvent;)I", NULL + }, + { + "OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/RegistrationEvent;)I", NULL + }, + { + "OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SubscriptionEvent;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/SipCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 9; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_XcapCallback::SwigDirector_XcapCallback(JNIEnv *jenv) : XcapCallback(), Swig::Director(jenv) { +} + +SwigDirector_XcapCallback::~SwigDirector_XcapCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_XcapCallback::onEvent(XcapEvent const *e) const { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[0]) { + return XcapCallback::onEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((XcapEvent **)&je) = (XcapEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[35], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_XcapCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "onEvent", "(Lorg/doubango/tinyWRAP/XcapEvent;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/XcapCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 1; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + +SwigDirector_MsrpCallback::SwigDirector_MsrpCallback(JNIEnv *jenv) : MsrpCallback(), Swig::Director(jenv) { +} + +SwigDirector_MsrpCallback::~SwigDirector_MsrpCallback() { + swig_disconnect_director_self("swigDirectorDisconnect"); +} + + +int SwigDirector_MsrpCallback::OnEvent(MsrpEvent const *e) { + int c_result = SwigValueInit< int >() ; + jint jresult = 0 ; + JNIEnvWrapper swigjnienv(this) ; + JNIEnv * jenv = swigjnienv.getJNIEnv() ; + jobject swigjobj = (jobject) NULL ; + jlong je = 0 ; + + if (!swig_override[0]) { + return MsrpCallback::OnEvent(e); + } + swigjobj = swig_get_self(jenv); + if (swigjobj && jenv->IsSameObject(swigjobj, NULL) == JNI_FALSE) { + *((MsrpEvent **)&je) = (MsrpEvent *) e; + jresult = (jint) jenv->CallStaticIntMethod(Swig::jclass_tinyWRAPJNI, Swig::director_methids[36], swigjobj, je); + if (jenv->ExceptionCheck() == JNI_TRUE) return c_result; + c_result = (int)jresult; + } else { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "null upcall object"); + } + if (swigjobj) jenv->DeleteLocalRef(swigjobj); + return c_result; +} + +void SwigDirector_MsrpCallback::swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global) { + static struct { + const char *mname; + const char *mdesc; + jmethodID base_methid; + } methods[] = { + { + "OnEvent", "(Lorg/doubango/tinyWRAP/MsrpEvent;)I", NULL + } + }; + + static jclass baseclass = 0 ; + + if (swig_set_self(jenv, jself, swig_mem_own, weak_global)) { + if (!baseclass) { + baseclass = jenv->FindClass("org/doubango/tinyWRAP/MsrpCallback"); + if (!baseclass) return; + baseclass = (jclass) jenv->NewGlobalRef(baseclass); + } + bool derived = (jenv->IsSameObject(baseclass, jcls) ? false : true); + for (int i = 0; i < 1; ++i) { + if (!methods[i].base_methid) { + methods[i].base_methid = jenv->GetMethodID(baseclass, methods[i].mname, methods[i].mdesc); + if (!methods[i].base_methid) return; + } + swig_override[i] = false; + if (derived) { + jmethodID methid = jenv->GetMethodID(jcls, methods[i].mname, methods[i].mdesc); + swig_override[i] = (methid != methods[i].base_methid); + jenv->ExceptionClear(); + } + } + } +} + + + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1DDebugCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + DDebugCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (DDebugCallback *)new SwigDirector_DDebugCallback(jenv); + *(DDebugCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(DDebugCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfo(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugInfoSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugInfo((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugWarnSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugWarn((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugError((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugErrorSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugError((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatal(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1OnDebugFatalSwigExplicitDDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jint jresult = 0 ; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(DDebugCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (int)(arg1)->DDebugCallback::OnDebugFatal((char const *)arg2); + jresult = (jint)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + DDebugCallback *obj = *((DDebugCallback **)&objarg); + (void)jcls; + SwigDirector_DDebugCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DDebugCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + DDebugCallback *obj = *((DDebugCallback **)&objarg); + SwigDirector_DDebugCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4, jlong jarg5) { + jlong jresult = 0 ; + uint32_t arg1 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + AudioResampler *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + arg2 = (uint32_t)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (uint32_t)jarg4; + arg5 = (uint32_t)jarg5; + result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5); + *(AudioResampler **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1AudioResampler(JNIEnv *jenv, jclass jcls, jlong jarg1) { + AudioResampler *arg1 = (AudioResampler *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(AudioResampler **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + result = (bool)(arg1)->isValid(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getOutputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + uint32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + result = (uint32_t)(arg1)->getOutputRequiredSizeInShort(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1getInputRequiredSizeInShort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + uint32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + result = (uint32_t)(arg1)->getInputRequiredSizeInShort(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_AudioResampler_1process(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jbyteArray jarg4, jlong jarg5) { + jlong jresult = 0 ; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t arg3 ; + void *arg4 = (void *) 0 ; + uint32_t arg5 ; + uint32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(AudioResampler **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (uint32_t)jarg3; + + arg4 = jenv->GetDirectBufferAddress(jarg4); + + arg5 = (uint32_t)jarg5; + result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ActionConfig(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ActionConfig *)new ActionConfig(); + *(ActionConfig **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ActionConfig(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ActionConfig *arg1 = (ActionConfig *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ActionConfig **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1addPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->addPayload((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setActiveMedia(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (bool)(arg1)->setActiveMedia(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setResponseLine(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jshort jarg2, jstring jarg3) { + jlong jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + short arg2 ; + char *arg3 = (char *) 0 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (short)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3); + *(ActionConfig **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4); + *(ActionConfig **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ActionConfig_1setMediaInt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jlong jresult = 0 ; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + ActionConfig *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ActionConfig **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int)jarg4; + result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4); + *(ActionConfig **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1Codec(JNIEnv *jenv, jclass jcls, jlong jarg1) { + Codec *arg1 = (Codec *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(Codec **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + twrap_media_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (twrap_media_type_t)(arg1)->getMediaType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (char *)(arg1)->getName(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getDescription(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (char *)(arg1)->getDescription(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getNegFormat(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (char *)(arg1)->getNegFormat(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioSamplingRate(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (int)(arg1)->getAudioSamplingRate(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioChannels(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (int)(arg1)->getAudioChannels(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_Codec_1getAudioPTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + Codec *arg1 = (Codec *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(Codec **)&jarg1; + result = (int)(arg1)->getAudioPTime(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaSessionMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MediaSessionMgr **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1sessionGetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) { + jint jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3); + jresult = (jint)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1consumerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int64_t)jarg4; + result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt32(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jint jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int32_t)jarg4; + result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerSetInt64(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3, jlong jarg4) { + jboolean jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (int64_t)jarg4; + result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1producerGetCodec(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jlong jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + Codec *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (Codec *)(arg1)->producerGetCodec(arg2); + *(Codec **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jlong jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + ProxyPlugin *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2); + *(ProxyPlugin **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1findProxyPluginProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jlong jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + ProxyPlugin *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2); + *(ProxyPlugin **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1registerAudioPluginFromFile(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1); + jresult = (jlong)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1getSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jobject jresult = 0 ; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaSessionMgr **)&jarg1; + arg2 = (twrap_media_type_t)jarg2; + result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetProfile(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_profile_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_profile_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetProfile(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetProfile(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_profile_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthLevel(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_bandwidth_level_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_bandwidth_level_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetBandwidthLevel(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_bandwidth_level_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetCongestionCtrlEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoMotionRank(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoFps(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoUploadMax(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetBandwidthVideoDownloadMax(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetPrefVideoSize(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_pref_video_size_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_pref_video_size_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMargin(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetJbMaxLateRate(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoTail(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoTail(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + uint32_t result; + + (void)jenv; + (void)jcls; + result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSkew(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetEchoSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetEchoSuppEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetAgcEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAgcLevel(JNIEnv *jenv, jclass jcls, jfloat jarg1) { + jboolean jresult = 0 ; + float arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (float)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jfloat JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetAgcLevel(JNIEnv *jenv, jclass jcls) { + jfloat jresult = 0 ; + float result; + + (void)jenv; + (void)jcls; + result = (float)MediaSessionMgr::defaultsGetAgcLevel(); + jresult = (jfloat)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVadEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetGetVadEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetNoiseSuppLevel(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetNoiseSuppLevel(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + int32_t result; + + (void)jenv; + (void)jcls; + result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSet100relEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGet100relEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGet100relEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetScreenSize(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioGain(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioPtime(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAudioChannels(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = (int32_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpPortRange(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + uint16_t arg1 ; + uint16_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint16_t)jarg1; + arg2 = (uint16_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpSymetricEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMediaType(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + twrap_media_type_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (twrap_media_type_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVolume(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetVolume(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVolume(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + int32_t result; + + (void)jenv; + (void)jcls; + result = (int32_t)MediaSessionMgr::defaultsGetVolume(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetInviteSessionTimers(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2) { + jboolean jresult = 0 ; + int32_t arg1 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpMode(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_srtp_mode_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_srtp_mode_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpMode(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_srtp_mode_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetSRtpType(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tmedia_srtp_type_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_srtp_type_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetSRtpType(JNIEnv *jenv, jclass jcls) { + jint jresult = 0 ; + tmedia_srtp_type_t result; + + (void)jenv; + (void)jcls; + result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtcpMuxEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceStunEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceTurnEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunServer(JNIEnv *jenv, jclass jcls, jstring jarg1, jint jarg2) { + jboolean jresult = 0 ; + char *arg1 = (char *) 0 ; + uint16_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + arg2 = (uint16_t)jarg2; + result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2); + jresult = (jboolean)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetStunCred(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { + jboolean jresult = 0 ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2); + jresult = (jboolean)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetIceEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassEncoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassEncoding(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetByPassEncoding(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetByPassDecoding(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetByPassDecoding(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetByPassDecoding(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoJbEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoJbEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + jboolean jresult = 0 ; + bool arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetVideoZeroArtifactsEnabled(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetRtpBuffSize(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + unsigned int arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (unsigned int)jarg1; + result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsGetRtpBuffSize(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfTail(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { + jboolean jresult = 0 ; + unsigned int arg1 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (unsigned int)jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetAvpfMode(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + enum tmedia_mode_e arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (enum tmedia_mode_e)jarg1; + result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxCaptureRate(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetOpusMaxPlaybackRate(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jboolean jresult = 0 ; + uint32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (uint32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaSessionMgr_1defaultsSetMaxFds(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + int32_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int32_t)jarg1; + result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MediaContent *arg1 = (MediaContent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MediaContent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + result = (char *)(arg1)->getType(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getDataLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + result = (unsigned int)(arg1)->getDataLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getData(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jstring jarg3) { + jlong jresult = 0 ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + MediaContent *result = 0 ; + + (void)jenv; + (void)jcls; + + arg1 = jenv->GetDirectBufferAddress(jarg1); + + arg2 = (unsigned int)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3); + *(MediaContent **)&jresult = result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1parse_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2) { + jlong jresult = 0 ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + MediaContentCPIM *result = 0 ; + + (void)jenv; + (void)jcls; + + arg1 = jenv->GetDirectBufferAddress(jarg1); + + arg2 = (unsigned int)jarg2; + result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2); + *(MediaContentCPIM **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContent_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContent **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MediaContentCPIM(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MediaContentCPIM **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContentCPIM **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContentCPIM **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1getHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MediaContentCPIM **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1, jstring jarg2) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + SipUri *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2); + *(SipUri **)&jresult = result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + SipUri *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + result = (SipUri *)new SipUri((char const *)arg1); + *(SipUri **)&jresult = result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipUri(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipUri *arg1 = (SipUri *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipUri **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jboolean jresult = 0 ; + char *arg1 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + result = (bool)SipUri::isValid((char const *)arg1); + jresult = (jboolean)result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1isValid_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (bool)(arg1)->isValid(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getScheme(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getScheme(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getHost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getHost(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + unsigned short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (unsigned short)(arg1)->getPort(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getUserName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getUserName(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getPassword(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + result = (char *)(arg1)->getDisplayName(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1getParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getParamValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipUri_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipUri **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return ; + } + (arg1)->setDisplayName((char const *)arg2); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SdpMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SdpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SdpMessage *)new SdpMessage(); + *(SdpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SdpMessage *arg1 = (SdpMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SdpMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3, jlong jarg4) { + jstring jresult = 0 ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + unsigned int arg4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SdpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (char)jarg3; + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jchar jarg3) { + jstring jresult = 0 ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SdpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (char)jarg3; + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SdpMessage_1getSdpHeaderAValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SdpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipMessage *)new SipMessage(); + *(SipMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipMessage *arg1 = (SipMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1isResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (bool)(arg1)->isResponse(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + tsip_request_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (tsip_request_type_t)(arg1)->getRequestType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponseCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (short)(arg1)->getResponseCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getResponsePhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (char *)(arg1)->getResponsePhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (unsigned int)(arg1)->getSipContentLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSipContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getSipContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipMessage_1getSdpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipMessage *arg1 = (SipMessage *) 0 ; + SdpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipMessage **)&jarg1; + result = (SdpMessage *)(arg1)->getSdpMessage(); + *(SdpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipEvent *arg1 = (SipEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (short)((SipEvent const *)arg1)->getCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (char *)((SipEvent const *)arg1)->getPhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getBaseSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + *(SipSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipEvent_1getSipMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipEvent *arg1 = (SipEvent *) 0 ; + SipMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipEvent **)&jarg1; + result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage(); + *(SipMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1DialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + DialogEvent *arg1 = (DialogEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(DialogEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1StackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + StackEvent *arg1 = (StackEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(StackEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InviteEvent *arg1 = (InviteEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InviteEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + tsip_invite_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getMediaType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + twrap_media_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + InviteSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (InviteSession *)((InviteEvent const *)arg1)->getSession(); + *(InviteSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeCallSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + CallSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership(); + *(CallSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1takeMsrpSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteEvent *arg1 = (InviteEvent *) 0 ; + MsrpSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteEvent **)&jarg1; + result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership(); + *(MsrpSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MessagingEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + tsip_message_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingEvent **)&jarg1; + result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + MessagingSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingEvent **)&jarg1; + result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession(); + *(MessagingSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + MessagingSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingEvent **)&jarg1; + result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership(); + *(MessagingSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InfoEvent *arg1 = (InfoEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InfoEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + tsip_info_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoEvent **)&jarg1; + result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + InfoSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoEvent **)&jarg1; + result = (InfoSession *)((InfoEvent const *)arg1)->getSession(); + *(InfoSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InfoEvent *arg1 = (InfoEvent *) 0 ; + InfoSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoEvent **)&jarg1; + result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership(); + *(InfoSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(OptionsEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + tsip_options_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsEvent **)&jarg1; + result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + OptionsSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsEvent **)&jarg1; + result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession(); + *(OptionsSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + OptionsSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsEvent **)&jarg1; + result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership(); + *(OptionsSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(PublicationEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + tsip_publish_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationEvent **)&jarg1; + result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + PublicationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationEvent **)&jarg1; + result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession(); + *(PublicationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + PublicationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationEvent **)&jarg1; + result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership(); + *(PublicationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(RegistrationEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + tsip_register_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationEvent **)&jarg1; + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationEvent **)&jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + *(RegistrationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + RegistrationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationEvent **)&jarg1; + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership(); + *(RegistrationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SubscriptionEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + tsip_subscribe_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionEvent **)&jarg1; + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1getSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionEvent **)&jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + *(SubscriptionSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1takeSessionOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + SubscriptionSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionEvent **)&jarg1; + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership(); + *(SubscriptionSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140CallbackData(JNIEnv *jenv, jclass jcls, jlong jarg1) { + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(T140CallbackData **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + enum tmedia_t140_data_type_e result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(T140CallbackData **)&jarg1; + result = (enum tmedia_t140_data_type_e)((T140CallbackData const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(T140CallbackData **)&jarg1; + result = (unsigned int)((T140CallbackData const *)arg1)->getSize(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140CallbackData_1getData(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(T140CallbackData **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)((T140CallbackData const *)arg1)->getData(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1T140Callback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + T140Callback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (T140Callback *)new SwigDirector_T140Callback(jenv); + *(T140Callback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1T140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + T140Callback *arg1 = (T140Callback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(T140Callback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondata(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + T140Callback *arg1 = (T140Callback *) 0 ; + T140CallbackData *arg2 = (T140CallbackData *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(T140Callback **)&jarg1; + arg2 = *(T140CallbackData **)&jarg2; + result = (int)(arg1)->ondata((T140CallbackData const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1ondataSwigExplicitT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + T140Callback *arg1 = (T140Callback *) 0 ; + T140CallbackData *arg2 = (T140CallbackData *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(T140Callback **)&jarg1; + arg2 = *(T140CallbackData **)&jarg2; + result = (int)(arg1)->T140Callback::ondata((T140CallbackData const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + T140Callback *obj = *((T140Callback **)&objarg); + (void)jcls; + SwigDirector_T140Callback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_T140Callback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + T140Callback *obj = *((T140Callback **)&objarg); + SwigDirector_T140Callback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + SipSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (SipSession *)new SipSession(arg1); + *(SipSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipSession *arg1 = (SipSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1haveOwnership(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + result = (bool)(arg1)->haveOwnership(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addCaps_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addCaps((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeCaps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeCaps((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setExpires(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setExpires(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setFromUri((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setFromUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->setFromUri((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setToUri((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setToUri_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->setToUri((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1setSilentHangup(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSilentHangup(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + result = (bool)(arg1)->removeSigCompCompartment(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipSession_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipSession **)&jarg1; + result = (unsigned int)((SipSession const *)arg1)->getId(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + InviteSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (InviteSession *)new InviteSession(arg1); + *(InviteSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InviteSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InviteSession *arg1 = (InviteSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InviteSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InviteSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InviteSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->hangup(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1hangup_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (bool)(arg1)->hangup(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InviteSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(InviteSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1sendInfo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1getMediaMgr(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + InviteSession *arg1 = (InviteSession *) 0 ; + MediaSessionMgr *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InviteSession **)&jarg1; + result = (MediaSessionMgr *)(arg1)->getMediaMgr(); + *(MediaSessionMgr **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + CallSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (CallSession *)new CallSession(arg1); + *(CallSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1CallSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + CallSession *arg1 = (CallSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(CallSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudio((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callAudio((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudio_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callAudio((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callAudioVideo((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callAudioVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callVideo((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callVideo((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1callVideo_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callVideo((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (twrap_media_type_t)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->call((char const *)arg2,arg3,arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (twrap_media_type_t)jarg3; + result = (bool)(arg1)->call((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg4_; + 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 = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1call_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = (twrap_media_type_t)jarg3; + result = (bool)(arg1)->call((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSessionTimer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jstring jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1set100rel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->set100rel(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcp(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setRtcp(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setRtcpMux(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setRtcpMux(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSRtpMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_srtp_mode_e arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_srtp_mode_e)jarg2; + result = (bool)(arg1)->setSRtpMode(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setAvpfMode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_mode_e arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_mode_e)jarg2; + result = (bool)(arg1)->setAvpfMode(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICE(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICEStun(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICEStun(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setICETurn(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setICETurn(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + uint16_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (uint16_t)jarg3; + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoFps(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoFps(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthUploadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoBandwidthDownloadMax(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int32_t)jarg2; + result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setVideoPrefSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_pref_video_size_t arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (tmedia_pref_video_size_t)jarg2; + result = (bool)(arg1)->setVideoPrefSize(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setQoS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_qos_stype_t arg2 ; + tmedia_qos_strength_t arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (tmedia_qos_stype_t)jarg2; + arg3 = (tmedia_qos_strength_t)jarg3; + result = (bool)(arg1)->setQoS(arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->hold(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1hold_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->hold(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->resume(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1resume_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->resume(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->transfer((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1transfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->transfer((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->acceptTransfer(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1acceptTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->acceptTransfer(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->rejectTransfer(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1rejectTransfer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (bool)(arg1)->rejectTransfer(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendDTMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (int)jarg2; + result = (bool)(arg1)->sendDTMF(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1getSessionTransferId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + result = (unsigned int)(arg1)->getSessionTransferId(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3, jlong jarg4) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_t140_data_type_e)jarg2; + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jbyteArray jarg3) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_t140_data_type_e)jarg2; + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1sendT140Data_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CallSession **)&jarg1; + arg2 = (enum tmedia_t140_data_type_e)jarg2; + result = (bool)(arg1)->sendT140Data(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1setT140Callback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + CallSession *arg1 = (CallSession *) 0 ; + T140Callback *arg2 = (T140Callback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(CallSession **)&jarg1; + arg2 = *(T140Callback **)&jarg2; + result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + MsrpSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipStack **)&jarg1; + arg2 = *(MsrpCallback **)&jarg2; + result = (MsrpSession *)new MsrpSession(arg1,arg2); + *(MsrpSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpSession *arg1 = (MsrpSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(MsrpCallback **)&jarg2; + result = (bool)(arg1)->setCallback(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg3_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callMsrp((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->callMsrp((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + arg3 = *(ActionConfig **)&jarg3; + result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1callMsrp_1_1SWIG_13(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(SipUri **)&jarg2; + result = (bool)(arg1)->callMsrp((SipUri const *)arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(MsrpSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendMessage_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->sendFile(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1sendFile_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpSession *arg1 = (MsrpSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpSession **)&jarg1; + result = (bool)(arg1)->sendFile(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + MessagingSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (MessagingSession *)new MessagingSession(arg1); + *(MessagingSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MessagingSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MessagingSession *arg1 = (MessagingSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MessagingSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(MessagingSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->send((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MessagingSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MessagingSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MessagingSession *arg1 = (MessagingSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MessagingSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + InfoSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (InfoSession *)new InfoSession(arg1); + *(InfoSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1InfoSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + InfoSession *arg1 = (InfoSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(InfoSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(InfoSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->send((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InfoSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(InfoSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + InfoSession *arg1 = (InfoSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(InfoSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + OptionsSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (OptionsSession *)new OptionsSession(arg1); + *(OptionsSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1OptionsSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + OptionsSession *arg1 = (OptionsSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(OptionsSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(OptionsSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->send(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1send_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsSession **)&jarg1; + result = (bool)(arg1)->send(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(OptionsSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(OptionsSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + OptionsSession *arg1 = (OptionsSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(OptionsSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + PublicationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (PublicationSession *)new PublicationSession(arg1); + *(PublicationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1PublicationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + PublicationSession *arg1 = (PublicationSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(PublicationSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg4_; + arg1 = *(PublicationSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = *(ActionConfig **)&jarg4; + result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1publish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationSession **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->publish((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(PublicationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->unPublish(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1unPublish_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + PublicationSession *arg1 = (PublicationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(PublicationSession **)&jarg1; + result = (bool)(arg1)->unPublish(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + RegistrationSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (RegistrationSession *)new RegistrationSession(arg1); + *(RegistrationSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RegistrationSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(RegistrationSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->register_(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1register_1_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->register_(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->unRegister(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1unRegister_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->unRegister(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->accept(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1accept_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->accept(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(RegistrationSession **)&jarg1; + arg2 = *(ActionConfig **)&jarg2; + result = (bool)(arg1)->reject(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1reject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RegistrationSession **)&jarg1; + result = (bool)(arg1)->reject(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + SubscriptionSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (SubscriptionSession *)new SubscriptionSession(arg1); + *(SubscriptionSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SubscriptionSession(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SubscriptionSession **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1subscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionSession **)&jarg1; + result = (bool)(arg1)->subscribe(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1unSubscribe(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SubscriptionSession **)&jarg1; + result = (bool)(arg1)->unSubscribe(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgr(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyPluginMgr **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1createInstance(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + ProxyPluginMgr *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1); + *(ProxyPluginMgr **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1getInstance(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyPluginMgr *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance(); + *(ProxyPluginMgr **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyPlugin *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyPlugin *)(arg1)->findPlugin(arg2); + *(ProxyPlugin **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyAudioConsumer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2); + *(ProxyAudioConsumer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyVideoConsumer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2); + *(ProxyVideoConsumer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyAudioProducer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2); + *(ProxyAudioProducer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgr_1findVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2) { + jlong jresult = 0 ; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + ProxyVideoProducer *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgr **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2); + *(ProxyVideoProducer **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyPluginMgrCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyPluginMgrCallback *)new SwigDirector_ProxyPluginMgrCallback(jenv); + *(ProxyPluginMgrCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreated(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->OnPluginCreated(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginCreatedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginCreated(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyed(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->OnPluginDestroyed(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1OnPluginDestroyedSwigExplicitProxyPluginMgrCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jint jarg3) { + jint jresult = 0 ; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPluginMgrCallback **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = jenv->GetObjectClass(jarg2); + mid = jenv->GetMethodID(clazz, "toByteArray", "()[B"); + ba = (jbyteArray)jenv->CallObjectMethod(jarg2, mid); + bae = jenv->GetByteArrayElements(ba, 0); + sz = jenv->GetArrayLength(ba); + arg2 = 0; + for(i=0; iReleaseByteArrayElements(ba, bae, 0); + } + arg3 = (enum twrap_proxy_plugin_type_e)jarg3; + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginDestroyed(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyPluginMgrCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPluginMgrCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyPluginMgrCallback *obj = *((ProxyPluginMgrCallback **)&objarg); + SwigDirector_ProxyPluginMgrCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyPlugin(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyPlugin **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + twrap_proxy_plugin_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPlugin **)&jarg1; + result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyPlugin_1getId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyPlugin **)&jarg1; + result = (uint64_t)((ProxyPlugin const *)arg1)->getId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyAudioConsumerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyAudioConsumerCallback *)new SwigDirector_ProxyAudioConsumerCallback(jenv); + *(ProxyAudioConsumerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1prepareSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyAudioConsumerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1startSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1pauseSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1stopSwigExplicitProxyAudioConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioConsumerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyAudioConsumerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyAudioConsumerCallback *obj = *((ProxyAudioConsumerCallback **)&objarg); + SwigDirector_ProxyAudioConsumerCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioConsumer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setActualSndCardPlaybackParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1queryForResampler(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4, jint jarg5, jint jarg6) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + uint16_t arg4 ; + uint16_t arg5 ; + uint16_t arg6 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = (uint16_t)jarg2; + arg3 = (uint16_t)jarg3; + arg4 = (uint16_t)jarg4; + arg5 = (uint16_t)jarg5; + arg6 = (uint16_t)jarg6; + result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setPullBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->pull(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + result = (unsigned int)(arg1)->pull(arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1pull_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (unsigned int)(arg1)->pull(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setGain(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (unsigned int)(arg1)->getGain(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (bool)(arg1)->reset(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + arg2 = *(ProxyAudioConsumerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioConsumer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyAudioConsumer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyVideoConsumerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyVideoConsumerCallback *)new SwigDirector_ProxyVideoConsumerCallback(jenv); + *(ProxyVideoConsumerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1prepareSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyVideoConsumerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consume(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = *(ProxyVideoFrame **)&jarg2; + result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1consumeSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = *(ProxyVideoFrame **)&jarg2; + result = (int)(arg1)->ProxyVideoConsumerCallback::consume((ProxyVideoFrame const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopied(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->bufferCopied(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1bufferCopiedSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->ProxyVideoConsumerCallback::bufferCopied(arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1startSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1pauseSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1stopSwigExplicitProxyVideoConsumerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoConsumerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyVideoConsumerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyVideoConsumerCallback *obj = *((ProxyVideoConsumerCallback **)&objarg); + SwigDirector_ProxyVideoConsumerCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoConsumer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoConsumer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDisplaySize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setDisplaySize(arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDisplayWidth(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDisplayHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDisplayHeight(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDecodedWidth(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getDecodedHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (unsigned int)(arg1)->getDecodedHeight(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = *(ProxyVideoConsumerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setAutoResizeDisplay(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setConsumeBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1pull(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->pull(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (bool)(arg1)->reset(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoConsumer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyVideoConsumer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) { + tmedia_chroma_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_chroma_t)jarg1; + ProxyVideoConsumer::setDefaultChroma(arg1); +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1setDefaultAutoResizeDisplay(JNIEnv *jenv, jclass jcls, jboolean jarg1) { + bool arg1 ; + + (void)jenv; + (void)jcls; + arg1 = jarg1 ? true : false; + ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1); +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoFrame(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoFrame **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + result = (unsigned int)(arg1)->getSize(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameWidth(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoFrame_1getFrameHeight(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoFrame **)&jarg1; + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyAudioProducerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyAudioProducerCallback *)new SwigDirector_ProxyAudioProducerCallback(jenv); + *(ProxyAudioProducerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1prepareSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyAudioProducerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1startSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1pauseSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1stopSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBuffer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->fillPushBuffer(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1fillPushBufferSwigExplicitProxyAudioProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyAudioProducerCallback::fillPushBuffer(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyAudioProducerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyAudioProducerCallback *obj = *((ProxyAudioProducerCallback **)&objarg); + SwigDirector_ProxyAudioProducerCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyAudioProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyAudioProducer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setActualSndCardRecordParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3, jboolean jarg4) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + arg4 = jarg4 ? true : false; + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setPushBuffer_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->push((void const *)arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2) { + jint jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + result = (int)(arg1)->push((void const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1push_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + result = (int)(arg1)->push(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setGain(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getGain(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + result = (unsigned int)(arg1)->getGain(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyAudioProducer **)&jarg1; + arg2 = *(ProxyAudioProducerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyAudioProducer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyAudioProducer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + ProxyVideoProducerCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (ProxyVideoProducerCallback *)new SwigDirector_ProxyVideoProducerCallback(jenv); + *(ProxyVideoProducerCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepare(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1prepareSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jint jarg3, jint jarg4) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + result = (int)(arg1)->ProxyVideoProducerCallback::prepare(arg2,arg3,arg4); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1startSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::start(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pause(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1pauseSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::pause(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1stopSwigExplicitProxyVideoProducerCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducerCallback **)&jarg1; + result = (int)(arg1)->ProxyVideoProducerCallback::stop(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg); + (void)jcls; + SwigDirector_ProxyVideoProducerCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducerCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + ProxyVideoProducerCallback *obj = *((ProxyVideoProducerCallback **)&objarg); + SwigDirector_ProxyVideoProducerCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1ProxyVideoProducer(JNIEnv *jenv, jclass jcls, jlong jarg1) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(ProxyVideoProducer **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + result = (int)((ProxyVideoProducer const *)arg1)->getRotation(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setRotation(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = (int)jarg2; + result = (bool)(arg1)->setRotation(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + result = (bool)((ProxyVideoProducer const *)arg1)->getMirror(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setMirror(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setMirror(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setActualCameraOutputSize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jboolean jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1push(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jint jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (int)(arg1)->push((void const *)arg2,arg3); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(ProxyVideoProducer **)&jarg1; + arg2 = *(ProxyVideoProducerCallback **)&jarg2; + (arg1)->setCallback(arg2); +} + + +SWIGEXPORT jobject JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1getMediaSessionId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jobject jresult = 0 ; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + uint64_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(ProxyVideoProducer **)&jarg1; + result = (uint64_t)(arg1)->getMediaSessionId(); + { + jbyteArray ba = jenv->NewByteArray(9); + jbyte* bae = jenv->GetByteArrayElements(ba, 0); + jclass clazz = jenv->FindClass("java/math/BigInteger"); + jmethodID mid = jenv->GetMethodID(clazz, "", "([B)V"); + jobject bigint; + int i; + + bae[0] = 0; + for(i=1; i<9; i++ ) { + bae[i] = (jbyte)(result>>8*(8-i)); + } + + jenv->ReleaseByteArrayElements(ba, bae, 0); + bigint = jenv->NewObject(clazz, mid, ba); + jresult = bigint; + } + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1registerPlugin(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)ProxyVideoProducer::registerPlugin(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1setDefaultChroma(JNIEnv *jenv, jclass jcls, jint jarg1) { + tmedia_chroma_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (tmedia_chroma_t)jarg1; + ProxyVideoProducer::setDefaultChroma(arg1); +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SipCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SipCallback *)new SwigDirector_SipCallback(jenv); + *(SipCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipCallback *arg1 = (SipCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(DialogEvent **)&jarg2; + result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnDialogEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(DialogEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnDialogEvent((DialogEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(StackEvent **)&jarg2; + result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnStackEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(StackEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnStackEvent((StackEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InviteEvent **)&jarg2; + result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInviteEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InviteEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnInviteEvent((InviteEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(MessagingEvent **)&jarg2; + result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnMessagingEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(MessagingEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnMessagingEvent((MessagingEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InfoEvent **)&jarg2; + result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnInfoEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(InfoEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnInfoEvent((InfoEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(OptionsEvent **)&jarg2; + result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnOptionsEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(OptionsEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnOptionsEvent((OptionsEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(PublicationEvent **)&jarg2; + result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnPublicationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(PublicationEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnPublicationEvent((PublicationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(RegistrationEvent **)&jarg2; + result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnRegistrationEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(RegistrationEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnRegistrationEvent((RegistrationEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(SubscriptionEvent **)&jarg2; + result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1OnSubscriptionEventSwigExplicitSipCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipCallback **)&jarg1; + arg2 = *(SubscriptionEvent **)&jarg2; + result = (int)(arg1)->SipCallback::OnSubscriptionEvent((SubscriptionEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + SipCallback *obj = *((SipCallback **)&objarg); + (void)jcls; + SwigDirector_SipCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + SipCallback *obj = *((SipCallback **)&objarg); + SwigDirector_SipCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SafeObject(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SafeObject *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SafeObject *)new SafeObject(); + *(SafeObject **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SafeObject(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SafeObject *arg1 = (SafeObject *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SafeObject **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1Lock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SafeObject **)&jarg1; + result = (int)((SafeObject const *)arg1)->Lock(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SafeObject_1UnLock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SafeObject *arg1 = (SafeObject *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SafeObject **)&jarg1; + result = (int)((SafeObject const *)arg1)->UnLock(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + SipStack *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(SipStack **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SipStack(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SipStack *arg1 = (SipStack *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SipStack **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (bool)(arg1)->start(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDebugCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + DDebugCallback *arg2 = (DDebugCallback *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(SipStack **)&jarg1; + arg2 = *(DDebugCallback **)&jarg2; + result = (bool)(arg1)->setDebugCallback(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDisplayName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setDisplayName((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setRealm(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setRealm((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPI(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setIMPI((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIMPU(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setIMPU((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setPassword(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setPassword((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAMF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setAMF((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setOperatorId(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setOperatorId((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setProxyCSCF(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3, jstring jarg4, jstring jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned short)jarg3; + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalIP_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned short)jarg2; + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setLocalPort_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jint jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned short)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setEarlyIMS(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setEarlyIMS(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addDnsServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addDnsServer((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setDnsDiscovery(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setDnsDiscovery(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setAoR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (int)jarg3; + result = (bool)(arg1)->setAoR((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSigCompParams(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4, jboolean jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + bool arg5 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + arg4 = (unsigned int)jarg4; + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1addSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1removeSigCompCompartment(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabledForICE(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSTUNEnabledForICE(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNServer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jint jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned short)jarg3; + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNCred(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSTUNEnabled(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setSTUNEnabled(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setTLSSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setTLSSecAgree(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCertificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jboolean jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = jarg5 ? true : false; + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setSSLCretificates_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecSecAgree(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jboolean jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = jarg2 ? true : false; + result = (bool)(arg1)->setIPSecSecAgree(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setIPSecParameters(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsENUM(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsNaptrSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jintArray jarg4) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned short *arg4 = (unsigned short *) 0 ; + unsigned short temp4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + { + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return 0; + } + if (jenv->GetArrayLength(jarg4) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return 0; + } + temp4 = (unsigned short)0; + arg4 = &temp4; + } + result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + { + jint jvalue = (jint)temp4; + jenv->SetIntArrayRegion(jarg4, 0, 1, &jvalue); + } + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1dnsSrv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + unsigned short temp3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + { + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return 0; + } + if (jenv->GetArrayLength(jarg3) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return 0; + } + temp3 = (unsigned short)0; + arg3 = &temp3; + } + result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + { + jint jvalue = (jint)temp3; + jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue); + } + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + + delete [] result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setMaxFDs(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setMaxFDs(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getLocalIPnPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jintArray jarg3) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + unsigned short temp3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + { + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return 0; + } + if (jenv->GetArrayLength(jarg3) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return 0; + } + temp3 = (unsigned short)0; + arg3 = &temp3; + } + result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + { + jint jvalue = (jint)temp3; + jenv->SetIntArrayRegion(jarg3, 0, 1, &jvalue); + } + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1getPreferredIdentity(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (char *)(arg1)->getPreferredIdentity(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (bool)(arg1)->isValid(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + SipStack *arg1 = (SipStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SipStack **)&jarg1; + result = (bool)(arg1)->stop(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1initialize(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)SipStack::initialize(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1deInitialize(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)SipStack::deInitialize(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs(JNIEnv *jenv, jclass jcls, jint jarg1) { + tdav_codec_id_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (tdav_codec_id_t)jarg1; + SipStack::setCodecs(arg1); +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecs_12(JNIEnv *jenv, jclass jcls, jlong jarg1) { + int64_t arg1 ; + + (void)jenv; + (void)jcls; + arg1 = (int64_t)jarg1; + SipStack::setCodecs_2(arg1); +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + tdav_codec_id_t arg1 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tdav_codec_id_t)jarg1; + arg2 = (int)jarg2; + result = (bool)SipStack::setCodecPriority(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1setCodecPriority_12(JNIEnv *jenv, jclass jcls, jint jarg1, jint jarg2) { + jboolean jresult = 0 ; + int arg1 ; + int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = (int)jarg2; + result = (bool)SipStack::setCodecPriority_2(arg1,arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isCodecSupported(JNIEnv *jenv, jclass jcls, jint jarg1) { + jboolean jresult = 0 ; + tdav_codec_id_t arg1 ; + bool result; + + (void)jenv; + (void)jcls; + arg1 = (tdav_codec_id_t)jarg1; + result = (bool)SipStack::isCodecSupported(arg1); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1isIPSecSupported(JNIEnv *jenv, jclass jcls) { + jboolean jresult = 0 ; + bool result; + + (void)jenv; + (void)jcls; + result = (bool)SipStack::isIPSecSupported(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + result = (XcapSelector *)new XcapSelector(arg1); + *(XcapSelector **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapSelector(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapSelector *arg1 = (XcapSelector *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapSelector **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (XcapSelector *)(arg1)->setAUID((char const *)arg2); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setName(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (XcapSelector *)(arg1)->setName((char const *)arg2); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPos(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setPosAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3, jstring jarg4, jstring jarg5) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1setNamespace(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jlong jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + XcapSelector *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3); + *(XcapSelector **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1getString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + result = (char *)(arg1)->getString(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + delete [] result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapSelector_1reset(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + XcapSelector *arg1 = (XcapSelector *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapSelector **)&jarg1; + (arg1)->reset(); +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + XcapMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (XcapMessage *)new XcapMessage(); + *(XcapMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapMessage *arg1 = (XcapMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + result = (short)((XcapMessage const *)arg1)->getCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + result = (char *)((XcapMessage const *)arg1)->getPhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jlong jarg3) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = (unsigned int)jarg3; + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jlong jarg4) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = (unsigned int)jarg4; + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapHeaderParamValue_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + result = (unsigned int)(arg1)->getXcapContentLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapMessage_1getXcapContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getXcapContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapEvent *arg1 = (XcapEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + XcapEvent *arg1 = (XcapEvent *) 0 ; + thttp_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapEvent **)&jarg1; + result = (thttp_event_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapEvent_1getXcapMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + XcapEvent *arg1 = (XcapEvent *) 0 ; + XcapMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapEvent **)&jarg1; + result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage(); + *(XcapMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + XcapCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (XcapCallback *)new SwigDirector_XcapCallback(jenv); + *(XcapCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapCallback *arg1 = (XcapCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(XcapCallback **)&jarg1; + arg2 = *(XcapEvent **)&jarg2; + result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1onEventSwigExplicitXcapCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(XcapCallback **)&jarg1; + arg2 = *(XcapEvent **)&jarg2; + result = (int)((XcapCallback const *)arg1)->XcapCallback::onEvent((XcapEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + XcapCallback *obj = *((XcapCallback **)&objarg); + (void)jcls; + SwigDirector_XcapCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + XcapCallback *obj = *((XcapCallback **)&objarg); + SwigDirector_XcapCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + XcapCallback *arg1 = (XcapCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + XcapStack *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapCallback **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(XcapStack **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1XcapStack(JNIEnv *jenv, jclass jcls, jlong jarg1) { + XcapStack *arg1 = (XcapStack *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(XcapStack **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1registerAUID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3, jstring jarg4, jstring jarg5, jboolean jarg6) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool arg6 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + arg6 = jarg6 ? true : false; + result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1start(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + result = (bool)(arg1)->start(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setCredentials(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setXcapRoot(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setXcapRoot((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalIP(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->setLocalIP((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setLocalPort(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setLocalPort(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1addHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1removeHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->removeHeader((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1setTimeout(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = (unsigned int)jarg2; + result = (bool)(arg1)->setTimeout(arg2); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->getDocument((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->getElement((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1getAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->getAttribute((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->deleteDocument((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->deleteElement((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1deleteAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (bool)(arg1)->deleteAttribute((char const *)arg2); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putDocument(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4, jstring jarg5) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + char *arg5 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + arg5 = 0; + if (jarg5) { + arg5 = (char *)jenv->GetStringUTFChars(jarg5, 0); + if (!arg5) return 0; + } + result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg5) jenv->ReleaseStringUTFChars(jarg5, (const char *)arg5); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putElement(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1putAttribute(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jbyteArray jarg3, jlong jarg4) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + + arg3 = jenv->GetDirectBufferAddress(jarg3); + + arg4 = (unsigned int)jarg4; + result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4); + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_XcapStack_1stop(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + XcapStack *arg1 = (XcapStack *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(XcapStack **)&jarg1; + result = (bool)(arg1)->stop(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1RPMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (RPMessage *)new RPMessage(); + *(RPMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1RPMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + RPMessage *arg1 = (RPMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(RPMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + RPMessage *arg1 = (RPMessage *) 0 ; + twrap_rpmessage_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RPMessage **)&jarg1; + result = (twrap_rpmessage_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + RPMessage *arg1 = (RPMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RPMessage **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RPMessage_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + RPMessage *arg1 = (RPMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(RPMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1SMSData(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + SMSData *result = 0 ; + + (void)jenv; + (void)jcls; + result = (SMSData *)new SMSData(); + *(SMSData **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSData(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SMSData *arg1 = (SMSData *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SMSData **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + twrap_sms_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (twrap_sms_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getMR(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (int)(arg1)->getMR(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayloadLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (unsigned int)(arg1)->getPayloadLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getPayload(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getOA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (char *)(arg1)->getOA(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSData_1getDA(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + SMSData *arg1 = (SMSData *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(SMSData **)&jarg1; + result = (char *)(arg1)->getDA(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeSubmit(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeDeliver(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jstring jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = 0; + if (jarg4) { + arg4 = (char *)jenv->GetStringUTFChars(jarg4, 0); + if (!arg4) return 0; + } + result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + if (arg4) jenv->ReleaseStringUTFChars(jarg4, (const char *)arg4); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeACK(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = jarg4 ? true : false; + result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1encodeError(JNIEnv *jenv, jclass jcls, jint jarg1, jstring jarg2, jstring jarg3, jboolean jarg4) { + jlong jresult = 0 ; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + RPMessage *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = (int)jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + arg4 = jarg4 ? true : false; + result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4); + *(RPMessage **)&jresult = result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SMSEncoder_1decode(JNIEnv *jenv, jclass jcls, jbyteArray jarg1, jlong jarg2, jboolean jarg3) { + jlong jresult = 0 ; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + bool arg3 ; + SMSData *result = 0 ; + + (void)jenv; + (void)jcls; + + arg1 = jenv->GetDirectBufferAddress(jarg1); + + arg2 = (unsigned int)jarg2; + arg3 = jarg3 ? true : false; + result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3); + *(SMSData **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1SMSEncoder(JNIEnv *jenv, jclass jcls, jlong jarg1) { + SMSEncoder *arg1 = (SMSEncoder *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(SMSEncoder **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpMessage(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + MsrpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + result = (MsrpMessage *)new MsrpMessage(); + *(MsrpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpMessage(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpMessage **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isRequest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isRequest(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jshort JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getCode(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + short result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (short)(arg1)->getCode(); + jresult = (jshort)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getPhrase(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (char *)(arg1)->getPhrase(); + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getRequestType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + tmsrp_request_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (tmsrp_request_type_t)(arg1)->getRequestType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getByteRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlongArray jarg2, jlongArray jarg3, jlongArray jarg4) { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + int64_t *arg2 = (int64_t *) 0 ; + int64_t *arg3 = (int64_t *) 0 ; + int64_t *arg4 = (int64_t *) 0 ; + int64_t temp2 ; + int64_t temp3 ; + int64_t temp4 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + { + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return ; + } + if (jenv->GetArrayLength(jarg2) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return ; + } + temp2 = (int64_t)0; + arg2 = &temp2; + } + { + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return ; + } + if (jenv->GetArrayLength(jarg3) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return ; + } + temp3 = (int64_t)0; + arg3 = &temp3; + } + { + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "array null"); + return ; + } + if (jenv->GetArrayLength(jarg4) == 0) { + SWIG_JavaThrowException(jenv, SWIG_JavaIndexOutOfBoundsException, "Array must contain at least 1 element"); + return ; + } + temp4 = (int64_t)0; + arg4 = &temp4; + } + (arg1)->getByteRange(arg2,arg3,arg4); + { + jlong jvalue = (jlong)temp2; + jenv->SetLongArrayRegion(jarg2, 0, 1, &jvalue); + } + { + jlong jvalue = (jlong)temp3; + jenv->SetLongArrayRegion(jarg3, 0, 1, &jvalue); + } + { + jlong jvalue = (jlong)temp4; + jenv->SetLongArrayRegion(jarg4, 0, 1, &jvalue); + } + + + +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isLastChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isLastChunck(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isFirstChunck(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isFirstChunck(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1isSuccessReport(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (bool)(arg1)->isSuccessReport(); + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + delete [] result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpHeaderParamValue(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2, jstring jarg3) { + jstring jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + arg3 = 0; + if (jarg3) { + arg3 = (char *)jenv->GetStringUTFChars(jarg3, 0); + if (!arg3) return 0; + } + result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3); + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + if (arg3) jenv->ReleaseStringUTFChars(jarg3, (const char *)arg3); + delete [] result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContentLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + result = (unsigned int)(arg1)->getMsrpContentLength(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpMessage_1getMsrpContent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jbyteArray jarg2, jlong jarg3) { + jlong jresult = 0 ; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpMessage **)&jarg1; + + arg2 = jenv->GetDirectBufferAddress(jarg2); + + arg3 = (unsigned int)jarg3; + result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpEvent(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpEvent **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getType(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jint jresult = 0 ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + tmsrp_event_type_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpEvent **)&jarg1; + result = (tmsrp_event_type_t)(arg1)->getType(); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getSipSession(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + MsrpSession *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpEvent **)&jarg1; + result = (MsrpSession *)(arg1)->getSipSession(); + *(MsrpSession **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpEvent_1getMessage(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + MsrpMessage *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(MsrpEvent **)&jarg1; + result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage(); + *(MsrpMessage **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_new_1MsrpCallback(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + MsrpCallback *result = 0 ; + + (void)jenv; + (void)jcls; + result = (MsrpCallback *)new SwigDirector_MsrpCallback(jenv); + *(MsrpCallback **)&jresult = result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_delete_1MsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1) { + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(MsrpCallback **)&jarg1; + delete arg1; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEvent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpCallback **)&jarg1; + arg2 = *(MsrpEvent **)&jarg2; + result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT jint JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1OnEventSwigExplicitMsrpCallback(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jint jresult = 0 ; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(MsrpCallback **)&jarg1; + arg2 = *(MsrpEvent **)&jarg2; + result = (int)(arg1)->MsrpCallback::OnEvent((MsrpEvent const *)arg2); + jresult = (jint)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1director_1connect(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jswig_mem_own, jboolean jweak_global) { + MsrpCallback *obj = *((MsrpCallback **)&objarg); + (void)jcls; + SwigDirector_MsrpCallback *director = dynamic_cast(obj); + if (director) { + director->swig_connect_director(jenv, jself, jenv->GetObjectClass(jself), (jswig_mem_own == JNI_TRUE), (jweak_global == JNI_TRUE)); + } +} + + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpCallback_1change_1ownership(JNIEnv *jenv, jclass jcls, jobject jself, jlong objarg, jboolean jtake_or_release) { + MsrpCallback *obj = *((MsrpCallback **)&objarg); + SwigDirector_MsrpCallback *director = dynamic_cast(obj); + (void)jcls; + if (director) { + director->swig_java_change_ownership(jenv, jself, jtake_or_release ? true : false); + } +} + + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MediaContentCPIM_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(MediaContent **)&baseptr = *(MediaContentCPIM **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_DialogEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(DialogEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_StackEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(StackEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(InviteEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(MessagingEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(InfoEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(OptionsEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(PublicationEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(RegistrationEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionEvent_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipEvent **)&baseptr = *(SubscriptionEvent **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InviteSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(InviteSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_CallSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(InviteSession **)&baseptr = *(CallSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MsrpSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(InviteSession **)&baseptr = *(MsrpSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_MessagingSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(MessagingSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_InfoSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(InfoSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_OptionsSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(OptionsSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_PublicationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(PublicationSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_RegistrationSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(RegistrationSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SubscriptionSession_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SipSession **)&baseptr = *(SubscriptionSession **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyAudioConsumer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoConsumer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyVideoConsumer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyAudioProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyAudioProducer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_ProxyVideoProducer_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(ProxyPlugin **)&baseptr = *(ProxyVideoProducer **)&jarg1; + return baseptr; +} + +SWIGEXPORT jlong JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_SipStack_1SWIGUpcast(JNIEnv *jenv, jclass jcls, jlong jarg1) { + jlong baseptr = 0; + (void)jenv; + (void)jcls; + *(SafeObject **)&baseptr = *(SipStack **)&jarg1; + return baseptr; +} + +SWIGEXPORT void JNICALL Java_org_doubango_tinyWRAP_tinyWRAPJNI_swig_1module_1init(JNIEnv *jenv, jclass jcls) { + int i; + + static struct { + const char *method; + const char *signature; + } methods[37] = { + { + "SwigDirector_DDebugCallback_OnDebugInfo", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_DDebugCallback_OnDebugWarn", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_DDebugCallback_OnDebugError", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_DDebugCallback_OnDebugFatal", "(Lorg/doubango/tinyWRAP/DDebugCallback;Ljava/lang/String;)I" + }, + { + "SwigDirector_T140Callback_ondata", "(Lorg/doubango/tinyWRAP/T140Callback;J)I" + }, + { + "SwigDirector_ProxyPluginMgrCallback_OnPluginCreated", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I" + }, + { + "SwigDirector_ProxyPluginMgrCallback_OnPluginDestroyed", "(Lorg/doubango/tinyWRAP/ProxyPluginMgrCallback;Ljava/math/BigInteger;I)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;III)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I" + }, + { + "SwigDirector_ProxyAudioConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioConsumerCallback;)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;III)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_consume", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;J)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_bufferCopied", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;JJ)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I" + }, + { + "SwigDirector_ProxyVideoConsumerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoConsumerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;III)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyAudioProducerCallback_fillPushBuffer", "(Lorg/doubango/tinyWRAP/ProxyAudioProducerCallback;)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_prepare", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;III)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_start", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_pause", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I" + }, + { + "SwigDirector_ProxyVideoProducerCallback_stop", "(Lorg/doubango/tinyWRAP/ProxyVideoProducerCallback;)I" + }, + { + "SwigDirector_SipCallback_OnDialogEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnStackEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnInviteEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnMessagingEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnInfoEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnOptionsEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnPublicationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnRegistrationEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_SipCallback_OnSubscriptionEvent", "(Lorg/doubango/tinyWRAP/SipCallback;J)I" + }, + { + "SwigDirector_XcapCallback_onEvent", "(Lorg/doubango/tinyWRAP/XcapCallback;J)I" + }, + { + "SwigDirector_MsrpCallback_OnEvent", "(Lorg/doubango/tinyWRAP/MsrpCallback;J)I" + } + }; + Swig::jclass_tinyWRAPJNI = (jclass) jenv->NewGlobalRef(jcls); + if (!Swig::jclass_tinyWRAPJNI) return; + for (i = 0; i < (int) (sizeof(methods)/sizeof(methods[0])); ++i) { + Swig::director_methids[i] = jenv->GetStaticMethodID(jcls, methods[i].method, methods[i].signature); + if (!Swig::director_methids[i]) return; + } +} + + +#ifdef __cplusplus +} +#endif + diff --git a/bindings/java/tinyWRAP_wrap.h b/bindings/java/tinyWRAP_wrap.h new file mode 100644 index 0000000..847b552 --- /dev/null +++ b/bindings/java/tinyWRAP_wrap.h @@ -0,0 +1,192 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_tinyWRAP_WRAP_H_ +#define SWIG_tinyWRAP_WRAP_H_ + +class SwigDirector_DDebugCallback : public DDebugCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_DDebugCallback(JNIEnv *jenv); + virtual ~SwigDirector_DDebugCallback(); + virtual int OnDebugInfo(char const *message); + virtual int OnDebugWarn(char const *message); + virtual int OnDebugError(char const *message); + virtual int OnDebugFatal(char const *message); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +class SwigDirector_T140Callback : public T140Callback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_T140Callback(JNIEnv *jenv); + virtual ~SwigDirector_T140Callback(); + virtual int ondata(T140CallbackData const *pData); +public: + bool swig_overrides(int n) { + return (n < 1 ? swig_override[n] : false); + } +protected: + bool swig_override[1]; +}; + +class SwigDirector_ProxyPluginMgrCallback : public ProxyPluginMgrCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyPluginMgrCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyPluginMgrCallback(); + virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type); + virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type); +public: + bool swig_overrides(int n) { + return (n < 2 ? swig_override[n] : false); + } +protected: + bool swig_override[2]; +}; + +class SwigDirector_ProxyAudioConsumerCallback : public ProxyAudioConsumerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyAudioConsumerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyAudioConsumerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +class SwigDirector_ProxyVideoConsumerCallback : public ProxyVideoConsumerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyVideoConsumerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyVideoConsumerCallback(); + virtual int prepare(int nWidth, int nHeight, int nFps); + virtual int consume(ProxyVideoFrame const *frame); + virtual int bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 6 ? swig_override[n] : false); + } +protected: + bool swig_override[6]; +}; + +class SwigDirector_ProxyAudioProducerCallback : public ProxyAudioProducerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyAudioProducerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyAudioProducerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); + virtual int fillPushBuffer(); +public: + bool swig_overrides(int n) { + return (n < 5 ? swig_override[n] : false); + } +protected: + bool swig_override[5]; +}; + +class SwigDirector_ProxyVideoProducerCallback : public ProxyVideoProducerCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_ProxyVideoProducerCallback(JNIEnv *jenv); + virtual ~SwigDirector_ProxyVideoProducerCallback(); + virtual int prepare(int width, int height, int fps); + virtual int start(); + virtual int pause(); + virtual int stop(); +public: + bool swig_overrides(int n) { + return (n < 4 ? swig_override[n] : false); + } +protected: + bool swig_override[4]; +}; + +class SwigDirector_SipCallback : public SipCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_SipCallback(JNIEnv *jenv); + virtual ~SwigDirector_SipCallback(); + virtual int OnDialogEvent(DialogEvent const *e); + virtual int OnStackEvent(StackEvent const *e); + virtual int OnInviteEvent(InviteEvent const *e); + virtual int OnMessagingEvent(MessagingEvent const *e); + virtual int OnInfoEvent(InfoEvent const *e); + virtual int OnOptionsEvent(OptionsEvent const *e); + virtual int OnPublicationEvent(PublicationEvent const *e); + virtual int OnRegistrationEvent(RegistrationEvent const *e); + virtual int OnSubscriptionEvent(SubscriptionEvent const *e); +public: + bool swig_overrides(int n) { + return (n < 9 ? swig_override[n] : false); + } +protected: + bool swig_override[9]; +}; + +class SwigDirector_XcapCallback : public XcapCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_XcapCallback(JNIEnv *jenv); + virtual ~SwigDirector_XcapCallback(); + virtual int onEvent(XcapEvent const *e) const; +public: + bool swig_overrides(int n) { + return (n < 1 ? swig_override[n] : false); + } +protected: + bool swig_override[1]; +}; + +class SwigDirector_MsrpCallback : public MsrpCallback, public Swig::Director { + +public: + void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global); + SwigDirector_MsrpCallback(JNIEnv *jenv); + virtual ~SwigDirector_MsrpCallback(); + virtual int OnEvent(MsrpEvent const *e); +public: + bool swig_overrides(int n) { + return (n < 1 ? swig_override[n] : false); + } +protected: + bool swig_override[1]; +}; + + +#endif diff --git a/bindings/java/tmedia_bandwidth_level_t.java b/bindings/java/tmedia_bandwidth_level_t.java new file mode 100644 index 0000000..bc7d636 --- /dev/null +++ b/bindings/java/tmedia_bandwidth_level_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_bandwidth_level_t { + tmedia_bl_low, + tmedia_bl_medium, + tmedia_bl_hight, + tmedia_bl_unrestricted; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_bandwidth_level_t swigToEnum(int swigValue) { + tmedia_bandwidth_level_t[] swigValues = tmedia_bandwidth_level_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_bandwidth_level_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_bandwidth_level_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_bandwidth_level_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_bandwidth_level_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_bandwidth_level_t(tmedia_bandwidth_level_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_chroma_t.java b/bindings/java/tmedia_chroma_t.java new file mode 100644 index 0000000..b71da66 --- /dev/null +++ b/bindings/java/tmedia_chroma_t.java @@ -0,0 +1,63 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_chroma_t { + tmedia_chroma_none(0), + tmedia_chroma_rgb24, + tmedia_chroma_bgr24, + tmedia_chroma_rgb32, + tmedia_chroma_rgb565le, + tmedia_chroma_rgb565be, + tmedia_chroma_nv12, + tmedia_chroma_nv21, + tmedia_chroma_yuv422p, + tmedia_chroma_uyvy422, + tmedia_chroma_yuv420p, + tmedia_chroma_mjpeg, + tmedia_chroma_yuyv422; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_chroma_t swigToEnum(int swigValue) { + tmedia_chroma_t[] swigValues = tmedia_chroma_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_chroma_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_chroma_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_chroma_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_chroma_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_chroma_t(tmedia_chroma_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_codec_id_t.java b/bindings/java/tmedia_codec_id_t.java new file mode 100644 index 0000000..604270e --- /dev/null +++ b/bindings/java/tmedia_codec_id_t.java @@ -0,0 +1,83 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_codec_id_t { + tmedia_codec_id_none(0x00000000), + tmedia_codec_id_amr_nb_oa(0x00000001 << 0), + tmedia_codec_id_amr_nb_be(0x00000001 << 1), + tmedia_codec_id_amr_wb_oa(0x00000001 << 2), + tmedia_codec_id_amr_wb_be(0x00000001 << 3), + tmedia_codec_id_gsm(0x00000001 << 4), + tmedia_codec_id_pcma(0x00000001 << 5), + tmedia_codec_id_pcmu(0x00000001 << 6), + tmedia_codec_id_ilbc(0x00000001 << 7), + tmedia_codec_id_speex_nb(0x00000001 << 8), + tmedia_codec_id_speex_wb(0x00000001 << 9), + tmedia_codec_id_speex_uwb(0x00000001 << 10), + tmedia_codec_id_bv16(0x00000001 << 11), + tmedia_codec_id_bv32(0x00000001 << 12), + tmedia_codec_id_opus(0x00000001 << 13), + tmedia_codec_id_g729ab(0x00000001 << 14), + tmedia_codec_id_g722(0x00000001 << 15), + tmedia_codec_id_h261(0x00010000 << 0), + tmedia_codec_id_h263(0x00010000 << 1), + tmedia_codec_id_h263p(0x00010000 << 2), + tmedia_codec_id_h263pp(0x00010000 << 3), + tmedia_codec_id_h264_bp(0x00010000 << 4), + tmedia_codec_id_h264_mp(0x00010000 << 5), + tmedia_codec_id_h264_hp(0x00010000 << 6), + tmedia_codec_id_h264_bp10(tmedia_codec_id_h264_bp), + tmedia_codec_id_h264_bp20(tmedia_codec_id_h264_bp), + tmedia_codec_id_h264_bp30(tmedia_codec_id_h264_bp), + tmedia_codec_id_h264_svc(0x00010000 << 7), + tmedia_codec_id_theora(0x00010000 << 8), + tmedia_codec_id_mp4ves_es(0x00010000 << 9), + tmedia_codec_id_vp8(0x00010000 << 10), + tmedia_codec_id_t140(0x00010000 << 14), + tmedia_codec_id_red(0x00010000 << 15); + + public final int swigValue() { + return swigValue; + } + + public static tmedia_codec_id_t swigToEnum(int swigValue) { + tmedia_codec_id_t[] swigValues = tmedia_codec_id_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_codec_id_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_codec_id_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_codec_id_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_codec_id_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_codec_id_t(tmedia_codec_id_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_mode_t.java b/bindings/java/tmedia_mode_t.java new file mode 100644 index 0000000..83527ca --- /dev/null +++ b/bindings/java/tmedia_mode_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_mode_t { + tmedia_mode_none, + tmedia_mode_optional, + tmedia_mode_mandatory; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_mode_t swigToEnum(int swigValue) { + tmedia_mode_t[] swigValues = tmedia_mode_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_mode_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_mode_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_mode_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_mode_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_mode_t(tmedia_mode_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_pref_video_size_t.java b/bindings/java/tmedia_pref_video_size_t.java new file mode 100644 index 0000000..a93a031 --- /dev/null +++ b/bindings/java/tmedia_pref_video_size_t.java @@ -0,0 +1,65 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_pref_video_size_t { + tmedia_pref_video_size_sqcif, + tmedia_pref_video_size_qcif, + tmedia_pref_video_size_qvga, + tmedia_pref_video_size_cif, + tmedia_pref_video_size_hvga, + tmedia_pref_video_size_vga, + tmedia_pref_video_size_4cif, + tmedia_pref_video_size_wvga, + tmedia_pref_video_size_svga, + tmedia_pref_video_size_480p, + tmedia_pref_video_size_xga, + tmedia_pref_video_size_720p, + tmedia_pref_video_size_16cif, + tmedia_pref_video_size_1080p, + tmedia_pref_video_size_2160p; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_pref_video_size_t swigToEnum(int swigValue) { + tmedia_pref_video_size_t[] swigValues = tmedia_pref_video_size_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_pref_video_size_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_pref_video_size_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_pref_video_size_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_pref_video_size_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_pref_video_size_t(tmedia_pref_video_size_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_profile_t.java b/bindings/java/tmedia_profile_t.java new file mode 100644 index 0000000..bfb8f60 --- /dev/null +++ b/bindings/java/tmedia_profile_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_profile_t { + tmedia_profile_default, + tmedia_profile_rtcweb; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_profile_t swigToEnum(int swigValue) { + tmedia_profile_t[] swigValues = tmedia_profile_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_profile_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_profile_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_profile_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_profile_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_profile_t(tmedia_profile_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_qos_strength_t.java b/bindings/java/tmedia_qos_strength_t.java new file mode 100644 index 0000000..8f8e465 --- /dev/null +++ b/bindings/java/tmedia_qos_strength_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_qos_strength_t { + tmedia_qos_strength_none, + tmedia_qos_strength_failure, + tmedia_qos_strength_unknown, + tmedia_qos_strength_optional, + tmedia_qos_strength_mandatory; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_qos_strength_t swigToEnum(int swigValue) { + tmedia_qos_strength_t[] swigValues = tmedia_qos_strength_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_qos_strength_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_qos_strength_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_qos_strength_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_qos_strength_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_qos_strength_t(tmedia_qos_strength_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_qos_stype_t.java b/bindings/java/tmedia_qos_stype_t.java new file mode 100644 index 0000000..f19af37 --- /dev/null +++ b/bindings/java/tmedia_qos_stype_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_qos_stype_t { + tmedia_qos_stype_none, + tmedia_qos_stype_segmented, + tmedia_qos_stype_e2e; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_qos_stype_t swigToEnum(int swigValue) { + tmedia_qos_stype_t[] swigValues = tmedia_qos_stype_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_qos_stype_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_qos_stype_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_qos_stype_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_qos_stype_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_qos_stype_t(tmedia_qos_stype_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_srtp_mode_t.java b/bindings/java/tmedia_srtp_mode_t.java new file mode 100644 index 0000000..42a6f1c --- /dev/null +++ b/bindings/java/tmedia_srtp_mode_t.java @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_srtp_mode_t { + tmedia_srtp_mode_none, + tmedia_srtp_mode_optional, + tmedia_srtp_mode_mandatory; + + public final int swigValue() { + return swigValue; + } + + public static tmedia_srtp_mode_t swigToEnum(int swigValue) { + tmedia_srtp_mode_t[] swigValues = tmedia_srtp_mode_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_srtp_mode_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_srtp_mode_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_srtp_mode_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_srtp_mode_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_srtp_mode_t(tmedia_srtp_mode_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_srtp_type_t.java b/bindings/java/tmedia_srtp_type_t.java new file mode 100644 index 0000000..a33778b --- /dev/null +++ b/bindings/java/tmedia_srtp_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmedia_srtp_type_t { + tmedia_srtp_type_none(0x00), + tmedia_srtp_type_sdes(0x01), + tmedia_srtp_type_dtls(0x02), + tmedia_srtp_type_sdes_dtls((0x01|0x02)); + + public final int swigValue() { + return swigValue; + } + + public static tmedia_srtp_type_t swigToEnum(int swigValue) { + tmedia_srtp_type_t[] swigValues = tmedia_srtp_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_srtp_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_srtp_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_srtp_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_srtp_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_srtp_type_t(tmedia_srtp_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmedia_t140_data_type_t.java b/bindings/java/tmedia_t140_data_type_t.java new file mode 100644 index 0000000..4eb7a5f --- /dev/null +++ b/bindings/java/tmedia_t140_data_type_t.java @@ -0,0 +1,65 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package 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); + + public final int swigValue() { + return swigValue; + } + + public static tmedia_t140_data_type_t swigToEnum(int swigValue) { + tmedia_t140_data_type_t[] swigValues = tmedia_t140_data_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmedia_t140_data_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmedia_t140_data_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmedia_t140_data_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmedia_t140_data_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmedia_t140_data_type_t(tmedia_t140_data_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmsrp_event_type_t.java b/bindings/java/tmsrp_event_type_t.java new file mode 100644 index 0000000..dc832bd --- /dev/null +++ b/bindings/java/tmsrp_event_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmsrp_event_type_t { + tmsrp_event_type_none, + tmsrp_event_type_connected, + tmsrp_event_type_disconnected, + tmsrp_event_type_message; + + public final int swigValue() { + return swigValue; + } + + public static tmsrp_event_type_t swigToEnum(int swigValue) { + tmsrp_event_type_t[] swigValues = tmsrp_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmsrp_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmsrp_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmsrp_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmsrp_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmsrp_event_type_t(tmsrp_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tmsrp_request_type_t.java b/bindings/java/tmsrp_request_type_t.java new file mode 100644 index 0000000..49147bd --- /dev/null +++ b/bindings/java/tmsrp_request_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tmsrp_request_type_t { + tmsrp_NONE(0), + tmsrp_SEND, + tmsrp_REPORT, + tmsrp_AUTH; + + public final int swigValue() { + return swigValue; + } + + public static tmsrp_request_type_t swigToEnum(int swigValue) { + tmsrp_request_type_t[] swigValues = tmsrp_request_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tmsrp_request_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tmsrp_request_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tmsrp_request_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tmsrp_request_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tmsrp_request_type_t(tmsrp_request_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_event_type_t.java b/bindings/java/tsip_event_type_t.java new file mode 100644 index 0000000..7519707 --- /dev/null +++ b/bindings/java/tsip_event_type_t.java @@ -0,0 +1,58 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_event_type_t { + tsip_event_invite, + tsip_event_message, + tsip_event_info, + tsip_event_options, + tsip_event_publish, + tsip_event_register, + tsip_event_subscribe, + tsip_event_dialog; + + public final int swigValue() { + return swigValue; + } + + public static tsip_event_type_t swigToEnum(int swigValue) { + tsip_event_type_t[] swigValues = tsip_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_event_type_t(tsip_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_info_event_type_t.java b/bindings/java/tsip_info_event_type_t.java new file mode 100644 index 0000000..96a2064 --- /dev/null +++ b/bindings/java/tsip_info_event_type_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_info_event_type_t { + tsip_i_info, + tsip_ao_info; + + public final int swigValue() { + return swigValue; + } + + public static tsip_info_event_type_t swigToEnum(int swigValue) { + tsip_info_event_type_t[] swigValues = tsip_info_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_info_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_info_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_info_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_info_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_info_event_type_t(tsip_info_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_invite_event_type_t.java b/bindings/java/tsip_invite_event_type_t.java new file mode 100644 index 0000000..9c84c57 --- /dev/null +++ b/bindings/java/tsip_invite_event_type_t.java @@ -0,0 +1,72 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_invite_event_type_t { + tsip_i_newcall, + tsip_i_request, + tsip_ao_request, + tsip_o_ect_trying, + tsip_o_ect_accepted, + tsip_o_ect_completed, + tsip_o_ect_failed, + tsip_o_ect_notify, + tsip_i_ect_requested, + tsip_i_ect_newcall, + tsip_i_ect_completed, + tsip_i_ect_failed, + tsip_i_ect_notify, + tsip_m_early_media, + tsip_m_updating, + tsip_m_updated, + tsip_m_local_hold_ok, + tsip_m_local_hold_nok, + tsip_m_local_resume_ok, + tsip_m_local_resume_nok, + tsip_m_remote_hold, + tsip_m_remote_resume; + + public final int swigValue() { + return swigValue; + } + + public static tsip_invite_event_type_t swigToEnum(int swigValue) { + tsip_invite_event_type_t[] swigValues = tsip_invite_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_invite_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_invite_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_invite_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_invite_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_invite_event_type_t(tsip_invite_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_message_event_type_t.java b/bindings/java/tsip_message_event_type_t.java new file mode 100644 index 0000000..cbf332b --- /dev/null +++ b/bindings/java/tsip_message_event_type_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_message_event_type_t { + tsip_i_message, + tsip_ao_message; + + public final int swigValue() { + return swigValue; + } + + public static tsip_message_event_type_t swigToEnum(int swigValue) { + tsip_message_event_type_t[] swigValues = tsip_message_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_message_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_message_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_message_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_message_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_message_event_type_t(tsip_message_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_options_event_type_t.java b/bindings/java/tsip_options_event_type_t.java new file mode 100644 index 0000000..ca5ab1e --- /dev/null +++ b/bindings/java/tsip_options_event_type_t.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_options_event_type_t { + tsip_i_options, + tsip_ao_options; + + public final int swigValue() { + return swigValue; + } + + public static tsip_options_event_type_t swigToEnum(int swigValue) { + tsip_options_event_type_t[] swigValues = tsip_options_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_options_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_options_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_options_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_options_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_options_event_type_t(tsip_options_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_publish_event_type_t.java b/bindings/java/tsip_publish_event_type_t.java new file mode 100644 index 0000000..c04e0ae --- /dev/null +++ b/bindings/java/tsip_publish_event_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_publish_event_type_t { + tsip_i_publish, + tsip_ao_publish, + tsip_i_unpublish, + tsip_ao_unpublish; + + public final int swigValue() { + return swigValue; + } + + public static tsip_publish_event_type_t swigToEnum(int swigValue) { + tsip_publish_event_type_t[] swigValues = tsip_publish_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_publish_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_publish_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_publish_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_publish_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_publish_event_type_t(tsip_publish_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_register_event_type_t.java b/bindings/java/tsip_register_event_type_t.java new file mode 100644 index 0000000..e95d1f4 --- /dev/null +++ b/bindings/java/tsip_register_event_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_register_event_type_t { + tsip_i_newreg, + tsip_i_register, + tsip_ao_register, + tsip_i_unregister, + tsip_ao_unregister; + + public final int swigValue() { + return swigValue; + } + + public static tsip_register_event_type_t swigToEnum(int swigValue) { + tsip_register_event_type_t[] swigValues = tsip_register_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_register_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_register_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_register_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_register_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_register_event_type_t(tsip_register_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_request_type_t.java b/bindings/java/tsip_request_type_t.java new file mode 100644 index 0000000..a96be99 --- /dev/null +++ b/bindings/java/tsip_request_type_t.java @@ -0,0 +1,65 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_request_type_t { + tsip_NONE(0), + tsip_ACK, + tsip_BYE, + tsip_CANCEL, + tsip_INVITE, + tsip_OPTIONS, + tsip_REGISTER, + tsip_SUBSCRIBE, + tsip_NOTIFY, + tsip_REFER, + tsip_INFO, + tsip_UPDATE, + tsip_MESSAGE, + tsip_PUBLISH, + tsip_PRACK; + + public final int swigValue() { + return swigValue; + } + + public static tsip_request_type_t swigToEnum(int swigValue) { + tsip_request_type_t[] swigValues = tsip_request_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_request_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_request_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_request_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_request_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_request_type_t(tsip_request_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_stack_mode_t.java b/bindings/java/tsip_stack_mode_t.java new file mode 100644 index 0000000..5dcec38 --- /dev/null +++ b/bindings/java/tsip_stack_mode_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_stack_mode_t { + tsip_stack_mode_ua, + tsip_stack_mode_p2p, + tsip_stack_mode_mediaproxy, + tsip_stack_mode_mcu; + + public final int swigValue() { + return swigValue; + } + + public static tsip_stack_mode_t swigToEnum(int swigValue) { + tsip_stack_mode_t[] swigValues = tsip_stack_mode_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_stack_mode_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_stack_mode_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_stack_mode_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_stack_mode_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_stack_mode_t(tsip_stack_mode_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/tsip_subscribe_event_type_t.java b/bindings/java/tsip_subscribe_event_type_t.java new file mode 100644 index 0000000..03cab19 --- /dev/null +++ b/bindings/java/tsip_subscribe_event_type_t.java @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum tsip_subscribe_event_type_t { + tsip_i_subscribe, + tsip_ao_subscribe, + tsip_i_unsubscribe, + tsip_ao_unsubscribe, + tsip_i_notify, + tsip_ao_notify; + + public final int swigValue() { + return swigValue; + } + + public static tsip_subscribe_event_type_t swigToEnum(int swigValue) { + tsip_subscribe_event_type_t[] swigValues = tsip_subscribe_event_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (tsip_subscribe_event_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + tsip_subscribe_event_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private tsip_subscribe_event_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private tsip_subscribe_event_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private tsip_subscribe_event_type_t(tsip_subscribe_event_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/twrap_media_type_t.java b/bindings/java/twrap_media_type_t.java new file mode 100644 index 0000000..25924a7 --- /dev/null +++ b/bindings/java/twrap_media_type_t.java @@ -0,0 +1,60 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +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_bfcp(0x10), + twrap_media_bfcp_audio(0x30), + twrap_media_bfcp_video(0x50), + twrap_media_audiovideo(0x03), + twrap_media_audio_video(twrap_media_audiovideo); + + public final int swigValue() { + return swigValue; + } + + public static twrap_media_type_t swigToEnum(int swigValue) { + twrap_media_type_t[] swigValues = twrap_media_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_media_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_media_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_media_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_media_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_media_type_t(twrap_media_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/twrap_proxy_plugin_type_t.java b/bindings/java/twrap_proxy_plugin_type_t.java new file mode 100644 index 0000000..eb8eb08 --- /dev/null +++ b/bindings/java/twrap_proxy_plugin_type_t.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum twrap_proxy_plugin_type_t { + twrap_proxy_plugin_audio_producer, + twrap_proxy_plugin_video_producer, + twrap_proxy_plugin_audio_consumer, + twrap_proxy_plugin_video_consumer; + + public final int swigValue() { + return swigValue; + } + + public static twrap_proxy_plugin_type_t swigToEnum(int swigValue) { + twrap_proxy_plugin_type_t[] swigValues = twrap_proxy_plugin_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_proxy_plugin_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_proxy_plugin_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_proxy_plugin_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_proxy_plugin_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_proxy_plugin_type_t(twrap_proxy_plugin_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/twrap_rpmessage_type_t.java b/bindings/java/twrap_rpmessage_type_t.java new file mode 100644 index 0000000..9e879b1 --- /dev/null +++ b/bindings/java/twrap_rpmessage_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum twrap_rpmessage_type_t { + twrap_rpmessage_type_sms_none, + twrap_rpmessage_type_sms_submit, + twrap_rpmessage_type_sms_deliver, + twrap_rpmessage_type_sms_ack, + twrap_rpmessage_type_sms_error; + + public final int swigValue() { + return swigValue; + } + + public static twrap_rpmessage_type_t swigToEnum(int swigValue) { + twrap_rpmessage_type_t[] swigValues = twrap_rpmessage_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_rpmessage_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_rpmessage_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_rpmessage_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_rpmessage_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_rpmessage_type_t(twrap_rpmessage_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/java/twrap_sms_type_t.java b/bindings/java/twrap_sms_type_t.java new file mode 100644 index 0000000..8d5a910 --- /dev/null +++ b/bindings/java/twrap_sms_type_t.java @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.doubango.tinyWRAP; + +public enum twrap_sms_type_t { + twrap_sms_type_none, + twrap_sms_type_rpdata, + twrap_sms_type_smma, + twrap_sms_type_ack, + twrap_sms_type_error; + + public final int swigValue() { + return swigValue; + } + + public static twrap_sms_type_t swigToEnum(int swigValue) { + twrap_sms_type_t[] swigValues = twrap_sms_type_t.class.getEnumConstants(); + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (twrap_sms_type_t swigEnum : swigValues) + if (swigEnum.swigValue == swigValue) + return swigEnum; + throw new IllegalArgumentException("No enum " + twrap_sms_type_t.class + " with value " + swigValue); + } + + @SuppressWarnings("unused") + private twrap_sms_type_t() { + this.swigValue = SwigNext.next++; + } + + @SuppressWarnings("unused") + private twrap_sms_type_t(int swigValue) { + this.swigValue = swigValue; + SwigNext.next = swigValue+1; + } + + @SuppressWarnings("unused") + private twrap_sms_type_t(twrap_sms_type_t swigEnum) { + this.swigValue = swigEnum.swigValue; + SwigNext.next = this.swigValue+1; + } + + private final int swigValue; + + private static class SwigNext { + private static int next = 0; + } +} + diff --git a/bindings/objc/objc.i b/bindings/objc/objc.i new file mode 100644 index 0000000..6b696d2 --- /dev/null +++ b/bindings/objc/objc.i @@ -0,0 +1,7 @@ +/* File : objc.i */ + +/* http://www.swig.org/Doc1.3/Library.html#Library_carrays +* 8.3.2 Passing binary data */ +%apply (char *STRING, int LENGTH) { (const void* buffer, int len) }; + +%include ../_common/tinyWRAP.i diff --git a/bindings/perl/perl.i b/bindings/perl/perl.i new file mode 100644 index 0000000..12a9d06 --- /dev/null +++ b/bindings/perl/perl.i @@ -0,0 +1,7 @@ +/* File : perl.i */ + +/* http://www.swig.org/Doc1.3/Library.html#Library_carrays +* 8.3.2 Passing binary data */ +%apply (char *STRING, int LENGTH) { (const void* buffer, int len) }; + +%include ../_common/tinyWRAP.i diff --git a/bindings/perl/tinyWRAP.pm b/bindings/perl/tinyWRAP.pm new file mode 100644 index 0000000..a41bdee --- /dev/null +++ b/bindings/perl/tinyWRAP.pm @@ -0,0 +1,2739 @@ +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 2.0.9 +# +# Do not make changes to this file unless you know what you are doing--modify +# the SWIG interface file instead. + +package tinyWRAP; +use base qw(Exporter); +use base qw(DynaLoader); +package tinyWRAPc; +bootstrap tinyWRAP; +package tinyWRAP; +@EXPORT = qw(); + +# ---------- BASE METHODS ------------- + +package tinyWRAP; + +sub TIEHASH { + my ($classname,$obj) = @_; + return bless $obj, $classname; +} + +sub CLEAR { } + +sub FIRSTKEY { } + +sub NEXTKEY { } + +sub FETCH { + my ($self,$field) = @_; + my $member_func = "swig_${field}_get"; + $self->$member_func(); +} + +sub STORE { + my ($self,$field,$newval) = @_; + my $member_func = "swig_${field}_set"; + $self->$member_func($newval); +} + +sub this { + my $ptr = shift; + return tied(%$ptr); +} + + +# ------- FUNCTION WRAPPERS -------- + +package tinyWRAP; + + +############# Class : tinyWRAP::DDebugCallback ############## + +package tinyWRAP::DDebugCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_DDebugCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_DDebugCallback($self); + delete $OWNER{$self}; + } +} + +*OnDebugInfo = *tinyWRAPc::DDebugCallback_OnDebugInfo; +*OnDebugWarn = *tinyWRAPc::DDebugCallback_OnDebugWarn; +*OnDebugError = *tinyWRAPc::DDebugCallback_OnDebugError; +*OnDebugFatal = *tinyWRAPc::DDebugCallback_OnDebugFatal; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::AudioResampler ############## + +package tinyWRAP::AudioResampler; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_AudioResampler(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_AudioResampler($self); + delete $OWNER{$self}; + } +} + +*isValid = *tinyWRAPc::AudioResampler_isValid; +*getOutputRequiredSizeInShort = *tinyWRAPc::AudioResampler_getOutputRequiredSizeInShort; +*getInputRequiredSizeInShort = *tinyWRAPc::AudioResampler_getInputRequiredSizeInShort; +*process = *tinyWRAPc::AudioResampler_process; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ActionConfig ############## + +package tinyWRAP::ActionConfig; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_ActionConfig(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ActionConfig($self); + delete $OWNER{$self}; + } +} + +*addHeader = *tinyWRAPc::ActionConfig_addHeader; +*addPayload = *tinyWRAPc::ActionConfig_addPayload; +*setActiveMedia = *tinyWRAPc::ActionConfig_setActiveMedia; +*setResponseLine = *tinyWRAPc::ActionConfig_setResponseLine; +*setMediaString = *tinyWRAPc::ActionConfig_setMediaString; +*setMediaInt = *tinyWRAPc::ActionConfig_setMediaInt; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::Codec ############## + +package tinyWRAP::Codec; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_Codec($self); + delete $OWNER{$self}; + } +} + +*getMediaType = *tinyWRAPc::Codec_getMediaType; +*getName = *tinyWRAPc::Codec_getName; +*getDescription = *tinyWRAPc::Codec_getDescription; +*getNegFormat = *tinyWRAPc::Codec_getNegFormat; +*getAudioSamplingRate = *tinyWRAPc::Codec_getAudioSamplingRate; +*getAudioChannels = *tinyWRAPc::Codec_getAudioChannels; +*getAudioPTime = *tinyWRAPc::Codec_getAudioPTime; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MediaSessionMgr ############## + +package tinyWRAP::MediaSessionMgr; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MediaSessionMgr($self); + delete $OWNER{$self}; + } +} + +*sessionSetInt32 = *tinyWRAPc::MediaSessionMgr_sessionSetInt32; +*sessionGetInt32 = *tinyWRAPc::MediaSessionMgr_sessionGetInt32; +*consumerSetInt32 = *tinyWRAPc::MediaSessionMgr_consumerSetInt32; +*consumerSetInt64 = *tinyWRAPc::MediaSessionMgr_consumerSetInt64; +*producerSetInt32 = *tinyWRAPc::MediaSessionMgr_producerSetInt32; +*producerSetInt64 = *tinyWRAPc::MediaSessionMgr_producerSetInt64; +*producerGetCodec = *tinyWRAPc::MediaSessionMgr_producerGetCodec; +*findProxyPluginConsumer = *tinyWRAPc::MediaSessionMgr_findProxyPluginConsumer; +*findProxyPluginProducer = *tinyWRAPc::MediaSessionMgr_findProxyPluginProducer; +*registerAudioPluginFromFile = *tinyWRAPc::MediaSessionMgr_registerAudioPluginFromFile; +*getSessionId = *tinyWRAPc::MediaSessionMgr_getSessionId; +*defaultsSetProfile = *tinyWRAPc::MediaSessionMgr_defaultsSetProfile; +*defaultsGetProfile = *tinyWRAPc::MediaSessionMgr_defaultsGetProfile; +*defaultsSetBandwidthLevel = *tinyWRAPc::MediaSessionMgr_defaultsSetBandwidthLevel; +*defaultsGetBandwidthLevel = *tinyWRAPc::MediaSessionMgr_defaultsGetBandwidthLevel; +*defaultsSetCongestionCtrlEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetCongestionCtrlEnabled; +*defaultsSetVideoMotionRank = *tinyWRAPc::MediaSessionMgr_defaultsSetVideoMotionRank; +*defaultsSetVideoFps = *tinyWRAPc::MediaSessionMgr_defaultsSetVideoFps; +*defaultsSetBandwidthVideoUploadMax = *tinyWRAPc::MediaSessionMgr_defaultsSetBandwidthVideoUploadMax; +*defaultsSetBandwidthVideoDownloadMax = *tinyWRAPc::MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax; +*defaultsSetPrefVideoSize = *tinyWRAPc::MediaSessionMgr_defaultsSetPrefVideoSize; +*defaultsSetJbMargin = *tinyWRAPc::MediaSessionMgr_defaultsSetJbMargin; +*defaultsSetJbMaxLateRate = *tinyWRAPc::MediaSessionMgr_defaultsSetJbMaxLateRate; +*defaultsSetEchoTail = *tinyWRAPc::MediaSessionMgr_defaultsSetEchoTail; +*defaultsGetEchoTail = *tinyWRAPc::MediaSessionMgr_defaultsGetEchoTail; +*defaultsSetEchoSkew = *tinyWRAPc::MediaSessionMgr_defaultsSetEchoSkew; +*defaultsSetEchoSuppEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetEchoSuppEnabled; +*defaultsGetEchoSuppEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetEchoSuppEnabled; +*defaultsSetAgcEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetAgcEnabled; +*defaultsGetAgcEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetAgcEnabled; +*defaultsSetAgcLevel = *tinyWRAPc::MediaSessionMgr_defaultsSetAgcLevel; +*defaultsGetAgcLevel = *tinyWRAPc::MediaSessionMgr_defaultsGetAgcLevel; +*defaultsSetVadEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetVadEnabled; +*defaultsGetGetVadEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetGetVadEnabled; +*defaultsSetNoiseSuppEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetNoiseSuppEnabled; +*defaultsGetNoiseSuppEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetNoiseSuppEnabled; +*defaultsSetNoiseSuppLevel = *tinyWRAPc::MediaSessionMgr_defaultsSetNoiseSuppLevel; +*defaultsGetNoiseSuppLevel = *tinyWRAPc::MediaSessionMgr_defaultsGetNoiseSuppLevel; +*defaultsSet100relEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSet100relEnabled; +*defaultsGet100relEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGet100relEnabled; +*defaultsSetScreenSize = *tinyWRAPc::MediaSessionMgr_defaultsSetScreenSize; +*defaultsSetAudioGain = *tinyWRAPc::MediaSessionMgr_defaultsSetAudioGain; +*defaultsSetAudioPtime = *tinyWRAPc::MediaSessionMgr_defaultsSetAudioPtime; +*defaultsSetAudioChannels = *tinyWRAPc::MediaSessionMgr_defaultsSetAudioChannels; +*defaultsSetRtpPortRange = *tinyWRAPc::MediaSessionMgr_defaultsSetRtpPortRange; +*defaultsSetRtpSymetricEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetRtpSymetricEnabled; +*defaultsSetMediaType = *tinyWRAPc::MediaSessionMgr_defaultsSetMediaType; +*defaultsSetVolume = *tinyWRAPc::MediaSessionMgr_defaultsSetVolume; +*defaultsGetVolume = *tinyWRAPc::MediaSessionMgr_defaultsGetVolume; +*defaultsSetInviteSessionTimers = *tinyWRAPc::MediaSessionMgr_defaultsSetInviteSessionTimers; +*defaultsSetSRtpMode = *tinyWRAPc::MediaSessionMgr_defaultsSetSRtpMode; +*defaultsGetSRtpMode = *tinyWRAPc::MediaSessionMgr_defaultsGetSRtpMode; +*defaultsSetSRtpType = *tinyWRAPc::MediaSessionMgr_defaultsSetSRtpType; +*defaultsGetSRtpType = *tinyWRAPc::MediaSessionMgr_defaultsGetSRtpType; +*defaultsSetRtcpEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetRtcpEnabled; +*defaultsGetRtcpEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetRtcpEnabled; +*defaultsSetRtcpMuxEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetRtcpMuxEnabled; +*defaultsGetRtcpMuxEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetRtcpMuxEnabled; +*defaultsSetStunEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetStunEnabled; +*defaultsSetIceStunEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetIceStunEnabled; +*defaultsSetIceTurnEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetIceTurnEnabled; +*defaultsSetStunServer = *tinyWRAPc::MediaSessionMgr_defaultsSetStunServer; +*defaultsSetStunCred = *tinyWRAPc::MediaSessionMgr_defaultsSetStunCred; +*defaultsSetIceEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetIceEnabled; +*defaultsSetByPassEncoding = *tinyWRAPc::MediaSessionMgr_defaultsSetByPassEncoding; +*defaultsGetByPassEncoding = *tinyWRAPc::MediaSessionMgr_defaultsGetByPassEncoding; +*defaultsSetByPassDecoding = *tinyWRAPc::MediaSessionMgr_defaultsSetByPassDecoding; +*defaultsGetByPassDecoding = *tinyWRAPc::MediaSessionMgr_defaultsGetByPassDecoding; +*defaultsSetVideoJbEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetVideoJbEnabled; +*defaultsGetVideoJbEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetVideoJbEnabled; +*defaultsSetVideoZeroArtifactsEnabled = *tinyWRAPc::MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled; +*defaultsGetVideoZeroArtifactsEnabled = *tinyWRAPc::MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled; +*defaultsSetRtpBuffSize = *tinyWRAPc::MediaSessionMgr_defaultsSetRtpBuffSize; +*defaultsGetRtpBuffSize = *tinyWRAPc::MediaSessionMgr_defaultsGetRtpBuffSize; +*defaultsSetAvpfTail = *tinyWRAPc::MediaSessionMgr_defaultsSetAvpfTail; +*defaultsSetAvpfMode = *tinyWRAPc::MediaSessionMgr_defaultsSetAvpfMode; +*defaultsSetOpusMaxCaptureRate = *tinyWRAPc::MediaSessionMgr_defaultsSetOpusMaxCaptureRate; +*defaultsSetOpusMaxPlaybackRate = *tinyWRAPc::MediaSessionMgr_defaultsSetOpusMaxPlaybackRate; +*defaultsSetMaxFds = *tinyWRAPc::MediaSessionMgr_defaultsSetMaxFds; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MediaContent ############## + +package tinyWRAP::MediaContent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MediaContent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::MediaContent_getType; +*getDataLength = *tinyWRAPc::MediaContent_getDataLength; +*getData = *tinyWRAPc::MediaContent_getData; +*parse = *tinyWRAPc::MediaContent_parse; +*getPayloadLength = *tinyWRAPc::MediaContent_getPayloadLength; +*getPayload = *tinyWRAPc::MediaContent_getPayload; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MediaContentCPIM ############## + +package tinyWRAP::MediaContentCPIM; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::MediaContent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MediaContentCPIM($self); + delete $OWNER{$self}; + } +} + +*getPayloadLength = *tinyWRAPc::MediaContentCPIM_getPayloadLength; +*getPayload = *tinyWRAPc::MediaContentCPIM_getPayload; +*getHeaderValue = *tinyWRAPc::MediaContentCPIM_getHeaderValue; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipUri ############## + +package tinyWRAP::SipUri; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipUri(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipUri($self); + delete $OWNER{$self}; + } +} + +*isValid = *tinyWRAPc::SipUri_isValid; +*getScheme = *tinyWRAPc::SipUri_getScheme; +*getHost = *tinyWRAPc::SipUri_getHost; +*getPort = *tinyWRAPc::SipUri_getPort; +*getUserName = *tinyWRAPc::SipUri_getUserName; +*getPassword = *tinyWRAPc::SipUri_getPassword; +*getDisplayName = *tinyWRAPc::SipUri_getDisplayName; +*getParamValue = *tinyWRAPc::SipUri_getParamValue; +*setDisplayName = *tinyWRAPc::SipUri_setDisplayName; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SdpMessage ############## + +package tinyWRAP::SdpMessage; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SdpMessage(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SdpMessage($self); + delete $OWNER{$self}; + } +} + +*getSdpHeaderValue = *tinyWRAPc::SdpMessage_getSdpHeaderValue; +*getSdpHeaderAValue = *tinyWRAPc::SdpMessage_getSdpHeaderAValue; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipMessage ############## + +package tinyWRAP::SipMessage; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipMessage(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipMessage($self); + delete $OWNER{$self}; + } +} + +*isResponse = *tinyWRAPc::SipMessage_isResponse; +*getRequestType = *tinyWRAPc::SipMessage_getRequestType; +*getResponseCode = *tinyWRAPc::SipMessage_getResponseCode; +*getResponsePhrase = *tinyWRAPc::SipMessage_getResponsePhrase; +*getSipHeaderValue = *tinyWRAPc::SipMessage_getSipHeaderValue; +*getSipHeaderParamValue = *tinyWRAPc::SipMessage_getSipHeaderParamValue; +*getSipContentLength = *tinyWRAPc::SipMessage_getSipContentLength; +*getSipContent = *tinyWRAPc::SipMessage_getSipContent; +*getSdpMessage = *tinyWRAPc::SipMessage_getSdpMessage; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipEvent ############## + +package tinyWRAP::SipEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipEvent($self); + delete $OWNER{$self}; + } +} + +*getCode = *tinyWRAPc::SipEvent_getCode; +*getPhrase = *tinyWRAPc::SipEvent_getPhrase; +*getBaseSession = *tinyWRAPc::SipEvent_getBaseSession; +*getSipMessage = *tinyWRAPc::SipEvent_getSipMessage; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::DialogEvent ############## + +package tinyWRAP::DialogEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_DialogEvent($self); + delete $OWNER{$self}; + } +} + +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::StackEvent ############## + +package tinyWRAP::StackEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_StackEvent($self); + delete $OWNER{$self}; + } +} + +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::InviteEvent ############## + +package tinyWRAP::InviteEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_InviteEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::InviteEvent_getType; +*getMediaType = *tinyWRAPc::InviteEvent_getMediaType; +*getSession = *tinyWRAPc::InviteEvent_getSession; +*takeCallSessionOwnership = *tinyWRAPc::InviteEvent_takeCallSessionOwnership; +*takeMsrpSessionOwnership = *tinyWRAPc::InviteEvent_takeMsrpSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MessagingEvent ############## + +package tinyWRAP::MessagingEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MessagingEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::MessagingEvent_getType; +*getSession = *tinyWRAPc::MessagingEvent_getSession; +*takeSessionOwnership = *tinyWRAPc::MessagingEvent_takeSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::InfoEvent ############## + +package tinyWRAP::InfoEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_InfoEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::InfoEvent_getType; +*getSession = *tinyWRAPc::InfoEvent_getSession; +*takeSessionOwnership = *tinyWRAPc::InfoEvent_takeSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::OptionsEvent ############## + +package tinyWRAP::OptionsEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_OptionsEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::OptionsEvent_getType; +*getSession = *tinyWRAPc::OptionsEvent_getSession; +*takeSessionOwnership = *tinyWRAPc::OptionsEvent_takeSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::PublicationEvent ############## + +package tinyWRAP::PublicationEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_PublicationEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::PublicationEvent_getType; +*getSession = *tinyWRAPc::PublicationEvent_getSession; +*takeSessionOwnership = *tinyWRAPc::PublicationEvent_takeSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::RegistrationEvent ############## + +package tinyWRAP::RegistrationEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_RegistrationEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::RegistrationEvent_getType; +*getSession = *tinyWRAPc::RegistrationEvent_getSession; +*takeSessionOwnership = *tinyWRAPc::RegistrationEvent_takeSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SubscriptionEvent ############## + +package tinyWRAP::SubscriptionEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipEvent tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SubscriptionEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::SubscriptionEvent_getType; +*getSession = *tinyWRAPc::SubscriptionEvent_getSession; +*takeSessionOwnership = *tinyWRAPc::SubscriptionEvent_takeSessionOwnership; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::T140CallbackData ############## + +package tinyWRAP::T140CallbackData; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_T140CallbackData($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::T140CallbackData_getType; +*getSize = *tinyWRAPc::T140CallbackData_getSize; +*getData = *tinyWRAPc::T140CallbackData_getData; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::T140Callback ############## + +package tinyWRAP::T140Callback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_T140Callback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_T140Callback($self); + delete $OWNER{$self}; + } +} + +*ondata = *tinyWRAPc::T140Callback_ondata; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipSession ############## + +package tinyWRAP::SipSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipSession($self); + delete $OWNER{$self}; + } +} + +*haveOwnership = *tinyWRAPc::SipSession_haveOwnership; +*addHeader = *tinyWRAPc::SipSession_addHeader; +*removeHeader = *tinyWRAPc::SipSession_removeHeader; +*addCaps = *tinyWRAPc::SipSession_addCaps; +*removeCaps = *tinyWRAPc::SipSession_removeCaps; +*setExpires = *tinyWRAPc::SipSession_setExpires; +*setFromUri = *tinyWRAPc::SipSession_setFromUri; +*setToUri = *tinyWRAPc::SipSession_setToUri; +*setSilentHangup = *tinyWRAPc::SipSession_setSilentHangup; +*addSigCompCompartment = *tinyWRAPc::SipSession_addSigCompCompartment; +*removeSigCompCompartment = *tinyWRAPc::SipSession_removeSigCompCompartment; +*getId = *tinyWRAPc::SipSession_getId; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::InviteSession ############## + +package tinyWRAP::InviteSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_InviteSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_InviteSession($self); + delete $OWNER{$self}; + } +} + +*accept = *tinyWRAPc::InviteSession_accept; +*hangup = *tinyWRAPc::InviteSession_hangup; +*reject = *tinyWRAPc::InviteSession_reject; +*sendInfo = *tinyWRAPc::InviteSession_sendInfo; +*getMediaMgr = *tinyWRAPc::InviteSession_getMediaMgr; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::CallSession ############## + +package tinyWRAP::CallSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::InviteSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_CallSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_CallSession($self); + delete $OWNER{$self}; + } +} + +*callAudio = *tinyWRAPc::CallSession_callAudio; +*callAudioVideo = *tinyWRAPc::CallSession_callAudioVideo; +*callVideo = *tinyWRAPc::CallSession_callVideo; +*call = *tinyWRAPc::CallSession_call; +*setSessionTimer = *tinyWRAPc::CallSession_setSessionTimer; +*set100rel = *tinyWRAPc::CallSession_set100rel; +*setRtcp = *tinyWRAPc::CallSession_setRtcp; +*setRtcpMux = *tinyWRAPc::CallSession_setRtcpMux; +*setSRtpMode = *tinyWRAPc::CallSession_setSRtpMode; +*setAvpfMode = *tinyWRAPc::CallSession_setAvpfMode; +*setICE = *tinyWRAPc::CallSession_setICE; +*setICEStun = *tinyWRAPc::CallSession_setICEStun; +*setICETurn = *tinyWRAPc::CallSession_setICETurn; +*setSTUNServer = *tinyWRAPc::CallSession_setSTUNServer; +*setSTUNCred = *tinyWRAPc::CallSession_setSTUNCred; +*setVideoFps = *tinyWRAPc::CallSession_setVideoFps; +*setVideoBandwidthUploadMax = *tinyWRAPc::CallSession_setVideoBandwidthUploadMax; +*setVideoBandwidthDownloadMax = *tinyWRAPc::CallSession_setVideoBandwidthDownloadMax; +*setVideoPrefSize = *tinyWRAPc::CallSession_setVideoPrefSize; +*setQoS = *tinyWRAPc::CallSession_setQoS; +*hold = *tinyWRAPc::CallSession_hold; +*resume = *tinyWRAPc::CallSession_resume; +*transfer = *tinyWRAPc::CallSession_transfer; +*acceptTransfer = *tinyWRAPc::CallSession_acceptTransfer; +*rejectTransfer = *tinyWRAPc::CallSession_rejectTransfer; +*sendDTMF = *tinyWRAPc::CallSession_sendDTMF; +*getSessionTransferId = *tinyWRAPc::CallSession_getSessionTransferId; +*sendT140Data = *tinyWRAPc::CallSession_sendT140Data; +*setT140Callback = *tinyWRAPc::CallSession_setT140Callback; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MsrpSession ############## + +package tinyWRAP::MsrpSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::InviteSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_MsrpSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MsrpSession($self); + delete $OWNER{$self}; + } +} + +*setCallback = *tinyWRAPc::MsrpSession_setCallback; +*callMsrp = *tinyWRAPc::MsrpSession_callMsrp; +*sendMessage = *tinyWRAPc::MsrpSession_sendMessage; +*sendFile = *tinyWRAPc::MsrpSession_sendFile; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MessagingSession ############## + +package tinyWRAP::MessagingSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_MessagingSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MessagingSession($self); + delete $OWNER{$self}; + } +} + +*send = *tinyWRAPc::MessagingSession_send; +*accept = *tinyWRAPc::MessagingSession_accept; +*reject = *tinyWRAPc::MessagingSession_reject; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::InfoSession ############## + +package tinyWRAP::InfoSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_InfoSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_InfoSession($self); + delete $OWNER{$self}; + } +} + +*send = *tinyWRAPc::InfoSession_send; +*accept = *tinyWRAPc::InfoSession_accept; +*reject = *tinyWRAPc::InfoSession_reject; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::OptionsSession ############## + +package tinyWRAP::OptionsSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_OptionsSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_OptionsSession($self); + delete $OWNER{$self}; + } +} + +*send = *tinyWRAPc::OptionsSession_send; +*accept = *tinyWRAPc::OptionsSession_accept; +*reject = *tinyWRAPc::OptionsSession_reject; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::PublicationSession ############## + +package tinyWRAP::PublicationSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_PublicationSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_PublicationSession($self); + delete $OWNER{$self}; + } +} + +*publish = *tinyWRAPc::PublicationSession_publish; +*unPublish = *tinyWRAPc::PublicationSession_unPublish; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::RegistrationSession ############## + +package tinyWRAP::RegistrationSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_RegistrationSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_RegistrationSession($self); + delete $OWNER{$self}; + } +} + +*register_ = *tinyWRAPc::RegistrationSession_register_; +*unRegister = *tinyWRAPc::RegistrationSession_unRegister; +*accept = *tinyWRAPc::RegistrationSession_accept; +*reject = *tinyWRAPc::RegistrationSession_reject; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SubscriptionSession ############## + +package tinyWRAP::SubscriptionSession; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SipSession tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SubscriptionSession(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SubscriptionSession($self); + delete $OWNER{$self}; + } +} + +*subscribe = *tinyWRAPc::SubscriptionSession_subscribe; +*unSubscribe = *tinyWRAPc::SubscriptionSession_unSubscribe; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyPluginMgr ############## + +package tinyWRAP::ProxyPluginMgr; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyPluginMgr($self); + delete $OWNER{$self}; + } +} + +*createInstance = *tinyWRAPc::ProxyPluginMgr_createInstance; +*getInstance = *tinyWRAPc::ProxyPluginMgr_getInstance; +*findPlugin = *tinyWRAPc::ProxyPluginMgr_findPlugin; +*findAudioConsumer = *tinyWRAPc::ProxyPluginMgr_findAudioConsumer; +*findVideoConsumer = *tinyWRAPc::ProxyPluginMgr_findVideoConsumer; +*findAudioProducer = *tinyWRAPc::ProxyPluginMgr_findAudioProducer; +*findVideoProducer = *tinyWRAPc::ProxyPluginMgr_findVideoProducer; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyPluginMgrCallback ############## + +package tinyWRAP::ProxyPluginMgrCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_ProxyPluginMgrCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyPluginMgrCallback($self); + delete $OWNER{$self}; + } +} + +*OnPluginCreated = *tinyWRAPc::ProxyPluginMgrCallback_OnPluginCreated; +*OnPluginDestroyed = *tinyWRAPc::ProxyPluginMgrCallback_OnPluginDestroyed; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyPlugin ############## + +package tinyWRAP::ProxyPlugin; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyPlugin($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::ProxyPlugin_getType; +*getId = *tinyWRAPc::ProxyPlugin_getId; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyAudioConsumerCallback ############## + +package tinyWRAP::ProxyAudioConsumerCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_ProxyAudioConsumerCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyAudioConsumerCallback($self); + delete $OWNER{$self}; + } +} + +*prepare = *tinyWRAPc::ProxyAudioConsumerCallback_prepare; +*start = *tinyWRAPc::ProxyAudioConsumerCallback_start; +*pause = *tinyWRAPc::ProxyAudioConsumerCallback_pause; +*stop = *tinyWRAPc::ProxyAudioConsumerCallback_stop; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyAudioConsumer ############## + +package tinyWRAP::ProxyAudioConsumer; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::ProxyPlugin tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyAudioConsumer($self); + delete $OWNER{$self}; + } +} + +*setActualSndCardPlaybackParams = *tinyWRAPc::ProxyAudioConsumer_setActualSndCardPlaybackParams; +*queryForResampler = *tinyWRAPc::ProxyAudioConsumer_queryForResampler; +*setPullBuffer = *tinyWRAPc::ProxyAudioConsumer_setPullBuffer; +*pull = *tinyWRAPc::ProxyAudioConsumer_pull; +*setGain = *tinyWRAPc::ProxyAudioConsumer_setGain; +*getGain = *tinyWRAPc::ProxyAudioConsumer_getGain; +*reset = *tinyWRAPc::ProxyAudioConsumer_reset; +*setCallback = *tinyWRAPc::ProxyAudioConsumer_setCallback; +*getMediaSessionId = *tinyWRAPc::ProxyAudioConsumer_getMediaSessionId; +*registerPlugin = *tinyWRAPc::ProxyAudioConsumer_registerPlugin; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyVideoConsumerCallback ############## + +package tinyWRAP::ProxyVideoConsumerCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_ProxyVideoConsumerCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyVideoConsumerCallback($self); + delete $OWNER{$self}; + } +} + +*prepare = *tinyWRAPc::ProxyVideoConsumerCallback_prepare; +*consume = *tinyWRAPc::ProxyVideoConsumerCallback_consume; +*bufferCopied = *tinyWRAPc::ProxyVideoConsumerCallback_bufferCopied; +*start = *tinyWRAPc::ProxyVideoConsumerCallback_start; +*pause = *tinyWRAPc::ProxyVideoConsumerCallback_pause; +*stop = *tinyWRAPc::ProxyVideoConsumerCallback_stop; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyVideoConsumer ############## + +package tinyWRAP::ProxyVideoConsumer; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::ProxyPlugin tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyVideoConsumer($self); + delete $OWNER{$self}; + } +} + +*setDisplaySize = *tinyWRAPc::ProxyVideoConsumer_setDisplaySize; +*getDisplayWidth = *tinyWRAPc::ProxyVideoConsumer_getDisplayWidth; +*getDisplayHeight = *tinyWRAPc::ProxyVideoConsumer_getDisplayHeight; +*getDecodedWidth = *tinyWRAPc::ProxyVideoConsumer_getDecodedWidth; +*getDecodedHeight = *tinyWRAPc::ProxyVideoConsumer_getDecodedHeight; +*setCallback = *tinyWRAPc::ProxyVideoConsumer_setCallback; +*setAutoResizeDisplay = *tinyWRAPc::ProxyVideoConsumer_setAutoResizeDisplay; +*getAutoResizeDisplay = *tinyWRAPc::ProxyVideoConsumer_getAutoResizeDisplay; +*setConsumeBuffer = *tinyWRAPc::ProxyVideoConsumer_setConsumeBuffer; +*pull = *tinyWRAPc::ProxyVideoConsumer_pull; +*reset = *tinyWRAPc::ProxyVideoConsumer_reset; +*getMediaSessionId = *tinyWRAPc::ProxyVideoConsumer_getMediaSessionId; +*registerPlugin = *tinyWRAPc::ProxyVideoConsumer_registerPlugin; +*setDefaultChroma = *tinyWRAPc::ProxyVideoConsumer_setDefaultChroma; +*setDefaultAutoResizeDisplay = *tinyWRAPc::ProxyVideoConsumer_setDefaultAutoResizeDisplay; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyVideoFrame ############## + +package tinyWRAP::ProxyVideoFrame; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyVideoFrame($self); + delete $OWNER{$self}; + } +} + +*getSize = *tinyWRAPc::ProxyVideoFrame_getSize; +*getContent = *tinyWRAPc::ProxyVideoFrame_getContent; +*getFrameWidth = *tinyWRAPc::ProxyVideoFrame_getFrameWidth; +*getFrameHeight = *tinyWRAPc::ProxyVideoFrame_getFrameHeight; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyAudioProducerCallback ############## + +package tinyWRAP::ProxyAudioProducerCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_ProxyAudioProducerCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyAudioProducerCallback($self); + delete $OWNER{$self}; + } +} + +*prepare = *tinyWRAPc::ProxyAudioProducerCallback_prepare; +*start = *tinyWRAPc::ProxyAudioProducerCallback_start; +*pause = *tinyWRAPc::ProxyAudioProducerCallback_pause; +*stop = *tinyWRAPc::ProxyAudioProducerCallback_stop; +*fillPushBuffer = *tinyWRAPc::ProxyAudioProducerCallback_fillPushBuffer; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyAudioProducer ############## + +package tinyWRAP::ProxyAudioProducer; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::ProxyPlugin tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyAudioProducer($self); + delete $OWNER{$self}; + } +} + +*setActualSndCardRecordParams = *tinyWRAPc::ProxyAudioProducer_setActualSndCardRecordParams; +*setPushBuffer = *tinyWRAPc::ProxyAudioProducer_setPushBuffer; +*push = *tinyWRAPc::ProxyAudioProducer_push; +*setGain = *tinyWRAPc::ProxyAudioProducer_setGain; +*getGain = *tinyWRAPc::ProxyAudioProducer_getGain; +*setCallback = *tinyWRAPc::ProxyAudioProducer_setCallback; +*getMediaSessionId = *tinyWRAPc::ProxyAudioProducer_getMediaSessionId; +*registerPlugin = *tinyWRAPc::ProxyAudioProducer_registerPlugin; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyVideoProducerCallback ############## + +package tinyWRAP::ProxyVideoProducerCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_ProxyVideoProducerCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyVideoProducerCallback($self); + delete $OWNER{$self}; + } +} + +*prepare = *tinyWRAPc::ProxyVideoProducerCallback_prepare; +*start = *tinyWRAPc::ProxyVideoProducerCallback_start; +*pause = *tinyWRAPc::ProxyVideoProducerCallback_pause; +*stop = *tinyWRAPc::ProxyVideoProducerCallback_stop; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::ProxyVideoProducer ############## + +package tinyWRAP::ProxyVideoProducer; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::ProxyPlugin tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_ProxyVideoProducer($self); + delete $OWNER{$self}; + } +} + +*getRotation = *tinyWRAPc::ProxyVideoProducer_getRotation; +*setRotation = *tinyWRAPc::ProxyVideoProducer_setRotation; +*getMirror = *tinyWRAPc::ProxyVideoProducer_getMirror; +*setMirror = *tinyWRAPc::ProxyVideoProducer_setMirror; +*setActualCameraOutputSize = *tinyWRAPc::ProxyVideoProducer_setActualCameraOutputSize; +*push = *tinyWRAPc::ProxyVideoProducer_push; +*setCallback = *tinyWRAPc::ProxyVideoProducer_setCallback; +*getMediaSessionId = *tinyWRAPc::ProxyVideoProducer_getMediaSessionId; +*registerPlugin = *tinyWRAPc::ProxyVideoProducer_registerPlugin; +*setDefaultChroma = *tinyWRAPc::ProxyVideoProducer_setDefaultChroma; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipCallback ############## + +package tinyWRAP::SipCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipCallback($self); + delete $OWNER{$self}; + } +} + +*OnDialogEvent = *tinyWRAPc::SipCallback_OnDialogEvent; +*OnStackEvent = *tinyWRAPc::SipCallback_OnStackEvent; +*OnInviteEvent = *tinyWRAPc::SipCallback_OnInviteEvent; +*OnMessagingEvent = *tinyWRAPc::SipCallback_OnMessagingEvent; +*OnInfoEvent = *tinyWRAPc::SipCallback_OnInfoEvent; +*OnOptionsEvent = *tinyWRAPc::SipCallback_OnOptionsEvent; +*OnPublicationEvent = *tinyWRAPc::SipCallback_OnPublicationEvent; +*OnRegistrationEvent = *tinyWRAPc::SipCallback_OnRegistrationEvent; +*OnSubscriptionEvent = *tinyWRAPc::SipCallback_OnSubscriptionEvent; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SafeObject ############## + +package tinyWRAP::SafeObject; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SafeObject(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SafeObject($self); + delete $OWNER{$self}; + } +} + +*Lock = *tinyWRAPc::SafeObject_Lock; +*UnLock = *tinyWRAPc::SafeObject_UnLock; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SipStack ############## + +package tinyWRAP::SipStack; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP::SafeObject tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SipStack(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SipStack($self); + delete $OWNER{$self}; + } +} + +*start = *tinyWRAPc::SipStack_start; +*setDebugCallback = *tinyWRAPc::SipStack_setDebugCallback; +*setDisplayName = *tinyWRAPc::SipStack_setDisplayName; +*setRealm = *tinyWRAPc::SipStack_setRealm; +*setIMPI = *tinyWRAPc::SipStack_setIMPI; +*setIMPU = *tinyWRAPc::SipStack_setIMPU; +*setPassword = *tinyWRAPc::SipStack_setPassword; +*setAMF = *tinyWRAPc::SipStack_setAMF; +*setOperatorId = *tinyWRAPc::SipStack_setOperatorId; +*setProxyCSCF = *tinyWRAPc::SipStack_setProxyCSCF; +*setLocalIP = *tinyWRAPc::SipStack_setLocalIP; +*setLocalPort = *tinyWRAPc::SipStack_setLocalPort; +*setEarlyIMS = *tinyWRAPc::SipStack_setEarlyIMS; +*addHeader = *tinyWRAPc::SipStack_addHeader; +*removeHeader = *tinyWRAPc::SipStack_removeHeader; +*addDnsServer = *tinyWRAPc::SipStack_addDnsServer; +*setDnsDiscovery = *tinyWRAPc::SipStack_setDnsDiscovery; +*setAoR = *tinyWRAPc::SipStack_setAoR; +*setSigCompParams = *tinyWRAPc::SipStack_setSigCompParams; +*addSigCompCompartment = *tinyWRAPc::SipStack_addSigCompCompartment; +*removeSigCompCompartment = *tinyWRAPc::SipStack_removeSigCompCompartment; +*setSTUNEnabledForICE = *tinyWRAPc::SipStack_setSTUNEnabledForICE; +*setSTUNServer = *tinyWRAPc::SipStack_setSTUNServer; +*setSTUNCred = *tinyWRAPc::SipStack_setSTUNCred; +*setSTUNEnabled = *tinyWRAPc::SipStack_setSTUNEnabled; +*setTLSSecAgree = *tinyWRAPc::SipStack_setTLSSecAgree; +*setSSLCertificates = *tinyWRAPc::SipStack_setSSLCertificates; +*setSSLCretificates = *tinyWRAPc::SipStack_setSSLCretificates; +*setIPSecSecAgree = *tinyWRAPc::SipStack_setIPSecSecAgree; +*setIPSecParameters = *tinyWRAPc::SipStack_setIPSecParameters; +*dnsENUM = *tinyWRAPc::SipStack_dnsENUM; +*dnsNaptrSrv = *tinyWRAPc::SipStack_dnsNaptrSrv; +*dnsSrv = *tinyWRAPc::SipStack_dnsSrv; +*setMaxFDs = *tinyWRAPc::SipStack_setMaxFDs; +*getLocalIPnPort = *tinyWRAPc::SipStack_getLocalIPnPort; +*getPreferredIdentity = *tinyWRAPc::SipStack_getPreferredIdentity; +*isValid = *tinyWRAPc::SipStack_isValid; +*stop = *tinyWRAPc::SipStack_stop; +*initialize = *tinyWRAPc::SipStack_initialize; +*deInitialize = *tinyWRAPc::SipStack_deInitialize; +*setCodecs = *tinyWRAPc::SipStack_setCodecs; +*setCodecs_2 = *tinyWRAPc::SipStack_setCodecs_2; +*setCodecPriority = *tinyWRAPc::SipStack_setCodecPriority; +*setCodecPriority_2 = *tinyWRAPc::SipStack_setCodecPriority_2; +*isCodecSupported = *tinyWRAPc::SipStack_isCodecSupported; +*isIPSecSupported = *tinyWRAPc::SipStack_isIPSecSupported; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::XcapSelector ############## + +package tinyWRAP::XcapSelector; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_XcapSelector(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_XcapSelector($self); + delete $OWNER{$self}; + } +} + +*setAUID = *tinyWRAPc::XcapSelector_setAUID; +*setName = *tinyWRAPc::XcapSelector_setName; +*setAttribute = *tinyWRAPc::XcapSelector_setAttribute; +*setPos = *tinyWRAPc::XcapSelector_setPos; +*setPosAttribute = *tinyWRAPc::XcapSelector_setPosAttribute; +*setNamespace = *tinyWRAPc::XcapSelector_setNamespace; +*getString = *tinyWRAPc::XcapSelector_getString; +*reset = *tinyWRAPc::XcapSelector_reset; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::XcapMessage ############## + +package tinyWRAP::XcapMessage; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_XcapMessage(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_XcapMessage($self); + delete $OWNER{$self}; + } +} + +*getCode = *tinyWRAPc::XcapMessage_getCode; +*getPhrase = *tinyWRAPc::XcapMessage_getPhrase; +*getXcapHeaderValue = *tinyWRAPc::XcapMessage_getXcapHeaderValue; +*getXcapHeaderParamValue = *tinyWRAPc::XcapMessage_getXcapHeaderParamValue; +*getXcapContentLength = *tinyWRAPc::XcapMessage_getXcapContentLength; +*getXcapContent = *tinyWRAPc::XcapMessage_getXcapContent; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::XcapEvent ############## + +package tinyWRAP::XcapEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_XcapEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::XcapEvent_getType; +*getXcapMessage = *tinyWRAPc::XcapEvent_getXcapMessage; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::XcapCallback ############## + +package tinyWRAP::XcapCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_XcapCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_XcapCallback($self); + delete $OWNER{$self}; + } +} + +*onEvent = *tinyWRAPc::XcapCallback_onEvent; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::XcapStack ############## + +package tinyWRAP::XcapStack; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_XcapStack(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_XcapStack($self); + delete $OWNER{$self}; + } +} + +*registerAUID = *tinyWRAPc::XcapStack_registerAUID; +*start = *tinyWRAPc::XcapStack_start; +*setCredentials = *tinyWRAPc::XcapStack_setCredentials; +*setXcapRoot = *tinyWRAPc::XcapStack_setXcapRoot; +*setLocalIP = *tinyWRAPc::XcapStack_setLocalIP; +*setLocalPort = *tinyWRAPc::XcapStack_setLocalPort; +*addHeader = *tinyWRAPc::XcapStack_addHeader; +*removeHeader = *tinyWRAPc::XcapStack_removeHeader; +*setTimeout = *tinyWRAPc::XcapStack_setTimeout; +*getDocument = *tinyWRAPc::XcapStack_getDocument; +*getElement = *tinyWRAPc::XcapStack_getElement; +*getAttribute = *tinyWRAPc::XcapStack_getAttribute; +*deleteDocument = *tinyWRAPc::XcapStack_deleteDocument; +*deleteElement = *tinyWRAPc::XcapStack_deleteElement; +*deleteAttribute = *tinyWRAPc::XcapStack_deleteAttribute; +*putDocument = *tinyWRAPc::XcapStack_putDocument; +*putElement = *tinyWRAPc::XcapStack_putElement; +*putAttribute = *tinyWRAPc::XcapStack_putAttribute; +*stop = *tinyWRAPc::XcapStack_stop; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::RPMessage ############## + +package tinyWRAP::RPMessage; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_RPMessage(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_RPMessage($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::RPMessage_getType; +*getPayloadLength = *tinyWRAPc::RPMessage_getPayloadLength; +*getPayload = *tinyWRAPc::RPMessage_getPayload; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SMSData ############## + +package tinyWRAP::SMSData; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_SMSData(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SMSData($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::SMSData_getType; +*getMR = *tinyWRAPc::SMSData_getMR; +*getPayloadLength = *tinyWRAPc::SMSData_getPayloadLength; +*getPayload = *tinyWRAPc::SMSData_getPayload; +*getOA = *tinyWRAPc::SMSData_getOA; +*getDA = *tinyWRAPc::SMSData_getDA; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::SMSEncoder ############## + +package tinyWRAP::SMSEncoder; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +*encodeSubmit = *tinyWRAPc::SMSEncoder_encodeSubmit; +*encodeDeliver = *tinyWRAPc::SMSEncoder_encodeDeliver; +*encodeACK = *tinyWRAPc::SMSEncoder_encodeACK; +*encodeError = *tinyWRAPc::SMSEncoder_encodeError; +*decode = *tinyWRAPc::SMSEncoder_decode; +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_SMSEncoder($self); + delete $OWNER{$self}; + } +} + +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MsrpMessage ############## + +package tinyWRAP::MsrpMessage; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_MsrpMessage(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MsrpMessage($self); + delete $OWNER{$self}; + } +} + +*isRequest = *tinyWRAPc::MsrpMessage_isRequest; +*getCode = *tinyWRAPc::MsrpMessage_getCode; +*getPhrase = *tinyWRAPc::MsrpMessage_getPhrase; +*getRequestType = *tinyWRAPc::MsrpMessage_getRequestType; +*getByteRange = *tinyWRAPc::MsrpMessage_getByteRange; +*isLastChunck = *tinyWRAPc::MsrpMessage_isLastChunck; +*isFirstChunck = *tinyWRAPc::MsrpMessage_isFirstChunck; +*isSuccessReport = *tinyWRAPc::MsrpMessage_isSuccessReport; +*getMsrpHeaderValue = *tinyWRAPc::MsrpMessage_getMsrpHeaderValue; +*getMsrpHeaderParamValue = *tinyWRAPc::MsrpMessage_getMsrpHeaderParamValue; +*getMsrpContentLength = *tinyWRAPc::MsrpMessage_getMsrpContentLength; +*getMsrpContent = *tinyWRAPc::MsrpMessage_getMsrpContent; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MsrpEvent ############## + +package tinyWRAP::MsrpEvent; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MsrpEvent($self); + delete $OWNER{$self}; + } +} + +*getType = *tinyWRAPc::MsrpEvent_getType; +*getSipSession = *tinyWRAPc::MsrpEvent_getSipSession; +*getMessage = *tinyWRAPc::MsrpEvent_getMessage; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : tinyWRAP::MsrpCallback ############## + +package tinyWRAP::MsrpCallback; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( tinyWRAP ); +%OWNER = (); +%ITERATORS = (); +sub new { + my $pkg = shift; + my $self = tinyWRAPc::new_MsrpCallback(@_); + bless $self, $pkg if defined($self); +} + +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + tinyWRAPc::delete_MsrpCallback($self); + delete $OWNER{$self}; + } +} + +*OnEvent = *tinyWRAPc::MsrpCallback_OnEvent; +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +# ------- VARIABLE STUBS -------- + +package tinyWRAP; + +*twrap_media_none = *tinyWRAPc::twrap_media_none; +*twrap_media_audio = *tinyWRAPc::twrap_media_audio; +*twrap_media_video = *tinyWRAPc::twrap_media_video; +*twrap_media_msrp = *tinyWRAPc::twrap_media_msrp; +*twrap_media_t140 = *tinyWRAPc::twrap_media_t140; +*twrap_media_bfcp = *tinyWRAPc::twrap_media_bfcp; +*twrap_media_bfcp_audio = *tinyWRAPc::twrap_media_bfcp_audio; +*twrap_media_bfcp_video = *tinyWRAPc::twrap_media_bfcp_video; +*twrap_media_audiovideo = *tinyWRAPc::twrap_media_audiovideo; +*twrap_media_audio_video = *tinyWRAPc::twrap_media_audio_video; +*twrap_proxy_plugin_audio_producer = *tinyWRAPc::twrap_proxy_plugin_audio_producer; +*twrap_proxy_plugin_video_producer = *tinyWRAPc::twrap_proxy_plugin_video_producer; +*twrap_proxy_plugin_audio_consumer = *tinyWRAPc::twrap_proxy_plugin_audio_consumer; +*twrap_proxy_plugin_video_consumer = *tinyWRAPc::twrap_proxy_plugin_video_consumer; +*tsip_stack_mode_ua = *tinyWRAPc::tsip_stack_mode_ua; +*tsip_stack_mode_p2p = *tinyWRAPc::tsip_stack_mode_p2p; +*tsip_stack_mode_mediaproxy = *tinyWRAPc::tsip_stack_mode_mediaproxy; +*tsip_stack_mode_mcu = *tinyWRAPc::tsip_stack_mode_mcu; +*tsip_NONE = *tinyWRAPc::tsip_NONE; +*tsip_ACK = *tinyWRAPc::tsip_ACK; +*tsip_BYE = *tinyWRAPc::tsip_BYE; +*tsip_CANCEL = *tinyWRAPc::tsip_CANCEL; +*tsip_INVITE = *tinyWRAPc::tsip_INVITE; +*tsip_OPTIONS = *tinyWRAPc::tsip_OPTIONS; +*tsip_REGISTER = *tinyWRAPc::tsip_REGISTER; +*tsip_SUBSCRIBE = *tinyWRAPc::tsip_SUBSCRIBE; +*tsip_NOTIFY = *tinyWRAPc::tsip_NOTIFY; +*tsip_REFER = *tinyWRAPc::tsip_REFER; +*tsip_INFO = *tinyWRAPc::tsip_INFO; +*tsip_UPDATE = *tinyWRAPc::tsip_UPDATE; +*tsip_MESSAGE = *tinyWRAPc::tsip_MESSAGE; +*tsip_PUBLISH = *tinyWRAPc::tsip_PUBLISH; +*tsip_PRACK = *tinyWRAPc::tsip_PRACK; +*tsip_event_invite = *tinyWRAPc::tsip_event_invite; +*tsip_event_message = *tinyWRAPc::tsip_event_message; +*tsip_event_info = *tinyWRAPc::tsip_event_info; +*tsip_event_options = *tinyWRAPc::tsip_event_options; +*tsip_event_publish = *tinyWRAPc::tsip_event_publish; +*tsip_event_register = *tinyWRAPc::tsip_event_register; +*tsip_event_subscribe = *tinyWRAPc::tsip_event_subscribe; +*tsip_event_dialog = *tinyWRAPc::tsip_event_dialog; +*tsip_event_code_dialog_transport_error = *tinyWRAPc::tsip_event_code_dialog_transport_error; +*tsip_event_code_dialog_global_error = *tinyWRAPc::tsip_event_code_dialog_global_error; +*tsip_event_code_dialog_message_error = *tinyWRAPc::tsip_event_code_dialog_message_error; +*tsip_event_code_dialog_request_incoming = *tinyWRAPc::tsip_event_code_dialog_request_incoming; +*tsip_event_code_dialog_request_outgoing = *tinyWRAPc::tsip_event_code_dialog_request_outgoing; +*tsip_event_code_dialog_request_cancelled = *tinyWRAPc::tsip_event_code_dialog_request_cancelled; +*tsip_event_code_dialog_request_sent = *tinyWRAPc::tsip_event_code_dialog_request_sent; +*tsip_event_code_dialog_connecting = *tinyWRAPc::tsip_event_code_dialog_connecting; +*tsip_event_code_dialog_connected = *tinyWRAPc::tsip_event_code_dialog_connected; +*tsip_event_code_dialog_terminating = *tinyWRAPc::tsip_event_code_dialog_terminating; +*tsip_event_code_dialog_terminated = *tinyWRAPc::tsip_event_code_dialog_terminated; +*tsip_event_code_stack_starting = *tinyWRAPc::tsip_event_code_stack_starting; +*tsip_event_code_stack_started = *tinyWRAPc::tsip_event_code_stack_started; +*tsip_event_code_stack_stopping = *tinyWRAPc::tsip_event_code_stack_stopping; +*tsip_event_code_stack_stopped = *tinyWRAPc::tsip_event_code_stack_stopped; +*tsip_event_code_stack_failed_to_start = *tinyWRAPc::tsip_event_code_stack_failed_to_start; +*tsip_event_code_stack_failed_to_stop = *tinyWRAPc::tsip_event_code_stack_failed_to_stop; +*tsip_event_code_stack_disconnected = *tinyWRAPc::tsip_event_code_stack_disconnected; +*tsip_i_newreg = *tinyWRAPc::tsip_i_newreg; +*tsip_i_register = *tinyWRAPc::tsip_i_register; +*tsip_ao_register = *tinyWRAPc::tsip_ao_register; +*tsip_i_unregister = *tinyWRAPc::tsip_i_unregister; +*tsip_ao_unregister = *tinyWRAPc::tsip_ao_unregister; +*tsip_i_subscribe = *tinyWRAPc::tsip_i_subscribe; +*tsip_ao_subscribe = *tinyWRAPc::tsip_ao_subscribe; +*tsip_i_unsubscribe = *tinyWRAPc::tsip_i_unsubscribe; +*tsip_ao_unsubscribe = *tinyWRAPc::tsip_ao_unsubscribe; +*tsip_i_notify = *tinyWRAPc::tsip_i_notify; +*tsip_ao_notify = *tinyWRAPc::tsip_ao_notify; +*tsip_i_publish = *tinyWRAPc::tsip_i_publish; +*tsip_ao_publish = *tinyWRAPc::tsip_ao_publish; +*tsip_i_unpublish = *tinyWRAPc::tsip_i_unpublish; +*tsip_ao_unpublish = *tinyWRAPc::tsip_ao_unpublish; +*tsip_i_message = *tinyWRAPc::tsip_i_message; +*tsip_ao_message = *tinyWRAPc::tsip_ao_message; +*tsip_i_info = *tinyWRAPc::tsip_i_info; +*tsip_ao_info = *tinyWRAPc::tsip_ao_info; +*tsip_i_options = *tinyWRAPc::tsip_i_options; +*tsip_ao_options = *tinyWRAPc::tsip_ao_options; +*tsip_i_newcall = *tinyWRAPc::tsip_i_newcall; +*tsip_i_request = *tinyWRAPc::tsip_i_request; +*tsip_ao_request = *tinyWRAPc::tsip_ao_request; +*tsip_o_ect_trying = *tinyWRAPc::tsip_o_ect_trying; +*tsip_o_ect_accepted = *tinyWRAPc::tsip_o_ect_accepted; +*tsip_o_ect_completed = *tinyWRAPc::tsip_o_ect_completed; +*tsip_o_ect_failed = *tinyWRAPc::tsip_o_ect_failed; +*tsip_o_ect_notify = *tinyWRAPc::tsip_o_ect_notify; +*tsip_i_ect_requested = *tinyWRAPc::tsip_i_ect_requested; +*tsip_i_ect_newcall = *tinyWRAPc::tsip_i_ect_newcall; +*tsip_i_ect_completed = *tinyWRAPc::tsip_i_ect_completed; +*tsip_i_ect_failed = *tinyWRAPc::tsip_i_ect_failed; +*tsip_i_ect_notify = *tinyWRAPc::tsip_i_ect_notify; +*tsip_m_early_media = *tinyWRAPc::tsip_m_early_media; +*tsip_m_updating = *tinyWRAPc::tsip_m_updating; +*tsip_m_updated = *tinyWRAPc::tsip_m_updated; +*tsip_m_local_hold_ok = *tinyWRAPc::tsip_m_local_hold_ok; +*tsip_m_local_hold_nok = *tinyWRAPc::tsip_m_local_hold_nok; +*tsip_m_local_resume_ok = *tinyWRAPc::tsip_m_local_resume_ok; +*tsip_m_local_resume_nok = *tinyWRAPc::tsip_m_local_resume_nok; +*tsip_m_remote_hold = *tinyWRAPc::tsip_m_remote_hold; +*tsip_m_remote_resume = *tinyWRAPc::tsip_m_remote_resume; +*tmedia_qos_stype_none = *tinyWRAPc::tmedia_qos_stype_none; +*tmedia_qos_stype_segmented = *tinyWRAPc::tmedia_qos_stype_segmented; +*tmedia_qos_stype_e2e = *tinyWRAPc::tmedia_qos_stype_e2e; +*tmedia_qos_strength_none = *tinyWRAPc::tmedia_qos_strength_none; +*tmedia_qos_strength_failure = *tinyWRAPc::tmedia_qos_strength_failure; +*tmedia_qos_strength_unknown = *tinyWRAPc::tmedia_qos_strength_unknown; +*tmedia_qos_strength_optional = *tinyWRAPc::tmedia_qos_strength_optional; +*tmedia_qos_strength_mandatory = *tinyWRAPc::tmedia_qos_strength_mandatory; +*tmedia_chroma_none = *tinyWRAPc::tmedia_chroma_none; +*tmedia_chroma_rgb24 = *tinyWRAPc::tmedia_chroma_rgb24; +*tmedia_chroma_bgr24 = *tinyWRAPc::tmedia_chroma_bgr24; +*tmedia_chroma_rgb32 = *tinyWRAPc::tmedia_chroma_rgb32; +*tmedia_chroma_rgb565le = *tinyWRAPc::tmedia_chroma_rgb565le; +*tmedia_chroma_rgb565be = *tinyWRAPc::tmedia_chroma_rgb565be; +*tmedia_chroma_nv12 = *tinyWRAPc::tmedia_chroma_nv12; +*tmedia_chroma_nv21 = *tinyWRAPc::tmedia_chroma_nv21; +*tmedia_chroma_yuv422p = *tinyWRAPc::tmedia_chroma_yuv422p; +*tmedia_chroma_uyvy422 = *tinyWRAPc::tmedia_chroma_uyvy422; +*tmedia_chroma_yuv420p = *tinyWRAPc::tmedia_chroma_yuv420p; +*tmedia_chroma_mjpeg = *tinyWRAPc::tmedia_chroma_mjpeg; +*tmedia_chroma_yuyv422 = *tinyWRAPc::tmedia_chroma_yuyv422; +*tmedia_mode_none = *tinyWRAPc::tmedia_mode_none; +*tmedia_mode_optional = *tinyWRAPc::tmedia_mode_optional; +*tmedia_mode_mandatory = *tinyWRAPc::tmedia_mode_mandatory; +*tmedia_srtp_mode_none = *tinyWRAPc::tmedia_srtp_mode_none; +*tmedia_srtp_mode_optional = *tinyWRAPc::tmedia_srtp_mode_optional; +*tmedia_srtp_mode_mandatory = *tinyWRAPc::tmedia_srtp_mode_mandatory; +*tmedia_srtp_type_none = *tinyWRAPc::tmedia_srtp_type_none; +*tmedia_srtp_type_sdes = *tinyWRAPc::tmedia_srtp_type_sdes; +*tmedia_srtp_type_dtls = *tinyWRAPc::tmedia_srtp_type_dtls; +*tmedia_srtp_type_sdes_dtls = *tinyWRAPc::tmedia_srtp_type_sdes_dtls; +*tmedia_t140_data_type_utf8 = *tinyWRAPc::tmedia_t140_data_type_utf8; +*tmedia_t140_data_type_zero_width_no_break_space = *tinyWRAPc::tmedia_t140_data_type_zero_width_no_break_space; +*tmedia_t140_data_type_backspace = *tinyWRAPc::tmedia_t140_data_type_backspace; +*tmedia_t140_data_type_esc = *tinyWRAPc::tmedia_t140_data_type_esc; +*tmedia_t140_data_type_cr = *tinyWRAPc::tmedia_t140_data_type_cr; +*tmedia_t140_data_type_lf = *tinyWRAPc::tmedia_t140_data_type_lf; +*tmedia_t140_data_type_cr_lf = *tinyWRAPc::tmedia_t140_data_type_cr_lf; +*tmedia_t140_data_type_interrupt2 = *tinyWRAPc::tmedia_t140_data_type_interrupt2; +*tmedia_t140_data_type_bell = *tinyWRAPc::tmedia_t140_data_type_bell; +*tmedia_t140_data_type_sos = *tinyWRAPc::tmedia_t140_data_type_sos; +*tmedia_t140_data_type_string_term = *tinyWRAPc::tmedia_t140_data_type_string_term; +*tmedia_t140_data_type_graphic_start = *tinyWRAPc::tmedia_t140_data_type_graphic_start; +*tmedia_t140_data_type_graphic_end = *tinyWRAPc::tmedia_t140_data_type_graphic_end; +*tmedia_t140_data_type_loss_char_char = *tinyWRAPc::tmedia_t140_data_type_loss_char_char; +*tmedia_t140_data_type_loss_utf8 = *tinyWRAPc::tmedia_t140_data_type_loss_utf8; +*tmedia_profile_default = *tinyWRAPc::tmedia_profile_default; +*tmedia_profile_rtcweb = *tinyWRAPc::tmedia_profile_rtcweb; +*tmedia_bl_low = *tinyWRAPc::tmedia_bl_low; +*tmedia_bl_medium = *tinyWRAPc::tmedia_bl_medium; +*tmedia_bl_hight = *tinyWRAPc::tmedia_bl_hight; +*tmedia_bl_unrestricted = *tinyWRAPc::tmedia_bl_unrestricted; +*tmedia_pref_video_size_sqcif = *tinyWRAPc::tmedia_pref_video_size_sqcif; +*tmedia_pref_video_size_qcif = *tinyWRAPc::tmedia_pref_video_size_qcif; +*tmedia_pref_video_size_qvga = *tinyWRAPc::tmedia_pref_video_size_qvga; +*tmedia_pref_video_size_cif = *tinyWRAPc::tmedia_pref_video_size_cif; +*tmedia_pref_video_size_hvga = *tinyWRAPc::tmedia_pref_video_size_hvga; +*tmedia_pref_video_size_vga = *tinyWRAPc::tmedia_pref_video_size_vga; +*tmedia_pref_video_size_4cif = *tinyWRAPc::tmedia_pref_video_size_4cif; +*tmedia_pref_video_size_wvga = *tinyWRAPc::tmedia_pref_video_size_wvga; +*tmedia_pref_video_size_svga = *tinyWRAPc::tmedia_pref_video_size_svga; +*tmedia_pref_video_size_480p = *tinyWRAPc::tmedia_pref_video_size_480p; +*tmedia_pref_video_size_xga = *tinyWRAPc::tmedia_pref_video_size_xga; +*tmedia_pref_video_size_720p = *tinyWRAPc::tmedia_pref_video_size_720p; +*tmedia_pref_video_size_16cif = *tinyWRAPc::tmedia_pref_video_size_16cif; +*tmedia_pref_video_size_1080p = *tinyWRAPc::tmedia_pref_video_size_1080p; +*tmedia_pref_video_size_2160p = *tinyWRAPc::tmedia_pref_video_size_2160p; +*tmedia_codec_id_none = *tinyWRAPc::tmedia_codec_id_none; +*tmedia_codec_id_amr_nb_oa = *tinyWRAPc::tmedia_codec_id_amr_nb_oa; +*tmedia_codec_id_amr_nb_be = *tinyWRAPc::tmedia_codec_id_amr_nb_be; +*tmedia_codec_id_amr_wb_oa = *tinyWRAPc::tmedia_codec_id_amr_wb_oa; +*tmedia_codec_id_amr_wb_be = *tinyWRAPc::tmedia_codec_id_amr_wb_be; +*tmedia_codec_id_gsm = *tinyWRAPc::tmedia_codec_id_gsm; +*tmedia_codec_id_pcma = *tinyWRAPc::tmedia_codec_id_pcma; +*tmedia_codec_id_pcmu = *tinyWRAPc::tmedia_codec_id_pcmu; +*tmedia_codec_id_ilbc = *tinyWRAPc::tmedia_codec_id_ilbc; +*tmedia_codec_id_speex_nb = *tinyWRAPc::tmedia_codec_id_speex_nb; +*tmedia_codec_id_speex_wb = *tinyWRAPc::tmedia_codec_id_speex_wb; +*tmedia_codec_id_speex_uwb = *tinyWRAPc::tmedia_codec_id_speex_uwb; +*tmedia_codec_id_bv16 = *tinyWRAPc::tmedia_codec_id_bv16; +*tmedia_codec_id_bv32 = *tinyWRAPc::tmedia_codec_id_bv32; +*tmedia_codec_id_opus = *tinyWRAPc::tmedia_codec_id_opus; +*tmedia_codec_id_g729ab = *tinyWRAPc::tmedia_codec_id_g729ab; +*tmedia_codec_id_g722 = *tinyWRAPc::tmedia_codec_id_g722; +*tmedia_codec_id_h261 = *tinyWRAPc::tmedia_codec_id_h261; +*tmedia_codec_id_h263 = *tinyWRAPc::tmedia_codec_id_h263; +*tmedia_codec_id_h263p = *tinyWRAPc::tmedia_codec_id_h263p; +*tmedia_codec_id_h263pp = *tinyWRAPc::tmedia_codec_id_h263pp; +*tmedia_codec_id_h264_bp = *tinyWRAPc::tmedia_codec_id_h264_bp; +*tmedia_codec_id_h264_mp = *tinyWRAPc::tmedia_codec_id_h264_mp; +*tmedia_codec_id_h264_hp = *tinyWRAPc::tmedia_codec_id_h264_hp; +*tmedia_codec_id_h264_bp10 = *tinyWRAPc::tmedia_codec_id_h264_bp10; +*tmedia_codec_id_h264_bp20 = *tinyWRAPc::tmedia_codec_id_h264_bp20; +*tmedia_codec_id_h264_bp30 = *tinyWRAPc::tmedia_codec_id_h264_bp30; +*tmedia_codec_id_h264_svc = *tinyWRAPc::tmedia_codec_id_h264_svc; +*tmedia_codec_id_theora = *tinyWRAPc::tmedia_codec_id_theora; +*tmedia_codec_id_mp4ves_es = *tinyWRAPc::tmedia_codec_id_mp4ves_es; +*tmedia_codec_id_vp8 = *tinyWRAPc::tmedia_codec_id_vp8; +*tmedia_codec_id_t140 = *tinyWRAPc::tmedia_codec_id_t140; +*tmedia_codec_id_red = *tinyWRAPc::tmedia_codec_id_red; +*tdav_codec_id_none = *tinyWRAPc::tdav_codec_id_none; +*tdav_codec_id_amr_nb_oa = *tinyWRAPc::tdav_codec_id_amr_nb_oa; +*tdav_codec_id_amr_nb_be = *tinyWRAPc::tdav_codec_id_amr_nb_be; +*tdav_codec_id_amr_wb_oa = *tinyWRAPc::tdav_codec_id_amr_wb_oa; +*tdav_codec_id_amr_wb_be = *tinyWRAPc::tdav_codec_id_amr_wb_be; +*tdav_codec_id_gsm = *tinyWRAPc::tdav_codec_id_gsm; +*tdav_codec_id_pcma = *tinyWRAPc::tdav_codec_id_pcma; +*tdav_codec_id_pcmu = *tinyWRAPc::tdav_codec_id_pcmu; +*tdav_codec_id_ilbc = *tinyWRAPc::tdav_codec_id_ilbc; +*tdav_codec_id_speex_nb = *tinyWRAPc::tdav_codec_id_speex_nb; +*tdav_codec_id_speex_wb = *tinyWRAPc::tdav_codec_id_speex_wb; +*tdav_codec_id_speex_uwb = *tinyWRAPc::tdav_codec_id_speex_uwb; +*tdav_codec_id_bv16 = *tinyWRAPc::tdav_codec_id_bv16; +*tdav_codec_id_bv32 = *tinyWRAPc::tdav_codec_id_bv32; +*tdav_codec_id_opus = *tinyWRAPc::tdav_codec_id_opus; +*tdav_codec_id_g729ab = *tinyWRAPc::tdav_codec_id_g729ab; +*tdav_codec_id_g722 = *tinyWRAPc::tdav_codec_id_g722; +*tdav_codec_id_h261 = *tinyWRAPc::tdav_codec_id_h261; +*tdav_codec_id_h263 = *tinyWRAPc::tdav_codec_id_h263; +*tdav_codec_id_h263p = *tinyWRAPc::tdav_codec_id_h263p; +*tdav_codec_id_h263pp = *tinyWRAPc::tdav_codec_id_h263pp; +*tdav_codec_id_h264_bp = *tinyWRAPc::tdav_codec_id_h264_bp; +*tdav_codec_id_h264_mp = *tinyWRAPc::tdav_codec_id_h264_mp; +*tdav_codec_id_h264_hp = *tinyWRAPc::tdav_codec_id_h264_hp; +*tdav_codec_id_h264_bp10 = *tinyWRAPc::tdav_codec_id_h264_bp10; +*tdav_codec_id_h264_bp20 = *tinyWRAPc::tdav_codec_id_h264_bp20; +*tdav_codec_id_h264_bp30 = *tinyWRAPc::tdav_codec_id_h264_bp30; +*tdav_codec_id_h264_svc = *tinyWRAPc::tdav_codec_id_h264_svc; +*tdav_codec_id_theora = *tinyWRAPc::tdav_codec_id_theora; +*tdav_codec_id_mp4ves_es = *tinyWRAPc::tdav_codec_id_mp4ves_es; +*tdav_codec_id_vp8 = *tinyWRAPc::tdav_codec_id_vp8; +*tdav_codec_id_t140 = *tinyWRAPc::tdav_codec_id_t140; +*tdav_codec_id_red = *tinyWRAPc::tdav_codec_id_red; +*thttp_event_dialog_started = *tinyWRAPc::thttp_event_dialog_started; +*thttp_event_message = *tinyWRAPc::thttp_event_message; +*thttp_event_auth_failed = *tinyWRAPc::thttp_event_auth_failed; +*thttp_event_closed = *tinyWRAPc::thttp_event_closed; +*thttp_event_transport_error = *tinyWRAPc::thttp_event_transport_error; +*thttp_event_dialog_terminated = *tinyWRAPc::thttp_event_dialog_terminated; +*twrap_rpmessage_type_sms_none = *tinyWRAPc::twrap_rpmessage_type_sms_none; +*twrap_rpmessage_type_sms_submit = *tinyWRAPc::twrap_rpmessage_type_sms_submit; +*twrap_rpmessage_type_sms_deliver = *tinyWRAPc::twrap_rpmessage_type_sms_deliver; +*twrap_rpmessage_type_sms_ack = *tinyWRAPc::twrap_rpmessage_type_sms_ack; +*twrap_rpmessage_type_sms_error = *tinyWRAPc::twrap_rpmessage_type_sms_error; +*twrap_sms_type_none = *tinyWRAPc::twrap_sms_type_none; +*twrap_sms_type_rpdata = *tinyWRAPc::twrap_sms_type_rpdata; +*twrap_sms_type_smma = *tinyWRAPc::twrap_sms_type_smma; +*twrap_sms_type_ack = *tinyWRAPc::twrap_sms_type_ack; +*twrap_sms_type_error = *tinyWRAPc::twrap_sms_type_error; +*tmsrp_NONE = *tinyWRAPc::tmsrp_NONE; +*tmsrp_SEND = *tinyWRAPc::tmsrp_SEND; +*tmsrp_REPORT = *tinyWRAPc::tmsrp_REPORT; +*tmsrp_AUTH = *tinyWRAPc::tmsrp_AUTH; +*tmsrp_event_type_none = *tinyWRAPc::tmsrp_event_type_none; +*tmsrp_event_type_connected = *tinyWRAPc::tmsrp_event_type_connected; +*tmsrp_event_type_disconnected = *tinyWRAPc::tmsrp_event_type_disconnected; +*tmsrp_event_type_message = *tinyWRAPc::tmsrp_event_type_message; +1; diff --git a/bindings/perl/tinyWRAP_wrap.cxx b/bindings/perl/tinyWRAP_wrap.cxx new file mode 100644 index 0000000..b968123 --- /dev/null +++ b/bindings/perl/tinyWRAP_wrap.cxx @@ -0,0 +1,30071 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGPERL +#define SWIG_CASTRANK_MODE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return an integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class" == "Class", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like ||... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like ||... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +#ifdef __cplusplus +/* Needed on some windows machines---since MS plays funny games with the header files under C++ */ +#include +#include +extern "C" { +#endif +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +/* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ + +/* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ +#ifndef PERL_REVISION +# if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) +# define PERL_PATCHLEVEL_H_IMPLICIT +# include +# endif +# if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) +# include +# endif +# ifndef PERL_REVISION +# define PERL_REVISION (5) +# define PERL_VERSION PATCHLEVEL +# define PERL_SUBVERSION SUBVERSION +# endif +#endif + +#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) +#define PerlIO_exportFILE(fh,fl) (FILE*)(fh) +#endif + +#ifndef SvIOK_UV +# define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) +#endif + +#ifndef SvUOK +# define SvUOK(sv) SvIOK_UV(sv) +#endif + +#if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) +# define PL_sv_undef sv_undef +# define PL_na na +# define PL_errgv errgv +# define PL_sv_no sv_no +# define PL_sv_yes sv_yes +# define PL_markstack_ptr markstack_ptr +#endif + +#ifndef IVSIZE +# ifdef LONGSIZE +# define IVSIZE LONGSIZE +# else +# define IVSIZE 4 /* A bold guess, but the best we can make. */ +# endif +#endif + +#ifndef INT2PTR +# if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) +# define PTRV UV +# define INT2PTR(any,d) (any)(d) +# else +# if PTRSIZE == LONGSIZE +# define PTRV unsigned long +# else +# define PTRV unsigned +# endif +# define INT2PTR(any,d) (any)(PTRV)(d) +# endif + +# define NUM2PTR(any,d) (any)(PTRV)(d) +# define PTR2IV(p) INT2PTR(IV,p) +# define PTR2UV(p) INT2PTR(UV,p) +# define PTR2NV(p) NUM2PTR(NV,p) + +# if PTRSIZE == LONGSIZE +# define PTR2ul(p) (unsigned long)(p) +# else +# define PTR2ul(p) INT2PTR(unsigned long,p) +# endif +#endif /* !INT2PTR */ + +#ifndef SvPV_nolen +# define SvPV_nolen(x) SvPV(x,PL_na) +#endif + +#ifndef get_sv +# define get_sv perl_get_sv +#endif + +#ifndef ERRSV +# define ERRSV get_sv("@",FALSE) +#endif + +#ifndef pTHX_ +#define pTHX_ +#endif + +#include +#ifdef __cplusplus +} +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGINTERN const char* +SWIG_Perl_ErrorType(int code) { + switch(code) { + case SWIG_MemoryError: + return "MemoryError"; + case SWIG_IOError: + return "IOError"; + case SWIG_RuntimeError: + return "RuntimeError"; + case SWIG_IndexError: + return "IndexError"; + case SWIG_TypeError: + return "TypeError"; + case SWIG_DivisionByZero: + return "ZeroDivisionError"; + case SWIG_OverflowError: + return "OverflowError"; + case SWIG_SyntaxError: + return "SyntaxError"; + case SWIG_ValueError: + return "ValueError"; + case SWIG_SystemError: + return "SystemError"; + case SWIG_AttributeError: + return "AttributeError"; + default: + return "RuntimeError"; + } +} + + +/* ----------------------------------------------------------------------------- + * perlrun.swg + * + * This file contains the runtime support for Perl modules + * and includes code for managing global variables and pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +#ifdef PERL_OBJECT +#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), +#define SWIG_PERL_OBJECT_CALL pPerl, +#else +#define SWIG_PERL_OBJECT_DECL +#define SWIG_PERL_OBJECT_CALL +#endif + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) +#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) +#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) +#define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata) +#define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) + + +/* Error manipulation */ + +#define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) +#define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + +/* Perl-specific SWIG API */ + +#define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) +#define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) +#define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) + + +#define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) +#define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) +#define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) +#define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +/* For backward compatibility only */ +#define SWIG_POINTER_EXCEPTION 0 + +#ifdef __cplusplus +extern "C" { +#endif + +#define SWIG_OWNER SWIG_POINTER_OWN +#define SWIG_SHADOW SWIG_OWNER << 1 + +#define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL + +/* SWIG Perl macros */ + +/* Macro to declare an XS function */ +#ifndef XSPROTO +# define XSPROTO(name) void name(pTHX_ CV* cv) +#endif + +/* Macro to call an XS function */ +#ifdef PERL_OBJECT +# define SWIG_CALLXS(_name) _name(cv,pPerl) +#else +# ifndef MULTIPLICITY +# define SWIG_CALLXS(_name) _name(cv) +# else +# define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) +# endif +#endif + +#ifdef PERL_OBJECT +#define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) +#define SWIGCLASS_STATIC + +#else /* PERL_OBJECT */ + +#define MAGIC_PPERL +#define SWIGCLASS_STATIC static SWIGUNUSED + +#ifndef MULTIPLICITY +#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFunc)(SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#else /* MULTIPLICITY */ + +#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#endif /* MULTIPLICITY */ +#endif /* PERL_OBJECT */ + +# ifdef PERL_OBJECT +# define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) +static void SWIG_Perl_croak_null(CPerlObj *pPerl) +# else +static void SWIG_croak_null() +# endif +{ + SV *err = get_sv("@", GV_ADD); +# if (PERL_VERSION < 6) + croak("%_", err); +# else + if (sv_isobject(err)) + croak(0); + else + croak("%s", SvPV_nolen(err)); +# endif +} + + +/* + Define how strict is the cast between strings and integers/doubles + when overloading between these types occurs. + + The default is making it as strict as possible by using SWIG_AddCast + when needed. + + You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to + disable the SWIG_AddCast, making the casting between string and + numbers less strict. + + In the end, we try to solve the overloading between strings and + numerical types in the more natural way, but if you can avoid it, + well, avoid it using %rename, for example. +*/ +#ifndef SWIG_PERL_NO_STRICT_STR2NUM +# ifndef SWIG_PERL_STRICT_STR2NUM +# define SWIG_PERL_STRICT_STR2NUM +# endif +#endif +#ifdef SWIG_PERL_STRICT_STR2NUM +/* string takes precedence */ +#define SWIG_Str2NumCast(x) SWIG_AddCast(x) +#else +/* number takes precedence */ +#define SWIG_Str2NumCast(x) x +#endif + + + +#include + +SWIGRUNTIME const char * +SWIG_Perl_TypeProxyName(const swig_type_info *type) { + if (!type) return NULL; + if (type->clientdata != NULL) { + return (const char*) type->clientdata; + } + else { + return type->name; + } +} + +/* Identical to SWIG_TypeCheck, except for strcmp comparison */ +SWIGRUNTIME swig_cast_info * +SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* Function for getting a pointer value */ + +SWIGRUNTIME int +SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { + swig_cast_info *tc; + void *voidptr = (void *)0; + SV *tsv = 0; + + if (own) + *own = 0; + + /* If magical, apply more magic */ + if (SvGMAGICAL(sv)) + mg_get(sv); + + /* Check to see if this is an object */ + if (sv_isobject(sv)) { + IV tmp = 0; + tsv = (SV*) SvRV(sv); + if ((SvTYPE(tsv) == SVt_PVHV)) { + MAGIC *mg; + if (SvMAGICAL(tsv)) { + mg = mg_find(tsv,'P'); + if (mg) { + sv = mg->mg_obj; + if (sv_isobject(sv)) { + tsv = (SV*)SvRV(sv); + tmp = SvIV(tsv); + } + } + } else { + return SWIG_ERROR; + } + } else { + tmp = SvIV(tsv); + } + voidptr = INT2PTR(void *,tmp); + } else if (! SvOK(sv)) { /* Check for undef */ + *(ptr) = (void *) 0; + return SWIG_OK; + } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ + if (!SvROK(sv)) { + /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */ + if (SvIOK(sv)) { + return SWIG_ERROR; + } else { + /* NULL pointer (reference to undef). */ + *(ptr) = (void *) 0; + return SWIG_OK; + } + } else { + return SWIG_ERROR; + } + } else { /* Don't know what it is */ + return SWIG_ERROR; + } + if (_t) { + /* Now see if the types match */ + char *_c = HvNAME(SvSTASH(SvRV(sv))); + tc = SWIG_TypeProxyCheck(_c,_t); + if (!tc) { + return SWIG_ERROR; + } + { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + } else { + *ptr = voidptr; + } + + /* + * DISOWN implementation: we need a perl guru to check this one. + */ + if (tsv && (flags & SWIG_POINTER_DISOWN)) { + /* + * almost copy paste code from below SWIG_POINTER_OWN setting + */ + SV *obj = sv; + HV *stash = SvSTASH(SvRV(obj)); + GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); + if (isGV(gv)) { + HV *hv = GvHVn(gv); + /* + * To set ownership (see below), a newSViv(1) entry is added. + * Hence, to remove ownership, we delete the entry. + */ + if (hv_exists_ent(hv, obj, 0)) { + hv_delete_ent(hv, obj, 0, 0); + } + } + } + return SWIG_OK; +} + +SWIGRUNTIME int +SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { + return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); +} + +SWIGRUNTIME void +SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { + if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { + SV *self; + SV *obj=newSV(0); + HV *hash=newHV(); + HV *stash; + sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr); + stash=SvSTASH(SvRV(obj)); + if (flags & SWIG_POINTER_OWN) { + HV *hv; + GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); + if (!isGV(gv)) + gv_init(gv, stash, "OWNER", 5, FALSE); + hv=GvHVn(gv); + hv_store_ent(hv, obj, newSViv(1), 0); + } + sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); + SvREFCNT_dec(obj); + self=newRV_noinc((SV *)hash); + sv_setsv(sv, self); + SvREFCNT_dec((SV *)self); + sv_bless(sv, stash); + } + else { + sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr); + } +} + +SWIGRUNTIMEINLINE SV * +SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { + SV *result = sv_newmortal(); + SWIG_MakePtr(result, ptr, t, flags); + return result; +} + +SWIGRUNTIME void +SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { + char result[1024]; + char *r = result; + if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + strcpy(r,SWIG_Perl_TypeProxyName(type)); + sv_setpv(sv, result); +} + +SWIGRUNTIME SV * +SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { + SV *result = sv_newmortal(); + SWIG_Perl_MakePackedObj(result, ptr, sz, type); + return result; +} + +/* Convert a packed value value */ +SWIGRUNTIME int +SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { + swig_cast_info *tc; + const char *c = 0; + + if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; + c = SvPV_nolen(obj); + /* Pointer values must start with leading underscore */ + if (*c != '_') return SWIG_ERROR; + c++; + c = SWIG_UnpackData(c,ptr,sz); + if (ty) { + tc = SWIG_TypeCheck(c,ty); + if (!tc) return SWIG_ERROR; + } + return SWIG_OK; +} + + +/* Macros for low-level exception handling */ +#define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } + + +typedef XSPROTO(SwigPerlWrapper); +typedef SwigPerlWrapper *SwigPerlWrapperPtr; + +/* Structure for command table */ +typedef struct { + const char *name; + SwigPerlWrapperPtr wrapper; +} swig_command_info; + +/* Information for constant table */ + +#define SWIG_INT 1 +#define SWIG_FLOAT 2 +#define SWIG_STRING 3 +#define SWIG_POINTER 4 +#define SWIG_BINARY 5 + +/* Constant information structure */ +typedef struct swig_constant_info { + int type; + const char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_constant_info; + + +/* Structure for variable table */ +typedef struct { + const char *name; + SwigMagicFunc set; + SwigMagicFunc get; + swig_type_info **type; +} swig_variable_info; + +/* Magic variable code */ +#ifndef PERL_OBJECT +# ifdef __cplusplus +# define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast(a),b,c) +# else +# define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c) +# endif +# ifndef MULTIPLICITY +SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) +# else +SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) +# endif +#else +# define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) +SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) +#endif +{ + MAGIC *mg; + sv_magic(sv,sv,'U',name,strlen(name)); + mg = mg_find(sv,'U'); + mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); + mg->mg_virtual->svt_get = (SwigMagicFunc) get; + mg->mg_virtual->svt_set = (SwigMagicFunc) set; + mg->mg_virtual->svt_len = 0; + mg->mg_virtual->svt_clear = 0; + mg->mg_virtual->svt_free = 0; +} + + +SWIGRUNTIME swig_module_info * +SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) { + static void *type_pointer = (void *)0; + SV *pointer; + + /* first check if pointer already created */ + if (!type_pointer) { + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); + if (pointer && SvOK(pointer)) { + type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); + } + } + + return (swig_module_info *) type_pointer; +} + +SWIGRUNTIME void +SWIG_Perl_SetModule(swig_module_info *module) { + SV *pointer; + + /* create a new pointer */ + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); + sv_setiv(pointer, PTR2IV(module)); +} + +#ifdef __cplusplus +} +#endif + +/* Workaround perl5 global namespace pollution. Note that undefining library + * functions like fopen will not solve the problem on all platforms as fopen + * might be a macro on Windows but not necessarily on other operating systems. */ +#ifdef do_open + #undef do_open +#endif +#ifdef do_close + #undef do_close +#endif +#ifdef do_exec + #undef do_exec +#endif +#ifdef scalar + #undef scalar +#endif +#ifdef list + #undef list +#endif +#ifdef apply + #undef apply +#endif +#ifdef convert + #undef convert +#endif +#ifdef Error + #undef Error +#endif +#ifdef form + #undef form +#endif +#ifdef vform + #undef vform +#endif +#ifdef LABEL + #undef LABEL +#endif +#ifdef METHOD + #undef METHOD +#endif +#ifdef Move + #undef Move +#endif +#ifdef yylex + #undef yylex +#endif +#ifdef yyparse + #undef yyparse +#endif +#ifdef yyerror + #undef yyerror +#endif +#ifdef invert + #undef invert +#endif +#ifdef ref + #undef ref +#endif +#ifdef read + #undef read +#endif +#ifdef write + #undef write +#endif +#ifdef eof + #undef eof +#endif +#ifdef close + #undef close +#endif +#ifdef rewind + #undef rewind +#endif +#ifdef free + #undef free +#endif +#ifdef malloc + #undef malloc +#endif +#ifdef calloc + #undef calloc +#endif +#ifdef Stat + #undef Stat +#endif +#ifdef check + #undef check +#endif +#ifdef seekdir + #undef seekdir +#endif +#ifdef open + #undef open +#endif +#ifdef readdir + #undef readdir +#endif +#ifdef bind + #undef bind +#endif +#ifdef access + #undef access +#endif +#ifdef stat + #undef stat +#endif + +#ifdef bool + /* Leave if macro is from C99 stdbool.h */ + #ifndef __bool_true_false_are_defined + #undef bool + #endif +#endif + + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_ActionConfig swig_types[0] +#define SWIGTYPE_p_AudioResampler swig_types[1] +#define SWIGTYPE_p_CallSession swig_types[2] +#define SWIGTYPE_p_Codec swig_types[3] +#define SWIGTYPE_p_DDebugCallback swig_types[4] +#define SWIGTYPE_p_DialogEvent swig_types[5] +#define SWIGTYPE_p_InfoEvent swig_types[6] +#define SWIGTYPE_p_InfoSession swig_types[7] +#define SWIGTYPE_p_InviteEvent swig_types[8] +#define SWIGTYPE_p_InviteSession swig_types[9] +#define SWIGTYPE_p_MediaContent swig_types[10] +#define SWIGTYPE_p_MediaContentCPIM swig_types[11] +#define SWIGTYPE_p_MediaSessionMgr swig_types[12] +#define SWIGTYPE_p_MessagingEvent swig_types[13] +#define SWIGTYPE_p_MessagingSession swig_types[14] +#define SWIGTYPE_p_MsrpCallback swig_types[15] +#define SWIGTYPE_p_MsrpEvent swig_types[16] +#define SWIGTYPE_p_MsrpMessage swig_types[17] +#define SWIGTYPE_p_MsrpSession swig_types[18] +#define SWIGTYPE_p_OptionsEvent swig_types[19] +#define SWIGTYPE_p_OptionsSession swig_types[20] +#define SWIGTYPE_p_ProxyAudioConsumer swig_types[21] +#define SWIGTYPE_p_ProxyAudioConsumerCallback swig_types[22] +#define SWIGTYPE_p_ProxyAudioProducer swig_types[23] +#define SWIGTYPE_p_ProxyAudioProducerCallback swig_types[24] +#define SWIGTYPE_p_ProxyPlugin swig_types[25] +#define SWIGTYPE_p_ProxyPluginMgr swig_types[26] +#define SWIGTYPE_p_ProxyPluginMgrCallback swig_types[27] +#define SWIGTYPE_p_ProxyVideoConsumer swig_types[28] +#define SWIGTYPE_p_ProxyVideoConsumerCallback swig_types[29] +#define SWIGTYPE_p_ProxyVideoFrame swig_types[30] +#define SWIGTYPE_p_ProxyVideoProducer swig_types[31] +#define SWIGTYPE_p_ProxyVideoProducerCallback swig_types[32] +#define SWIGTYPE_p_PublicationEvent swig_types[33] +#define SWIGTYPE_p_PublicationSession swig_types[34] +#define SWIGTYPE_p_RPMessage swig_types[35] +#define SWIGTYPE_p_RegistrationEvent swig_types[36] +#define SWIGTYPE_p_RegistrationSession swig_types[37] +#define SWIGTYPE_p_SMSData swig_types[38] +#define SWIGTYPE_p_SMSEncoder swig_types[39] +#define SWIGTYPE_p_SafeObject swig_types[40] +#define SWIGTYPE_p_SdpMessage swig_types[41] +#define SWIGTYPE_p_SipCallback swig_types[42] +#define SWIGTYPE_p_SipEvent swig_types[43] +#define SWIGTYPE_p_SipMessage swig_types[44] +#define SWIGTYPE_p_SipSession swig_types[45] +#define SWIGTYPE_p_SipStack swig_types[46] +#define SWIGTYPE_p_SipUri swig_types[47] +#define SWIGTYPE_p_StackEvent swig_types[48] +#define SWIGTYPE_p_SubscriptionEvent swig_types[49] +#define SWIGTYPE_p_SubscriptionSession swig_types[50] +#define SWIGTYPE_p_T140Callback swig_types[51] +#define SWIGTYPE_p_T140CallbackData swig_types[52] +#define SWIGTYPE_p_XcapCallback swig_types[53] +#define SWIGTYPE_p_XcapEvent swig_types[54] +#define SWIGTYPE_p_XcapMessage swig_types[55] +#define SWIGTYPE_p_XcapSelector swig_types[56] +#define SWIGTYPE_p_XcapStack swig_types[57] +#define SWIGTYPE_p_char swig_types[58] +#define SWIGTYPE_p_int swig_types[59] +#define SWIGTYPE_p_long_long swig_types[60] +#define SWIGTYPE_p_short swig_types[61] +#define SWIGTYPE_p_signed_char swig_types[62] +#define SWIGTYPE_p_tdav_codec_id_e swig_types[63] +#define SWIGTYPE_p_thttp_event_type_e swig_types[64] +#define SWIGTYPE_p_tmedia_bandwidth_level_e swig_types[65] +#define SWIGTYPE_p_tmedia_chroma_e swig_types[66] +#define SWIGTYPE_p_tmedia_codec_id_e swig_types[67] +#define SWIGTYPE_p_tmedia_mode_e swig_types[68] +#define SWIGTYPE_p_tmedia_pref_video_size_s swig_types[69] +#define SWIGTYPE_p_tmedia_profile_e swig_types[70] +#define SWIGTYPE_p_tmedia_qos_strength_e swig_types[71] +#define SWIGTYPE_p_tmedia_qos_stype_e swig_types[72] +#define SWIGTYPE_p_tmedia_srtp_mode_e swig_types[73] +#define SWIGTYPE_p_tmedia_srtp_type_e swig_types[74] +#define SWIGTYPE_p_tmedia_t140_data_type_e swig_types[75] +#define SWIGTYPE_p_tmsrp_event_type_e swig_types[76] +#define SWIGTYPE_p_tmsrp_request_type_e swig_types[77] +#define SWIGTYPE_p_tsip_event_type_e swig_types[78] +#define SWIGTYPE_p_tsip_info_event_type_e swig_types[79] +#define SWIGTYPE_p_tsip_invite_event_type_e swig_types[80] +#define SWIGTYPE_p_tsip_message_event_type_e swig_types[81] +#define SWIGTYPE_p_tsip_options_event_type_e swig_types[82] +#define SWIGTYPE_p_tsip_publish_event_type_e swig_types[83] +#define SWIGTYPE_p_tsip_register_event_type_e swig_types[84] +#define SWIGTYPE_p_tsip_request_type_e swig_types[85] +#define SWIGTYPE_p_tsip_stack_mode_e swig_types[86] +#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[87] +#define SWIGTYPE_p_tsk_list_t swig_types[88] +#define SWIGTYPE_p_twrap_media_type_e swig_types[89] +#define SWIGTYPE_p_twrap_proxy_plugin_type_e swig_types[90] +#define SWIGTYPE_p_twrap_rpmessage_type_e swig_types[91] +#define SWIGTYPE_p_twrap_sms_type_e swig_types[92] +#define SWIGTYPE_p_unsigned_char swig_types[93] +#define SWIGTYPE_p_unsigned_int swig_types[94] +#define SWIGTYPE_p_unsigned_long_long swig_types[95] +#define SWIGTYPE_p_unsigned_short swig_types[96] +static swig_type_info *swig_types[98]; +static swig_module_info swig_module = {swig_types, 97, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#define SWIG_init boot_tinyWRAP + +#define SWIG_name "tinyWRAPc::boot_tinyWRAP" +#define SWIG_prefix "tinyWRAPc::" + +#define SWIGVERSION 0x020009 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include + + +#ifdef __cplusplus +extern "C" +#endif +#ifndef PERL_OBJECT +#ifndef MULTIPLICITY +SWIGEXPORT void SWIG_init (CV* cv); +#else +SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); +#endif +#else +SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); +#endif + + +#include // Use the C99 official header + + +#include "tinyWRAP_config.h" +#include "DDebug.h" +#include "AudioResampler.h" + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) +{ + if (SvMAGICAL(obj)) { + SV *tmp = sv_newmortal(); + SvSetSV(tmp, obj); + obj = tmp; + } + if (SvPOK(obj)) { + STRLEN len = 0; + char *cstr = SvPV(obj, len); + size_t size = len + 1; + if (cptr) { + if (alloc) { + if (*alloc == SWIG_NEWOBJ) { + *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } + } + if (psize) *psize = size; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + char* vptr = 0; + if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = vptr; + if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +SWIGINTERNINLINE SV * +SWIG_From_long SWIG_PERL_DECL_ARGS_1(long value) +{ + SV *sv; + if (value >= IV_MIN && value <= IV_MAX) + sv = newSViv(value); + else + sv = newSVpvf("%ld", value); + return sv_2mortal(sv); +} + + +SWIGINTERNINLINE SV * +SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) +{ + return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); +} + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) +{ + if (SvNIOK(obj)) { + if (val) *val = SvNV(obj); + return SWIG_OK; + } else if (SvIOK(obj)) { + if (val) *val = (double) SvIV(obj); + return SWIG_AddCast(SWIG_OK); + } else { + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + double v; + errno = 0; + v = strtod(nptr, &endptr); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + } + return SWIG_TypeError; +} + + +#include + + +#include + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) +{ + if (SvUOK(obj)) { + UV v = SvUV(obj); + if (v <= ULONG_MAX) { + if (val) *val = v; + return SWIG_OK; + } + return SWIG_OverflowError; + } else if (SvIOK(obj)) { + IV v = SvIV(obj); + if (v >= 0 && v <= ULONG_MAX) { + if (val) *val = v; + return SWIG_OK; + } + return SWIG_OverflowError; + } else { + int dispatch = 0; + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + unsigned long v; + errno = 0; + v = strtoul(nptr, &endptr,0); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value) +{ + return boolSV(value); +} + + +SWIGINTERNINLINE SV * +SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value) +{ + SV *sv; + if (value <= UV_MAX) + sv = newSVuv(value); + else + sv = newSVpvf("%lu", value); + return sv_2mortal(sv); +} + + +SWIGINTERNINLINE SV * +SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value) +{ + return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); +} + + +#include "ActionConfig.h" +#include "MediaSessionMgr.h" +#include "MediaContent.h" +#include "SipUri.h" +#include "SipMessage.h" +#include "SipEvent.h" +#include "SipSession.h" + +#include "ProxyPluginMgr.h" +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" + + +SWIGINTERN int +SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) +{ + if (SvUOK(obj)) { + UV v = SvUV(obj); + if (v <= LONG_MAX) { + if (val) *val = v; + return SWIG_OK; + } + return SWIG_OverflowError; + } else if (SvIOK(obj)) { + IV v = SvIV(obj); + if (v >= LONG_MIN && v <= LONG_MAX) { + if(val) *val = v; + return SWIG_OK; + } + return SWIG_OverflowError; + } else { + int dispatch = 0; + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + long v; + errno = 0; + v = strtol(nptr, &endptr,0); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + if (val) *val = (long)(d); + return res; + } + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val) +{ + long v; + int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< int >(v); + } + } + return res; +} + + +SWIGINTERN int +SWIG_AsVal_short SWIG_PERL_DECL_ARGS_2(SV * obj, short *val) +{ + long v; + int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v < SHRT_MIN || v > SHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< short >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + SV *obj = sv_newmortal(); + if (carray) { + sv_setpvn(obj, carray, size); + } else { + sv_setsv(obj, &PL_sv_undef); + } + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +#include +#ifdef _MSC_VER +# ifndef strtoull +# define strtoull _strtoui64 +# endif +# ifndef strtoll +# define strtoll _strtoi64 +# endif +#endif + + + +SWIGINTERN int +SWIG_AsVal_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, long long *val) +{ + if (SvUOK(obj)) { + UV v = SvUV(obj); + if (v < LLONG_MAX) { + if (val) *val = v; + return SWIG_OK; + } + return SWIG_OverflowError; + } else if (SvIOK(obj)) { + IV v = SvIV(obj); + if (v >= LLONG_MIN && v <= LLONG_MAX) { + if (val) *val = v; + return SWIG_OK; + } + return SWIG_OverflowError; + } else { + int dispatch = 0; + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + long long v; + errno = 0; + v = strtoll(nptr, &endptr,0); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + if (!dispatch) { + const double mant_max = 1LL << DBL_MANT_DIG; + const double mant_min = -mant_max; + double d; + int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { + if (val) *val = (long long)(d); + return res; + } + } + } + return SWIG_TypeError; +} + + +#include +#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) +# ifndef snprintf +# define snprintf _snprintf +# endif +#endif + + +SWIGINTERNINLINE SV * +SWIG_From_long_SS_long SWIG_PERL_DECL_ARGS_1(long long value) +{ + SV *sv; + if (value >= IV_MIN && value <= IV_MAX) + sv = newSViv((IV)(value)); + else { + //sv = newSVpvf("%lld", value); doesn't work in non 64bit Perl + char temp[256]; + sprintf(temp, "%lld", value); + sv = newSVpv(temp, 0); + } + return sv_2mortal(sv); +} + + +SWIGINTERNINLINE SV * +SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value) +{ + SV *sv; + if (value <= UV_MAX) + sv = newSVuv((UV)(value)); + else { + //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl + char temp[256]; + sprintf(temp, "%llu", value); + sv = newSVpv(temp, 0); + } + return sv_2mortal(sv); +} + + +SWIGINTERN int +SWIG_AsVal_bool SWIG_PERL_DECL_ARGS_2(SV *obj, bool* val) +{ + if (obj == &PL_sv_yes) { + if (val) *val = true; + return SWIG_OK; + } else if (obj == &PL_sv_no) { + if (val) *val = false; + return SWIG_OK; + } else { + if (val) *val = SvTRUE(obj) ? true : false; + return SWIG_AddCast(SWIG_OK); + } +} + + +SWIGINTERN int +SWIG_AsVal_float SWIG_PERL_DECL_ARGS_2(SV * obj, float *val) +{ + double v; + int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v < -FLT_MAX || v > FLT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< float >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value) +{ + return sv_2mortal(newSVnv(value)); +} + + +SWIGINTERNINLINE SV * +SWIG_From_float SWIG_PERL_DECL_ARGS_1(float value) +{ + return SWIG_From_double SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_short SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned short *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v > USHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned short >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_unsigned_SS_short SWIG_PERL_DECL_ARGS_1(unsigned short value) +{ + return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERN int +SWIG_AsCharArray(SV * obj, char *val, size_t size) +{ + char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; + int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); + if (SWIG_IsOK(res)) { + if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; + if (csize <= size) { + if (val) { + if (csize) memcpy(val, cptr, csize*sizeof(char)); + if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); + } + if (alloc == SWIG_NEWOBJ) { + delete[] cptr; + res = SWIG_DelNewMask(res); + } + return res; + } + if (alloc == SWIG_NEWOBJ) delete[] cptr; + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_char SWIG_PERL_DECL_ARGS_2(SV * obj, char *val) +{ + int res = SWIG_AsCharArray(obj, val, 1); + if (!SWIG_IsOK(res)) { + long v; + res = SWIG_AddCast(SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v)); + if (SWIG_IsOK(res)) { + if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { + if (val) *val = static_cast< char >(v); + } else { + res = SWIG_OverflowError; + } + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_short SWIG_PERL_DECL_ARGS_1(short value) +{ + return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val) +{ + if (SvUOK(obj)) { + if (val) *val = SvUV(obj); + return SWIG_OK; + } else if (SvIOK(obj)) { + IV v = SvIV(obj); + if (v >= 0 && v <= ULLONG_MAX) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else { + int dispatch = 0; + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + unsigned long long v; + errno = 0; + v = strtoull(nptr, &endptr,0); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + if (!dispatch) { + const double mant_max = 1LL << DBL_MANT_DIG; + double d; + int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { + if (val) *val = (unsigned long long)(d); + return res; + } + } + } + return SWIG_TypeError; +} + + +#include "Xcap.h" + + +#include "SMSEncoder.h" + + +#include "Msrp.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef PERL_OBJECT +#define MAGIC_CLASS _wrap_tinyWRAP_var:: +class _wrap_tinyWRAP_var : public CPerlObj { +public: +#else +#define MAGIC_CLASS +#endif +SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { + MAGIC_PPERL + croak("Value is read-only."); + return 0; +} + + +#ifdef PERL_OBJECT +}; +#endif + +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +extern "C" { +#endif +XS(_wrap_new_DDebugCallback) { + { + int argvi = 0; + DDebugCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_DDebugCallback();"); + } + result = (DDebugCallback *)new DDebugCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DDebugCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_DDebugCallback) { + { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_DDebugCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DDebugCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DDebugCallback" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_DDebugCallback_OnDebugInfo) { + { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: DDebugCallback_OnDebugInfo(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugInfo" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugInfo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_DDebugCallback_OnDebugWarn) { + { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: DDebugCallback_OnDebugWarn(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugWarn" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugWarn" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_DDebugCallback_OnDebugError) { + { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: DDebugCallback_OnDebugError(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugError" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugError((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_DDebugCallback_OnDebugFatal) { + { + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: DDebugCallback_OnDebugFatal(self,message);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugFatal" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugFatal" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_AudioResampler) { + { + uint32_t arg1 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + unsigned int val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + int argvi = 0; + AudioResampler *result = 0 ; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: new_AudioResampler(nInFreq,nOutFreq,nFrameDuration,nChannels,nQuality);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AudioResampler" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AudioResampler" "', argument " "2"" of type '" "uint32_t""'"); + } + arg2 = static_cast< uint32_t >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AudioResampler" "', argument " "3"" of type '" "uint32_t""'"); + } + arg3 = static_cast< uint32_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_AudioResampler" "', argument " "4"" of type '" "uint32_t""'"); + } + arg4 = static_cast< uint32_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_AudioResampler" "', argument " "5"" of type '" "uint32_t""'"); + } + arg5 = static_cast< uint32_t >(val5); + result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AudioResampler, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + + + + + XSRETURN(argvi); + fail: + + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_AudioResampler) { + { + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_AudioResampler(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AudioResampler, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AudioResampler" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_AudioResampler_isValid) { + { + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: AudioResampler_isValid(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_isValid" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + result = (bool)(arg1)->isValid(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_AudioResampler_getOutputRequiredSizeInShort) { + { + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint32_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: AudioResampler_getOutputRequiredSizeInShort(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_getOutputRequiredSizeInShort" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + result = (uint32_t)(arg1)->getOutputRequiredSizeInShort(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_AudioResampler_getInputRequiredSizeInShort) { + { + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint32_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: AudioResampler_getInputRequiredSizeInShort(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_getInputRequiredSizeInShort" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + result = (uint32_t)(arg1)->getInputRequiredSizeInShort(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_AudioResampler_process) { + { + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t arg3 ; + void *arg4 = (void *) 0 ; + uint32_t arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + unsigned int val5 ; + int ecode5 = 0 ; + int argvi = 0; + uint32_t result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: AudioResampler_process(self,pInData,nInSizeInBytes,pOutData,nOutSizeInBytes);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_process" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AudioResampler_process" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AudioResampler_process" "', argument " "3"" of type '" "uint32_t""'"); + } + arg3 = static_cast< uint32_t >(val3); + res4 = SWIG_ConvertPtr(ST(3),SWIG_as_voidptrptr(&arg4), 0, 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "AudioResampler_process" "', argument " "4"" of type '" "void *""'"); + } + ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AudioResampler_process" "', argument " "5"" of type '" "uint32_t""'"); + } + arg5 = static_cast< uint32_t >(val5); + result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + + + XSRETURN(argvi); + fail: + + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_ActionConfig) { + { + int argvi = 0; + ActionConfig *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_ActionConfig();"); + } + result = (ActionConfig *)new ActionConfig(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ActionConfig) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ActionConfig(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ActionConfig" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ActionConfig_addHeader) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ActionConfig_addHeader(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_addHeader" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ActionConfig_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_ActionConfig_addPayload) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ActionConfig_addPayload(self,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_addPayload" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ActionConfig_addPayload" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ActionConfig_addPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->addPayload((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ActionConfig_setActiveMedia) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ActionConfig_setActiveMedia(self,type);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setActiveMedia" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setActiveMedia" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (bool)(arg1)->setActiveMedia(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ActionConfig_setResponseLine) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + short arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + short val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + ActionConfig *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ActionConfig_setResponseLine(self,code,phrase);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setResponseLine" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setResponseLine" "', argument " "2"" of type '" "short""'"); + } + arg2 = static_cast< short >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_setResponseLine" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, 0 | SWIG_SHADOW); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_ActionConfig_setMediaString) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + ActionConfig *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ActionConfig_setMediaString(self,type,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setMediaString" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setMediaString" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_setMediaString" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ActionConfig_setMediaString" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, 0 | SWIG_SHADOW); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_ActionConfig_setMediaInt) { + { + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + ActionConfig *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ActionConfig_setMediaInt(self,type,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setMediaInt" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setMediaInt" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_setMediaInt" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ActionConfig_setMediaInt" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, 0 | SWIG_SHADOW); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_Codec) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_Codec(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Codec" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getMediaType) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + twrap_media_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getMediaType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getMediaType" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (twrap_media_type_t)(arg1)->getMediaType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getName) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getName(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getName" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (char *)(arg1)->getName(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getDescription) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getDescription(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getDescription" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (char *)(arg1)->getDescription(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getNegFormat) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getNegFormat(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getNegFormat" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (char *)(arg1)->getNegFormat(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getAudioSamplingRate) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getAudioSamplingRate(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getAudioSamplingRate" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (int)(arg1)->getAudioSamplingRate(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getAudioChannels) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getAudioChannels(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getAudioChannels" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (int)(arg1)->getAudioChannels(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Codec_getAudioPTime) { + { + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Codec_getAudioPTime(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getAudioPTime" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (int)(arg1)->getAudioPTime(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MediaSessionMgr) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MediaSessionMgr(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MediaSessionMgr" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_sessionSetInt32) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MediaSessionMgr_sessionSetInt32(self,media,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "4"" of type '" "int32_t""'"); + } + arg4 = static_cast< int32_t >(val4); + result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_sessionGetInt32) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + int32_t result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MediaSessionMgr_sessionGetInt32(self,media,key);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_sessionGetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_sessionGetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_sessionGetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_consumerSetInt32) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MediaSessionMgr_consumerSetInt32(self,media,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "4"" of type '" "int32_t""'"); + } + arg4 = static_cast< int32_t >(val4); + result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_consumerSetInt64) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + long long val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MediaSessionMgr_consumerSetInt64(self,media,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "4"" of type '" "int64_t""'"); + } + arg4 = static_cast< int64_t >(val4); + result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_producerSetInt32) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MediaSessionMgr_producerSetInt32(self,media,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "4"" of type '" "int32_t""'"); + } + arg4 = static_cast< int32_t >(val4); + result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_producerSetInt64) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + long long val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MediaSessionMgr_producerSetInt64(self,media,key,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "4"" of type '" "int64_t""'"); + } + arg4 = static_cast< int64_t >(val4); + result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_producerGetCodec) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + Codec *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_producerGetCodec(self,media);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_producerGetCodec" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_producerGetCodec" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (Codec *)(arg1)->producerGetCodec(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Codec, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_findProxyPluginConsumer) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyPlugin *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_findProxyPluginConsumer(self,media);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_findProxyPluginConsumer" "', argument " "1"" of type '" "MediaSessionMgr const *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_findProxyPluginConsumer" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPlugin, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_findProxyPluginProducer) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyPlugin *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_findProxyPluginProducer(self,media);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_findProxyPluginProducer" "', argument " "1"" of type '" "MediaSessionMgr const *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_findProxyPluginProducer" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPlugin, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_registerAudioPluginFromFile) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_registerAudioPluginFromFile(path);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_registerAudioPluginFromFile" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_getSessionId) { + { + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + uint64_t result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_getSessionId(self,media);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_getSessionId" "', argument " "1"" of type '" "MediaSessionMgr const *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_getSessionId" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2); + ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetProfile) { + { + tmedia_profile_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetProfile(profile);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetProfile" "', argument " "1"" of type '" "tmedia_profile_t""'"); + } + arg1 = static_cast< tmedia_profile_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetProfile(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetProfile) { + { + int argvi = 0; + tmedia_profile_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetProfile();"); + } + result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetBandwidthLevel) { + { + tmedia_bandwidth_level_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetBandwidthLevel(bl);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetBandwidthLevel" "', argument " "1"" of type '" "tmedia_bandwidth_level_t""'"); + } + arg1 = static_cast< tmedia_bandwidth_level_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetBandwidthLevel) { + { + int argvi = 0; + tmedia_bandwidth_level_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetBandwidthLevel();"); + } + result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetCongestionCtrlEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetCongestionCtrlEnabled(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetCongestionCtrlEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetVideoMotionRank) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetVideoMotionRank(video_motion_rank);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoMotionRank" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetVideoFps) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetVideoFps(video_fps);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoFps" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetBandwidthVideoUploadMax) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(bw_video_up_max_kbps);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetBandwidthVideoUploadMax" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(bw_video_down_max_kbps);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetPrefVideoSize) { + { + tmedia_pref_video_size_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetPrefVideoSize(pref_video_size);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetPrefVideoSize" "', argument " "1"" of type '" "tmedia_pref_video_size_t""'"); + } + arg1 = static_cast< tmedia_pref_video_size_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetJbMargin) { + { + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetJbMargin(jb_margin_ms);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetJbMargin" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetJbMaxLateRate) { + { + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetJbMaxLateRate(jb_late_rate_percent);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetJbMaxLateRate" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetEchoTail) { + { + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetEchoTail(echo_tail);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetEchoTail" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetEchoTail) { + { + int argvi = 0; + uint32_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetEchoTail();"); + } + result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetEchoSkew) { + { + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetEchoSkew(echo_skew);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetEchoSkew" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetEchoSuppEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetEchoSuppEnabled(echo_supp_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetEchoSuppEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetEchoSuppEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetEchoSuppEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAgcEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAgcEnabled(agc_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAgcEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetAgcEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetAgcEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetAgcEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAgcLevel) { + { + float arg1 ; + float val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAgcLevel(agc_level);"); + } + ecode1 = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAgcLevel" "', argument " "1"" of type '" "float""'"); + } + arg1 = static_cast< float >(val1); + result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetAgcLevel) { + { + int argvi = 0; + float result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetAgcLevel();"); + } + result = (float)MediaSessionMgr::defaultsGetAgcLevel(); + ST(argvi) = SWIG_From_float SWIG_PERL_CALL_ARGS_1(static_cast< float >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetVadEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetVadEnabled(vad_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVadEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetGetVadEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetGetVadEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetNoiseSuppEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetNoiseSuppEnabled(noise_supp_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetNoiseSuppEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetNoiseSuppEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetNoiseSuppEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetNoiseSuppLevel) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetNoiseSuppLevel(noise_supp_level);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetNoiseSuppLevel" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetNoiseSuppLevel) { + { + int argvi = 0; + int32_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetNoiseSuppLevel();"); + } + result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSet100relEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSet100relEnabled(_100rel_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSet100relEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGet100relEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGet100relEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGet100relEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetScreenSize) { + { + int32_t arg1 ; + int32_t arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetScreenSize(sx,sy);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetScreenSize" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetScreenSize" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAudioGain) { + { + int32_t arg1 ; + int32_t arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAudioGain(producer_gain,consumer_gain);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAudioGain" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetAudioGain" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAudioPtime) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAudioPtime(ptime);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAudioPtime" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAudioChannels) { + { + int32_t arg1 ; + int32_t arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAudioChannels(channel_playback,channel_record);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAudioChannels" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetAudioChannels" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetRtpPortRange) { + { + uint16_t arg1 ; + uint16_t arg2 ; + unsigned short val1 ; + int ecode1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetRtpPortRange(range_start,range_stop);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtpPortRange" "', argument " "1"" of type '" "uint16_t""'"); + } + arg1 = static_cast< uint16_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetRtpPortRange" "', argument " "2"" of type '" "uint16_t""'"); + } + arg2 = static_cast< uint16_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetRtpSymetricEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetRtpSymetricEnabled(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtpSymetricEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetMediaType) { + { + twrap_media_type_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetMediaType(media_type);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetMediaType" "', argument " "1"" of type '" "twrap_media_type_t""'"); + } + arg1 = static_cast< twrap_media_type_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetVolume) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetVolume(volume);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVolume" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetVolume(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetVolume) { + { + int argvi = 0; + int32_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetVolume();"); + } + result = (int32_t)MediaSessionMgr::defaultsGetVolume(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetInviteSessionTimers) { + { + int32_t arg1 ; + char *arg2 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetInviteSessionTimers(timeout,refresher);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetInviteSessionTimers" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaSessionMgr_defaultsSetInviteSessionTimers" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetSRtpMode) { + { + tmedia_srtp_mode_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetSRtpMode(mode);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetSRtpMode" "', argument " "1"" of type '" "tmedia_srtp_mode_t""'"); + } + arg1 = static_cast< tmedia_srtp_mode_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetSRtpMode) { + { + int argvi = 0; + tmedia_srtp_mode_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetSRtpMode();"); + } + result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetSRtpType) { + { + tmedia_srtp_type_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetSRtpType(srtp_type);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetSRtpType" "', argument " "1"" of type '" "tmedia_srtp_type_t""'"); + } + arg1 = static_cast< tmedia_srtp_type_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetSRtpType) { + { + int argvi = 0; + tmedia_srtp_type_t result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetSRtpType();"); + } + result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetRtcpEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetRtcpEnabled(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtcpEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetRtcpEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetRtcpEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetRtcpMuxEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetRtcpMuxEnabled(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtcpMuxEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetRtcpMuxEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetRtcpMuxEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetStunEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetStunEnabled(stun_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetStunEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetIceStunEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetIceStunEnabled(icestun_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetIceStunEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetIceTurnEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetIceTurnEnabled(iceturn_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetIceTurnEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetStunServer) { + { + char *arg1 = (char *) 0 ; + uint16_t arg2 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetStunServer(server_ip,server_port);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_defaultsSetStunServer" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetStunServer" "', argument " "2"" of type '" "uint16_t""'"); + } + arg2 = static_cast< uint16_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetStunCred) { + { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetStunCred(username,password);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_defaultsSetStunCred" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaSessionMgr_defaultsSetStunCred" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetIceEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetIceEnabled(ice_enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetIceEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetByPassEncoding) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetByPassEncoding(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetByPassEncoding" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetByPassEncoding) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetByPassEncoding();"); + } + result = (bool)MediaSessionMgr::defaultsGetByPassEncoding(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetByPassDecoding) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetByPassDecoding(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetByPassDecoding" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetByPassDecoding) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetByPassDecoding();"); + } + result = (bool)MediaSessionMgr::defaultsGetByPassDecoding(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetVideoJbEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetVideoJbEnabled(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoJbEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetVideoJbEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetVideoJbEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(enabled);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled();"); + } + result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetRtpBuffSize) { + { + unsigned int arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetRtpBuffSize(buffSize);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtpBuffSize" "', argument " "1"" of type '" "unsigned int""'"); + } + arg1 = static_cast< unsigned int >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsGetRtpBuffSize) { + { + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsGetRtpBuffSize();"); + } + result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAvpfTail) { + { + unsigned int arg1 ; + unsigned int arg2 ; + unsigned int val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAvpfTail(tail_min,tail_max);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAvpfTail" "', argument " "1"" of type '" "unsigned int""'"); + } + arg1 = static_cast< unsigned int >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetAvpfTail" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetAvpfMode) { + { + enum tmedia_mode_e arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetAvpfMode(mode);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAvpfMode" "', argument " "1"" of type '" "enum tmedia_mode_e""'"); + } + arg1 = static_cast< enum tmedia_mode_e >(val1); + result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetOpusMaxCaptureRate) { + { + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetOpusMaxCaptureRate(opus_maxcapturerate);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetOpusMaxCaptureRate" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetOpusMaxPlaybackRate) { + { + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(opus_maxplaybackrate);"); + } + ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetOpusMaxPlaybackRate" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaSessionMgr_defaultsSetMaxFds) { + { + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaSessionMgr_defaultsSetMaxFds(max_fds);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetMaxFds" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MediaContent) { + { + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MediaContent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MediaContent" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_getType) { + { + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaContent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getType" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + result = (char *)(arg1)->getType(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_getDataLength) { + { + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaContent_getDataLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getDataLength" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + result = (unsigned int)(arg1)->getDataLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_getData) { + { + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MediaContent_getData(self,pOutput,nMaxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getData" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContent_getData" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MediaContent_getData" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getData(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_parse__SWIG_0) { + { + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + int res1 ; + unsigned int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + MediaContent *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MediaContent_parse(pData,nSize,pType);"); + } + res1 = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_parse" "', argument " "1"" of type '" "void const *""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaContent_parse" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaContent_parse" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MediaContent, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_parse__SWIG_1) { + { + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + int res1 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + MediaContentCPIM *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaContent_parse(pData,nSize);"); + } + res1 = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_parse" "', argument " "1"" of type '" "void const *""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaContent_parse" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MediaContentCPIM, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_parse) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(0), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(0), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MediaContent_parse__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MediaContent_parse__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MediaContent_parse'"); + XSRETURN(0); +} + + +XS(_wrap_MediaContent_getPayloadLength) { + { + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaContent_getPayloadLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getPayloadLength" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContent_getPayload) { + { + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MediaContent_getPayload(self,pOutput,nMaxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getPayload" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContent_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MediaContent_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MediaContentCPIM) { + { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MediaContentCPIM(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContentCPIM, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MediaContentCPIM" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContentCPIM_getPayloadLength) { + { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MediaContentCPIM_getPayloadLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContentCPIM, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContentCPIM_getPayloadLength" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContentCPIM_getPayload) { + { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MediaContentCPIM_getPayload(self,pOutput,nMaxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContentCPIM, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContentCPIM_getPayload" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContentCPIM_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MediaContentCPIM_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MediaContentCPIM_getHeaderValue) { + { + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MediaContentCPIM_getHeaderValue(self,pName);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MediaContentCPIM, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContentCPIM_getHeaderValue" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContentCPIM_getHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getHeaderValue((char const *)arg2); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipUri__SWIG_0) { + { + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + SipUri *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: new_SipUri(uriString,displayName);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipUri__SWIG_1) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + SipUri *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_SipUri(uriString);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (SipUri *)new SipUri((char const *)arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipUri) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_SipUri__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_SipUri__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'new_SipUri'"); + XSRETURN(0); +} + + +XS(_wrap_delete_SipUri) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipUri(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_isValid__SWIG_0) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_isValid(char const *);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (bool)SipUri::isValid((char const *)arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_isValid__SWIG_1) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_isValid(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (bool)(arg1)->isValid(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_isValid) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + int res = SWIG_AsCharPtrAndSize(ST(0), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipUri_isValid__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipUri_isValid'"); + XSRETURN(0); +} + + +XS(_wrap_SipUri_getScheme) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_getScheme(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getScheme" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getScheme(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_getHost) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_getHost(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getHost" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getHost(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_getPort) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned short result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_getPort(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getPort" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (unsigned short)(arg1)->getPort(); + ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_getUserName) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_getUserName(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getUserName" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getUserName(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_getPassword) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_getPassword(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getPassword" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getPassword(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_getDisplayName) { + { + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipUri_getDisplayName(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getDisplayName" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getDisplayName(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_getParamValue) { + { + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipUri_getParamValue(self,pname);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getParamValue" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipUri_getParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getParamValue((char const *)arg2); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipUri_setDisplayName) { + { + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipUri_setDisplayName(self,displayName);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_setDisplayName" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipUri_setDisplayName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + (arg1)->setDisplayName((char const *)arg2); + ST(argvi) = sv_newmortal(); + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SdpMessage) { + { + int argvi = 0; + SdpMessage *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SdpMessage();"); + } + result = (SdpMessage *)new SdpMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SdpMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SdpMessage) { + { + SdpMessage *arg1 = (SdpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SdpMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SdpMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SdpMessage" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SdpMessage_getSdpHeaderValue__SWIG_0) { + { + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + char val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SdpMessage_getSdpHeaderValue(self,media,name,index);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SdpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "3"" of type '" "char""'"); + } + arg3 = static_cast< char >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SdpMessage_getSdpHeaderValue__SWIG_1) { + { + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + char val3 ; + int ecode3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SdpMessage_getSdpHeaderValue(self,media,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SdpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "3"" of type '" "char""'"); + } + arg3 = static_cast< char >(val3); + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SdpMessage_getSdpHeaderValue) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SdpMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SdpMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SdpMessage_getSdpHeaderValue__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SdpMessage_getSdpHeaderValue__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SdpMessage_getSdpHeaderValue'"); + XSRETURN(0); +} + + +XS(_wrap_SdpMessage_getSdpHeaderAValue) { + { + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SdpMessage_getSdpHeaderAValue(self,media,attributeName);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SdpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SdpMessage_getSdpHeaderAValue" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SdpMessage_getSdpHeaderAValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SdpMessage_getSdpHeaderAValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipMessage) { + { + int argvi = 0; + SipMessage *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SipMessage();"); + } + result = (SipMessage *)new SipMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipMessage) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipMessage" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_isResponse) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipMessage_isResponse(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_isResponse" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (bool)(arg1)->isResponse(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getRequestType) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_request_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipMessage_getRequestType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getRequestType" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (tsip_request_type_t)(arg1)->getRequestType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getResponseCode) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + short result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipMessage_getResponseCode(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getResponseCode" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (short)(arg1)->getResponseCode(); + ST(argvi) = SWIG_From_short SWIG_PERL_CALL_ARGS_1(static_cast< short >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getResponsePhrase) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipMessage_getResponsePhrase(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getResponsePhrase" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (char *)(arg1)->getResponsePhrase(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSipHeaderValue__SWIG_0) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipMessage_getSipHeaderValue(self,name,index);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipMessage_getSipHeaderValue" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSipHeaderValue__SWIG_1) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipMessage_getSipHeaderValue(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSipHeaderValue) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipMessage_getSipHeaderValue__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipMessage_getSipHeaderValue__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipMessage_getSipHeaderValue'"); + XSRETURN(0); +} + + +XS(_wrap_SipMessage_getSipHeaderParamValue__SWIG_0) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SipMessage_getSipHeaderParamValue(self,name,param,index);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSipHeaderParamValue__SWIG_1) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipMessage_getSipHeaderParamValue(self,name,param);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSipHeaderParamValue) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipMessage_getSipHeaderParamValue__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipMessage_getSipHeaderParamValue__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipMessage_getSipHeaderParamValue'"); + XSRETURN(0); +} + + +XS(_wrap_SipMessage_getSipContentLength) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipMessage_getSipContentLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipContentLength" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (unsigned int)(arg1)->getSipContentLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSipContent) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipMessage_getSipContent(self,output,maxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipContent" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipMessage_getSipContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getSipContent(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipMessage_getSdpMessage) { + { + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SdpMessage *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipMessage_getSdpMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSdpMessage" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (SdpMessage *)(arg1)->getSdpMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SdpMessage, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipEvent) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipEvent" "', argument " "1"" of type '" "SipEvent *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getCode) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + short result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getCode(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getCode" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (short)((SipEvent const *)arg1)->getCode(); + ST(argvi) = SWIG_From_short SWIG_PERL_CALL_ARGS_1(static_cast< short >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getPhrase) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getPhrase(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getPhrase" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (char *)((SipEvent const *)arg1)->getPhrase(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getBaseSession) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SipSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getBaseSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getBaseSession" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipEvent_getSipMessage) { + { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SipMessage *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipEvent_getSipMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getSipMessage" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipMessage, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_DialogEvent) { + { + DialogEvent *arg1 = (DialogEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_DialogEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_DialogEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DialogEvent" "', argument " "1"" of type '" "DialogEvent *""'"); + } + arg1 = reinterpret_cast< DialogEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_StackEvent) { + { + StackEvent *arg1 = (StackEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_StackEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_StackEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StackEvent" "', argument " "1"" of type '" "StackEvent *""'"); + } + arg1 = reinterpret_cast< StackEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_InviteEvent) { + { + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_InviteEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InviteEvent" "', argument " "1"" of type '" "InviteEvent *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteEvent_getType) { + { + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_invite_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_getType" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteEvent_getMediaType) { + { + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + twrap_media_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteEvent_getMediaType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_getMediaType" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteEvent_getSession) { + { + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + InviteSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_getSession" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (InviteSession *)((InviteEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InviteSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteEvent_takeCallSessionOwnership) { + { + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + CallSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteEvent_takeCallSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_takeCallSessionOwnership" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteEvent_takeMsrpSessionOwnership) { + { + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MsrpSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteEvent_takeMsrpSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_takeMsrpSessionOwnership" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MessagingEvent) { + { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MessagingEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MessagingEvent" "', argument " "1"" of type '" "MessagingEvent *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingEvent_getType) { + { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_message_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MessagingEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingEvent_getType" "', argument " "1"" of type '" "MessagingEvent const *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingEvent_getSession) { + { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MessagingSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MessagingEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingEvent_getSession" "', argument " "1"" of type '" "MessagingEvent const *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MessagingSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingEvent_takeSessionOwnership) { + { + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MessagingSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MessagingEvent_takeSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingEvent_takeSessionOwnership" "', argument " "1"" of type '" "MessagingEvent const *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MessagingSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_InfoEvent) { + { + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_InfoEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InfoEvent" "', argument " "1"" of type '" "InfoEvent *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoEvent_getType) { + { + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_info_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InfoEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoEvent_getType" "', argument " "1"" of type '" "InfoEvent const *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoEvent_getSession) { + { + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + InfoSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InfoEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoEvent_getSession" "', argument " "1"" of type '" "InfoEvent const *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + result = (InfoSession *)((InfoEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InfoSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoEvent_takeSessionOwnership) { + { + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + InfoSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InfoEvent_takeSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoEvent_takeSessionOwnership" "', argument " "1"" of type '" "InfoEvent const *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InfoSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_OptionsEvent) { + { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_OptionsEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionsEvent" "', argument " "1"" of type '" "OptionsEvent *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsEvent_getType) { + { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_options_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: OptionsEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsEvent_getType" "', argument " "1"" of type '" "OptionsEvent const *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsEvent_getSession) { + { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + OptionsSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: OptionsEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsEvent_getSession" "', argument " "1"" of type '" "OptionsEvent const *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionsSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsEvent_takeSessionOwnership) { + { + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + OptionsSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: OptionsEvent_takeSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsEvent_takeSessionOwnership" "', argument " "1"" of type '" "OptionsEvent const *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionsSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_PublicationEvent) { + { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_PublicationEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationEvent" "', argument " "1"" of type '" "PublicationEvent *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationEvent_getType) { + { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_publish_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: PublicationEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getType" "', argument " "1"" of type '" "PublicationEvent const *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationEvent_getSession) { + { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + PublicationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: PublicationEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getSession" "', argument " "1"" of type '" "PublicationEvent const *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationEvent_takeSessionOwnership) { + { + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + PublicationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: PublicationEvent_takeSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_takeSessionOwnership" "', argument " "1"" of type '" "PublicationEvent const *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_RegistrationEvent) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_RegistrationEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationEvent" "', argument " "1"" of type '" "RegistrationEvent *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationEvent_getType) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_register_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getType" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationEvent_getSession) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + RegistrationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getSession" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationEvent_takeSessionOwnership) { + { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + RegistrationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationEvent_takeSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_takeSessionOwnership" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SubscriptionEvent) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SubscriptionEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionEvent" "', argument " "1"" of type '" "SubscriptionEvent *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionEvent_getType) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tsip_subscribe_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getType" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionEvent_getSession) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SubscriptionSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionEvent_getSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getSession" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionEvent_takeSessionOwnership) { + { + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SubscriptionSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionEvent_takeSessionOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_takeSessionOwnership" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_T140CallbackData) { + { + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_T140CallbackData(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_T140CallbackData, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_T140CallbackData" "', argument " "1"" of type '" "T140CallbackData *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_T140CallbackData_getType) { + { + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + enum tmedia_t140_data_type_e result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: T140CallbackData_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140CallbackData_getType" "', argument " "1"" of type '" "T140CallbackData const *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + result = (enum tmedia_t140_data_type_e)((T140CallbackData const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_T140CallbackData_getSize) { + { + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: T140CallbackData_getSize(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140CallbackData_getSize" "', argument " "1"" of type '" "T140CallbackData const *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + result = (unsigned int)((T140CallbackData const *)arg1)->getSize(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_T140CallbackData_getData) { + { + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: T140CallbackData_getData(self,pOutput,nMaxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140CallbackData_getData" "', argument " "1"" of type '" "T140CallbackData const *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "T140CallbackData_getData" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "T140CallbackData_getData" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)((T140CallbackData const *)arg1)->getData(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_T140Callback) { + { + int argvi = 0; + T140Callback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_T140Callback();"); + } + result = (T140Callback *)new T140Callback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_T140Callback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_T140Callback) { + { + T140Callback *arg1 = (T140Callback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_T140Callback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_T140Callback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_T140Callback" "', argument " "1"" of type '" "T140Callback *""'"); + } + arg1 = reinterpret_cast< T140Callback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_T140Callback_ondata) { + { + T140Callback *arg1 = (T140Callback *) 0 ; + T140CallbackData *arg2 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: T140Callback_ondata(self,pData);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_T140Callback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140Callback_ondata" "', argument " "1"" of type '" "T140Callback *""'"); + } + arg1 = reinterpret_cast< T140Callback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "T140Callback_ondata" "', argument " "2"" of type '" "T140CallbackData const *""'"); + } + arg2 = reinterpret_cast< T140CallbackData * >(argp2); + result = (int)(arg1)->ondata((T140CallbackData const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SipSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_SipSession(stack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SipSession *)new SipSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipSession) { + { + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipSession" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_haveOwnership) { + { + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipSession_haveOwnership(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_haveOwnership" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + result = (bool)(arg1)->haveOwnership(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addHeader) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipSession_addHeader(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_removeHeader) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_removeHeader(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addCaps__SWIG_0) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipSession_addCaps(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addCaps" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addCaps__SWIG_1) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_addCaps(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addCaps((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addCaps) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipSession_addCaps__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipSession_addCaps__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipSession_addCaps'"); + XSRETURN(0); +} + + +XS(_wrap_SipSession_removeCaps) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_removeCaps(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeCaps((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setExpires) { + { + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setExpires(self,expires);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setExpires" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setExpires" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setExpires(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setFromUri__SWIG_0) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setFromUri(self,fromUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setFromUri((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setFromUri__SWIG_1) { + { + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setFromUri(self,fromUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->setFromUri((SipUri const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setFromUri) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipSession_setFromUri__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipSession_setFromUri__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipSession_setFromUri'"); + XSRETURN(0); +} + + +XS(_wrap_SipSession_setToUri__SWIG_0) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setToUri(self,toUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setToUri((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setToUri__SWIG_1) { + { + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setToUri(self,toUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->setToUri((SipUri const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_setToUri) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipSession_setToUri__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipSession_setToUri__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipSession_setToUri'"); + XSRETURN(0); +} + + +XS(_wrap_SipSession_setSilentHangup) { + { + SipSession *arg1 = (SipSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_setSilentHangup(self,silent);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setSilentHangup" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setSilentHangup" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setSilentHangup(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_addSigCompCompartment) { + { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipSession_addSigCompCompartment(self,compId);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addSigCompCompartment" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addSigCompCompartment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_removeSigCompCompartment) { + { + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipSession_removeSigCompCompartment(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeSigCompCompartment" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + result = (bool)(arg1)->removeSigCompCompartment(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipSession_getId) { + { + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipSession_getId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_getId" "', argument " "1"" of type '" "SipSession const *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + result = (unsigned int)((SipSession const *)arg1)->getId(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_InviteSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + InviteSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_InviteSession(Stack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InviteSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (InviteSession *)new InviteSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InviteSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_InviteSession) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_InviteSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InviteSession" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_accept__SWIG_0) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: InviteSession_accept(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_accept" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_accept__SWIG_1) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteSession_accept(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_accept" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (bool)(arg1)->accept(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_accept) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_accept__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_accept__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InviteSession_accept'"); + XSRETURN(0); +} + + +XS(_wrap_InviteSession_hangup__SWIG_0) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: InviteSession_hangup(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_hangup" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_hangup" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->hangup(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_hangup__SWIG_1) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteSession_hangup(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_hangup" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (bool)(arg1)->hangup(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_hangup) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_hangup__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_hangup__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InviteSession_hangup'"); + XSRETURN(0); +} + + +XS(_wrap_InviteSession_reject__SWIG_0) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: InviteSession_reject(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_reject" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_reject__SWIG_1) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteSession_reject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_reject" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (bool)(arg1)->reject(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_reject) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_reject__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_reject__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InviteSession_reject'"); + XSRETURN(0); +} + + +XS(_wrap_InviteSession_sendInfo__SWIG_0) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: InviteSession_sendInfo(self,payload,len,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_sendInfo" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_sendInfo" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InviteSession_sendInfo" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InviteSession_sendInfo" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_sendInfo__SWIG_1) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: InviteSession_sendInfo(self,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_sendInfo" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_sendInfo" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InviteSession_sendInfo" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InviteSession_sendInfo) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_sendInfo__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InviteSession_sendInfo__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InviteSession_sendInfo'"); + XSRETURN(0); +} + + +XS(_wrap_InviteSession_getMediaMgr) { + { + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MediaSessionMgr *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InviteSession_getMediaMgr(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_getMediaMgr" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (MediaSessionMgr *)(arg1)->getMediaMgr(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MediaSessionMgr, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_CallSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + CallSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_CallSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CallSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (CallSession *)new CallSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_CallSession) { + { + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_CallSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallSession" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudio__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_callAudio(self,remoteUriString,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudio" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudio((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudio__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_callAudio(self,remoteUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callAudio((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudio__SWIG_2) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_callAudio(self,remoteUri,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudio" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudio__SWIG_3) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_callAudio(self,remoteUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callAudio((SipUri const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudio) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 4; + if (_rank == _rankm) goto dispatch; + } + } + check_4: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudio__SWIG_3); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudio__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudio__SWIG_2); return; + case 4: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudio__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_callAudio'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_callAudioVideo__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_callAudioVideo(self,remoteUriString,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudioVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudioVideo__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_callAudioVideo(self,remoteUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callAudioVideo((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudioVideo__SWIG_2) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_callAudioVideo(self,remoteUri,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudioVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudioVideo__SWIG_3) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_callAudioVideo(self,remoteUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callAudioVideo) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 4; + if (_rank == _rankm) goto dispatch; + } + } + check_4: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudioVideo__SWIG_3); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudioVideo__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudioVideo__SWIG_2); return; + case 4: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callAudioVideo__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_callAudioVideo'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_callVideo__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_callVideo(self,remoteUriString,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callVideo((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callVideo__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_callVideo(self,remoteUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callVideo((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callVideo__SWIG_2) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_callVideo(self,remoteUri,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callVideo__SWIG_3) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_callVideo(self,remoteUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callVideo((SipUri const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_callVideo) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 4; + if (_rank == _rankm) goto dispatch; + } + } + check_4: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callVideo__SWIG_3); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callVideo__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callVideo__SWIG_2); return; + case 4: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_callVideo__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_callVideo'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_call__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: CallSession_call(self,remoteUriString,media,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallSession_call" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->call((char const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_call__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_call(self,remoteUriString,media);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + result = (bool)(arg1)->call((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_call__SWIG_2) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: CallSession_call(self,remoteUri,media,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallSession_call" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->call((SipUri const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_call__SWIG_3) { + { + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_call(self,remoteUri,media);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + result = (bool)(arg1)->call((SipUri const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_call) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 4; + if (_rank == _rankm) goto dispatch; + } + } + check_4: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_call__SWIG_3); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_call__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_call__SWIG_2); return; + case 4: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_call__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_call'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_setSessionTimer) { + { + CallSession *arg1 = (CallSession *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_setSessionTimer(self,timeout,refresher);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSessionTimer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setSessionTimer" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_setSessionTimer" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_set100rel) { + { + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_set100rel(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_set100rel" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_set100rel" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->set100rel(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setRtcp) { + { + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setRtcp(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setRtcp" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setRtcp" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setRtcp(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setRtcpMux) { + { + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setRtcpMux(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setRtcpMux" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setRtcpMux" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setRtcpMux(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setSRtpMode) { + { + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_srtp_mode_e arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setSRtpMode(self,mode);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSRtpMode" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setSRtpMode" "', argument " "2"" of type '" "enum tmedia_srtp_mode_e""'"); + } + arg2 = static_cast< enum tmedia_srtp_mode_e >(val2); + result = (bool)(arg1)->setSRtpMode(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setAvpfMode) { + { + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_mode_e arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setAvpfMode(self,mode);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setAvpfMode" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setAvpfMode" "', argument " "2"" of type '" "enum tmedia_mode_e""'"); + } + arg2 = static_cast< enum tmedia_mode_e >(val2); + result = (bool)(arg1)->setAvpfMode(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setICE) { + { + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setICE(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setICE" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setICE" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setICE(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setICEStun) { + { + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setICEStun(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setICEStun" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setICEStun" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setICEStun(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setICETurn) { + { + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setICETurn(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setICETurn" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setICETurn" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setICETurn(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setSTUNServer) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + uint16_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_setSTUNServer(self,hostname,port);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSTUNServer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_setSTUNServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_setSTUNServer" "', argument " "3"" of type '" "uint16_t""'"); + } + arg3 = static_cast< uint16_t >(val3); + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setSTUNCred) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_setSTUNCred(self,username,password);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSTUNCred" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_setSTUNCred" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_setSTUNCred" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setVideoFps) { + { + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setVideoFps(self,fps);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoFps" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoFps" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)(arg1)->setVideoFps(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setVideoBandwidthUploadMax) { + { + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setVideoBandwidthUploadMax(self,max);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoBandwidthUploadMax" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoBandwidthUploadMax" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setVideoBandwidthDownloadMax) { + { + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setVideoBandwidthDownloadMax(self,max);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoBandwidthDownloadMax" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoBandwidthDownloadMax" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setVideoPrefSize) { + { + CallSession *arg1 = (CallSession *) 0 ; + tmedia_pref_video_size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setVideoPrefSize(self,pref_video_size);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoPrefSize" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoPrefSize" "', argument " "2"" of type '" "tmedia_pref_video_size_t""'"); + } + arg2 = static_cast< tmedia_pref_video_size_t >(val2); + result = (bool)(arg1)->setVideoPrefSize(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_setQoS) { + { + CallSession *arg1 = (CallSession *) 0 ; + tmedia_qos_stype_t arg2 ; + tmedia_qos_strength_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_setQoS(self,type,strength);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setQoS" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setQoS" "', argument " "2"" of type '" "tmedia_qos_stype_t""'"); + } + arg2 = static_cast< tmedia_qos_stype_t >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_setQoS" "', argument " "3"" of type '" "tmedia_qos_strength_t""'"); + } + arg3 = static_cast< tmedia_qos_strength_t >(val3); + result = (bool)(arg1)->setQoS(arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_hold__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_hold(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_hold" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_hold" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->hold(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_hold__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: CallSession_hold(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_hold" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->hold(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_hold) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_hold__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_hold__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_hold'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_resume__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_resume(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_resume" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_resume" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->resume(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_resume__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: CallSession_resume(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_resume" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->resume(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_resume) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_resume__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_resume__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_resume'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_transfer__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_transfer(self,referToUriString,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_transfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_transfer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_transfer" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->transfer((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_transfer__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_transfer(self,referToUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_transfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_transfer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->transfer((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_transfer) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_transfer__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_transfer__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_transfer'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_acceptTransfer__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_acceptTransfer(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_acceptTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_acceptTransfer" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->acceptTransfer(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_acceptTransfer__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: CallSession_acceptTransfer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_acceptTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->acceptTransfer(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_acceptTransfer) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_acceptTransfer__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_acceptTransfer__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_acceptTransfer'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_rejectTransfer__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_rejectTransfer(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_rejectTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_rejectTransfer" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->rejectTransfer(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_rejectTransfer__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: CallSession_rejectTransfer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_rejectTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->rejectTransfer(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_rejectTransfer) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_rejectTransfer__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_rejectTransfer__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_rejectTransfer'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_sendDTMF) { + { + CallSession *arg1 = (CallSession *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_sendDTMF(self,number);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendDTMF" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendDTMF" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)(arg1)->sendDTMF(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_getSessionTransferId) { + { + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: CallSession_getSessionTransferId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_getSessionTransferId" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (unsigned int)(arg1)->getSessionTransferId(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_sendT140Data__SWIG_0) { + { + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: CallSession_sendT140Data(self,data_type,data_ptr,data_size);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendT140Data" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendT140Data" "', argument " "2"" of type '" "enum tmedia_t140_data_type_e""'"); + } + arg2 = static_cast< enum tmedia_t140_data_type_e >(val2); + res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_sendT140Data" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CallSession_sendT140Data" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_sendT140Data__SWIG_1) { + { + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: CallSession_sendT140Data(self,data_type,data_ptr);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendT140Data" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendT140Data" "', argument " "2"" of type '" "enum tmedia_t140_data_type_e""'"); + } + arg2 = static_cast< enum tmedia_t140_data_type_e >(val2); + res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_sendT140Data" "', argument " "3"" of type '" "void const *""'"); + } + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_sendT140Data__SWIG_2) { + { + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_sendT140Data(self,data_type);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendT140Data" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendT140Data" "', argument " "2"" of type '" "enum tmedia_t140_data_type_e""'"); + } + arg2 = static_cast< enum tmedia_t140_data_type_e >(val2); + result = (bool)(arg1)->sendT140Data(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_CallSession_sendT140Data) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(2), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(2), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_sendT140Data__SWIG_2); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_sendT140Data__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_CallSession_sendT140Data__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'CallSession_sendT140Data'"); + XSRETURN(0); +} + + +XS(_wrap_CallSession_setT140Callback) { + { + CallSession *arg1 = (CallSession *) 0 ; + T140Callback *arg2 = (T140Callback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: CallSession_setT140Callback(self,pT140Callback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setT140Callback" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_T140Callback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_setT140Callback" "', argument " "2"" of type '" "T140Callback const *""'"); + } + arg2 = reinterpret_cast< T140Callback * >(argp2); + result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_MsrpSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + MsrpSession *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: new_MsrpSession(pStack,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MsrpSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MsrpSession" "', argument " "2"" of type '" "MsrpCallback *""'"); + } + arg2 = reinterpret_cast< MsrpCallback * >(argp2); + result = (MsrpSession *)new MsrpSession(arg1,arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MsrpSession) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MsrpSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpSession" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_setCallback) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MsrpSession_setCallback(self,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_setCallback" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_setCallback" "', argument " "2"" of type '" "MsrpCallback *""'"); + } + arg2 = reinterpret_cast< MsrpCallback * >(argp2); + result = (bool)(arg1)->setCallback(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_callMsrp__SWIG_0) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MsrpSession_callMsrp(self,remoteUriString,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MsrpSession_callMsrp" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callMsrp((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_callMsrp__SWIG_1) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MsrpSession_callMsrp(self,remoteUriString);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callMsrp((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_callMsrp__SWIG_2) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MsrpSession_callMsrp(self,remoteUri,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MsrpSession_callMsrp" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_callMsrp__SWIG_3) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MsrpSession_callMsrp(self,remoteUri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callMsrp((SipUri const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_callMsrp) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_4; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 4; + if (_rank == _rankm) goto dispatch; + } + } + check_4: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_callMsrp__SWIG_3); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_callMsrp__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_callMsrp__SWIG_2); return; + case 4: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_callMsrp__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MsrpSession_callMsrp'"); + XSRETURN(0); +} + + +XS(_wrap_MsrpSession_sendMessage__SWIG_0) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MsrpSession_sendMessage(self,payload,len,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendMessage" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_sendMessage" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MsrpSession_sendMessage" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MsrpSession_sendMessage" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_sendMessage__SWIG_1) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MsrpSession_sendMessage(self,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendMessage" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_sendMessage" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MsrpSession_sendMessage" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_sendMessage) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_sendMessage__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_sendMessage__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MsrpSession_sendMessage'"); + XSRETURN(0); +} + + +XS(_wrap_MsrpSession_sendFile__SWIG_0) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MsrpSession_sendFile(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendFile" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_sendFile" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->sendFile(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_sendFile__SWIG_1) { + { + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpSession_sendFile(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendFile" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + result = (bool)(arg1)->sendFile(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpSession_sendFile) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_sendFile__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MsrpSession_sendFile__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MsrpSession_sendFile'"); + XSRETURN(0); +} + + +XS(_wrap_new_MessagingSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MessagingSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_MessagingSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessagingSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (MessagingSession *)new MessagingSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MessagingSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MessagingSession) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MessagingSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MessagingSession" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_send__SWIG_0) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: MessagingSession_send(self,payload,len,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_send" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MessagingSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MessagingSession_send" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_send__SWIG_1) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MessagingSession_send(self,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_send" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MessagingSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->send((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_send) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MessagingSession_send__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MessagingSession_send__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MessagingSession_send'"); + XSRETURN(0); +} + + +XS(_wrap_MessagingSession_accept__SWIG_0) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MessagingSession_accept(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_accept" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_accept__SWIG_1) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MessagingSession_accept(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_accept" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + result = (bool)(arg1)->accept(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_accept) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MessagingSession_accept__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MessagingSession_accept__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MessagingSession_accept'"); + XSRETURN(0); +} + + +XS(_wrap_MessagingSession_reject__SWIG_0) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MessagingSession_reject(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_reject" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_reject__SWIG_1) { + { + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MessagingSession_reject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_reject" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + result = (bool)(arg1)->reject(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MessagingSession_reject) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MessagingSession_reject__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_MessagingSession_reject__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'MessagingSession_reject'"); + XSRETURN(0); +} + + +XS(_wrap_new_InfoSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + InfoSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_InfoSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InfoSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (InfoSession *)new InfoSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InfoSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_InfoSession) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_InfoSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InfoSession" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_send__SWIG_0) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: InfoSession_send(self,payload,len,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_send" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InfoSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InfoSession_send" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_send__SWIG_1) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: InfoSession_send(self,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_send" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InfoSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->send((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_send) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InfoSession_send__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InfoSession_send__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InfoSession_send'"); + XSRETURN(0); +} + + +XS(_wrap_InfoSession_accept__SWIG_0) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: InfoSession_accept(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_accept" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_accept__SWIG_1) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InfoSession_accept(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_accept" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + result = (bool)(arg1)->accept(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_accept) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InfoSession_accept__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InfoSession_accept__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InfoSession_accept'"); + XSRETURN(0); +} + + +XS(_wrap_InfoSession_reject__SWIG_0) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: InfoSession_reject(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_reject" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_reject__SWIG_1) { + { + InfoSession *arg1 = (InfoSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: InfoSession_reject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_reject" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + result = (bool)(arg1)->reject(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_InfoSession_reject) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InfoSession_reject__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_InfoSession_reject__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'InfoSession_reject'"); + XSRETURN(0); +} + + +XS(_wrap_new_OptionsSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + OptionsSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_OptionsSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionsSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (OptionsSession *)new OptionsSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionsSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_OptionsSession) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_OptionsSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionsSession" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_send__SWIG_0) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: OptionsSession_send(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_send" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionsSession_send" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->send(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_send__SWIG_1) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: OptionsSession_send(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_send" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + result = (bool)(arg1)->send(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_send) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_OptionsSession_send__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_OptionsSession_send__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'OptionsSession_send'"); + XSRETURN(0); +} + + +XS(_wrap_OptionsSession_accept__SWIG_0) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: OptionsSession_accept(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_accept" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionsSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_accept__SWIG_1) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: OptionsSession_accept(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_accept" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + result = (bool)(arg1)->accept(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_accept) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_OptionsSession_accept__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_OptionsSession_accept__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'OptionsSession_accept'"); + XSRETURN(0); +} + + +XS(_wrap_OptionsSession_reject__SWIG_0) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: OptionsSession_reject(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_reject" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionsSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_reject__SWIG_1) { + { + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: OptionsSession_reject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_reject" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + result = (bool)(arg1)->reject(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_OptionsSession_reject) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_OptionsSession_reject__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_OptionsSession_reject__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'OptionsSession_reject'"); + XSRETURN(0); +} + + +XS(_wrap_new_PublicationSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + PublicationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_PublicationSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PublicationSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (PublicationSession *)new PublicationSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_PublicationSession) { + { + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_PublicationSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationSession" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationSession_publish__SWIG_0) { + { + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: PublicationSession_publish(self,payload,len,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_publish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_publish" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PublicationSession_publish" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PublicationSession_publish" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationSession_publish__SWIG_1) { + { + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: PublicationSession_publish(self,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_publish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_publish" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PublicationSession_publish" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->publish((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationSession_publish) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_PublicationSession_publish__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_PublicationSession_publish__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'PublicationSession_publish'"); + XSRETURN(0); +} + + +XS(_wrap_PublicationSession_unPublish__SWIG_0) { + { + PublicationSession *arg1 = (PublicationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: PublicationSession_unPublish(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_unPublish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_unPublish" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->unPublish(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationSession_unPublish__SWIG_1) { + { + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: PublicationSession_unPublish(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_unPublish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + result = (bool)(arg1)->unPublish(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_PublicationSession_unPublish) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_PublicationSession_unPublish__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_PublicationSession_unPublish__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'PublicationSession_unPublish'"); + XSRETURN(0); +} + + +XS(_wrap_new_RegistrationSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + RegistrationSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_RegistrationSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegistrationSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (RegistrationSession *)new RegistrationSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_RegistrationSession) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_RegistrationSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationSession" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_register___SWIG_0) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: RegistrationSession_register_(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_register_" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_register_" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->register_(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_register___SWIG_1) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationSession_register_(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_register_" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->register_(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_register_) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_register___SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_register___SWIG_0); return; + } + } + + croak("No matching function for overloaded 'RegistrationSession_register_'"); + XSRETURN(0); +} + + +XS(_wrap_RegistrationSession_unRegister__SWIG_0) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: RegistrationSession_unRegister(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_unRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_unRegister" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->unRegister(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_unRegister__SWIG_1) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationSession_unRegister(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_unRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->unRegister(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_unRegister) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_unRegister__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_unRegister__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'RegistrationSession_unRegister'"); + XSRETURN(0); +} + + +XS(_wrap_RegistrationSession_accept__SWIG_0) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: RegistrationSession_accept(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_accept" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_accept__SWIG_1) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationSession_accept(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_accept" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->accept(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_accept) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_accept__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_accept__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'RegistrationSession_accept'"); + XSRETURN(0); +} + + +XS(_wrap_RegistrationSession_reject__SWIG_0) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: RegistrationSession_reject(self,config);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_reject" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_reject__SWIG_1) { + { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RegistrationSession_reject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_reject" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->reject(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RegistrationSession_reject) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_reject__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_RegistrationSession_reject__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'RegistrationSession_reject'"); + XSRETURN(0); +} + + +XS(_wrap_new_SubscriptionSession) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + SubscriptionSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_SubscriptionSession(pStack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SubscriptionSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SubscriptionSession *)new SubscriptionSession(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SubscriptionSession) { + { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SubscriptionSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionSession" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionSession_subscribe) { + { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionSession_subscribe(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_subscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->subscribe(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SubscriptionSession_unSubscribe) { + { + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SubscriptionSession_unSubscribe(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_unSubscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->unSubscribe(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyPluginMgr) { + { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyPluginMgr(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgr, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyPluginMgr" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_createInstance) { + { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + ProxyPluginMgr *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyPluginMgr_createInstance(pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_createInstance" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPluginMgr, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_getInstance) { + { + int argvi = 0; + ProxyPluginMgr *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: ProxyPluginMgr_getInstance();"); + } + result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPluginMgr, 0 | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_findPlugin) { + { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyPlugin *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyPluginMgr_findPlugin(self,id);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findPlugin" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findPlugin" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyPlugin *)(arg1)->findPlugin(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPlugin, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_findAudioConsumer) { + { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyAudioConsumer *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyPluginMgr_findAudioConsumer(self,id);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findAudioConsumer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findAudioConsumer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioConsumer, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_findVideoConsumer) { + { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyVideoConsumer *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyPluginMgr_findVideoConsumer(self,id);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findVideoConsumer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findVideoConsumer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoConsumer, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_findAudioProducer) { + { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyAudioProducer *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyPluginMgr_findAudioProducer(self,id);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findAudioProducer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findAudioProducer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioProducer, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgr_findVideoProducer) { + { + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int argvi = 0; + ProxyVideoProducer *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyPluginMgr_findVideoProducer(self,id);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findVideoProducer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findVideoProducer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoProducer, 0 | SWIG_SHADOW); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_ProxyPluginMgrCallback) { + { + int argvi = 0; + ProxyPluginMgrCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_ProxyPluginMgrCallback();"); + } + result = (ProxyPluginMgrCallback *)new ProxyPluginMgrCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPluginMgrCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyPluginMgrCallback) { + { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyPluginMgrCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyPluginMgrCallback" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgrCallback_OnPluginCreated) { + { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyPluginMgrCallback_OnPluginCreated(self,id,type);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgrCallback_OnPluginCreated" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgrCallback_OnPluginCreated" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyPluginMgrCallback_OnPluginCreated" "', argument " "3"" of type '" "enum twrap_proxy_plugin_type_e""'"); + } + arg3 = static_cast< enum twrap_proxy_plugin_type_e >(val3); + result = (int)(arg1)->OnPluginCreated(arg2,arg3); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPluginMgrCallback_OnPluginDestroyed) { + { + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyPluginMgrCallback_OnPluginDestroyed(self,id,type);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgrCallback_OnPluginDestroyed" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgrCallback_OnPluginDestroyed" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyPluginMgrCallback_OnPluginDestroyed" "', argument " "3"" of type '" "enum twrap_proxy_plugin_type_e""'"); + } + arg3 = static_cast< enum twrap_proxy_plugin_type_e >(val3); + result = (int)(arg1)->OnPluginDestroyed(arg2,arg3); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyPlugin) { + { + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyPlugin(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPlugin, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyPlugin" "', argument " "1"" of type '" "ProxyPlugin *""'"); + } + arg1 = reinterpret_cast< ProxyPlugin * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPlugin_getType) { + { + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + twrap_proxy_plugin_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyPlugin_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPlugin_getType" "', argument " "1"" of type '" "ProxyPlugin const *""'"); + } + arg1 = reinterpret_cast< ProxyPlugin * >(argp1); + result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyPlugin_getId) { + { + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint64_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyPlugin_getId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPlugin_getId" "', argument " "1"" of type '" "ProxyPlugin const *""'"); + } + arg1 = reinterpret_cast< ProxyPlugin * >(argp1); + result = (uint64_t)((ProxyPlugin const *)arg1)->getId(); + ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_ProxyAudioConsumerCallback) { + { + int argvi = 0; + ProxyAudioConsumerCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_ProxyAudioConsumerCallback();"); + } + result = (ProxyAudioConsumerCallback *)new ProxyAudioConsumerCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioConsumerCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyAudioConsumerCallback) { + { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyAudioConsumerCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioConsumerCallback" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumerCallback_prepare) { + { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyAudioConsumerCallback_prepare(self,ptime,rate,channels);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (int)(arg1)->prepare(arg2,arg3,arg4); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumerCallback_start) { + { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumerCallback_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_start" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + result = (int)(arg1)->start(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumerCallback_pause) { + { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumerCallback_pause(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_pause" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + result = (int)(arg1)->pause(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumerCallback_stop) { + { + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumerCallback_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_stop" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + result = (int)(arg1)->stop(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyAudioConsumer) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyAudioConsumer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioConsumer" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_setActualSndCardPlaybackParams) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyAudioConsumer_setActualSndCardPlaybackParams(self,nPtime,nRate,nChannels);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_queryForResampler) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + uint16_t arg4 ; + uint16_t arg5 ; + uint16_t arg6 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short val4 ; + int ecode4 = 0 ; + unsigned short val5 ; + int ecode5 = 0 ; + unsigned short val6 ; + int ecode6 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 6) || (items > 6)) { + SWIG_croak("Usage: ProxyAudioConsumer_queryForResampler(self,nInFreq,nOutFreq,nFrameDuration,nChannels,nResamplerQuality);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "2"" of type '" "uint16_t""'"); + } + arg2 = static_cast< uint16_t >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "3"" of type '" "uint16_t""'"); + } + arg3 = static_cast< uint16_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "4"" of type '" "uint16_t""'"); + } + arg4 = static_cast< uint16_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(4), &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "5"" of type '" "uint16_t""'"); + } + arg5 = static_cast< uint16_t >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(5), &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "6"" of type '" "uint16_t""'"); + } + arg6 = static_cast< uint16_t >(val6); + result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + + + XSRETURN(argvi); + fail: + + + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_setPullBuffer) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyAudioConsumer_setPullBuffer(self,pPullBufferPtr,nPullBufferSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setPullBuffer" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_setPullBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_setPullBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_pull__SWIG_0) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyAudioConsumer_pull(self,pOutput,nSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_pull" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_pull" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_pull" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->pull(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_pull__SWIG_1) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyAudioConsumer_pull(self,pOutput);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_pull" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_pull" "', argument " "2"" of type '" "void *""'"); + } + result = (unsigned int)(arg1)->pull(arg2); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_pull__SWIG_2) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumer_pull(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_pull" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (unsigned int)(arg1)->pull(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_pull) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioConsumer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioConsumer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioConsumer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioConsumer_pull__SWIG_2); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioConsumer_pull__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioConsumer_pull__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'ProxyAudioConsumer_pull'"); + XSRETURN(0); +} + + +XS(_wrap_ProxyAudioConsumer_setGain) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyAudioConsumer_setGain(self,nGain);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setGain" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_setGain" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setGain(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_getGain) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumer_getGain(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_getGain" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (unsigned int)(arg1)->getGain(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_reset) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumer_reset(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_reset" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (bool)(arg1)->reset(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_setCallback) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyAudioConsumer_setCallback(self,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setCallback" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_setCallback" "', argument " "2"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp2); + (arg1)->setCallback(arg2); + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_getMediaSessionId) { + { + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint64_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioConsumer_getMediaSessionId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_getMediaSessionId" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioConsumer_registerPlugin) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: ProxyAudioConsumer_registerPlugin();"); + } + result = (bool)ProxyAudioConsumer::registerPlugin(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_new_ProxyVideoConsumerCallback) { + { + int argvi = 0; + ProxyVideoConsumerCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_ProxyVideoConsumerCallback();"); + } + result = (ProxyVideoConsumerCallback *)new ProxyVideoConsumerCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoConsumerCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyVideoConsumerCallback) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyVideoConsumerCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoConsumerCallback" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumerCallback_prepare) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyVideoConsumerCallback_prepare(self,nWidth,nHeight,nFps);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (int)(arg1)->prepare(arg2,arg3,arg4); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumerCallback_consume) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyVideoConsumerCallback_consume(self,frame);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_consume" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumerCallback_consume" "', argument " "2"" of type '" "ProxyVideoFrame const *""'"); + } + arg2 = reinterpret_cast< ProxyVideoFrame * >(argp2); + result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumerCallback_bufferCopied) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoConsumerCallback_bufferCopied(self,nCopiedSize,nAvailableSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_bufferCopied" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumerCallback_bufferCopied" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumerCallback_bufferCopied" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (int)(arg1)->bufferCopied(arg2,arg3); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumerCallback_start) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumerCallback_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_start" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + result = (int)(arg1)->start(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumerCallback_pause) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumerCallback_pause(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_pause" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + result = (int)(arg1)->pause(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumerCallback_stop) { + { + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumerCallback_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_stop" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + result = (int)(arg1)->stop(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyVideoConsumer) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyVideoConsumer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoConsumer" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_setDisplaySize) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoConsumer_setDisplaySize(self,nWidth,nHeight);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setDisplaySize" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumer_setDisplaySize" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumer_setDisplaySize" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setDisplaySize(arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_getDisplayWidth) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_getDisplayWidth(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDisplayWidth" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDisplayWidth(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_getDisplayHeight) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_getDisplayHeight(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDisplayHeight" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDisplayHeight(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_getDecodedWidth) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_getDecodedWidth(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDecodedWidth" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDecodedWidth(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_getDecodedHeight) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_getDecodedHeight(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDecodedHeight" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDecodedHeight(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_setCallback) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyVideoConsumer_setCallback(self,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setCallback" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumer_setCallback" "', argument " "2"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp2); + (arg1)->setCallback(arg2); + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_setAutoResizeDisplay) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyVideoConsumer_setAutoResizeDisplay(self,bAutoResizeDisplay);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setAutoResizeDisplay" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumer_setAutoResizeDisplay" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setAutoResizeDisplay(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_getAutoResizeDisplay) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_getAutoResizeDisplay(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getAutoResizeDisplay" "', argument " "1"" of type '" "ProxyVideoConsumer const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_setConsumeBuffer) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoConsumer_setConsumeBuffer(self,pConsumeBufferPtr,nConsumeBufferSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setConsumeBuffer" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumer_setConsumeBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumer_setConsumeBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_pull) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoConsumer_pull(self,pOutput,nSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_pull" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumer_pull" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumer_pull" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->pull(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_reset) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_reset(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_reset" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (bool)(arg1)->reset(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_getMediaSessionId) { + { + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint64_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_getMediaSessionId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getMediaSessionId" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_registerPlugin) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: ProxyVideoConsumer_registerPlugin();"); + } + result = (bool)ProxyVideoConsumer::registerPlugin(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_setDefaultChroma) { + { + tmedia_chroma_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_setDefaultChroma(eChroma);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ProxyVideoConsumer_setDefaultChroma" "', argument " "1"" of type '" "tmedia_chroma_t""'"); + } + arg1 = static_cast< tmedia_chroma_t >(val1); + ProxyVideoConsumer::setDefaultChroma(arg1); + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoConsumer_setDefaultAutoResizeDisplay) { + { + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoConsumer_setDefaultAutoResizeDisplay(bAutoResizeDisplay);"); + } + ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ProxyVideoConsumer_setDefaultAutoResizeDisplay" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1); + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyVideoFrame) { + { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyVideoFrame(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoFrame, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoFrame" "', argument " "1"" of type '" "ProxyVideoFrame *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoFrame_getSize) { + { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoFrame_getSize(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getSize" "', argument " "1"" of type '" "ProxyVideoFrame *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + result = (unsigned int)(arg1)->getSize(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoFrame_getContent) { + { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoFrame_getContent(self,pOutput,nMaxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getContent" "', argument " "1"" of type '" "ProxyVideoFrame *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoFrame_getContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoFrame_getContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getContent(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoFrame_getFrameWidth) { + { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoFrame_getFrameWidth(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getFrameWidth" "', argument " "1"" of type '" "ProxyVideoFrame const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoFrame_getFrameHeight) { + { + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoFrame_getFrameHeight(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getFrameHeight" "', argument " "1"" of type '" "ProxyVideoFrame const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_ProxyAudioProducerCallback) { + { + int argvi = 0; + ProxyAudioProducerCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_ProxyAudioProducerCallback();"); + } + result = (ProxyAudioProducerCallback *)new ProxyAudioProducerCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioProducerCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyAudioProducerCallback) { + { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyAudioProducerCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioProducerCallback" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducerCallback_prepare) { + { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyAudioProducerCallback_prepare(self,ptime,rate,channels);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (int)(arg1)->prepare(arg2,arg3,arg4); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducerCallback_start) { + { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducerCallback_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_start" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + result = (int)(arg1)->start(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducerCallback_pause) { + { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducerCallback_pause(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_pause" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + result = (int)(arg1)->pause(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducerCallback_stop) { + { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducerCallback_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_stop" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + result = (int)(arg1)->stop(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducerCallback_fillPushBuffer) { + { + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducerCallback_fillPushBuffer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_fillPushBuffer" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + result = (int)(arg1)->fillPushBuffer(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyAudioProducer) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyAudioProducer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioProducer" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_setActualSndCardRecordParams) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyAudioProducer_setActualSndCardRecordParams(self,nPtime,nRate,nChannels);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_setPushBuffer__SWIG_0) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyAudioProducer_setPushBuffer(self,pPushBufferPtr,nPushBufferSize,bUsePushCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_setPushBuffer__SWIG_1) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyAudioProducer_setPushBuffer(self,pPushBufferPtr,nPushBufferSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_setPushBuffer) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioProducer_setPushBuffer__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioProducer_setPushBuffer__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'ProxyAudioProducer_setPushBuffer'"); + XSRETURN(0); +} + + +XS(_wrap_ProxyAudioProducer_push__SWIG_0) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyAudioProducer_push(self,pBuffer,nSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_push" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_push" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_push" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (int)(arg1)->push((void const *)arg2,arg3); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_push__SWIG_1) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyAudioProducer_push(self,pBuffer);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_push" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_push" "', argument " "2"" of type '" "void const *""'"); + } + result = (int)(arg1)->push((void const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_push__SWIG_2) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducer_push(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_push" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + result = (int)(arg1)->push(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_push) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + void *ptr = 0; + int res = SWIG_ConvertPtr(ST(1), &ptr, 0, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioProducer_push__SWIG_2); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioProducer_push__SWIG_1); return; + case 3: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_ProxyAudioProducer_push__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'ProxyAudioProducer_push'"); + XSRETURN(0); +} + + +XS(_wrap_ProxyAudioProducer_setGain) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyAudioProducer_setGain(self,nGain);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setGain" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducer_setGain" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setGain(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_getGain) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducer_getGain(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_getGain" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + result = (unsigned int)(arg1)->getGain(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_setCallback) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyAudioProducer_setCallback(self,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setCallback" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_setCallback" "', argument " "2"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyAudioProducerCallback * >(argp2); + (arg1)->setCallback(arg2); + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_getMediaSessionId) { + { + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint64_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyAudioProducer_getMediaSessionId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_getMediaSessionId" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyAudioProducer_registerPlugin) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: ProxyAudioProducer_registerPlugin();"); + } + result = (bool)ProxyAudioProducer::registerPlugin(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_new_ProxyVideoProducerCallback) { + { + int argvi = 0; + ProxyVideoProducerCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_ProxyVideoProducerCallback();"); + } + result = (ProxyVideoProducerCallback *)new ProxyVideoProducerCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoProducerCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyVideoProducerCallback) { + { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyVideoProducerCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoProducerCallback" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducerCallback_prepare) { + { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: ProxyVideoProducerCallback_prepare(self,width,height,fps);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (int)(arg1)->prepare(arg2,arg3,arg4); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducerCallback_start) { + { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducerCallback_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_start" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + result = (int)(arg1)->start(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducerCallback_pause) { + { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducerCallback_pause(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_pause" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + result = (int)(arg1)->pause(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducerCallback_stop) { + { + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducerCallback_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_stop" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + result = (int)(arg1)->stop(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_ProxyVideoProducer) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_ProxyVideoProducer(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoProducer" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_getRotation) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducer_getRotation(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_getRotation" "', argument " "1"" of type '" "ProxyVideoProducer const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + result = (int)((ProxyVideoProducer const *)arg1)->getRotation(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_setRotation) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyVideoProducer_setRotation(self,nRot);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setRotation" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducer_setRotation" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)(arg1)->setRotation(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_getMirror) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducer_getMirror(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_getMirror" "', argument " "1"" of type '" "ProxyVideoProducer const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + result = (bool)((ProxyVideoProducer const *)arg1)->getMirror(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_setMirror) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyVideoProducer_setMirror(self,bMirror);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setMirror" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducer_setMirror" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setMirror(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_setActualCameraOutputSize) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoProducer_setActualCameraOutputSize(self,nWidth,nHeight);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setActualCameraOutputSize" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducer_setActualCameraOutputSize" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoProducer_setActualCameraOutputSize" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_push) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: ProxyVideoProducer_push(self,pBuffer,nSize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_push" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoProducer_push" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoProducer_push" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (int)(arg1)->push((void const *)arg2,arg3); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_setCallback) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: ProxyVideoProducer_setCallback(self,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setCallback" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoProducer_setCallback" "', argument " "2"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyVideoProducerCallback * >(argp2); + (arg1)->setCallback(arg2); + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_getMediaSessionId) { + { + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + uint64_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducer_getMediaSessionId(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_getMediaSessionId" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_registerPlugin) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: ProxyVideoProducer_registerPlugin();"); + } + result = (bool)ProxyVideoProducer::registerPlugin(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_ProxyVideoProducer_setDefaultChroma) { + { + tmedia_chroma_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: ProxyVideoProducer_setDefaultChroma(eChroma);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ProxyVideoProducer_setDefaultChroma" "', argument " "1"" of type '" "tmedia_chroma_t""'"); + } + arg1 = static_cast< tmedia_chroma_t >(val1); + ProxyVideoProducer::setDefaultChroma(arg1); + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipCallback) { + { + int argvi = 0; + SipCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SipCallback();"); + } + result = (SipCallback *)new SipCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipCallback) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnDialogEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnDialogEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnDialogEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_DialogEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnDialogEvent" "', argument " "2"" of type '" "DialogEvent const *""'"); + } + arg2 = reinterpret_cast< DialogEvent * >(argp2); + result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnStackEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnStackEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnStackEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_StackEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnStackEvent" "', argument " "2"" of type '" "StackEvent const *""'"); + } + arg2 = reinterpret_cast< StackEvent * >(argp2); + result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnInviteEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnInviteEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnInviteEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnInviteEvent" "', argument " "2"" of type '" "InviteEvent const *""'"); + } + arg2 = reinterpret_cast< InviteEvent * >(argp2); + result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnMessagingEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnMessagingEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnMessagingEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnMessagingEvent" "', argument " "2"" of type '" "MessagingEvent const *""'"); + } + arg2 = reinterpret_cast< MessagingEvent * >(argp2); + result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnInfoEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnInfoEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnInfoEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnInfoEvent" "', argument " "2"" of type '" "InfoEvent const *""'"); + } + arg2 = reinterpret_cast< InfoEvent * >(argp2); + result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnOptionsEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnOptionsEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnOptionsEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnOptionsEvent" "', argument " "2"" of type '" "OptionsEvent const *""'"); + } + arg2 = reinterpret_cast< OptionsEvent * >(argp2); + result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnPublicationEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnPublicationEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnPublicationEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnPublicationEvent" "', argument " "2"" of type '" "PublicationEvent const *""'"); + } + arg2 = reinterpret_cast< PublicationEvent * >(argp2); + result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnRegistrationEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnRegistrationEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnRegistrationEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnRegistrationEvent" "', argument " "2"" of type '" "RegistrationEvent const *""'"); + } + arg2 = reinterpret_cast< RegistrationEvent * >(argp2); + result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipCallback_OnSubscriptionEvent) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipCallback_OnSubscriptionEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnSubscriptionEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnSubscriptionEvent" "', argument " "2"" of type '" "SubscriptionEvent const *""'"); + } + arg2 = reinterpret_cast< SubscriptionEvent * >(argp2); + result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SafeObject) { + { + int argvi = 0; + SafeObject *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SafeObject();"); + } + result = (SafeObject *)new SafeObject(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeObject, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SafeObject) { + { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SafeObject(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SafeObject" "', argument " "1"" of type '" "SafeObject *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SafeObject_Lock) { + { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SafeObject_Lock(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->Lock(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SafeObject_UnLock) { + { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SafeObject_UnLock(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->UnLock(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SipStack) { + { + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + SipStack *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: new_SipStack(pCallback,realm_uri,impi_uri,impu_uri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipStack" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipStack" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SipStack" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SipStack" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipStack, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SipStack) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SipStack(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipStack" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_start) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_start" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->start(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setDebugCallback) { + { + SipStack *arg1 = (SipStack *) 0 ; + DDebugCallback *arg2 = (DDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setDebugCallback(self,pCallback);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDebugCallback" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDebugCallback" "', argument " "2"" of type '" "DDebugCallback *""'"); + } + arg2 = reinterpret_cast< DDebugCallback * >(argp2); + result = (bool)(arg1)->setDebugCallback(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setDisplayName) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setDisplayName(self,display_name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDisplayName" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDisplayName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setDisplayName((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setRealm) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setRealm(self,realm_uri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setRealm((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setIMPI) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setIMPI(self,impi);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPI((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setIMPU) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setIMPU(self,impu_uri);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPU((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setPassword) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setPassword(self,password);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setPassword" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setPassword" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setPassword((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setAMF) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setAMF(self,amf);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setAMF" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setAMF" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setAMF((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setOperatorId) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setOperatorId(self,opid);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setOperatorId" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setOperatorId" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setOperatorId((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setProxyCSCF) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: SipStack_setProxyCSCF(self,fqdn,port,transport,ipversion);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setProxyCSCF" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setProxyCSCF" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setProxyCSCF" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setProxyCSCF" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setProxyCSCF" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalIP__SWIG_0) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_setLocalIP(self,ip,transport);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setLocalIP" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalIP__SWIG_1) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setLocalIP(self,ip);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalIP) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setLocalIP__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setLocalIP__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipStack_setLocalIP'"); + XSRETURN(0); +} + + +XS(_wrap_SipStack_setLocalPort__SWIG_0) { + { + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_setLocalPort(self,port,transport);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned short""'"); + } + arg2 = static_cast< unsigned short >(val2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setLocalPort" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalPort__SWIG_1) { + { + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setLocalPort(self,port);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned short""'"); + } + arg2 = static_cast< unsigned short >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setLocalPort) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setLocalPort__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setLocalPort__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipStack_setLocalPort'"); + XSRETURN(0); +} + + +XS(_wrap_SipStack_setEarlyIMS) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setEarlyIMS(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setEarlyIMS" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setEarlyIMS" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setEarlyIMS(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_addHeader) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_addHeader(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_removeHeader) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_removeHeader(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_addDnsServer) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_addDnsServer(self,ip);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addDnsServer" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addDnsServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addDnsServer((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setDnsDiscovery) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setDnsDiscovery(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDnsDiscovery" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setDnsDiscovery" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setDnsDiscovery(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setAoR) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_setAoR(self,ip,port);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setAoR" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setAoR" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setAoR" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + result = (bool)(arg1)->setAoR((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSigCompParams) { + { + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + bool arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + bool val5 ; + int ecode5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: SipStack_setSigCompParams(self,dms,sms,cpb,enablePresDict);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSigCompParams" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setSigCompParams" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setSigCompParams" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SipStack_setSigCompParams" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SipStack_setSigCompParams" "', argument " "5"" of type '" "bool""'"); + } + arg5 = static_cast< bool >(val5); + result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + + + + XSRETURN(argvi); + fail: + + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_addSigCompCompartment) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_addSigCompCompartment(self,compId);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addSigCompCompartment" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addSigCompCompartment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_removeSigCompCompartment) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_removeSigCompCompartment(self,compId);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeSigCompCompartment" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeSigCompCompartment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSTUNEnabledForICE) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setSTUNEnabledForICE(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNEnabledForICE" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setSTUNEnabledForICE" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setSTUNEnabledForICE(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSTUNServer) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_setSTUNServer(self,hostname,port);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNServer" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSTUNServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setSTUNServer" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSTUNCred) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_setSTUNCred(self,login,password);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNCred" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSTUNCred" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSTUNCred" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSTUNEnabled) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setSTUNEnabled(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNEnabled" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setSTUNEnabled" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setSTUNEnabled(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setTLSSecAgree) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setTLSSecAgree(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setTLSSecAgree" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setTLSSecAgree" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setTLSSecAgree(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSSLCertificates__SWIG_0) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + bool val5 ; + int ecode5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: SipStack_setSSLCertificates(self,privKey,pubKey,caKey,verify);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCertificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCertificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCertificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCertificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SipStack_setSSLCertificates" "', argument " "5"" of type '" "bool""'"); + } + arg5 = static_cast< bool >(val5); + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSSLCertificates__SWIG_1) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SipStack_setSSLCertificates(self,privKey,pubKey,caKey);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCertificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCertificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCertificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCertificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSSLCertificates) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(3), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 5) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(3), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setSSLCertificates__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setSSLCertificates__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipStack_setSSLCertificates'"); + XSRETURN(0); +} + + +XS(_wrap_SipStack_setSSLCretificates__SWIG_0) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + bool val5 ; + int ecode5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: SipStack_setSSLCretificates(self,privKey,pubKey,caKey,verify);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCretificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCretificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCretificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCretificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SipStack_setSSLCretificates" "', argument " "5"" of type '" "bool""'"); + } + arg5 = static_cast< bool >(val5); + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSSLCretificates__SWIG_1) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SipStack_setSSLCretificates(self,privKey,pubKey,caKey);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCretificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCretificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCretificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCretificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setSSLCretificates) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(3), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 5) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(3), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setSSLCretificates__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_SipStack_setSSLCretificates__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'SipStack_setSSLCretificates'"); + XSRETURN(0); +} + + +XS(_wrap_SipStack_setIPSecSecAgree) { + { + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setIPSecSecAgree(self,enabled);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIPSecSecAgree" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setIPSecSecAgree" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setIPSecSecAgree(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setIPSecParameters) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: SipStack_setIPSecParameters(self,algo,ealgo,mode,proto);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIPSecParameters" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIPSecParameters" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setIPSecParameters" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setIPSecParameters" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setIPSecParameters" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_dnsENUM) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SipStack_dnsENUM(self,service,e164num,domain);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_dnsENUM" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_dnsENUM" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_dnsENUM" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_dnsENUM" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_dnsNaptrSrv) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned short *arg4 = (unsigned short *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned short temp4 ; + int res4 = SWIG_TMPOBJ ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + arg4 = &temp4; + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SipStack_dnsNaptrSrv(self,domain,service);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_dnsNaptrSrv" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_dnsNaptrSrv" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_dnsNaptrSrv" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + if (SWIG_IsTmpObj(res4)) { + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1((*arg4)); argvi++ ; + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_short, new_flags); argvi++ ; + } + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_dnsSrv) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short temp3 ; + int res3 = SWIG_TMPOBJ ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + arg3 = &temp3; + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_dnsSrv(self,service);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_dnsSrv" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_dnsSrv" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + if (SWIG_IsTmpObj(res3)) { + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1((*arg3)); argvi++ ; + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags); argvi++ ; + } + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setMaxFDs) { + { + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setMaxFDs(self,max_fds);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setMaxFDs" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setMaxFDs" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setMaxFDs(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_getLocalIPnPort) { + { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short temp3 ; + int res3 = SWIG_TMPOBJ ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + arg3 = &temp3; + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_getLocalIPnPort(self,protocol);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_getLocalIPnPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_getLocalIPnPort" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + if (SWIG_IsTmpObj(res3)) { + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1((*arg3)); argvi++ ; + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags); argvi++ ; + } + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_getPreferredIdentity) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_getPreferredIdentity(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_getPreferredIdentity" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (char *)(arg1)->getPreferredIdentity(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + delete[] result; + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_isValid) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_isValid(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->isValid(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_stop) { + { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_stop" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->stop(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_initialize) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: SipStack_initialize();"); + } + result = (bool)SipStack::initialize(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_deInitialize) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: SipStack_deInitialize();"); + } + result = (bool)SipStack::deInitialize(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setCodecs) { + { + tdav_codec_id_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_setCodecs(codecs);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecs" "', argument " "1"" of type '" "tdav_codec_id_t""'"); + } + arg1 = static_cast< tdav_codec_id_t >(val1); + SipStack::setCodecs(arg1); + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setCodecs_2) { + { + int64_t arg1 ; + long long val1 ; + int ecode1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_setCodecs_2(codecs);"); + } + ecode1 = SWIG_AsVal_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecs_2" "', argument " "1"" of type '" "int64_t""'"); + } + arg1 = static_cast< int64_t >(val1); + SipStack::setCodecs_2(arg1); + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setCodecPriority) { + { + tdav_codec_id_t arg1 ; + int arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setCodecPriority(codec_id,priority);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecPriority" "', argument " "1"" of type '" "tdav_codec_id_t""'"); + } + arg1 = static_cast< tdav_codec_id_t >(val1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setCodecPriority" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)SipStack::setCodecPriority(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_setCodecPriority_2) { + { + int arg1 ; + int arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: SipStack_setCodecPriority_2(codec,priority);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecPriority_2" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setCodecPriority_2" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)SipStack::setCodecPriority_2(arg1,arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_isCodecSupported) { + { + tdav_codec_id_t arg1 ; + int val1 ; + int ecode1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SipStack_isCodecSupported(codec_id);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_isCodecSupported" "', argument " "1"" of type '" "tdav_codec_id_t""'"); + } + arg1 = static_cast< tdav_codec_id_t >(val1); + result = (bool)SipStack::isCodecSupported(arg1); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SipStack_isIPSecSupported) { + { + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: SipStack_isIPSecSupported();"); + } + result = (bool)SipStack::isIPSecSupported(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_new_XcapSelector) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_XcapSelector(stack);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XcapSelector" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + result = (XcapSelector *)new XcapSelector(arg1); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_XcapSelector) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_XcapSelector(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapSelector" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_setAUID) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapSelector_setAUID(self,auid);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setAUID" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setAUID" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (XcapSelector *)(arg1)->setAUID((char const *)arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_setName) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapSelector_setName(self,qname);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setName" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (XcapSelector *)(arg1)->setName((char const *)arg2); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_setAttribute) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: XcapSelector_setAttribute(self,qname,att_qname,att_value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setAttribute" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapSelector_setAttribute" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XcapSelector_setAttribute" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_setPos) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapSelector_setPos(self,qname,pos);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setPos" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setPos" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapSelector_setPos" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_setPosAttribute) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: XcapSelector_setPosAttribute(self,qname,pos,att_qname,att_value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setPosAttribute" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setPosAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapSelector_setPosAttribute" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XcapSelector_setPosAttribute" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "XcapSelector_setPosAttribute" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_setNamespace) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + XcapSelector *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapSelector_setNamespace(self,prefix,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setNamespace" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setNamespace" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapSelector_setNamespace" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_getString) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapSelector_getString(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_getString" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + result = (char *)(arg1)->getString(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + delete[] result; + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapSelector_reset) { + { + XcapSelector *arg1 = (XcapSelector *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapSelector_reset(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_reset" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + (arg1)->reset(); + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_XcapMessage) { + { + int argvi = 0; + XcapMessage *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_XcapMessage();"); + } + result = (XcapMessage *)new XcapMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_XcapMessage) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_XcapMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapMessage" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getCode) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + short result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapMessage_getCode(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getCode" "', argument " "1"" of type '" "XcapMessage const *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + result = (short)((XcapMessage const *)arg1)->getCode(); + ST(argvi) = SWIG_From_short SWIG_PERL_CALL_ARGS_1(static_cast< short >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getPhrase) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapMessage_getPhrase(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getPhrase" "', argument " "1"" of type '" "XcapMessage const *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + result = (char *)((XcapMessage const *)arg1)->getPhrase(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getXcapHeaderValue__SWIG_0) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapMessage_getXcapHeaderValue(self,name,index);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getXcapHeaderValue__SWIG_1) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapMessage_getXcapHeaderValue(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getXcapHeaderValue) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_XcapMessage_getXcapHeaderValue__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_XcapMessage_getXcapHeaderValue__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'XcapMessage_getXcapHeaderValue'"); + XSRETURN(0); +} + + +XS(_wrap_XcapMessage_getXcapHeaderParamValue__SWIG_0) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: XcapMessage_getXcapHeaderParamValue(self,name,param,index);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getXcapHeaderParamValue__SWIG_1) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapMessage_getXcapHeaderParamValue(self,name,param);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getXcapHeaderParamValue) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 4) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(2), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_XcapMessage_getXcapHeaderParamValue__SWIG_1); return; + case 2: + PUSHMARK(MARK); SWIG_CALLXS(_wrap_XcapMessage_getXcapHeaderParamValue__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'XcapMessage_getXcapHeaderParamValue'"); + XSRETURN(0); +} + + +XS(_wrap_XcapMessage_getXcapContentLength) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapMessage_getXcapContentLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapContentLength" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + result = (unsigned int)(arg1)->getXcapContentLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapMessage_getXcapContent) { + { + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapMessage_getXcapContent(self,output,maxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapContent" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapMessage_getXcapContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getXcapContent(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_XcapEvent) { + { + XcapEvent *arg1 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_XcapEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapEvent" "', argument " "1"" of type '" "XcapEvent *""'"); + } + arg1 = reinterpret_cast< XcapEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapEvent_getType) { + { + XcapEvent *arg1 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + thttp_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapEvent_getType" "', argument " "1"" of type '" "XcapEvent *""'"); + } + arg1 = reinterpret_cast< XcapEvent * >(argp1); + result = (thttp_event_type_t)(arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapEvent_getXcapMessage) { + { + XcapEvent *arg1 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + XcapMessage *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapEvent_getXcapMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapEvent_getXcapMessage" "', argument " "1"" of type '" "XcapEvent const *""'"); + } + arg1 = reinterpret_cast< XcapEvent * >(argp1); + result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapMessage, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_XcapCallback) { + { + int argvi = 0; + XcapCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_XcapCallback();"); + } + result = (XcapCallback *)new XcapCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_XcapCallback) { + { + XcapCallback *arg1 = (XcapCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_XcapCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapCallback" "', argument " "1"" of type '" "XcapCallback *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapCallback_onEvent) { + { + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapCallback_onEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapCallback_onEvent" "', argument " "1"" of type '" "XcapCallback const *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_XcapEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapCallback_onEvent" "', argument " "2"" of type '" "XcapEvent const *""'"); + } + arg2 = reinterpret_cast< XcapEvent * >(argp2); + result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_XcapStack) { + { + XcapCallback *arg1 = (XcapCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + XcapStack *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: new_XcapStack(callback,xui,password,xcap_root);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XcapStack" "', argument " "1"" of type '" "XcapCallback *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_XcapStack" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XcapStack" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_XcapStack" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapStack, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_XcapStack) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_XcapStack(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapStack" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_registerAUID) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool arg6 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + bool val6 ; + int ecode6 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 6) || (items > 6)) { + SWIG_croak("Usage: XcapStack_registerAUID(self,id,mime_type,ns,document_name,is_global);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_registerAUID" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_registerAUID" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_registerAUID" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XcapStack_registerAUID" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "XcapStack_registerAUID" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "XcapStack_registerAUID" "', argument " "6"" of type '" "bool""'"); + } + arg6 = static_cast< bool >(val6); + result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_start) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapStack_start(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_start" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + result = (bool)(arg1)->start(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_setCredentials) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapStack_setCredentials(self,xui,password);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setCredentials" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_setCredentials" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_setCredentials" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_setXcapRoot) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_setXcapRoot(self,xcap_root);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setXcapRoot" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_setXcapRoot" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setXcapRoot((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_setLocalIP) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_setLocalIP(self,ip);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setLocalIP" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_setLocalPort) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_setLocalPort(self,port);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setLocalPort" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XcapStack_setLocalPort" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_addHeader) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: XcapStack_addHeader(self,name,value);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_addHeader" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_removeHeader) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_removeHeader(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_removeHeader" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_setTimeout) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_setTimeout(self,timeout);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setTimeout" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XcapStack_setTimeout" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setTimeout(arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_getDocument) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_getDocument(self,url);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_getDocument" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_getDocument" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->getDocument((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_getElement) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_getElement(self,url);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_getElement" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_getElement" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->getElement((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_getAttribute) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_getAttribute(self,url);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_getAttribute" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_getAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->getAttribute((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_deleteDocument) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_deleteDocument(self,url);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_deleteDocument" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_deleteDocument" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->deleteDocument((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_deleteElement) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_deleteElement(self,url);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_deleteElement" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_deleteElement" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->deleteElement((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_deleteAttribute) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: XcapStack_deleteAttribute(self,url);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_deleteAttribute" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_deleteAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->deleteAttribute((char const *)arg2); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_putDocument) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 5) || (items > 5)) { + SWIG_croak("Usage: XcapStack_putDocument(self,url,payload,len,contentType);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_putDocument" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_putDocument" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_putDocument" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapStack_putDocument" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + res5 = SWIG_AsCharPtrAndSize(ST(4), &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "XcapStack_putDocument" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_putElement) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: XcapStack_putElement(self,url,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_putElement" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_putElement" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_putElement" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapStack_putElement" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_putAttribute) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: XcapStack_putAttribute(self,url,payload,len);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_putAttribute" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_putAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(ST(2),SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_putAttribute" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapStack_putAttribute" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + + + SWIG_croak_null(); + } +} + + +XS(_wrap_XcapStack_stop) { + { + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: XcapStack_stop(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_stop" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + result = (bool)(arg1)->stop(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_RPMessage) { + { + int argvi = 0; + RPMessage *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_RPMessage();"); + } + result = (RPMessage *)new RPMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_RPMessage) { + { + RPMessage *arg1 = (RPMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_RPMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RPMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RPMessage" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RPMessage_getType) { + { + RPMessage *arg1 = (RPMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + twrap_rpmessage_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RPMessage_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RPMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RPMessage_getType" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + result = (twrap_rpmessage_type_t)(arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RPMessage_getPayloadLength) { + { + RPMessage *arg1 = (RPMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: RPMessage_getPayloadLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RPMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RPMessage_getPayloadLength" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_RPMessage_getPayload) { + { + RPMessage *arg1 = (RPMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: RPMessage_getPayload(self,output,maxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_RPMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RPMessage_getPayload" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RPMessage_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RPMessage_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_SMSData) { + { + int argvi = 0; + SMSData *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_SMSData();"); + } + result = (SMSData *)new SMSData(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SMSData, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SMSData) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SMSData(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SMSData" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSData_getType) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + twrap_sms_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SMSData_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getType" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (twrap_sms_type_t)(arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSData_getMR) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SMSData_getMR(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getMR" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (int)(arg1)->getMR(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSData_getPayloadLength) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SMSData_getPayloadLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getPayloadLength" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSData_getPayload) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SMSData_getPayload(self,output,maxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getPayload" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSData_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SMSData_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSData_getOA) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SMSData_getOA(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getOA" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (char *)(arg1)->getOA(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSData_getDA) { + { + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: SMSData_getDA(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getDA" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (char *)(arg1)->getDA(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSEncoder_encodeSubmit) { + { + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + RPMessage *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SMSEncoder_encodeSubmit(mr,smsc,destination,ascii);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeSubmit" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeSubmit" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeSubmit" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SMSEncoder_encodeSubmit" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSEncoder_encodeDeliver) { + { + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int argvi = 0; + RPMessage *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SMSEncoder_encodeDeliver(mr,smsc,originator,ascii);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeDeliver" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeDeliver" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeDeliver" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(ST(3), &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SMSEncoder_encodeDeliver" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSEncoder_encodeACK) { + { + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + int argvi = 0; + RPMessage *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SMSEncoder_encodeACK(mr,smsc,destination,forSUBMIT);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeACK" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeACK" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeACK" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SMSEncoder_encodeACK" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSEncoder_encodeError) { + { + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + int argvi = 0; + RPMessage *result = 0 ; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: SMSEncoder_encodeError(mr,smsc,destination,forSUBMIT);"); + } + ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeError" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeError" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SMSEncoder_encodeError" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + + SWIG_croak_null(); + } +} + + +XS(_wrap_SMSEncoder_decode) { + { + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + bool arg3 ; + int res1 ; + unsigned int val2 ; + int ecode2 = 0 ; + bool val3 ; + int ecode3 = 0 ; + int argvi = 0; + SMSData *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: SMSEncoder_decode(data,size,MobOrig);"); + } + res1 = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSEncoder_decode" "', argument " "1"" of type '" "void const *""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SMSEncoder_decode" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SMSEncoder_decode" "', argument " "3"" of type '" "bool""'"); + } + arg3 = static_cast< bool >(val3); + result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SMSData, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_SMSEncoder) { + { + SMSEncoder *arg1 = (SMSEncoder *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_SMSEncoder(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_SMSEncoder, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SMSEncoder" "', argument " "1"" of type '" "SMSEncoder *""'"); + } + arg1 = reinterpret_cast< SMSEncoder * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_MsrpMessage) { + { + int argvi = 0; + MsrpMessage *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_MsrpMessage();"); + } + result = (MsrpMessage *)new MsrpMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpMessage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MsrpMessage) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MsrpMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpMessage" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_isRequest) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_isRequest(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isRequest" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isRequest(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getCode) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + short result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_getCode(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getCode" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (short)(arg1)->getCode(); + ST(argvi) = SWIG_From_short SWIG_PERL_CALL_ARGS_1(static_cast< short >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getPhrase) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_getPhrase(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getPhrase" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (char *)(arg1)->getPhrase(); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getRequestType) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tmsrp_request_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_getRequestType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getRequestType" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (tmsrp_request_type_t)(arg1)->getRequestType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getByteRange) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + int64_t *arg2 = (int64_t *) 0 ; + int64_t *arg3 = (int64_t *) 0 ; + int64_t *arg4 = (int64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int64_t temp2 ; + int res2 = SWIG_TMPOBJ ; + int64_t temp3 ; + int res3 = SWIG_TMPOBJ ; + int64_t temp4 ; + int res4 = SWIG_TMPOBJ ; + int argvi = 0; + dXSARGS; + + arg2 = &temp2; + arg3 = &temp3; + arg4 = &temp4; + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_getByteRange(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getByteRange" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + (arg1)->getByteRange(arg2,arg3,arg4); + ST(argvi) = sv_newmortal(); + if (SWIG_IsTmpObj(res2)) { + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_From_long_SS_long SWIG_PERL_CALL_ARGS_1((*arg2)); argvi++ ; + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0) : 0; + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags); argvi++ ; + } + if (SWIG_IsTmpObj(res3)) { + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_From_long_SS_long SWIG_PERL_CALL_ARGS_1((*arg3)); argvi++ ; + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0) : 0; + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long_long, new_flags); argvi++ ; + } + if (SWIG_IsTmpObj(res4)) { + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_From_long_SS_long SWIG_PERL_CALL_ARGS_1((*arg4)); argvi++ ; + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0) : 0; + if (argvi >= items) EXTEND(sp,1); ST(argvi) = SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long_long, new_flags); argvi++ ; + } + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_isLastChunck) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_isLastChunck(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isLastChunck" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isLastChunck(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_isFirstChunck) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_isFirstChunck(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isFirstChunck" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isFirstChunck(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_isSuccessReport) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_isSuccessReport(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isSuccessReport" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isSuccessReport(); + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getMsrpHeaderValue) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MsrpMessage_getMsrpHeaderValue(self,name);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpHeaderValue" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpMessage_getMsrpHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getMsrpHeaderParamValue) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MsrpMessage_getMsrpHeaderParamValue(self,name,param);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpHeaderParamValue" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpMessage_getMsrpHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(ST(2), &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MsrpMessage_getMsrpHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3); + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getMsrpContentLength) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpMessage_getMsrpContentLength(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpContentLength" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (unsigned int)(arg1)->getMsrpContentLength(); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpMessage_getMsrpContent) { + { + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: MsrpMessage_getMsrpContent(self,output,maxsize);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpContent" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + res2 = SWIG_ConvertPtr(ST(1),SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpMessage_getMsrpContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MsrpMessage_getMsrpContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3); + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MsrpEvent) { + { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MsrpEvent(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpEvent" "', argument " "1"" of type '" "MsrpEvent *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpEvent_getType) { + { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + tmsrp_event_type_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpEvent_getType(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpEvent_getType" "', argument " "1"" of type '" "MsrpEvent *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + result = (tmsrp_event_type_t)(arg1)->getType(); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpEvent_getSipSession) { + { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MsrpSession *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpEvent_getSipSession(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpEvent_getSipSession" "', argument " "1"" of type '" "MsrpEvent *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + result = (MsrpSession *)(arg1)->getSipSession(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpSession, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpEvent_getMessage) { + { + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + MsrpMessage *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: MsrpEvent_getMessage(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpEvent_getMessage" "', argument " "1"" of type '" "MsrpEvent const *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpMessage, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_MsrpCallback) { + { + int argvi = 0; + MsrpCallback *result = 0 ; + dXSARGS; + + if ((items < 0) || (items > 0)) { + SWIG_croak("Usage: new_MsrpCallback();"); + } + result = (MsrpCallback *)new MsrpCallback(); + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpCallback, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + XSRETURN(argvi); + fail: + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_MsrpCallback) { + { + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_MsrpCallback(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpCallback" "', argument " "1"" of type '" "MsrpCallback *""'"); + } + arg1 = reinterpret_cast< MsrpCallback * >(argp1); + delete arg1; + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_MsrpCallback_OnEvent) { + { + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int argvi = 0; + int result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: MsrpCallback_OnEvent(self,e);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpCallback_OnEvent" "', argument " "1"" of type '" "MsrpCallback *""'"); + } + arg1 = reinterpret_cast< MsrpCallback * >(argp1); + res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpCallback_OnEvent" "', argument " "2"" of type '" "MsrpEvent const *""'"); + } + arg2 = reinterpret_cast< MsrpEvent * >(argp2); + result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2); + ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static void *_p_ProxyAudioConsumerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyAudioConsumer *) x)); +} +static void *_p_ProxyVideoConsumerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyVideoConsumer *) x)); +} +static void *_p_ProxyAudioProducerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyAudioProducer *) x)); +} +static void *_p_ProxyVideoProducerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyVideoProducer *) x)); +} +static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SafeObject *) ((SipStack *) x)); +} +static void *_p_MediaContentCPIMTo_p_MediaContent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((MediaContent *) ((MediaContentCPIM *) x)); +} +static void *_p_CallSessionTo_p_InviteSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((InviteSession *) ((CallSession *) x)); +} +static void *_p_MsrpSessionTo_p_InviteSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((InviteSession *) ((MsrpSession *) x)); +} +static void *_p_InviteSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((InviteSession *) x)); +} +static void *_p_CallSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) (InviteSession *) ((CallSession *) x)); +} +static void *_p_MsrpSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) (InviteSession *) ((MsrpSession *) x)); +} +static void *_p_MessagingSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((MessagingSession *) x)); +} +static void *_p_InfoSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((InfoSession *) x)); +} +static void *_p_OptionsSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((OptionsSession *) x)); +} +static void *_p_PublicationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((PublicationSession *) x)); +} +static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((RegistrationSession *) x)); +} +static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((SubscriptionSession *) x)); +} +static void *_p_InfoEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((InfoEvent *) x)); +} +static void *_p_InviteEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((InviteEvent *) x)); +} +static void *_p_OptionsEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((OptionsEvent *) x)); +} +static void *_p_DialogEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((DialogEvent *) x)); +} +static void *_p_PublicationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((PublicationEvent *) x)); +} +static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((RegistrationEvent *) x)); +} +static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((SubscriptionEvent *) x)); +} +static void *_p_StackEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((StackEvent *) x)); +} +static void *_p_MessagingEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((MessagingEvent *) x)); +} +static swig_type_info _swigt__p_ActionConfig = {"_p_ActionConfig", "ActionConfig *", 0, 0, (void*)"tinyWRAP::ActionConfig", 0}; +static swig_type_info _swigt__p_AudioResampler = {"_p_AudioResampler", "AudioResampler *", 0, 0, (void*)"tinyWRAP::AudioResampler", 0}; +static swig_type_info _swigt__p_CallSession = {"_p_CallSession", "CallSession *", 0, 0, (void*)"tinyWRAP::CallSession", 0}; +static swig_type_info _swigt__p_Codec = {"_p_Codec", "Codec *", 0, 0, (void*)"tinyWRAP::Codec", 0}; +static swig_type_info _swigt__p_DDebugCallback = {"_p_DDebugCallback", "DDebugCallback *", 0, 0, (void*)"tinyWRAP::DDebugCallback", 0}; +static swig_type_info _swigt__p_DialogEvent = {"_p_DialogEvent", "DialogEvent *", 0, 0, (void*)"tinyWRAP::DialogEvent", 0}; +static swig_type_info _swigt__p_InfoEvent = {"_p_InfoEvent", "InfoEvent *", 0, 0, (void*)"tinyWRAP::InfoEvent", 0}; +static swig_type_info _swigt__p_InfoSession = {"_p_InfoSession", "InfoSession *", 0, 0, (void*)"tinyWRAP::InfoSession", 0}; +static swig_type_info _swigt__p_InviteEvent = {"_p_InviteEvent", "InviteEvent *", 0, 0, (void*)"tinyWRAP::InviteEvent", 0}; +static swig_type_info _swigt__p_InviteSession = {"_p_InviteSession", "InviteSession *", 0, 0, (void*)"tinyWRAP::InviteSession", 0}; +static swig_type_info _swigt__p_MediaContent = {"_p_MediaContent", "MediaContent *", 0, 0, (void*)"tinyWRAP::MediaContent", 0}; +static swig_type_info _swigt__p_MediaContentCPIM = {"_p_MediaContentCPIM", "MediaContentCPIM *", 0, 0, (void*)"tinyWRAP::MediaContentCPIM", 0}; +static swig_type_info _swigt__p_MediaSessionMgr = {"_p_MediaSessionMgr", "MediaSessionMgr *", 0, 0, (void*)"tinyWRAP::MediaSessionMgr", 0}; +static swig_type_info _swigt__p_MessagingEvent = {"_p_MessagingEvent", "MessagingEvent *", 0, 0, (void*)"tinyWRAP::MessagingEvent", 0}; +static swig_type_info _swigt__p_MessagingSession = {"_p_MessagingSession", "MessagingSession *", 0, 0, (void*)"tinyWRAP::MessagingSession", 0}; +static swig_type_info _swigt__p_MsrpCallback = {"_p_MsrpCallback", "MsrpCallback *", 0, 0, (void*)"tinyWRAP::MsrpCallback", 0}; +static swig_type_info _swigt__p_MsrpEvent = {"_p_MsrpEvent", "MsrpEvent *", 0, 0, (void*)"tinyWRAP::MsrpEvent", 0}; +static swig_type_info _swigt__p_MsrpMessage = {"_p_MsrpMessage", "MsrpMessage *", 0, 0, (void*)"tinyWRAP::MsrpMessage", 0}; +static swig_type_info _swigt__p_MsrpSession = {"_p_MsrpSession", "MsrpSession *", 0, 0, (void*)"tinyWRAP::MsrpSession", 0}; +static swig_type_info _swigt__p_OptionsEvent = {"_p_OptionsEvent", "OptionsEvent *", 0, 0, (void*)"tinyWRAP::OptionsEvent", 0}; +static swig_type_info _swigt__p_OptionsSession = {"_p_OptionsSession", "OptionsSession *", 0, 0, (void*)"tinyWRAP::OptionsSession", 0}; +static swig_type_info _swigt__p_ProxyAudioConsumer = {"_p_ProxyAudioConsumer", "ProxyAudioConsumer *", 0, 0, (void*)"tinyWRAP::ProxyAudioConsumer", 0}; +static swig_type_info _swigt__p_ProxyAudioConsumerCallback = {"_p_ProxyAudioConsumerCallback", "ProxyAudioConsumerCallback *", 0, 0, (void*)"tinyWRAP::ProxyAudioConsumerCallback", 0}; +static swig_type_info _swigt__p_ProxyAudioProducer = {"_p_ProxyAudioProducer", "ProxyAudioProducer *", 0, 0, (void*)"tinyWRAP::ProxyAudioProducer", 0}; +static swig_type_info _swigt__p_ProxyAudioProducerCallback = {"_p_ProxyAudioProducerCallback", "ProxyAudioProducerCallback *", 0, 0, (void*)"tinyWRAP::ProxyAudioProducerCallback", 0}; +static swig_type_info _swigt__p_ProxyPlugin = {"_p_ProxyPlugin", "ProxyPlugin *", 0, 0, (void*)"tinyWRAP::ProxyPlugin", 0}; +static swig_type_info _swigt__p_ProxyPluginMgr = {"_p_ProxyPluginMgr", "ProxyPluginMgr *", 0, 0, (void*)"tinyWRAP::ProxyPluginMgr", 0}; +static swig_type_info _swigt__p_ProxyPluginMgrCallback = {"_p_ProxyPluginMgrCallback", "ProxyPluginMgrCallback *", 0, 0, (void*)"tinyWRAP::ProxyPluginMgrCallback", 0}; +static swig_type_info _swigt__p_ProxyVideoConsumer = {"_p_ProxyVideoConsumer", "ProxyVideoConsumer *", 0, 0, (void*)"tinyWRAP::ProxyVideoConsumer", 0}; +static swig_type_info _swigt__p_ProxyVideoConsumerCallback = {"_p_ProxyVideoConsumerCallback", "ProxyVideoConsumerCallback *", 0, 0, (void*)"tinyWRAP::ProxyVideoConsumerCallback", 0}; +static swig_type_info _swigt__p_ProxyVideoFrame = {"_p_ProxyVideoFrame", "ProxyVideoFrame *", 0, 0, (void*)"tinyWRAP::ProxyVideoFrame", 0}; +static swig_type_info _swigt__p_ProxyVideoProducer = {"_p_ProxyVideoProducer", "ProxyVideoProducer *", 0, 0, (void*)"tinyWRAP::ProxyVideoProducer", 0}; +static swig_type_info _swigt__p_ProxyVideoProducerCallback = {"_p_ProxyVideoProducerCallback", "ProxyVideoProducerCallback *", 0, 0, (void*)"tinyWRAP::ProxyVideoProducerCallback", 0}; +static swig_type_info _swigt__p_PublicationEvent = {"_p_PublicationEvent", "PublicationEvent *", 0, 0, (void*)"tinyWRAP::PublicationEvent", 0}; +static swig_type_info _swigt__p_PublicationSession = {"_p_PublicationSession", "PublicationSession *", 0, 0, (void*)"tinyWRAP::PublicationSession", 0}; +static swig_type_info _swigt__p_RPMessage = {"_p_RPMessage", "RPMessage *", 0, 0, (void*)"tinyWRAP::RPMessage", 0}; +static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)"tinyWRAP::RegistrationEvent", 0}; +static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)"tinyWRAP::RegistrationSession", 0}; +static swig_type_info _swigt__p_SMSData = {"_p_SMSData", "SMSData *", 0, 0, (void*)"tinyWRAP::SMSData", 0}; +static swig_type_info _swigt__p_SMSEncoder = {"_p_SMSEncoder", "SMSEncoder *", 0, 0, (void*)"tinyWRAP::SMSEncoder", 0}; +static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)"tinyWRAP::SafeObject", 0}; +static swig_type_info _swigt__p_SdpMessage = {"_p_SdpMessage", "SdpMessage *", 0, 0, (void*)"tinyWRAP::SdpMessage", 0}; +static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)"tinyWRAP::SipCallback", 0}; +static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)"tinyWRAP::SipEvent", 0}; +static swig_type_info _swigt__p_SipMessage = {"_p_SipMessage", "SipMessage *", 0, 0, (void*)"tinyWRAP::SipMessage", 0}; +static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)"tinyWRAP::SipSession", 0}; +static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)"tinyWRAP::SipStack", 0}; +static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)"tinyWRAP::SipUri", 0}; +static swig_type_info _swigt__p_StackEvent = {"_p_StackEvent", "StackEvent *", 0, 0, (void*)"tinyWRAP::StackEvent", 0}; +static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)"tinyWRAP::SubscriptionEvent", 0}; +static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)"tinyWRAP::SubscriptionSession", 0}; +static swig_type_info _swigt__p_T140Callback = {"_p_T140Callback", "T140Callback *", 0, 0, (void*)"tinyWRAP::T140Callback", 0}; +static swig_type_info _swigt__p_T140CallbackData = {"_p_T140CallbackData", "T140CallbackData *", 0, 0, (void*)"tinyWRAP::T140CallbackData", 0}; +static swig_type_info _swigt__p_XcapCallback = {"_p_XcapCallback", "XcapCallback *", 0, 0, (void*)"tinyWRAP::XcapCallback", 0}; +static swig_type_info _swigt__p_XcapEvent = {"_p_XcapEvent", "XcapEvent *", 0, 0, (void*)"tinyWRAP::XcapEvent", 0}; +static swig_type_info _swigt__p_XcapMessage = {"_p_XcapMessage", "XcapMessage *", 0, 0, (void*)"tinyWRAP::XcapMessage", 0}; +static swig_type_info _swigt__p_XcapSelector = {"_p_XcapSelector", "XcapSelector *", 0, 0, (void*)"tinyWRAP::XcapSelector", 0}; +static swig_type_info _swigt__p_XcapStack = {"_p_XcapStack", "XcapStack *", 0, 0, (void*)"tinyWRAP::XcapStack", 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tdav_codec_id_e = {"_p_tdav_codec_id_e", "enum tdav_codec_id_e *|tdav_codec_id_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_thttp_event_type_e = {"_p_thttp_event_type_e", "enum thttp_event_type_e *|thttp_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_bandwidth_level_e = {"_p_tmedia_bandwidth_level_e", "enum tmedia_bandwidth_level_e *|tmedia_bandwidth_level_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_chroma_e = {"_p_tmedia_chroma_e", "tmedia_chroma_t *|enum tmedia_chroma_e *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_codec_id_e = {"_p_tmedia_codec_id_e", "enum tmedia_codec_id_e *|tmedia_codec_id_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_mode_e = {"_p_tmedia_mode_e", "enum tmedia_mode_e *|tmedia_mode_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_pref_video_size_s = {"_p_tmedia_pref_video_size_s", "tmedia_pref_video_size_t *|enum tmedia_pref_video_size_s *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_profile_e = {"_p_tmedia_profile_e", "tmedia_profile_t *|enum tmedia_profile_e *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_qos_strength_e = {"_p_tmedia_qos_strength_e", "tmedia_qos_strength_t *|enum tmedia_qos_strength_e *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_qos_stype_e = {"_p_tmedia_qos_stype_e", "enum tmedia_qos_stype_e *|tmedia_qos_stype_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_srtp_mode_e = {"_p_tmedia_srtp_mode_e", "enum tmedia_srtp_mode_e *|tmedia_srtp_mode_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_srtp_type_e = {"_p_tmedia_srtp_type_e", "enum tmedia_srtp_type_e *|tmedia_srtp_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_t140_data_type_e = {"_p_tmedia_t140_data_type_e", "enum tmedia_t140_data_type_e *|tmedia_t140_data_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmsrp_event_type_e = {"_p_tmsrp_event_type_e", "enum tmsrp_event_type_e *|tmsrp_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmsrp_request_type_e = {"_p_tmsrp_request_type_e", "enum tmsrp_request_type_e *|tmsrp_request_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_info_event_type_e = {"_p_tsip_info_event_type_e", "enum tsip_info_event_type_e *|tsip_info_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_invite_event_type_e = {"_p_tsip_invite_event_type_e", "enum tsip_invite_event_type_e *|tsip_invite_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_message_event_type_e = {"_p_tsip_message_event_type_e", "enum tsip_message_event_type_e *|tsip_message_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_options_event_type_e = {"_p_tsip_options_event_type_e", "enum tsip_options_event_type_e *|tsip_options_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_publish_event_type_e = {"_p_tsip_publish_event_type_e", "enum tsip_publish_event_type_e *|tsip_publish_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_request_type_e = {"_p_tsip_request_type_e", "enum tsip_request_type_e *|tsip_request_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_stack_mode_e = {"_p_tsip_stack_mode_e", "enum tsip_stack_mode_e *|tsip_stack_mode_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsk_list_t = {"_p_tsk_list_t", "twrap_xcap_steps_L_t *|twrap_proxy_plungins_L_t *|tsk_list_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_media_type_e = {"_p_twrap_media_type_e", "enum twrap_media_type_e *|twrap_media_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_proxy_plugin_type_e = {"_p_twrap_proxy_plugin_type_e", "enum twrap_proxy_plugin_type_e *|twrap_proxy_plugin_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_rpmessage_type_e = {"_p_twrap_rpmessage_type_e", "enum twrap_rpmessage_type_e *|twrap_rpmessage_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_sms_type_e = {"_p_twrap_sms_type_e", "enum twrap_sms_type_e *|twrap_sms_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_ActionConfig, + &_swigt__p_AudioResampler, + &_swigt__p_CallSession, + &_swigt__p_Codec, + &_swigt__p_DDebugCallback, + &_swigt__p_DialogEvent, + &_swigt__p_InfoEvent, + &_swigt__p_InfoSession, + &_swigt__p_InviteEvent, + &_swigt__p_InviteSession, + &_swigt__p_MediaContent, + &_swigt__p_MediaContentCPIM, + &_swigt__p_MediaSessionMgr, + &_swigt__p_MessagingEvent, + &_swigt__p_MessagingSession, + &_swigt__p_MsrpCallback, + &_swigt__p_MsrpEvent, + &_swigt__p_MsrpMessage, + &_swigt__p_MsrpSession, + &_swigt__p_OptionsEvent, + &_swigt__p_OptionsSession, + &_swigt__p_ProxyAudioConsumer, + &_swigt__p_ProxyAudioConsumerCallback, + &_swigt__p_ProxyAudioProducer, + &_swigt__p_ProxyAudioProducerCallback, + &_swigt__p_ProxyPlugin, + &_swigt__p_ProxyPluginMgr, + &_swigt__p_ProxyPluginMgrCallback, + &_swigt__p_ProxyVideoConsumer, + &_swigt__p_ProxyVideoConsumerCallback, + &_swigt__p_ProxyVideoFrame, + &_swigt__p_ProxyVideoProducer, + &_swigt__p_ProxyVideoProducerCallback, + &_swigt__p_PublicationEvent, + &_swigt__p_PublicationSession, + &_swigt__p_RPMessage, + &_swigt__p_RegistrationEvent, + &_swigt__p_RegistrationSession, + &_swigt__p_SMSData, + &_swigt__p_SMSEncoder, + &_swigt__p_SafeObject, + &_swigt__p_SdpMessage, + &_swigt__p_SipCallback, + &_swigt__p_SipEvent, + &_swigt__p_SipMessage, + &_swigt__p_SipSession, + &_swigt__p_SipStack, + &_swigt__p_SipUri, + &_swigt__p_StackEvent, + &_swigt__p_SubscriptionEvent, + &_swigt__p_SubscriptionSession, + &_swigt__p_T140Callback, + &_swigt__p_T140CallbackData, + &_swigt__p_XcapCallback, + &_swigt__p_XcapEvent, + &_swigt__p_XcapMessage, + &_swigt__p_XcapSelector, + &_swigt__p_XcapStack, + &_swigt__p_char, + &_swigt__p_int, + &_swigt__p_long_long, + &_swigt__p_short, + &_swigt__p_signed_char, + &_swigt__p_tdav_codec_id_e, + &_swigt__p_thttp_event_type_e, + &_swigt__p_tmedia_bandwidth_level_e, + &_swigt__p_tmedia_chroma_e, + &_swigt__p_tmedia_codec_id_e, + &_swigt__p_tmedia_mode_e, + &_swigt__p_tmedia_pref_video_size_s, + &_swigt__p_tmedia_profile_e, + &_swigt__p_tmedia_qos_strength_e, + &_swigt__p_tmedia_qos_stype_e, + &_swigt__p_tmedia_srtp_mode_e, + &_swigt__p_tmedia_srtp_type_e, + &_swigt__p_tmedia_t140_data_type_e, + &_swigt__p_tmsrp_event_type_e, + &_swigt__p_tmsrp_request_type_e, + &_swigt__p_tsip_event_type_e, + &_swigt__p_tsip_info_event_type_e, + &_swigt__p_tsip_invite_event_type_e, + &_swigt__p_tsip_message_event_type_e, + &_swigt__p_tsip_options_event_type_e, + &_swigt__p_tsip_publish_event_type_e, + &_swigt__p_tsip_register_event_type_e, + &_swigt__p_tsip_request_type_e, + &_swigt__p_tsip_stack_mode_e, + &_swigt__p_tsip_subscribe_event_type_e, + &_swigt__p_tsk_list_t, + &_swigt__p_twrap_media_type_e, + &_swigt__p_twrap_proxy_plugin_type_e, + &_swigt__p_twrap_rpmessage_type_e, + &_swigt__p_twrap_sms_type_e, + &_swigt__p_unsigned_char, + &_swigt__p_unsigned_int, + &_swigt__p_unsigned_long_long, + &_swigt__p_unsigned_short, +}; + +static swig_cast_info _swigc__p_ActionConfig[] = { {&_swigt__p_ActionConfig, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_AudioResampler[] = { {&_swigt__p_AudioResampler, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CallSession[] = { {&_swigt__p_CallSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Codec[] = { {&_swigt__p_Codec, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_DDebugCallback[] = { {&_swigt__p_DDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_DialogEvent[] = { {&_swigt__p_DialogEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InfoEvent[] = { {&_swigt__p_InfoEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InfoSession[] = { {&_swigt__p_InfoSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InviteEvent[] = { {&_swigt__p_InviteEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InviteSession[] = { {&_swigt__p_InviteSession, 0, 0, 0}, {&_swigt__p_CallSession, _p_CallSessionTo_p_InviteSession, 0, 0}, {&_swigt__p_MsrpSession, _p_MsrpSessionTo_p_InviteSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MediaContent[] = { {&_swigt__p_MediaContent, 0, 0, 0}, {&_swigt__p_MediaContentCPIM, _p_MediaContentCPIMTo_p_MediaContent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MediaContentCPIM[] = { {&_swigt__p_MediaContentCPIM, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MediaSessionMgr[] = { {&_swigt__p_MediaSessionMgr, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MessagingEvent[] = { {&_swigt__p_MessagingEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MessagingSession[] = { {&_swigt__p_MessagingSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpCallback[] = { {&_swigt__p_MsrpCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpEvent[] = { {&_swigt__p_MsrpEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpMessage[] = { {&_swigt__p_MsrpMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpSession[] = { {&_swigt__p_MsrpSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_OptionsEvent[] = { {&_swigt__p_OptionsEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_OptionsSession[] = { {&_swigt__p_OptionsSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioConsumer[] = { {&_swigt__p_ProxyAudioConsumer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioConsumerCallback[] = { {&_swigt__p_ProxyAudioConsumerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioProducer[] = { {&_swigt__p_ProxyAudioProducer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioProducerCallback[] = { {&_swigt__p_ProxyAudioProducerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyPlugin[] = { {&_swigt__p_ProxyPlugin, 0, 0, 0}, {&_swigt__p_ProxyAudioConsumer, _p_ProxyAudioConsumerTo_p_ProxyPlugin, 0, 0}, {&_swigt__p_ProxyVideoConsumer, _p_ProxyVideoConsumerTo_p_ProxyPlugin, 0, 0}, {&_swigt__p_ProxyAudioProducer, _p_ProxyAudioProducerTo_p_ProxyPlugin, 0, 0}, {&_swigt__p_ProxyVideoProducer, _p_ProxyVideoProducerTo_p_ProxyPlugin, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyPluginMgr[] = { {&_swigt__p_ProxyPluginMgr, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyPluginMgrCallback[] = { {&_swigt__p_ProxyPluginMgrCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoConsumer[] = { {&_swigt__p_ProxyVideoConsumer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoConsumerCallback[] = { {&_swigt__p_ProxyVideoConsumerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoFrame[] = { {&_swigt__p_ProxyVideoFrame, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoProducer[] = { {&_swigt__p_ProxyVideoProducer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoProducerCallback[] = { {&_swigt__p_ProxyVideoProducerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_PublicationEvent[] = { {&_swigt__p_PublicationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_PublicationSession[] = { {&_swigt__p_PublicationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RPMessage[] = { {&_swigt__p_RPMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SMSData[] = { {&_swigt__p_SMSData, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SMSEncoder[] = { {&_swigt__p_SMSEncoder, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SdpMessage[] = { {&_swigt__p_SdpMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_InfoEvent, _p_InfoEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_InviteEvent, _p_InviteEventTo_p_SipEvent, 0, 0}, {&_swigt__p_OptionsEvent, _p_OptionsEventTo_p_SipEvent, 0, 0}, {&_swigt__p_DialogEvent, _p_DialogEventTo_p_SipEvent, 0, 0}, {&_swigt__p_PublicationEvent, _p_PublicationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0}, {&_swigt__p_StackEvent, _p_StackEventTo_p_SipEvent, 0, 0}, {&_swigt__p_MessagingEvent, _p_MessagingEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipMessage[] = { {&_swigt__p_SipMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_InviteSession, _p_InviteSessionTo_p_SipSession, 0, 0}, {&_swigt__p_CallSession, _p_CallSessionTo_p_SipSession, 0, 0}, {&_swigt__p_MsrpSession, _p_MsrpSessionTo_p_SipSession, 0, 0}, {&_swigt__p_MessagingSession, _p_MessagingSessionTo_p_SipSession, 0, 0}, {&_swigt__p_InfoSession, _p_InfoSessionTo_p_SipSession, 0, 0}, {&_swigt__p_OptionsSession, _p_OptionsSessionTo_p_SipSession, 0, 0}, {&_swigt__p_PublicationSession, _p_PublicationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_StackEvent[] = { {&_swigt__p_StackEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_T140Callback[] = { {&_swigt__p_T140Callback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_T140CallbackData[] = { {&_swigt__p_T140CallbackData, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapCallback[] = { {&_swigt__p_XcapCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapEvent[] = { {&_swigt__p_XcapEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapMessage[] = { {&_swigt__p_XcapMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapSelector[] = { {&_swigt__p_XcapSelector, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapStack[] = { {&_swigt__p_XcapStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tdav_codec_id_e[] = { {&_swigt__p_tdav_codec_id_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_thttp_event_type_e[] = { {&_swigt__p_thttp_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_bandwidth_level_e[] = { {&_swigt__p_tmedia_bandwidth_level_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_chroma_e[] = { {&_swigt__p_tmedia_chroma_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_codec_id_e[] = { {&_swigt__p_tmedia_codec_id_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_mode_e[] = { {&_swigt__p_tmedia_mode_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_pref_video_size_s[] = { {&_swigt__p_tmedia_pref_video_size_s, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_profile_e[] = { {&_swigt__p_tmedia_profile_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_qos_strength_e[] = { {&_swigt__p_tmedia_qos_strength_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_qos_stype_e[] = { {&_swigt__p_tmedia_qos_stype_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_srtp_mode_e[] = { {&_swigt__p_tmedia_srtp_mode_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_srtp_type_e[] = { {&_swigt__p_tmedia_srtp_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_t140_data_type_e[] = { {&_swigt__p_tmedia_t140_data_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmsrp_event_type_e[] = { {&_swigt__p_tmsrp_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmsrp_request_type_e[] = { {&_swigt__p_tmsrp_request_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_info_event_type_e[] = { {&_swigt__p_tsip_info_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_invite_event_type_e[] = { {&_swigt__p_tsip_invite_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_message_event_type_e[] = { {&_swigt__p_tsip_message_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_options_event_type_e[] = { {&_swigt__p_tsip_options_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_publish_event_type_e[] = { {&_swigt__p_tsip_publish_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_request_type_e[] = { {&_swigt__p_tsip_request_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_stack_mode_e[] = { {&_swigt__p_tsip_stack_mode_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsk_list_t[] = { {&_swigt__p_tsk_list_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_media_type_e[] = { {&_swigt__p_twrap_media_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_proxy_plugin_type_e[] = { {&_swigt__p_twrap_proxy_plugin_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_rpmessage_type_e[] = { {&_swigt__p_twrap_rpmessage_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_sms_type_e[] = { {&_swigt__p_twrap_sms_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_ActionConfig, + _swigc__p_AudioResampler, + _swigc__p_CallSession, + _swigc__p_Codec, + _swigc__p_DDebugCallback, + _swigc__p_DialogEvent, + _swigc__p_InfoEvent, + _swigc__p_InfoSession, + _swigc__p_InviteEvent, + _swigc__p_InviteSession, + _swigc__p_MediaContent, + _swigc__p_MediaContentCPIM, + _swigc__p_MediaSessionMgr, + _swigc__p_MessagingEvent, + _swigc__p_MessagingSession, + _swigc__p_MsrpCallback, + _swigc__p_MsrpEvent, + _swigc__p_MsrpMessage, + _swigc__p_MsrpSession, + _swigc__p_OptionsEvent, + _swigc__p_OptionsSession, + _swigc__p_ProxyAudioConsumer, + _swigc__p_ProxyAudioConsumerCallback, + _swigc__p_ProxyAudioProducer, + _swigc__p_ProxyAudioProducerCallback, + _swigc__p_ProxyPlugin, + _swigc__p_ProxyPluginMgr, + _swigc__p_ProxyPluginMgrCallback, + _swigc__p_ProxyVideoConsumer, + _swigc__p_ProxyVideoConsumerCallback, + _swigc__p_ProxyVideoFrame, + _swigc__p_ProxyVideoProducer, + _swigc__p_ProxyVideoProducerCallback, + _swigc__p_PublicationEvent, + _swigc__p_PublicationSession, + _swigc__p_RPMessage, + _swigc__p_RegistrationEvent, + _swigc__p_RegistrationSession, + _swigc__p_SMSData, + _swigc__p_SMSEncoder, + _swigc__p_SafeObject, + _swigc__p_SdpMessage, + _swigc__p_SipCallback, + _swigc__p_SipEvent, + _swigc__p_SipMessage, + _swigc__p_SipSession, + _swigc__p_SipStack, + _swigc__p_SipUri, + _swigc__p_StackEvent, + _swigc__p_SubscriptionEvent, + _swigc__p_SubscriptionSession, + _swigc__p_T140Callback, + _swigc__p_T140CallbackData, + _swigc__p_XcapCallback, + _swigc__p_XcapEvent, + _swigc__p_XcapMessage, + _swigc__p_XcapSelector, + _swigc__p_XcapStack, + _swigc__p_char, + _swigc__p_int, + _swigc__p_long_long, + _swigc__p_short, + _swigc__p_signed_char, + _swigc__p_tdav_codec_id_e, + _swigc__p_thttp_event_type_e, + _swigc__p_tmedia_bandwidth_level_e, + _swigc__p_tmedia_chroma_e, + _swigc__p_tmedia_codec_id_e, + _swigc__p_tmedia_mode_e, + _swigc__p_tmedia_pref_video_size_s, + _swigc__p_tmedia_profile_e, + _swigc__p_tmedia_qos_strength_e, + _swigc__p_tmedia_qos_stype_e, + _swigc__p_tmedia_srtp_mode_e, + _swigc__p_tmedia_srtp_type_e, + _swigc__p_tmedia_t140_data_type_e, + _swigc__p_tmsrp_event_type_e, + _swigc__p_tmsrp_request_type_e, + _swigc__p_tsip_event_type_e, + _swigc__p_tsip_info_event_type_e, + _swigc__p_tsip_invite_event_type_e, + _swigc__p_tsip_message_event_type_e, + _swigc__p_tsip_options_event_type_e, + _swigc__p_tsip_publish_event_type_e, + _swigc__p_tsip_register_event_type_e, + _swigc__p_tsip_request_type_e, + _swigc__p_tsip_stack_mode_e, + _swigc__p_tsip_subscribe_event_type_e, + _swigc__p_tsk_list_t, + _swigc__p_twrap_media_type_e, + _swigc__p_twrap_proxy_plugin_type_e, + _swigc__p_twrap_rpmessage_type_e, + _swigc__p_twrap_sms_type_e, + _swigc__p_unsigned_char, + _swigc__p_unsigned_int, + _swigc__p_unsigned_long_long, + _swigc__p_unsigned_short, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_constant_info swig_constants[] = { +{0,0,0,0,0,0} +}; +#ifdef __cplusplus +} +#endif +static swig_variable_info swig_variables[] = { +{0,0,0,0} +}; +static swig_command_info swig_commands[] = { +{"tinyWRAPc::new_DDebugCallback", _wrap_new_DDebugCallback}, +{"tinyWRAPc::delete_DDebugCallback", _wrap_delete_DDebugCallback}, +{"tinyWRAPc::DDebugCallback_OnDebugInfo", _wrap_DDebugCallback_OnDebugInfo}, +{"tinyWRAPc::DDebugCallback_OnDebugWarn", _wrap_DDebugCallback_OnDebugWarn}, +{"tinyWRAPc::DDebugCallback_OnDebugError", _wrap_DDebugCallback_OnDebugError}, +{"tinyWRAPc::DDebugCallback_OnDebugFatal", _wrap_DDebugCallback_OnDebugFatal}, +{"tinyWRAPc::new_AudioResampler", _wrap_new_AudioResampler}, +{"tinyWRAPc::delete_AudioResampler", _wrap_delete_AudioResampler}, +{"tinyWRAPc::AudioResampler_isValid", _wrap_AudioResampler_isValid}, +{"tinyWRAPc::AudioResampler_getOutputRequiredSizeInShort", _wrap_AudioResampler_getOutputRequiredSizeInShort}, +{"tinyWRAPc::AudioResampler_getInputRequiredSizeInShort", _wrap_AudioResampler_getInputRequiredSizeInShort}, +{"tinyWRAPc::AudioResampler_process", _wrap_AudioResampler_process}, +{"tinyWRAPc::new_ActionConfig", _wrap_new_ActionConfig}, +{"tinyWRAPc::delete_ActionConfig", _wrap_delete_ActionConfig}, +{"tinyWRAPc::ActionConfig_addHeader", _wrap_ActionConfig_addHeader}, +{"tinyWRAPc::ActionConfig_addPayload", _wrap_ActionConfig_addPayload}, +{"tinyWRAPc::ActionConfig_setActiveMedia", _wrap_ActionConfig_setActiveMedia}, +{"tinyWRAPc::ActionConfig_setResponseLine", _wrap_ActionConfig_setResponseLine}, +{"tinyWRAPc::ActionConfig_setMediaString", _wrap_ActionConfig_setMediaString}, +{"tinyWRAPc::ActionConfig_setMediaInt", _wrap_ActionConfig_setMediaInt}, +{"tinyWRAPc::delete_Codec", _wrap_delete_Codec}, +{"tinyWRAPc::Codec_getMediaType", _wrap_Codec_getMediaType}, +{"tinyWRAPc::Codec_getName", _wrap_Codec_getName}, +{"tinyWRAPc::Codec_getDescription", _wrap_Codec_getDescription}, +{"tinyWRAPc::Codec_getNegFormat", _wrap_Codec_getNegFormat}, +{"tinyWRAPc::Codec_getAudioSamplingRate", _wrap_Codec_getAudioSamplingRate}, +{"tinyWRAPc::Codec_getAudioChannels", _wrap_Codec_getAudioChannels}, +{"tinyWRAPc::Codec_getAudioPTime", _wrap_Codec_getAudioPTime}, +{"tinyWRAPc::delete_MediaSessionMgr", _wrap_delete_MediaSessionMgr}, +{"tinyWRAPc::MediaSessionMgr_sessionSetInt32", _wrap_MediaSessionMgr_sessionSetInt32}, +{"tinyWRAPc::MediaSessionMgr_sessionGetInt32", _wrap_MediaSessionMgr_sessionGetInt32}, +{"tinyWRAPc::MediaSessionMgr_consumerSetInt32", _wrap_MediaSessionMgr_consumerSetInt32}, +{"tinyWRAPc::MediaSessionMgr_consumerSetInt64", _wrap_MediaSessionMgr_consumerSetInt64}, +{"tinyWRAPc::MediaSessionMgr_producerSetInt32", _wrap_MediaSessionMgr_producerSetInt32}, +{"tinyWRAPc::MediaSessionMgr_producerSetInt64", _wrap_MediaSessionMgr_producerSetInt64}, +{"tinyWRAPc::MediaSessionMgr_producerGetCodec", _wrap_MediaSessionMgr_producerGetCodec}, +{"tinyWRAPc::MediaSessionMgr_findProxyPluginConsumer", _wrap_MediaSessionMgr_findProxyPluginConsumer}, +{"tinyWRAPc::MediaSessionMgr_findProxyPluginProducer", _wrap_MediaSessionMgr_findProxyPluginProducer}, +{"tinyWRAPc::MediaSessionMgr_registerAudioPluginFromFile", _wrap_MediaSessionMgr_registerAudioPluginFromFile}, +{"tinyWRAPc::MediaSessionMgr_getSessionId", _wrap_MediaSessionMgr_getSessionId}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetProfile", _wrap_MediaSessionMgr_defaultsSetProfile}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetProfile", _wrap_MediaSessionMgr_defaultsGetProfile}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetBandwidthLevel", _wrap_MediaSessionMgr_defaultsSetBandwidthLevel}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetBandwidthLevel", _wrap_MediaSessionMgr_defaultsGetBandwidthLevel}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetCongestionCtrlEnabled", _wrap_MediaSessionMgr_defaultsSetCongestionCtrlEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetVideoMotionRank", _wrap_MediaSessionMgr_defaultsSetVideoMotionRank}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetVideoFps", _wrap_MediaSessionMgr_defaultsSetVideoFps}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetBandwidthVideoUploadMax", _wrap_MediaSessionMgr_defaultsSetBandwidthVideoUploadMax}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax", _wrap_MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetPrefVideoSize", _wrap_MediaSessionMgr_defaultsSetPrefVideoSize}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetJbMargin", _wrap_MediaSessionMgr_defaultsSetJbMargin}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetJbMaxLateRate", _wrap_MediaSessionMgr_defaultsSetJbMaxLateRate}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetEchoTail", _wrap_MediaSessionMgr_defaultsSetEchoTail}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetEchoTail", _wrap_MediaSessionMgr_defaultsGetEchoTail}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetEchoSkew", _wrap_MediaSessionMgr_defaultsSetEchoSkew}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetEchoSuppEnabled", _wrap_MediaSessionMgr_defaultsSetEchoSuppEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetEchoSuppEnabled", _wrap_MediaSessionMgr_defaultsGetEchoSuppEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAgcEnabled", _wrap_MediaSessionMgr_defaultsSetAgcEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetAgcEnabled", _wrap_MediaSessionMgr_defaultsGetAgcEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAgcLevel", _wrap_MediaSessionMgr_defaultsSetAgcLevel}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetAgcLevel", _wrap_MediaSessionMgr_defaultsGetAgcLevel}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetVadEnabled", _wrap_MediaSessionMgr_defaultsSetVadEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetGetVadEnabled", _wrap_MediaSessionMgr_defaultsGetGetVadEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetNoiseSuppEnabled", _wrap_MediaSessionMgr_defaultsSetNoiseSuppEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetNoiseSuppEnabled", _wrap_MediaSessionMgr_defaultsGetNoiseSuppEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetNoiseSuppLevel", _wrap_MediaSessionMgr_defaultsSetNoiseSuppLevel}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetNoiseSuppLevel", _wrap_MediaSessionMgr_defaultsGetNoiseSuppLevel}, +{"tinyWRAPc::MediaSessionMgr_defaultsSet100relEnabled", _wrap_MediaSessionMgr_defaultsSet100relEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGet100relEnabled", _wrap_MediaSessionMgr_defaultsGet100relEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetScreenSize", _wrap_MediaSessionMgr_defaultsSetScreenSize}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAudioGain", _wrap_MediaSessionMgr_defaultsSetAudioGain}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAudioPtime", _wrap_MediaSessionMgr_defaultsSetAudioPtime}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAudioChannels", _wrap_MediaSessionMgr_defaultsSetAudioChannels}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetRtpPortRange", _wrap_MediaSessionMgr_defaultsSetRtpPortRange}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetRtpSymetricEnabled", _wrap_MediaSessionMgr_defaultsSetRtpSymetricEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetMediaType", _wrap_MediaSessionMgr_defaultsSetMediaType}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetVolume", _wrap_MediaSessionMgr_defaultsSetVolume}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetVolume", _wrap_MediaSessionMgr_defaultsGetVolume}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetInviteSessionTimers", _wrap_MediaSessionMgr_defaultsSetInviteSessionTimers}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetSRtpMode", _wrap_MediaSessionMgr_defaultsSetSRtpMode}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetSRtpMode", _wrap_MediaSessionMgr_defaultsGetSRtpMode}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetSRtpType", _wrap_MediaSessionMgr_defaultsSetSRtpType}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetSRtpType", _wrap_MediaSessionMgr_defaultsGetSRtpType}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetRtcpEnabled", _wrap_MediaSessionMgr_defaultsSetRtcpEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetRtcpEnabled", _wrap_MediaSessionMgr_defaultsGetRtcpEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetRtcpMuxEnabled", _wrap_MediaSessionMgr_defaultsSetRtcpMuxEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetRtcpMuxEnabled", _wrap_MediaSessionMgr_defaultsGetRtcpMuxEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetStunEnabled", _wrap_MediaSessionMgr_defaultsSetStunEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetIceStunEnabled", _wrap_MediaSessionMgr_defaultsSetIceStunEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetIceTurnEnabled", _wrap_MediaSessionMgr_defaultsSetIceTurnEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetStunServer", _wrap_MediaSessionMgr_defaultsSetStunServer}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetStunCred", _wrap_MediaSessionMgr_defaultsSetStunCred}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetIceEnabled", _wrap_MediaSessionMgr_defaultsSetIceEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetByPassEncoding", _wrap_MediaSessionMgr_defaultsSetByPassEncoding}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetByPassEncoding", _wrap_MediaSessionMgr_defaultsGetByPassEncoding}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetByPassDecoding", _wrap_MediaSessionMgr_defaultsSetByPassDecoding}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetByPassDecoding", _wrap_MediaSessionMgr_defaultsGetByPassDecoding}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetVideoJbEnabled", _wrap_MediaSessionMgr_defaultsSetVideoJbEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetVideoJbEnabled", _wrap_MediaSessionMgr_defaultsGetVideoJbEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled", _wrap_MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled", _wrap_MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetRtpBuffSize", _wrap_MediaSessionMgr_defaultsSetRtpBuffSize}, +{"tinyWRAPc::MediaSessionMgr_defaultsGetRtpBuffSize", _wrap_MediaSessionMgr_defaultsGetRtpBuffSize}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAvpfTail", _wrap_MediaSessionMgr_defaultsSetAvpfTail}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetAvpfMode", _wrap_MediaSessionMgr_defaultsSetAvpfMode}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetOpusMaxCaptureRate", _wrap_MediaSessionMgr_defaultsSetOpusMaxCaptureRate}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetOpusMaxPlaybackRate", _wrap_MediaSessionMgr_defaultsSetOpusMaxPlaybackRate}, +{"tinyWRAPc::MediaSessionMgr_defaultsSetMaxFds", _wrap_MediaSessionMgr_defaultsSetMaxFds}, +{"tinyWRAPc::delete_MediaContent", _wrap_delete_MediaContent}, +{"tinyWRAPc::MediaContent_getType", _wrap_MediaContent_getType}, +{"tinyWRAPc::MediaContent_getDataLength", _wrap_MediaContent_getDataLength}, +{"tinyWRAPc::MediaContent_getData", _wrap_MediaContent_getData}, +{"tinyWRAPc::MediaContent_parse", _wrap_MediaContent_parse}, +{"tinyWRAPc::MediaContent_getPayloadLength", _wrap_MediaContent_getPayloadLength}, +{"tinyWRAPc::MediaContent_getPayload", _wrap_MediaContent_getPayload}, +{"tinyWRAPc::delete_MediaContentCPIM", _wrap_delete_MediaContentCPIM}, +{"tinyWRAPc::MediaContentCPIM_getPayloadLength", _wrap_MediaContentCPIM_getPayloadLength}, +{"tinyWRAPc::MediaContentCPIM_getPayload", _wrap_MediaContentCPIM_getPayload}, +{"tinyWRAPc::MediaContentCPIM_getHeaderValue", _wrap_MediaContentCPIM_getHeaderValue}, +{"tinyWRAPc::new_SipUri", _wrap_new_SipUri}, +{"tinyWRAPc::delete_SipUri", _wrap_delete_SipUri}, +{"tinyWRAPc::SipUri_isValid", _wrap_SipUri_isValid}, +{"tinyWRAPc::SipUri_getScheme", _wrap_SipUri_getScheme}, +{"tinyWRAPc::SipUri_getHost", _wrap_SipUri_getHost}, +{"tinyWRAPc::SipUri_getPort", _wrap_SipUri_getPort}, +{"tinyWRAPc::SipUri_getUserName", _wrap_SipUri_getUserName}, +{"tinyWRAPc::SipUri_getPassword", _wrap_SipUri_getPassword}, +{"tinyWRAPc::SipUri_getDisplayName", _wrap_SipUri_getDisplayName}, +{"tinyWRAPc::SipUri_getParamValue", _wrap_SipUri_getParamValue}, +{"tinyWRAPc::SipUri_setDisplayName", _wrap_SipUri_setDisplayName}, +{"tinyWRAPc::new_SdpMessage", _wrap_new_SdpMessage}, +{"tinyWRAPc::delete_SdpMessage", _wrap_delete_SdpMessage}, +{"tinyWRAPc::SdpMessage_getSdpHeaderValue", _wrap_SdpMessage_getSdpHeaderValue}, +{"tinyWRAPc::SdpMessage_getSdpHeaderAValue", _wrap_SdpMessage_getSdpHeaderAValue}, +{"tinyWRAPc::new_SipMessage", _wrap_new_SipMessage}, +{"tinyWRAPc::delete_SipMessage", _wrap_delete_SipMessage}, +{"tinyWRAPc::SipMessage_isResponse", _wrap_SipMessage_isResponse}, +{"tinyWRAPc::SipMessage_getRequestType", _wrap_SipMessage_getRequestType}, +{"tinyWRAPc::SipMessage_getResponseCode", _wrap_SipMessage_getResponseCode}, +{"tinyWRAPc::SipMessage_getResponsePhrase", _wrap_SipMessage_getResponsePhrase}, +{"tinyWRAPc::SipMessage_getSipHeaderValue", _wrap_SipMessage_getSipHeaderValue}, +{"tinyWRAPc::SipMessage_getSipHeaderParamValue", _wrap_SipMessage_getSipHeaderParamValue}, +{"tinyWRAPc::SipMessage_getSipContentLength", _wrap_SipMessage_getSipContentLength}, +{"tinyWRAPc::SipMessage_getSipContent", _wrap_SipMessage_getSipContent}, +{"tinyWRAPc::SipMessage_getSdpMessage", _wrap_SipMessage_getSdpMessage}, +{"tinyWRAPc::delete_SipEvent", _wrap_delete_SipEvent}, +{"tinyWRAPc::SipEvent_getCode", _wrap_SipEvent_getCode}, +{"tinyWRAPc::SipEvent_getPhrase", _wrap_SipEvent_getPhrase}, +{"tinyWRAPc::SipEvent_getBaseSession", _wrap_SipEvent_getBaseSession}, +{"tinyWRAPc::SipEvent_getSipMessage", _wrap_SipEvent_getSipMessage}, +{"tinyWRAPc::delete_DialogEvent", _wrap_delete_DialogEvent}, +{"tinyWRAPc::delete_StackEvent", _wrap_delete_StackEvent}, +{"tinyWRAPc::delete_InviteEvent", _wrap_delete_InviteEvent}, +{"tinyWRAPc::InviteEvent_getType", _wrap_InviteEvent_getType}, +{"tinyWRAPc::InviteEvent_getMediaType", _wrap_InviteEvent_getMediaType}, +{"tinyWRAPc::InviteEvent_getSession", _wrap_InviteEvent_getSession}, +{"tinyWRAPc::InviteEvent_takeCallSessionOwnership", _wrap_InviteEvent_takeCallSessionOwnership}, +{"tinyWRAPc::InviteEvent_takeMsrpSessionOwnership", _wrap_InviteEvent_takeMsrpSessionOwnership}, +{"tinyWRAPc::delete_MessagingEvent", _wrap_delete_MessagingEvent}, +{"tinyWRAPc::MessagingEvent_getType", _wrap_MessagingEvent_getType}, +{"tinyWRAPc::MessagingEvent_getSession", _wrap_MessagingEvent_getSession}, +{"tinyWRAPc::MessagingEvent_takeSessionOwnership", _wrap_MessagingEvent_takeSessionOwnership}, +{"tinyWRAPc::delete_InfoEvent", _wrap_delete_InfoEvent}, +{"tinyWRAPc::InfoEvent_getType", _wrap_InfoEvent_getType}, +{"tinyWRAPc::InfoEvent_getSession", _wrap_InfoEvent_getSession}, +{"tinyWRAPc::InfoEvent_takeSessionOwnership", _wrap_InfoEvent_takeSessionOwnership}, +{"tinyWRAPc::delete_OptionsEvent", _wrap_delete_OptionsEvent}, +{"tinyWRAPc::OptionsEvent_getType", _wrap_OptionsEvent_getType}, +{"tinyWRAPc::OptionsEvent_getSession", _wrap_OptionsEvent_getSession}, +{"tinyWRAPc::OptionsEvent_takeSessionOwnership", _wrap_OptionsEvent_takeSessionOwnership}, +{"tinyWRAPc::delete_PublicationEvent", _wrap_delete_PublicationEvent}, +{"tinyWRAPc::PublicationEvent_getType", _wrap_PublicationEvent_getType}, +{"tinyWRAPc::PublicationEvent_getSession", _wrap_PublicationEvent_getSession}, +{"tinyWRAPc::PublicationEvent_takeSessionOwnership", _wrap_PublicationEvent_takeSessionOwnership}, +{"tinyWRAPc::delete_RegistrationEvent", _wrap_delete_RegistrationEvent}, +{"tinyWRAPc::RegistrationEvent_getType", _wrap_RegistrationEvent_getType}, +{"tinyWRAPc::RegistrationEvent_getSession", _wrap_RegistrationEvent_getSession}, +{"tinyWRAPc::RegistrationEvent_takeSessionOwnership", _wrap_RegistrationEvent_takeSessionOwnership}, +{"tinyWRAPc::delete_SubscriptionEvent", _wrap_delete_SubscriptionEvent}, +{"tinyWRAPc::SubscriptionEvent_getType", _wrap_SubscriptionEvent_getType}, +{"tinyWRAPc::SubscriptionEvent_getSession", _wrap_SubscriptionEvent_getSession}, +{"tinyWRAPc::SubscriptionEvent_takeSessionOwnership", _wrap_SubscriptionEvent_takeSessionOwnership}, +{"tinyWRAPc::delete_T140CallbackData", _wrap_delete_T140CallbackData}, +{"tinyWRAPc::T140CallbackData_getType", _wrap_T140CallbackData_getType}, +{"tinyWRAPc::T140CallbackData_getSize", _wrap_T140CallbackData_getSize}, +{"tinyWRAPc::T140CallbackData_getData", _wrap_T140CallbackData_getData}, +{"tinyWRAPc::new_T140Callback", _wrap_new_T140Callback}, +{"tinyWRAPc::delete_T140Callback", _wrap_delete_T140Callback}, +{"tinyWRAPc::T140Callback_ondata", _wrap_T140Callback_ondata}, +{"tinyWRAPc::new_SipSession", _wrap_new_SipSession}, +{"tinyWRAPc::delete_SipSession", _wrap_delete_SipSession}, +{"tinyWRAPc::SipSession_haveOwnership", _wrap_SipSession_haveOwnership}, +{"tinyWRAPc::SipSession_addHeader", _wrap_SipSession_addHeader}, +{"tinyWRAPc::SipSession_removeHeader", _wrap_SipSession_removeHeader}, +{"tinyWRAPc::SipSession_addCaps", _wrap_SipSession_addCaps}, +{"tinyWRAPc::SipSession_removeCaps", _wrap_SipSession_removeCaps}, +{"tinyWRAPc::SipSession_setExpires", _wrap_SipSession_setExpires}, +{"tinyWRAPc::SipSession_setFromUri", _wrap_SipSession_setFromUri}, +{"tinyWRAPc::SipSession_setToUri", _wrap_SipSession_setToUri}, +{"tinyWRAPc::SipSession_setSilentHangup", _wrap_SipSession_setSilentHangup}, +{"tinyWRAPc::SipSession_addSigCompCompartment", _wrap_SipSession_addSigCompCompartment}, +{"tinyWRAPc::SipSession_removeSigCompCompartment", _wrap_SipSession_removeSigCompCompartment}, +{"tinyWRAPc::SipSession_getId", _wrap_SipSession_getId}, +{"tinyWRAPc::new_InviteSession", _wrap_new_InviteSession}, +{"tinyWRAPc::delete_InviteSession", _wrap_delete_InviteSession}, +{"tinyWRAPc::InviteSession_accept", _wrap_InviteSession_accept}, +{"tinyWRAPc::InviteSession_hangup", _wrap_InviteSession_hangup}, +{"tinyWRAPc::InviteSession_reject", _wrap_InviteSession_reject}, +{"tinyWRAPc::InviteSession_sendInfo", _wrap_InviteSession_sendInfo}, +{"tinyWRAPc::InviteSession_getMediaMgr", _wrap_InviteSession_getMediaMgr}, +{"tinyWRAPc::new_CallSession", _wrap_new_CallSession}, +{"tinyWRAPc::delete_CallSession", _wrap_delete_CallSession}, +{"tinyWRAPc::CallSession_callAudio", _wrap_CallSession_callAudio}, +{"tinyWRAPc::CallSession_callAudioVideo", _wrap_CallSession_callAudioVideo}, +{"tinyWRAPc::CallSession_callVideo", _wrap_CallSession_callVideo}, +{"tinyWRAPc::CallSession_call", _wrap_CallSession_call}, +{"tinyWRAPc::CallSession_setSessionTimer", _wrap_CallSession_setSessionTimer}, +{"tinyWRAPc::CallSession_set100rel", _wrap_CallSession_set100rel}, +{"tinyWRAPc::CallSession_setRtcp", _wrap_CallSession_setRtcp}, +{"tinyWRAPc::CallSession_setRtcpMux", _wrap_CallSession_setRtcpMux}, +{"tinyWRAPc::CallSession_setSRtpMode", _wrap_CallSession_setSRtpMode}, +{"tinyWRAPc::CallSession_setAvpfMode", _wrap_CallSession_setAvpfMode}, +{"tinyWRAPc::CallSession_setICE", _wrap_CallSession_setICE}, +{"tinyWRAPc::CallSession_setICEStun", _wrap_CallSession_setICEStun}, +{"tinyWRAPc::CallSession_setICETurn", _wrap_CallSession_setICETurn}, +{"tinyWRAPc::CallSession_setSTUNServer", _wrap_CallSession_setSTUNServer}, +{"tinyWRAPc::CallSession_setSTUNCred", _wrap_CallSession_setSTUNCred}, +{"tinyWRAPc::CallSession_setVideoFps", _wrap_CallSession_setVideoFps}, +{"tinyWRAPc::CallSession_setVideoBandwidthUploadMax", _wrap_CallSession_setVideoBandwidthUploadMax}, +{"tinyWRAPc::CallSession_setVideoBandwidthDownloadMax", _wrap_CallSession_setVideoBandwidthDownloadMax}, +{"tinyWRAPc::CallSession_setVideoPrefSize", _wrap_CallSession_setVideoPrefSize}, +{"tinyWRAPc::CallSession_setQoS", _wrap_CallSession_setQoS}, +{"tinyWRAPc::CallSession_hold", _wrap_CallSession_hold}, +{"tinyWRAPc::CallSession_resume", _wrap_CallSession_resume}, +{"tinyWRAPc::CallSession_transfer", _wrap_CallSession_transfer}, +{"tinyWRAPc::CallSession_acceptTransfer", _wrap_CallSession_acceptTransfer}, +{"tinyWRAPc::CallSession_rejectTransfer", _wrap_CallSession_rejectTransfer}, +{"tinyWRAPc::CallSession_sendDTMF", _wrap_CallSession_sendDTMF}, +{"tinyWRAPc::CallSession_getSessionTransferId", _wrap_CallSession_getSessionTransferId}, +{"tinyWRAPc::CallSession_sendT140Data", _wrap_CallSession_sendT140Data}, +{"tinyWRAPc::CallSession_setT140Callback", _wrap_CallSession_setT140Callback}, +{"tinyWRAPc::new_MsrpSession", _wrap_new_MsrpSession}, +{"tinyWRAPc::delete_MsrpSession", _wrap_delete_MsrpSession}, +{"tinyWRAPc::MsrpSession_setCallback", _wrap_MsrpSession_setCallback}, +{"tinyWRAPc::MsrpSession_callMsrp", _wrap_MsrpSession_callMsrp}, +{"tinyWRAPc::MsrpSession_sendMessage", _wrap_MsrpSession_sendMessage}, +{"tinyWRAPc::MsrpSession_sendFile", _wrap_MsrpSession_sendFile}, +{"tinyWRAPc::new_MessagingSession", _wrap_new_MessagingSession}, +{"tinyWRAPc::delete_MessagingSession", _wrap_delete_MessagingSession}, +{"tinyWRAPc::MessagingSession_send", _wrap_MessagingSession_send}, +{"tinyWRAPc::MessagingSession_accept", _wrap_MessagingSession_accept}, +{"tinyWRAPc::MessagingSession_reject", _wrap_MessagingSession_reject}, +{"tinyWRAPc::new_InfoSession", _wrap_new_InfoSession}, +{"tinyWRAPc::delete_InfoSession", _wrap_delete_InfoSession}, +{"tinyWRAPc::InfoSession_send", _wrap_InfoSession_send}, +{"tinyWRAPc::InfoSession_accept", _wrap_InfoSession_accept}, +{"tinyWRAPc::InfoSession_reject", _wrap_InfoSession_reject}, +{"tinyWRAPc::new_OptionsSession", _wrap_new_OptionsSession}, +{"tinyWRAPc::delete_OptionsSession", _wrap_delete_OptionsSession}, +{"tinyWRAPc::OptionsSession_send", _wrap_OptionsSession_send}, +{"tinyWRAPc::OptionsSession_accept", _wrap_OptionsSession_accept}, +{"tinyWRAPc::OptionsSession_reject", _wrap_OptionsSession_reject}, +{"tinyWRAPc::new_PublicationSession", _wrap_new_PublicationSession}, +{"tinyWRAPc::delete_PublicationSession", _wrap_delete_PublicationSession}, +{"tinyWRAPc::PublicationSession_publish", _wrap_PublicationSession_publish}, +{"tinyWRAPc::PublicationSession_unPublish", _wrap_PublicationSession_unPublish}, +{"tinyWRAPc::new_RegistrationSession", _wrap_new_RegistrationSession}, +{"tinyWRAPc::delete_RegistrationSession", _wrap_delete_RegistrationSession}, +{"tinyWRAPc::RegistrationSession_register_", _wrap_RegistrationSession_register_}, +{"tinyWRAPc::RegistrationSession_unRegister", _wrap_RegistrationSession_unRegister}, +{"tinyWRAPc::RegistrationSession_accept", _wrap_RegistrationSession_accept}, +{"tinyWRAPc::RegistrationSession_reject", _wrap_RegistrationSession_reject}, +{"tinyWRAPc::new_SubscriptionSession", _wrap_new_SubscriptionSession}, +{"tinyWRAPc::delete_SubscriptionSession", _wrap_delete_SubscriptionSession}, +{"tinyWRAPc::SubscriptionSession_subscribe", _wrap_SubscriptionSession_subscribe}, +{"tinyWRAPc::SubscriptionSession_unSubscribe", _wrap_SubscriptionSession_unSubscribe}, +{"tinyWRAPc::delete_ProxyPluginMgr", _wrap_delete_ProxyPluginMgr}, +{"tinyWRAPc::ProxyPluginMgr_createInstance", _wrap_ProxyPluginMgr_createInstance}, +{"tinyWRAPc::ProxyPluginMgr_getInstance", _wrap_ProxyPluginMgr_getInstance}, +{"tinyWRAPc::ProxyPluginMgr_findPlugin", _wrap_ProxyPluginMgr_findPlugin}, +{"tinyWRAPc::ProxyPluginMgr_findAudioConsumer", _wrap_ProxyPluginMgr_findAudioConsumer}, +{"tinyWRAPc::ProxyPluginMgr_findVideoConsumer", _wrap_ProxyPluginMgr_findVideoConsumer}, +{"tinyWRAPc::ProxyPluginMgr_findAudioProducer", _wrap_ProxyPluginMgr_findAudioProducer}, +{"tinyWRAPc::ProxyPluginMgr_findVideoProducer", _wrap_ProxyPluginMgr_findVideoProducer}, +{"tinyWRAPc::new_ProxyPluginMgrCallback", _wrap_new_ProxyPluginMgrCallback}, +{"tinyWRAPc::delete_ProxyPluginMgrCallback", _wrap_delete_ProxyPluginMgrCallback}, +{"tinyWRAPc::ProxyPluginMgrCallback_OnPluginCreated", _wrap_ProxyPluginMgrCallback_OnPluginCreated}, +{"tinyWRAPc::ProxyPluginMgrCallback_OnPluginDestroyed", _wrap_ProxyPluginMgrCallback_OnPluginDestroyed}, +{"tinyWRAPc::delete_ProxyPlugin", _wrap_delete_ProxyPlugin}, +{"tinyWRAPc::ProxyPlugin_getType", _wrap_ProxyPlugin_getType}, +{"tinyWRAPc::ProxyPlugin_getId", _wrap_ProxyPlugin_getId}, +{"tinyWRAPc::new_ProxyAudioConsumerCallback", _wrap_new_ProxyAudioConsumerCallback}, +{"tinyWRAPc::delete_ProxyAudioConsumerCallback", _wrap_delete_ProxyAudioConsumerCallback}, +{"tinyWRAPc::ProxyAudioConsumerCallback_prepare", _wrap_ProxyAudioConsumerCallback_prepare}, +{"tinyWRAPc::ProxyAudioConsumerCallback_start", _wrap_ProxyAudioConsumerCallback_start}, +{"tinyWRAPc::ProxyAudioConsumerCallback_pause", _wrap_ProxyAudioConsumerCallback_pause}, +{"tinyWRAPc::ProxyAudioConsumerCallback_stop", _wrap_ProxyAudioConsumerCallback_stop}, +{"tinyWRAPc::delete_ProxyAudioConsumer", _wrap_delete_ProxyAudioConsumer}, +{"tinyWRAPc::ProxyAudioConsumer_setActualSndCardPlaybackParams", _wrap_ProxyAudioConsumer_setActualSndCardPlaybackParams}, +{"tinyWRAPc::ProxyAudioConsumer_queryForResampler", _wrap_ProxyAudioConsumer_queryForResampler}, +{"tinyWRAPc::ProxyAudioConsumer_setPullBuffer", _wrap_ProxyAudioConsumer_setPullBuffer}, +{"tinyWRAPc::ProxyAudioConsumer_pull", _wrap_ProxyAudioConsumer_pull}, +{"tinyWRAPc::ProxyAudioConsumer_setGain", _wrap_ProxyAudioConsumer_setGain}, +{"tinyWRAPc::ProxyAudioConsumer_getGain", _wrap_ProxyAudioConsumer_getGain}, +{"tinyWRAPc::ProxyAudioConsumer_reset", _wrap_ProxyAudioConsumer_reset}, +{"tinyWRAPc::ProxyAudioConsumer_setCallback", _wrap_ProxyAudioConsumer_setCallback}, +{"tinyWRAPc::ProxyAudioConsumer_getMediaSessionId", _wrap_ProxyAudioConsumer_getMediaSessionId}, +{"tinyWRAPc::ProxyAudioConsumer_registerPlugin", _wrap_ProxyAudioConsumer_registerPlugin}, +{"tinyWRAPc::new_ProxyVideoConsumerCallback", _wrap_new_ProxyVideoConsumerCallback}, +{"tinyWRAPc::delete_ProxyVideoConsumerCallback", _wrap_delete_ProxyVideoConsumerCallback}, +{"tinyWRAPc::ProxyVideoConsumerCallback_prepare", _wrap_ProxyVideoConsumerCallback_prepare}, +{"tinyWRAPc::ProxyVideoConsumerCallback_consume", _wrap_ProxyVideoConsumerCallback_consume}, +{"tinyWRAPc::ProxyVideoConsumerCallback_bufferCopied", _wrap_ProxyVideoConsumerCallback_bufferCopied}, +{"tinyWRAPc::ProxyVideoConsumerCallback_start", _wrap_ProxyVideoConsumerCallback_start}, +{"tinyWRAPc::ProxyVideoConsumerCallback_pause", _wrap_ProxyVideoConsumerCallback_pause}, +{"tinyWRAPc::ProxyVideoConsumerCallback_stop", _wrap_ProxyVideoConsumerCallback_stop}, +{"tinyWRAPc::delete_ProxyVideoConsumer", _wrap_delete_ProxyVideoConsumer}, +{"tinyWRAPc::ProxyVideoConsumer_setDisplaySize", _wrap_ProxyVideoConsumer_setDisplaySize}, +{"tinyWRAPc::ProxyVideoConsumer_getDisplayWidth", _wrap_ProxyVideoConsumer_getDisplayWidth}, +{"tinyWRAPc::ProxyVideoConsumer_getDisplayHeight", _wrap_ProxyVideoConsumer_getDisplayHeight}, +{"tinyWRAPc::ProxyVideoConsumer_getDecodedWidth", _wrap_ProxyVideoConsumer_getDecodedWidth}, +{"tinyWRAPc::ProxyVideoConsumer_getDecodedHeight", _wrap_ProxyVideoConsumer_getDecodedHeight}, +{"tinyWRAPc::ProxyVideoConsumer_setCallback", _wrap_ProxyVideoConsumer_setCallback}, +{"tinyWRAPc::ProxyVideoConsumer_setAutoResizeDisplay", _wrap_ProxyVideoConsumer_setAutoResizeDisplay}, +{"tinyWRAPc::ProxyVideoConsumer_getAutoResizeDisplay", _wrap_ProxyVideoConsumer_getAutoResizeDisplay}, +{"tinyWRAPc::ProxyVideoConsumer_setConsumeBuffer", _wrap_ProxyVideoConsumer_setConsumeBuffer}, +{"tinyWRAPc::ProxyVideoConsumer_pull", _wrap_ProxyVideoConsumer_pull}, +{"tinyWRAPc::ProxyVideoConsumer_reset", _wrap_ProxyVideoConsumer_reset}, +{"tinyWRAPc::ProxyVideoConsumer_getMediaSessionId", _wrap_ProxyVideoConsumer_getMediaSessionId}, +{"tinyWRAPc::ProxyVideoConsumer_registerPlugin", _wrap_ProxyVideoConsumer_registerPlugin}, +{"tinyWRAPc::ProxyVideoConsumer_setDefaultChroma", _wrap_ProxyVideoConsumer_setDefaultChroma}, +{"tinyWRAPc::ProxyVideoConsumer_setDefaultAutoResizeDisplay", _wrap_ProxyVideoConsumer_setDefaultAutoResizeDisplay}, +{"tinyWRAPc::delete_ProxyVideoFrame", _wrap_delete_ProxyVideoFrame}, +{"tinyWRAPc::ProxyVideoFrame_getSize", _wrap_ProxyVideoFrame_getSize}, +{"tinyWRAPc::ProxyVideoFrame_getContent", _wrap_ProxyVideoFrame_getContent}, +{"tinyWRAPc::ProxyVideoFrame_getFrameWidth", _wrap_ProxyVideoFrame_getFrameWidth}, +{"tinyWRAPc::ProxyVideoFrame_getFrameHeight", _wrap_ProxyVideoFrame_getFrameHeight}, +{"tinyWRAPc::new_ProxyAudioProducerCallback", _wrap_new_ProxyAudioProducerCallback}, +{"tinyWRAPc::delete_ProxyAudioProducerCallback", _wrap_delete_ProxyAudioProducerCallback}, +{"tinyWRAPc::ProxyAudioProducerCallback_prepare", _wrap_ProxyAudioProducerCallback_prepare}, +{"tinyWRAPc::ProxyAudioProducerCallback_start", _wrap_ProxyAudioProducerCallback_start}, +{"tinyWRAPc::ProxyAudioProducerCallback_pause", _wrap_ProxyAudioProducerCallback_pause}, +{"tinyWRAPc::ProxyAudioProducerCallback_stop", _wrap_ProxyAudioProducerCallback_stop}, +{"tinyWRAPc::ProxyAudioProducerCallback_fillPushBuffer", _wrap_ProxyAudioProducerCallback_fillPushBuffer}, +{"tinyWRAPc::delete_ProxyAudioProducer", _wrap_delete_ProxyAudioProducer}, +{"tinyWRAPc::ProxyAudioProducer_setActualSndCardRecordParams", _wrap_ProxyAudioProducer_setActualSndCardRecordParams}, +{"tinyWRAPc::ProxyAudioProducer_setPushBuffer", _wrap_ProxyAudioProducer_setPushBuffer}, +{"tinyWRAPc::ProxyAudioProducer_push", _wrap_ProxyAudioProducer_push}, +{"tinyWRAPc::ProxyAudioProducer_setGain", _wrap_ProxyAudioProducer_setGain}, +{"tinyWRAPc::ProxyAudioProducer_getGain", _wrap_ProxyAudioProducer_getGain}, +{"tinyWRAPc::ProxyAudioProducer_setCallback", _wrap_ProxyAudioProducer_setCallback}, +{"tinyWRAPc::ProxyAudioProducer_getMediaSessionId", _wrap_ProxyAudioProducer_getMediaSessionId}, +{"tinyWRAPc::ProxyAudioProducer_registerPlugin", _wrap_ProxyAudioProducer_registerPlugin}, +{"tinyWRAPc::new_ProxyVideoProducerCallback", _wrap_new_ProxyVideoProducerCallback}, +{"tinyWRAPc::delete_ProxyVideoProducerCallback", _wrap_delete_ProxyVideoProducerCallback}, +{"tinyWRAPc::ProxyVideoProducerCallback_prepare", _wrap_ProxyVideoProducerCallback_prepare}, +{"tinyWRAPc::ProxyVideoProducerCallback_start", _wrap_ProxyVideoProducerCallback_start}, +{"tinyWRAPc::ProxyVideoProducerCallback_pause", _wrap_ProxyVideoProducerCallback_pause}, +{"tinyWRAPc::ProxyVideoProducerCallback_stop", _wrap_ProxyVideoProducerCallback_stop}, +{"tinyWRAPc::delete_ProxyVideoProducer", _wrap_delete_ProxyVideoProducer}, +{"tinyWRAPc::ProxyVideoProducer_getRotation", _wrap_ProxyVideoProducer_getRotation}, +{"tinyWRAPc::ProxyVideoProducer_setRotation", _wrap_ProxyVideoProducer_setRotation}, +{"tinyWRAPc::ProxyVideoProducer_getMirror", _wrap_ProxyVideoProducer_getMirror}, +{"tinyWRAPc::ProxyVideoProducer_setMirror", _wrap_ProxyVideoProducer_setMirror}, +{"tinyWRAPc::ProxyVideoProducer_setActualCameraOutputSize", _wrap_ProxyVideoProducer_setActualCameraOutputSize}, +{"tinyWRAPc::ProxyVideoProducer_push", _wrap_ProxyVideoProducer_push}, +{"tinyWRAPc::ProxyVideoProducer_setCallback", _wrap_ProxyVideoProducer_setCallback}, +{"tinyWRAPc::ProxyVideoProducer_getMediaSessionId", _wrap_ProxyVideoProducer_getMediaSessionId}, +{"tinyWRAPc::ProxyVideoProducer_registerPlugin", _wrap_ProxyVideoProducer_registerPlugin}, +{"tinyWRAPc::ProxyVideoProducer_setDefaultChroma", _wrap_ProxyVideoProducer_setDefaultChroma}, +{"tinyWRAPc::new_SipCallback", _wrap_new_SipCallback}, +{"tinyWRAPc::delete_SipCallback", _wrap_delete_SipCallback}, +{"tinyWRAPc::SipCallback_OnDialogEvent", _wrap_SipCallback_OnDialogEvent}, +{"tinyWRAPc::SipCallback_OnStackEvent", _wrap_SipCallback_OnStackEvent}, +{"tinyWRAPc::SipCallback_OnInviteEvent", _wrap_SipCallback_OnInviteEvent}, +{"tinyWRAPc::SipCallback_OnMessagingEvent", _wrap_SipCallback_OnMessagingEvent}, +{"tinyWRAPc::SipCallback_OnInfoEvent", _wrap_SipCallback_OnInfoEvent}, +{"tinyWRAPc::SipCallback_OnOptionsEvent", _wrap_SipCallback_OnOptionsEvent}, +{"tinyWRAPc::SipCallback_OnPublicationEvent", _wrap_SipCallback_OnPublicationEvent}, +{"tinyWRAPc::SipCallback_OnRegistrationEvent", _wrap_SipCallback_OnRegistrationEvent}, +{"tinyWRAPc::SipCallback_OnSubscriptionEvent", _wrap_SipCallback_OnSubscriptionEvent}, +{"tinyWRAPc::new_SafeObject", _wrap_new_SafeObject}, +{"tinyWRAPc::delete_SafeObject", _wrap_delete_SafeObject}, +{"tinyWRAPc::SafeObject_Lock", _wrap_SafeObject_Lock}, +{"tinyWRAPc::SafeObject_UnLock", _wrap_SafeObject_UnLock}, +{"tinyWRAPc::new_SipStack", _wrap_new_SipStack}, +{"tinyWRAPc::delete_SipStack", _wrap_delete_SipStack}, +{"tinyWRAPc::SipStack_start", _wrap_SipStack_start}, +{"tinyWRAPc::SipStack_setDebugCallback", _wrap_SipStack_setDebugCallback}, +{"tinyWRAPc::SipStack_setDisplayName", _wrap_SipStack_setDisplayName}, +{"tinyWRAPc::SipStack_setRealm", _wrap_SipStack_setRealm}, +{"tinyWRAPc::SipStack_setIMPI", _wrap_SipStack_setIMPI}, +{"tinyWRAPc::SipStack_setIMPU", _wrap_SipStack_setIMPU}, +{"tinyWRAPc::SipStack_setPassword", _wrap_SipStack_setPassword}, +{"tinyWRAPc::SipStack_setAMF", _wrap_SipStack_setAMF}, +{"tinyWRAPc::SipStack_setOperatorId", _wrap_SipStack_setOperatorId}, +{"tinyWRAPc::SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF}, +{"tinyWRAPc::SipStack_setLocalIP", _wrap_SipStack_setLocalIP}, +{"tinyWRAPc::SipStack_setLocalPort", _wrap_SipStack_setLocalPort}, +{"tinyWRAPc::SipStack_setEarlyIMS", _wrap_SipStack_setEarlyIMS}, +{"tinyWRAPc::SipStack_addHeader", _wrap_SipStack_addHeader}, +{"tinyWRAPc::SipStack_removeHeader", _wrap_SipStack_removeHeader}, +{"tinyWRAPc::SipStack_addDnsServer", _wrap_SipStack_addDnsServer}, +{"tinyWRAPc::SipStack_setDnsDiscovery", _wrap_SipStack_setDnsDiscovery}, +{"tinyWRAPc::SipStack_setAoR", _wrap_SipStack_setAoR}, +{"tinyWRAPc::SipStack_setSigCompParams", _wrap_SipStack_setSigCompParams}, +{"tinyWRAPc::SipStack_addSigCompCompartment", _wrap_SipStack_addSigCompCompartment}, +{"tinyWRAPc::SipStack_removeSigCompCompartment", _wrap_SipStack_removeSigCompCompartment}, +{"tinyWRAPc::SipStack_setSTUNEnabledForICE", _wrap_SipStack_setSTUNEnabledForICE}, +{"tinyWRAPc::SipStack_setSTUNServer", _wrap_SipStack_setSTUNServer}, +{"tinyWRAPc::SipStack_setSTUNCred", _wrap_SipStack_setSTUNCred}, +{"tinyWRAPc::SipStack_setSTUNEnabled", _wrap_SipStack_setSTUNEnabled}, +{"tinyWRAPc::SipStack_setTLSSecAgree", _wrap_SipStack_setTLSSecAgree}, +{"tinyWRAPc::SipStack_setSSLCertificates", _wrap_SipStack_setSSLCertificates}, +{"tinyWRAPc::SipStack_setSSLCretificates", _wrap_SipStack_setSSLCretificates}, +{"tinyWRAPc::SipStack_setIPSecSecAgree", _wrap_SipStack_setIPSecSecAgree}, +{"tinyWRAPc::SipStack_setIPSecParameters", _wrap_SipStack_setIPSecParameters}, +{"tinyWRAPc::SipStack_dnsENUM", _wrap_SipStack_dnsENUM}, +{"tinyWRAPc::SipStack_dnsNaptrSrv", _wrap_SipStack_dnsNaptrSrv}, +{"tinyWRAPc::SipStack_dnsSrv", _wrap_SipStack_dnsSrv}, +{"tinyWRAPc::SipStack_setMaxFDs", _wrap_SipStack_setMaxFDs}, +{"tinyWRAPc::SipStack_getLocalIPnPort", _wrap_SipStack_getLocalIPnPort}, +{"tinyWRAPc::SipStack_getPreferredIdentity", _wrap_SipStack_getPreferredIdentity}, +{"tinyWRAPc::SipStack_isValid", _wrap_SipStack_isValid}, +{"tinyWRAPc::SipStack_stop", _wrap_SipStack_stop}, +{"tinyWRAPc::SipStack_initialize", _wrap_SipStack_initialize}, +{"tinyWRAPc::SipStack_deInitialize", _wrap_SipStack_deInitialize}, +{"tinyWRAPc::SipStack_setCodecs", _wrap_SipStack_setCodecs}, +{"tinyWRAPc::SipStack_setCodecs_2", _wrap_SipStack_setCodecs_2}, +{"tinyWRAPc::SipStack_setCodecPriority", _wrap_SipStack_setCodecPriority}, +{"tinyWRAPc::SipStack_setCodecPriority_2", _wrap_SipStack_setCodecPriority_2}, +{"tinyWRAPc::SipStack_isCodecSupported", _wrap_SipStack_isCodecSupported}, +{"tinyWRAPc::SipStack_isIPSecSupported", _wrap_SipStack_isIPSecSupported}, +{"tinyWRAPc::new_XcapSelector", _wrap_new_XcapSelector}, +{"tinyWRAPc::delete_XcapSelector", _wrap_delete_XcapSelector}, +{"tinyWRAPc::XcapSelector_setAUID", _wrap_XcapSelector_setAUID}, +{"tinyWRAPc::XcapSelector_setName", _wrap_XcapSelector_setName}, +{"tinyWRAPc::XcapSelector_setAttribute", _wrap_XcapSelector_setAttribute}, +{"tinyWRAPc::XcapSelector_setPos", _wrap_XcapSelector_setPos}, +{"tinyWRAPc::XcapSelector_setPosAttribute", _wrap_XcapSelector_setPosAttribute}, +{"tinyWRAPc::XcapSelector_setNamespace", _wrap_XcapSelector_setNamespace}, +{"tinyWRAPc::XcapSelector_getString", _wrap_XcapSelector_getString}, +{"tinyWRAPc::XcapSelector_reset", _wrap_XcapSelector_reset}, +{"tinyWRAPc::new_XcapMessage", _wrap_new_XcapMessage}, +{"tinyWRAPc::delete_XcapMessage", _wrap_delete_XcapMessage}, +{"tinyWRAPc::XcapMessage_getCode", _wrap_XcapMessage_getCode}, +{"tinyWRAPc::XcapMessage_getPhrase", _wrap_XcapMessage_getPhrase}, +{"tinyWRAPc::XcapMessage_getXcapHeaderValue", _wrap_XcapMessage_getXcapHeaderValue}, +{"tinyWRAPc::XcapMessage_getXcapHeaderParamValue", _wrap_XcapMessage_getXcapHeaderParamValue}, +{"tinyWRAPc::XcapMessage_getXcapContentLength", _wrap_XcapMessage_getXcapContentLength}, +{"tinyWRAPc::XcapMessage_getXcapContent", _wrap_XcapMessage_getXcapContent}, +{"tinyWRAPc::delete_XcapEvent", _wrap_delete_XcapEvent}, +{"tinyWRAPc::XcapEvent_getType", _wrap_XcapEvent_getType}, +{"tinyWRAPc::XcapEvent_getXcapMessage", _wrap_XcapEvent_getXcapMessage}, +{"tinyWRAPc::new_XcapCallback", _wrap_new_XcapCallback}, +{"tinyWRAPc::delete_XcapCallback", _wrap_delete_XcapCallback}, +{"tinyWRAPc::XcapCallback_onEvent", _wrap_XcapCallback_onEvent}, +{"tinyWRAPc::new_XcapStack", _wrap_new_XcapStack}, +{"tinyWRAPc::delete_XcapStack", _wrap_delete_XcapStack}, +{"tinyWRAPc::XcapStack_registerAUID", _wrap_XcapStack_registerAUID}, +{"tinyWRAPc::XcapStack_start", _wrap_XcapStack_start}, +{"tinyWRAPc::XcapStack_setCredentials", _wrap_XcapStack_setCredentials}, +{"tinyWRAPc::XcapStack_setXcapRoot", _wrap_XcapStack_setXcapRoot}, +{"tinyWRAPc::XcapStack_setLocalIP", _wrap_XcapStack_setLocalIP}, +{"tinyWRAPc::XcapStack_setLocalPort", _wrap_XcapStack_setLocalPort}, +{"tinyWRAPc::XcapStack_addHeader", _wrap_XcapStack_addHeader}, +{"tinyWRAPc::XcapStack_removeHeader", _wrap_XcapStack_removeHeader}, +{"tinyWRAPc::XcapStack_setTimeout", _wrap_XcapStack_setTimeout}, +{"tinyWRAPc::XcapStack_getDocument", _wrap_XcapStack_getDocument}, +{"tinyWRAPc::XcapStack_getElement", _wrap_XcapStack_getElement}, +{"tinyWRAPc::XcapStack_getAttribute", _wrap_XcapStack_getAttribute}, +{"tinyWRAPc::XcapStack_deleteDocument", _wrap_XcapStack_deleteDocument}, +{"tinyWRAPc::XcapStack_deleteElement", _wrap_XcapStack_deleteElement}, +{"tinyWRAPc::XcapStack_deleteAttribute", _wrap_XcapStack_deleteAttribute}, +{"tinyWRAPc::XcapStack_putDocument", _wrap_XcapStack_putDocument}, +{"tinyWRAPc::XcapStack_putElement", _wrap_XcapStack_putElement}, +{"tinyWRAPc::XcapStack_putAttribute", _wrap_XcapStack_putAttribute}, +{"tinyWRAPc::XcapStack_stop", _wrap_XcapStack_stop}, +{"tinyWRAPc::new_RPMessage", _wrap_new_RPMessage}, +{"tinyWRAPc::delete_RPMessage", _wrap_delete_RPMessage}, +{"tinyWRAPc::RPMessage_getType", _wrap_RPMessage_getType}, +{"tinyWRAPc::RPMessage_getPayloadLength", _wrap_RPMessage_getPayloadLength}, +{"tinyWRAPc::RPMessage_getPayload", _wrap_RPMessage_getPayload}, +{"tinyWRAPc::new_SMSData", _wrap_new_SMSData}, +{"tinyWRAPc::delete_SMSData", _wrap_delete_SMSData}, +{"tinyWRAPc::SMSData_getType", _wrap_SMSData_getType}, +{"tinyWRAPc::SMSData_getMR", _wrap_SMSData_getMR}, +{"tinyWRAPc::SMSData_getPayloadLength", _wrap_SMSData_getPayloadLength}, +{"tinyWRAPc::SMSData_getPayload", _wrap_SMSData_getPayload}, +{"tinyWRAPc::SMSData_getOA", _wrap_SMSData_getOA}, +{"tinyWRAPc::SMSData_getDA", _wrap_SMSData_getDA}, +{"tinyWRAPc::SMSEncoder_encodeSubmit", _wrap_SMSEncoder_encodeSubmit}, +{"tinyWRAPc::SMSEncoder_encodeDeliver", _wrap_SMSEncoder_encodeDeliver}, +{"tinyWRAPc::SMSEncoder_encodeACK", _wrap_SMSEncoder_encodeACK}, +{"tinyWRAPc::SMSEncoder_encodeError", _wrap_SMSEncoder_encodeError}, +{"tinyWRAPc::SMSEncoder_decode", _wrap_SMSEncoder_decode}, +{"tinyWRAPc::delete_SMSEncoder", _wrap_delete_SMSEncoder}, +{"tinyWRAPc::new_MsrpMessage", _wrap_new_MsrpMessage}, +{"tinyWRAPc::delete_MsrpMessage", _wrap_delete_MsrpMessage}, +{"tinyWRAPc::MsrpMessage_isRequest", _wrap_MsrpMessage_isRequest}, +{"tinyWRAPc::MsrpMessage_getCode", _wrap_MsrpMessage_getCode}, +{"tinyWRAPc::MsrpMessage_getPhrase", _wrap_MsrpMessage_getPhrase}, +{"tinyWRAPc::MsrpMessage_getRequestType", _wrap_MsrpMessage_getRequestType}, +{"tinyWRAPc::MsrpMessage_getByteRange", _wrap_MsrpMessage_getByteRange}, +{"tinyWRAPc::MsrpMessage_isLastChunck", _wrap_MsrpMessage_isLastChunck}, +{"tinyWRAPc::MsrpMessage_isFirstChunck", _wrap_MsrpMessage_isFirstChunck}, +{"tinyWRAPc::MsrpMessage_isSuccessReport", _wrap_MsrpMessage_isSuccessReport}, +{"tinyWRAPc::MsrpMessage_getMsrpHeaderValue", _wrap_MsrpMessage_getMsrpHeaderValue}, +{"tinyWRAPc::MsrpMessage_getMsrpHeaderParamValue", _wrap_MsrpMessage_getMsrpHeaderParamValue}, +{"tinyWRAPc::MsrpMessage_getMsrpContentLength", _wrap_MsrpMessage_getMsrpContentLength}, +{"tinyWRAPc::MsrpMessage_getMsrpContent", _wrap_MsrpMessage_getMsrpContent}, +{"tinyWRAPc::delete_MsrpEvent", _wrap_delete_MsrpEvent}, +{"tinyWRAPc::MsrpEvent_getType", _wrap_MsrpEvent_getType}, +{"tinyWRAPc::MsrpEvent_getSipSession", _wrap_MsrpEvent_getSipSession}, +{"tinyWRAPc::MsrpEvent_getMessage", _wrap_MsrpEvent_getMessage}, +{"tinyWRAPc::new_MsrpCallback", _wrap_new_MsrpCallback}, +{"tinyWRAPc::delete_MsrpCallback", _wrap_delete_MsrpCallback}, +{"tinyWRAPc::MsrpCallback_OnEvent", _wrap_MsrpCallback_OnEvent}, +{0,0} +}; +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" +#endif + +XS(SWIG_init) { + dXSARGS; + int i; + + SWIG_InitializeModule(0); + + /* Install commands */ + for (i = 0; swig_commands[i].name; i++) { + /* Casts only needed for Perl < 5.10. */ +#ifdef __cplusplus + newXS(const_cast(swig_commands[i].name), swig_commands[i].wrapper, const_cast(__FILE__)); +#else + newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__); +#endif + } + + /* Install variables */ + for (i = 0; swig_variables[i].name; i++) { + SV *sv; + sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); + if (swig_variables[i].type) { + SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); + } else { + sv_setiv(sv,(IV) 0); + } + swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); + } + + /* Install constant */ + for (i = 0; swig_constants[i].type; i++) { + SV *sv; + sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); + switch(swig_constants[i].type) { + case SWIG_INT: + sv_setiv(sv, (IV) swig_constants[i].lvalue); + break; + case SWIG_FLOAT: + sv_setnv(sv, (double) swig_constants[i].dvalue); + break; + case SWIG_STRING: + sv_setpv(sv, (const char *) swig_constants[i].pvalue); + break; + case SWIG_POINTER: + SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); + break; + case SWIG_BINARY: + SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); + break; + default: + break; + } + SvREADONLY_on(sv); + } + + SWIG_TypeClientData(SWIGTYPE_p_DDebugCallback, (void*) "tinyWRAP::DDebugCallback"); + SWIG_TypeClientData(SWIGTYPE_p_AudioResampler, (void*) "tinyWRAP::AudioResampler"); + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_audio", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_audio))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_video", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_video))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_msrp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_msrp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_t140", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_t140))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_bfcp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_bfcp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_bfcp_audio", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_bfcp_audio))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_bfcp_video", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_bfcp_video))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_audiovideo", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_audiovideo))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_media_audio_video", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_media_audio_video))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + SWIG_TypeClientData(SWIGTYPE_p_ActionConfig, (void*) "tinyWRAP::ActionConfig"); + SWIG_TypeClientData(SWIGTYPE_p_Codec, (void*) "tinyWRAP::Codec"); + SWIG_TypeClientData(SWIGTYPE_p_MediaSessionMgr, (void*) "tinyWRAP::MediaSessionMgr"); + SWIG_TypeClientData(SWIGTYPE_p_MediaContent, (void*) "tinyWRAP::MediaContent"); + SWIG_TypeClientData(SWIGTYPE_p_MediaContentCPIM, (void*) "tinyWRAP::MediaContentCPIM"); + SWIG_TypeClientData(SWIGTYPE_p_SipUri, (void*) "tinyWRAP::SipUri"); + SWIG_TypeClientData(SWIGTYPE_p_SdpMessage, (void*) "tinyWRAP::SdpMessage"); + SWIG_TypeClientData(SWIGTYPE_p_SipMessage, (void*) "tinyWRAP::SipMessage"); + SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void*) "tinyWRAP::SipEvent"); + SWIG_TypeClientData(SWIGTYPE_p_DialogEvent, (void*) "tinyWRAP::DialogEvent"); + SWIG_TypeClientData(SWIGTYPE_p_StackEvent, (void*) "tinyWRAP::StackEvent"); + SWIG_TypeClientData(SWIGTYPE_p_InviteEvent, (void*) "tinyWRAP::InviteEvent"); + SWIG_TypeClientData(SWIGTYPE_p_MessagingEvent, (void*) "tinyWRAP::MessagingEvent"); + SWIG_TypeClientData(SWIGTYPE_p_InfoEvent, (void*) "tinyWRAP::InfoEvent"); + SWIG_TypeClientData(SWIGTYPE_p_OptionsEvent, (void*) "tinyWRAP::OptionsEvent"); + SWIG_TypeClientData(SWIGTYPE_p_PublicationEvent, (void*) "tinyWRAP::PublicationEvent"); + SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void*) "tinyWRAP::RegistrationEvent"); + SWIG_TypeClientData(SWIGTYPE_p_SubscriptionEvent, (void*) "tinyWRAP::SubscriptionEvent"); + SWIG_TypeClientData(SWIGTYPE_p_T140CallbackData, (void*) "tinyWRAP::T140CallbackData"); + SWIG_TypeClientData(SWIGTYPE_p_T140Callback, (void*) "tinyWRAP::T140Callback"); + SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void*) "tinyWRAP::SipSession"); + SWIG_TypeClientData(SWIGTYPE_p_InviteSession, (void*) "tinyWRAP::InviteSession"); + SWIG_TypeClientData(SWIGTYPE_p_CallSession, (void*) "tinyWRAP::CallSession"); + SWIG_TypeClientData(SWIGTYPE_p_MsrpSession, (void*) "tinyWRAP::MsrpSession"); + SWIG_TypeClientData(SWIGTYPE_p_MessagingSession, (void*) "tinyWRAP::MessagingSession"); + SWIG_TypeClientData(SWIGTYPE_p_InfoSession, (void*) "tinyWRAP::InfoSession"); + SWIG_TypeClientData(SWIGTYPE_p_OptionsSession, (void*) "tinyWRAP::OptionsSession"); + SWIG_TypeClientData(SWIGTYPE_p_PublicationSession, (void*) "tinyWRAP::PublicationSession"); + SWIG_TypeClientData(SWIGTYPE_p_RegistrationSession, (void*) "tinyWRAP::RegistrationSession"); + SWIG_TypeClientData(SWIGTYPE_p_SubscriptionSession, (void*) "tinyWRAP::SubscriptionSession"); + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_proxy_plugin_audio_producer", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_proxy_plugin_audio_producer))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_proxy_plugin_video_producer", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_proxy_plugin_video_producer))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_proxy_plugin_audio_consumer", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_proxy_plugin_audio_consumer))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_proxy_plugin_video_consumer", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_proxy_plugin_video_consumer))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + SWIG_TypeClientData(SWIGTYPE_p_ProxyPluginMgr, (void*) "tinyWRAP::ProxyPluginMgr"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyPluginMgrCallback, (void*) "tinyWRAP::ProxyPluginMgrCallback"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyPlugin, (void*) "tinyWRAP::ProxyPlugin"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyAudioConsumerCallback, (void*) "tinyWRAP::ProxyAudioConsumerCallback"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyAudioConsumer, (void*) "tinyWRAP::ProxyAudioConsumer"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyVideoConsumerCallback, (void*) "tinyWRAP::ProxyVideoConsumerCallback"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyVideoConsumer, (void*) "tinyWRAP::ProxyVideoConsumer"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyVideoFrame, (void*) "tinyWRAP::ProxyVideoFrame"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyAudioProducerCallback, (void*) "tinyWRAP::ProxyAudioProducerCallback"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyAudioProducer, (void*) "tinyWRAP::ProxyAudioProducer"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyVideoProducerCallback, (void*) "tinyWRAP::ProxyVideoProducerCallback"); + SWIG_TypeClientData(SWIGTYPE_p_ProxyVideoProducer, (void*) "tinyWRAP::ProxyVideoProducer"); + SWIG_TypeClientData(SWIGTYPE_p_SipCallback, (void*) "tinyWRAP::SipCallback"); + SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void*) "tinyWRAP::SafeObject"); + SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void*) "tinyWRAP::SipStack"); + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_stack_mode_ua", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_stack_mode_ua))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_stack_mode_p2p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_stack_mode_p2p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_stack_mode_mediaproxy", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_stack_mode_mediaproxy))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_stack_mode_mcu", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_stack_mode_mcu))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_NONE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_NONE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ACK", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ACK))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_BYE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_BYE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_CANCEL", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_CANCEL))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_INVITE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_INVITE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_OPTIONS", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_OPTIONS))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_REGISTER", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_REGISTER))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_SUBSCRIBE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_SUBSCRIBE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_NOTIFY", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_NOTIFY))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_REFER", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_REFER))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_INFO", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_INFO))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_UPDATE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_UPDATE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_MESSAGE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_MESSAGE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_PUBLISH", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_PUBLISH))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_PRACK", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_PRACK))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_invite", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_invite))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_message", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_message))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_info", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_info))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_options", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_options))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_publish", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_publish))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_dialog", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_event_dialog))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_transport_error", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(702))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_global_error", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(703))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_message_error", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(704))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_request_incoming", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(800))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_request_outgoing", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(802))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_request_cancelled", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(803))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_request_sent", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(804))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_connecting", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(900))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_connected", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(901))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_terminating", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(902))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_dialog_terminated", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(903))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_starting", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(950))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_started", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(951))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_stopping", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(952))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_stopped", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(953))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_failed_to_start", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(954))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_failed_to_stop", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(955))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_event_code_stack_disconnected", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(956))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_newreg", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_newreg))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_register", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_register))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unregister", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unregister))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unregister", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unregister))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_subscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_subscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unsubscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unsubscribe", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unsubscribe))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_publish", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_publish))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_publish", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_publish))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_unpublish", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_unpublish))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_unpublish", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_unpublish))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_message", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_message))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_message", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_message))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_info", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_info))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_info", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_info))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_options", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_options))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_options", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_options))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_newcall", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_newcall))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_request", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_request))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_ao_request", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_ao_request))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_trying", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_trying))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_accepted", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_accepted))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_completed", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_completed))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_failed", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_failed))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_o_ect_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_o_ect_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_ect_requested", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_ect_requested))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_ect_newcall", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_ect_newcall))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_ect_completed", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_ect_completed))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_ect_failed", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_ect_failed))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_i_ect_notify", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_i_ect_notify))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_early_media", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_early_media))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_updating", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_updating))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_updated", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_updated))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_hold_ok", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_hold_ok))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_hold_nok", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_hold_nok))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_resume_ok", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_resume_ok))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_local_resume_nok", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_local_resume_nok))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_remote_hold", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_remote_hold))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tsip_m_remote_resume", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tsip_m_remote_resume))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_stype_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_stype_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_stype_segmented", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_stype_segmented))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_stype_e2e", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_stype_e2e))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_strength_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_strength_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_strength_failure", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_strength_failure))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_strength_unknown", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_strength_unknown))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_strength_optional", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_strength_optional))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_qos_strength_mandatory", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_qos_strength_mandatory))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_rgb24", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_rgb24))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_bgr24", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_bgr24))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_rgb32", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_rgb32))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_rgb565le", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_rgb565le))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_rgb565be", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_rgb565be))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_nv12", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_nv12))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_nv21", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_nv21))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_yuv422p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_yuv422p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_uyvy422", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_uyvy422))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_yuv420p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_yuv420p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_mjpeg", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_mjpeg))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_chroma_yuyv422", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_chroma_yuyv422))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_mode_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_mode_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_mode_optional", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_mode_optional))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_mode_mandatory", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_mode_mandatory))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_mode_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_mode_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_mode_optional", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_mode_optional))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_mode_mandatory", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_mode_mandatory))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_type_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_type_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_type_sdes", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_type_sdes))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_type_dtls", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_type_dtls))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_srtp_type_sdes_dtls", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_srtp_type_sdes_dtls))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_utf8", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_utf8))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_zero_width_no_break_space", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_zero_width_no_break_space))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_backspace", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_backspace))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_esc", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_esc))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_cr", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_cr))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_lf", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_lf))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_cr_lf", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_cr_lf))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_interrupt2", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_interrupt2))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_bell", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_bell))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_sos", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_sos))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_string_term", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_string_term))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_graphic_start", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_graphic_start))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_graphic_end", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_graphic_end))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_loss_char_char", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_loss_char_char))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_t140_data_type_loss_utf8", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_t140_data_type_loss_utf8))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_profile_default", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_profile_default))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_profile_rtcweb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_profile_rtcweb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_bl_low", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_bl_low))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_bl_medium", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_bl_medium))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_bl_hight", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_bl_hight))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_bl_unrestricted", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_bl_unrestricted))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_sqcif", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_sqcif))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_qcif", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_qcif))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_qvga", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_qvga))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_cif", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_cif))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_hvga", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_hvga))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_vga", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_vga))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_4cif", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_4cif))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_wvga", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_wvga))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_svga", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_svga))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_480p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_480p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_xga", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_xga))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_720p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_720p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_16cif", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_16cif))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_1080p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_1080p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_pref_video_size_2160p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_pref_video_size_2160p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_amr_nb_oa", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_amr_nb_oa))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_amr_nb_be", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_amr_nb_be))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_amr_wb_oa", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_amr_wb_oa))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_amr_wb_be", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_amr_wb_be))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_gsm", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_gsm))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_pcma", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_pcma))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_pcmu", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_pcmu))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_ilbc", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_ilbc))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_speex_nb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_speex_nb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_speex_wb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_speex_wb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_speex_uwb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_speex_uwb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_bv16", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_bv16))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_bv32", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_bv32))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_opus", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_opus))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_g729ab", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_g729ab))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_g722", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_g722))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h261", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h261))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h263", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h263))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h263p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h263p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h263pp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h263pp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_bp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_bp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_mp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_mp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_hp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_hp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_bp10", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_bp10))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_bp20", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_bp20))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_bp30", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_bp30))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_h264_svc", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_h264_svc))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_theora", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_theora))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_mp4ves_es", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_mp4ves_es))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_vp8", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_vp8))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_t140", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_t140))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmedia_codec_id_red", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmedia_codec_id_red))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_amr_nb_oa", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_amr_nb_oa))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_amr_nb_be", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_amr_nb_be))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_amr_wb_oa", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_amr_wb_oa))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_amr_wb_be", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_amr_wb_be))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_gsm", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_gsm))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_pcma", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_pcma))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_pcmu", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_pcmu))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_ilbc", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_ilbc))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_speex_nb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_speex_nb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_speex_wb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_speex_wb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_speex_uwb", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_speex_uwb))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_bv16", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_bv16))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_bv32", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_bv32))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_opus", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_opus))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_g729ab", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_g729ab))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_g722", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_g722))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h261", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h261))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h263", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h263))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h263p", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h263p))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h263pp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h263pp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_bp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_bp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_mp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_mp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_hp", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_hp))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_bp10", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_bp10))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_bp20", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_bp20))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_bp30", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_bp30))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_h264_svc", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_h264_svc))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_theora", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_theora))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_mp4ves_es", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_mp4ves_es))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_vp8", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_vp8))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_t140", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_t140))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tdav_codec_id_red", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tdav_codec_id_red))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + SWIG_TypeClientData(SWIGTYPE_p_XcapSelector, (void*) "tinyWRAP::XcapSelector"); + SWIG_TypeClientData(SWIGTYPE_p_XcapMessage, (void*) "tinyWRAP::XcapMessage"); + SWIG_TypeClientData(SWIGTYPE_p_XcapEvent, (void*) "tinyWRAP::XcapEvent"); + SWIG_TypeClientData(SWIGTYPE_p_XcapCallback, (void*) "tinyWRAP::XcapCallback"); + SWIG_TypeClientData(SWIGTYPE_p_XcapStack, (void*) "tinyWRAP::XcapStack"); + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "thttp_event_dialog_started", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(thttp_event_dialog_started))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "thttp_event_message", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(thttp_event_message))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "thttp_event_auth_failed", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(thttp_event_auth_failed))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "thttp_event_closed", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(thttp_event_closed))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "thttp_event_transport_error", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(thttp_event_transport_error))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "thttp_event_dialog_terminated", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(thttp_event_dialog_terminated))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_rpmessage_type_sms_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_rpmessage_type_sms_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_rpmessage_type_sms_submit", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_rpmessage_type_sms_submit))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_rpmessage_type_sms_deliver", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_rpmessage_type_sms_deliver))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_rpmessage_type_sms_ack", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_rpmessage_type_sms_ack))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_rpmessage_type_sms_error", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_rpmessage_type_sms_error))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_sms_type_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_sms_type_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_sms_type_rpdata", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_sms_type_rpdata))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_sms_type_smma", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_sms_type_smma))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_sms_type_ack", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_sms_type_ack))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "twrap_sms_type_error", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(twrap_sms_type_error))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + SWIG_TypeClientData(SWIGTYPE_p_RPMessage, (void*) "tinyWRAP::RPMessage"); + SWIG_TypeClientData(SWIGTYPE_p_SMSData, (void*) "tinyWRAP::SMSData"); + SWIG_TypeClientData(SWIGTYPE_p_SMSEncoder, (void*) "tinyWRAP::SMSEncoder"); + SWIG_TypeClientData(SWIGTYPE_p_MsrpMessage, (void*) "tinyWRAP::MsrpMessage"); + SWIG_TypeClientData(SWIGTYPE_p_MsrpEvent, (void*) "tinyWRAP::MsrpEvent"); + SWIG_TypeClientData(SWIGTYPE_p_MsrpCallback, (void*) "tinyWRAP::MsrpCallback"); + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_NONE", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_NONE))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_SEND", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_SEND))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_REPORT", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_REPORT))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_AUTH", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_AUTH))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_event_type_none", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_event_type_none))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_event_type_connected", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_event_type_connected))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_event_type_disconnected", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_event_type_disconnected))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + /*@SWIG:/usr/local/share/swig/2.0.9/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "tmsrp_event_type_message", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(tmsrp_event_type_message))); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + ST(0) = &PL_sv_yes; + XSRETURN(1); +} + diff --git a/bindings/python/python.i b/bindings/python/python.i new file mode 100644 index 0000000..390e054 --- /dev/null +++ b/bindings/python/python.i @@ -0,0 +1,7 @@ +/* File : python.i */ + +/* http://www.swig.org/Doc1.3/Library.html#Library_carrays +* 8.3.2 Passing binary data */ +%apply (char *STRING, int LENGTH) { (const void* buffer, int len) }; + +%include ../_common/tinyWRAP.i diff --git a/bindings/python/tinyWRAP.py b/bindings/python/tinyWRAP.py new file mode 100644 index 0000000..f08ac2e --- /dev/null +++ b/bindings/python/tinyWRAP.py @@ -0,0 +1,2148 @@ +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 2.0.9 +# +# Do not make changes to this file unless you know what you are doing--modify +# the SWIG interface file instead. + + + +from sys import version_info +if version_info >= (2,6,0): + def swig_import_helper(): + from os.path import dirname + import imp + fp = None + try: + fp, pathname, description = imp.find_module('_tinyWRAP', [dirname(__file__)]) + except ImportError: + import _tinyWRAP + return _tinyWRAP + if fp is not None: + try: + _mod = imp.load_module('_tinyWRAP', fp, pathname, description) + finally: + fp.close() + return _mod + _tinyWRAP = swig_import_helper() + del swig_import_helper +else: + import _tinyWRAP +del version_info +try: + _swig_property = property +except NameError: + pass # Python < 2.2 doesn't have 'property'. +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "thisown"): return self.this.own(value) + if (name == "this"): + if type(value).__name__ == 'SwigPyObject': + self.__dict__[name] = value + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static): + self.__dict__[name] = value + else: + raise AttributeError("You cannot add attributes to %s" % self) + +def _swig_setattr(self,class_type,name,value): + return _swig_setattr_nondynamic(self,class_type,name,value,0) + +def _swig_getattr(self,class_type,name): + if (name == "thisown"): return self.this.own() + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError(name) + +def _swig_repr(self): + try: strthis = "proxy of " + self.this.__repr__() + except: strthis = "" + return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) + +try: + _object = object + _newclass = 1 +except AttributeError: + class _object : pass + _newclass = 0 + + +try: + import weakref + weakref_proxy = weakref.proxy +except: + weakref_proxy = lambda x: x + + +class DDebugCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, DDebugCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, DDebugCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == DDebugCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_DDebugCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_DDebugCallback + __del__ = lambda self : None; + def OnDebugInfo(self, *args): return _tinyWRAP.DDebugCallback_OnDebugInfo(self, *args) + def OnDebugWarn(self, *args): return _tinyWRAP.DDebugCallback_OnDebugWarn(self, *args) + def OnDebugError(self, *args): return _tinyWRAP.DDebugCallback_OnDebugError(self, *args) + def OnDebugFatal(self, *args): return _tinyWRAP.DDebugCallback_OnDebugFatal(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_DDebugCallback(self) + return weakref_proxy(self) +DDebugCallback_swigregister = _tinyWRAP.DDebugCallback_swigregister +DDebugCallback_swigregister(DDebugCallback) + +class AudioResampler(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, AudioResampler, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, AudioResampler, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_AudioResampler(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_AudioResampler + __del__ = lambda self : None; + def isValid(self): return _tinyWRAP.AudioResampler_isValid(self) + def getOutputRequiredSizeInShort(self): return _tinyWRAP.AudioResampler_getOutputRequiredSizeInShort(self) + def getInputRequiredSizeInShort(self): return _tinyWRAP.AudioResampler_getInputRequiredSizeInShort(self) + def process(self, *args): return _tinyWRAP.AudioResampler_process(self, *args) +AudioResampler_swigregister = _tinyWRAP.AudioResampler_swigregister +AudioResampler_swigregister(AudioResampler) + +twrap_media_none = _tinyWRAP.twrap_media_none +twrap_media_audio = _tinyWRAP.twrap_media_audio +twrap_media_video = _tinyWRAP.twrap_media_video +twrap_media_msrp = _tinyWRAP.twrap_media_msrp +twrap_media_t140 = _tinyWRAP.twrap_media_t140 +twrap_media_bfcp = _tinyWRAP.twrap_media_bfcp +twrap_media_bfcp_audio = _tinyWRAP.twrap_media_bfcp_audio +twrap_media_bfcp_video = _tinyWRAP.twrap_media_bfcp_video +twrap_media_audiovideo = _tinyWRAP.twrap_media_audiovideo +twrap_media_audio_video = _tinyWRAP.twrap_media_audio_video +class ActionConfig(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ActionConfig, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ActionConfig, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_ActionConfig() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_ActionConfig + __del__ = lambda self : None; + def addHeader(self, *args): return _tinyWRAP.ActionConfig_addHeader(self, *args) + def addPayload(self, *args): return _tinyWRAP.ActionConfig_addPayload(self, *args) + def setActiveMedia(self, *args): return _tinyWRAP.ActionConfig_setActiveMedia(self, *args) + def setResponseLine(self, *args): return _tinyWRAP.ActionConfig_setResponseLine(self, *args) + def setMediaString(self, *args): return _tinyWRAP.ActionConfig_setMediaString(self, *args) + def setMediaInt(self, *args): return _tinyWRAP.ActionConfig_setMediaInt(self, *args) +ActionConfig_swigregister = _tinyWRAP.ActionConfig_swigregister +ActionConfig_swigregister(ActionConfig) + +class Codec(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Codec, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Codec, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_Codec + __del__ = lambda self : None; + def getMediaType(self): return _tinyWRAP.Codec_getMediaType(self) + def getName(self): return _tinyWRAP.Codec_getName(self) + def getDescription(self): return _tinyWRAP.Codec_getDescription(self) + def getNegFormat(self): return _tinyWRAP.Codec_getNegFormat(self) + def getAudioSamplingRate(self): return _tinyWRAP.Codec_getAudioSamplingRate(self) + def getAudioChannels(self): return _tinyWRAP.Codec_getAudioChannels(self) + def getAudioPTime(self): return _tinyWRAP.Codec_getAudioPTime(self) +Codec_swigregister = _tinyWRAP.Codec_swigregister +Codec_swigregister(Codec) + +class MediaSessionMgr(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, MediaSessionMgr, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, MediaSessionMgr, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_MediaSessionMgr + __del__ = lambda self : None; + def sessionSetInt32(self, *args): return _tinyWRAP.MediaSessionMgr_sessionSetInt32(self, *args) + def sessionGetInt32(self, *args): return _tinyWRAP.MediaSessionMgr_sessionGetInt32(self, *args) + def consumerSetInt32(self, *args): return _tinyWRAP.MediaSessionMgr_consumerSetInt32(self, *args) + def consumerSetInt64(self, *args): return _tinyWRAP.MediaSessionMgr_consumerSetInt64(self, *args) + def producerSetInt32(self, *args): return _tinyWRAP.MediaSessionMgr_producerSetInt32(self, *args) + def producerSetInt64(self, *args): return _tinyWRAP.MediaSessionMgr_producerSetInt64(self, *args) + def producerGetCodec(self, *args): return _tinyWRAP.MediaSessionMgr_producerGetCodec(self, *args) + def findProxyPluginConsumer(self, *args): return _tinyWRAP.MediaSessionMgr_findProxyPluginConsumer(self, *args) + def findProxyPluginProducer(self, *args): return _tinyWRAP.MediaSessionMgr_findProxyPluginProducer(self, *args) + __swig_getmethods__["registerAudioPluginFromFile"] = lambda x: _tinyWRAP.MediaSessionMgr_registerAudioPluginFromFile + if _newclass:registerAudioPluginFromFile = staticmethod(_tinyWRAP.MediaSessionMgr_registerAudioPluginFromFile) + def getSessionId(self, *args): return _tinyWRAP.MediaSessionMgr_getSessionId(self, *args) + __swig_getmethods__["defaultsSetProfile"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetProfile + if _newclass:defaultsSetProfile = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetProfile) + __swig_getmethods__["defaultsGetProfile"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetProfile + if _newclass:defaultsGetProfile = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetProfile) + __swig_getmethods__["defaultsSetBandwidthLevel"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthLevel + if _newclass:defaultsSetBandwidthLevel = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetBandwidthLevel) + __swig_getmethods__["defaultsGetBandwidthLevel"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetBandwidthLevel + if _newclass:defaultsGetBandwidthLevel = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetBandwidthLevel) + __swig_getmethods__["defaultsSetCongestionCtrlEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetCongestionCtrlEnabled + if _newclass:defaultsSetCongestionCtrlEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetCongestionCtrlEnabled) + __swig_getmethods__["defaultsSetVideoMotionRank"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetVideoMotionRank + if _newclass:defaultsSetVideoMotionRank = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetVideoMotionRank) + __swig_getmethods__["defaultsSetVideoFps"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetVideoFps + if _newclass:defaultsSetVideoFps = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetVideoFps) + __swig_getmethods__["defaultsSetBandwidthVideoUploadMax"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax + if _newclass:defaultsSetBandwidthVideoUploadMax = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax) + __swig_getmethods__["defaultsSetBandwidthVideoDownloadMax"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax + if _newclass:defaultsSetBandwidthVideoDownloadMax = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax) + __swig_getmethods__["defaultsSetPrefVideoSize"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetPrefVideoSize + if _newclass:defaultsSetPrefVideoSize = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetPrefVideoSize) + __swig_getmethods__["defaultsSetJbMargin"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetJbMargin + if _newclass:defaultsSetJbMargin = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetJbMargin) + __swig_getmethods__["defaultsSetJbMaxLateRate"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetJbMaxLateRate + if _newclass:defaultsSetJbMaxLateRate = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetJbMaxLateRate) + __swig_getmethods__["defaultsSetEchoTail"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetEchoTail + if _newclass:defaultsSetEchoTail = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetEchoTail) + __swig_getmethods__["defaultsGetEchoTail"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetEchoTail + if _newclass:defaultsGetEchoTail = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetEchoTail) + __swig_getmethods__["defaultsSetEchoSkew"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetEchoSkew + if _newclass:defaultsSetEchoSkew = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetEchoSkew) + __swig_getmethods__["defaultsSetEchoSuppEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetEchoSuppEnabled + if _newclass:defaultsSetEchoSuppEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetEchoSuppEnabled) + __swig_getmethods__["defaultsGetEchoSuppEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetEchoSuppEnabled + if _newclass:defaultsGetEchoSuppEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetEchoSuppEnabled) + __swig_getmethods__["defaultsSetAgcEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAgcEnabled + if _newclass:defaultsSetAgcEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAgcEnabled) + __swig_getmethods__["defaultsGetAgcEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetAgcEnabled + if _newclass:defaultsGetAgcEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetAgcEnabled) + __swig_getmethods__["defaultsSetAgcLevel"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAgcLevel + if _newclass:defaultsSetAgcLevel = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAgcLevel) + __swig_getmethods__["defaultsGetAgcLevel"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetAgcLevel + if _newclass:defaultsGetAgcLevel = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetAgcLevel) + __swig_getmethods__["defaultsSetVadEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetVadEnabled + if _newclass:defaultsSetVadEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetVadEnabled) + __swig_getmethods__["defaultsGetGetVadEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetGetVadEnabled + if _newclass:defaultsGetGetVadEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetGetVadEnabled) + __swig_getmethods__["defaultsSetNoiseSuppEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppEnabled + if _newclass:defaultsSetNoiseSuppEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppEnabled) + __swig_getmethods__["defaultsGetNoiseSuppEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppEnabled + if _newclass:defaultsGetNoiseSuppEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppEnabled) + __swig_getmethods__["defaultsSetNoiseSuppLevel"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppLevel + if _newclass:defaultsSetNoiseSuppLevel = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppLevel) + __swig_getmethods__["defaultsGetNoiseSuppLevel"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppLevel + if _newclass:defaultsGetNoiseSuppLevel = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppLevel) + __swig_getmethods__["defaultsSet100relEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSet100relEnabled + if _newclass:defaultsSet100relEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSet100relEnabled) + __swig_getmethods__["defaultsGet100relEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGet100relEnabled + if _newclass:defaultsGet100relEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGet100relEnabled) + __swig_getmethods__["defaultsSetScreenSize"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetScreenSize + if _newclass:defaultsSetScreenSize = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetScreenSize) + __swig_getmethods__["defaultsSetAudioGain"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAudioGain + if _newclass:defaultsSetAudioGain = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAudioGain) + __swig_getmethods__["defaultsSetAudioPtime"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAudioPtime + if _newclass:defaultsSetAudioPtime = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAudioPtime) + __swig_getmethods__["defaultsSetAudioChannels"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAudioChannels + if _newclass:defaultsSetAudioChannels = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAudioChannels) + __swig_getmethods__["defaultsSetRtpPortRange"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetRtpPortRange + if _newclass:defaultsSetRtpPortRange = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetRtpPortRange) + __swig_getmethods__["defaultsSetRtpSymetricEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetRtpSymetricEnabled + if _newclass:defaultsSetRtpSymetricEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetRtpSymetricEnabled) + __swig_getmethods__["defaultsSetMediaType"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetMediaType + if _newclass:defaultsSetMediaType = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetMediaType) + __swig_getmethods__["defaultsSetVolume"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetVolume + if _newclass:defaultsSetVolume = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetVolume) + __swig_getmethods__["defaultsGetVolume"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetVolume + if _newclass:defaultsGetVolume = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetVolume) + __swig_getmethods__["defaultsSetInviteSessionTimers"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetInviteSessionTimers + if _newclass:defaultsSetInviteSessionTimers = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetInviteSessionTimers) + __swig_getmethods__["defaultsSetSRtpMode"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetSRtpMode + if _newclass:defaultsSetSRtpMode = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetSRtpMode) + __swig_getmethods__["defaultsGetSRtpMode"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetSRtpMode + if _newclass:defaultsGetSRtpMode = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetSRtpMode) + __swig_getmethods__["defaultsSetSRtpType"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetSRtpType + if _newclass:defaultsSetSRtpType = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetSRtpType) + __swig_getmethods__["defaultsGetSRtpType"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetSRtpType + if _newclass:defaultsGetSRtpType = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetSRtpType) + __swig_getmethods__["defaultsSetRtcpEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetRtcpEnabled + if _newclass:defaultsSetRtcpEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetRtcpEnabled) + __swig_getmethods__["defaultsGetRtcpEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetRtcpEnabled + if _newclass:defaultsGetRtcpEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetRtcpEnabled) + __swig_getmethods__["defaultsSetRtcpMuxEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetRtcpMuxEnabled + if _newclass:defaultsSetRtcpMuxEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetRtcpMuxEnabled) + __swig_getmethods__["defaultsGetRtcpMuxEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetRtcpMuxEnabled + if _newclass:defaultsGetRtcpMuxEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetRtcpMuxEnabled) + __swig_getmethods__["defaultsSetStunEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetStunEnabled + if _newclass:defaultsSetStunEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetStunEnabled) + __swig_getmethods__["defaultsSetIceStunEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetIceStunEnabled + if _newclass:defaultsSetIceStunEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetIceStunEnabled) + __swig_getmethods__["defaultsSetIceTurnEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetIceTurnEnabled + if _newclass:defaultsSetIceTurnEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetIceTurnEnabled) + __swig_getmethods__["defaultsSetStunServer"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetStunServer + if _newclass:defaultsSetStunServer = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetStunServer) + __swig_getmethods__["defaultsSetStunCred"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetStunCred + if _newclass:defaultsSetStunCred = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetStunCred) + __swig_getmethods__["defaultsSetIceEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetIceEnabled + if _newclass:defaultsSetIceEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetIceEnabled) + __swig_getmethods__["defaultsSetByPassEncoding"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetByPassEncoding + if _newclass:defaultsSetByPassEncoding = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetByPassEncoding) + __swig_getmethods__["defaultsGetByPassEncoding"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetByPassEncoding + if _newclass:defaultsGetByPassEncoding = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetByPassEncoding) + __swig_getmethods__["defaultsSetByPassDecoding"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetByPassDecoding + if _newclass:defaultsSetByPassDecoding = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetByPassDecoding) + __swig_getmethods__["defaultsGetByPassDecoding"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetByPassDecoding + if _newclass:defaultsGetByPassDecoding = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetByPassDecoding) + __swig_getmethods__["defaultsSetVideoJbEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetVideoJbEnabled + if _newclass:defaultsSetVideoJbEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetVideoJbEnabled) + __swig_getmethods__["defaultsGetVideoJbEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetVideoJbEnabled + if _newclass:defaultsGetVideoJbEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetVideoJbEnabled) + __swig_getmethods__["defaultsSetVideoZeroArtifactsEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled + if _newclass:defaultsSetVideoZeroArtifactsEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled) + __swig_getmethods__["defaultsGetVideoZeroArtifactsEnabled"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled + if _newclass:defaultsGetVideoZeroArtifactsEnabled = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled) + __swig_getmethods__["defaultsSetRtpBuffSize"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetRtpBuffSize + if _newclass:defaultsSetRtpBuffSize = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetRtpBuffSize) + __swig_getmethods__["defaultsGetRtpBuffSize"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsGetRtpBuffSize + if _newclass:defaultsGetRtpBuffSize = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsGetRtpBuffSize) + __swig_getmethods__["defaultsSetAvpfTail"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAvpfTail + if _newclass:defaultsSetAvpfTail = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAvpfTail) + __swig_getmethods__["defaultsSetAvpfMode"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetAvpfMode + if _newclass:defaultsSetAvpfMode = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetAvpfMode) + __swig_getmethods__["defaultsSetOpusMaxCaptureRate"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxCaptureRate + if _newclass:defaultsSetOpusMaxCaptureRate = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxCaptureRate) + __swig_getmethods__["defaultsSetOpusMaxPlaybackRate"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate + if _newclass:defaultsSetOpusMaxPlaybackRate = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate) + __swig_getmethods__["defaultsSetMaxFds"] = lambda x: _tinyWRAP.MediaSessionMgr_defaultsSetMaxFds + if _newclass:defaultsSetMaxFds = staticmethod(_tinyWRAP.MediaSessionMgr_defaultsSetMaxFds) +MediaSessionMgr_swigregister = _tinyWRAP.MediaSessionMgr_swigregister +MediaSessionMgr_swigregister(MediaSessionMgr) + +def MediaSessionMgr_registerAudioPluginFromFile(*args): + return _tinyWRAP.MediaSessionMgr_registerAudioPluginFromFile(*args) +MediaSessionMgr_registerAudioPluginFromFile = _tinyWRAP.MediaSessionMgr_registerAudioPluginFromFile + +def MediaSessionMgr_defaultsSetProfile(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetProfile(*args) +MediaSessionMgr_defaultsSetProfile = _tinyWRAP.MediaSessionMgr_defaultsSetProfile + +def MediaSessionMgr_defaultsGetProfile(): + return _tinyWRAP.MediaSessionMgr_defaultsGetProfile() +MediaSessionMgr_defaultsGetProfile = _tinyWRAP.MediaSessionMgr_defaultsGetProfile + +def MediaSessionMgr_defaultsSetBandwidthLevel(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthLevel(*args) +MediaSessionMgr_defaultsSetBandwidthLevel = _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthLevel + +def MediaSessionMgr_defaultsGetBandwidthLevel(): + return _tinyWRAP.MediaSessionMgr_defaultsGetBandwidthLevel() +MediaSessionMgr_defaultsGetBandwidthLevel = _tinyWRAP.MediaSessionMgr_defaultsGetBandwidthLevel + +def MediaSessionMgr_defaultsSetCongestionCtrlEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetCongestionCtrlEnabled(*args) +MediaSessionMgr_defaultsSetCongestionCtrlEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetCongestionCtrlEnabled + +def MediaSessionMgr_defaultsSetVideoMotionRank(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetVideoMotionRank(*args) +MediaSessionMgr_defaultsSetVideoMotionRank = _tinyWRAP.MediaSessionMgr_defaultsSetVideoMotionRank + +def MediaSessionMgr_defaultsSetVideoFps(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetVideoFps(*args) +MediaSessionMgr_defaultsSetVideoFps = _tinyWRAP.MediaSessionMgr_defaultsSetVideoFps + +def MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(*args) +MediaSessionMgr_defaultsSetBandwidthVideoUploadMax = _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoUploadMax + +def MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(*args) +MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax = _tinyWRAP.MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax + +def MediaSessionMgr_defaultsSetPrefVideoSize(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetPrefVideoSize(*args) +MediaSessionMgr_defaultsSetPrefVideoSize = _tinyWRAP.MediaSessionMgr_defaultsSetPrefVideoSize + +def MediaSessionMgr_defaultsSetJbMargin(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetJbMargin(*args) +MediaSessionMgr_defaultsSetJbMargin = _tinyWRAP.MediaSessionMgr_defaultsSetJbMargin + +def MediaSessionMgr_defaultsSetJbMaxLateRate(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetJbMaxLateRate(*args) +MediaSessionMgr_defaultsSetJbMaxLateRate = _tinyWRAP.MediaSessionMgr_defaultsSetJbMaxLateRate + +def MediaSessionMgr_defaultsSetEchoTail(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetEchoTail(*args) +MediaSessionMgr_defaultsSetEchoTail = _tinyWRAP.MediaSessionMgr_defaultsSetEchoTail + +def MediaSessionMgr_defaultsGetEchoTail(): + return _tinyWRAP.MediaSessionMgr_defaultsGetEchoTail() +MediaSessionMgr_defaultsGetEchoTail = _tinyWRAP.MediaSessionMgr_defaultsGetEchoTail + +def MediaSessionMgr_defaultsSetEchoSkew(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetEchoSkew(*args) +MediaSessionMgr_defaultsSetEchoSkew = _tinyWRAP.MediaSessionMgr_defaultsSetEchoSkew + +def MediaSessionMgr_defaultsSetEchoSuppEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetEchoSuppEnabled(*args) +MediaSessionMgr_defaultsSetEchoSuppEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetEchoSuppEnabled + +def MediaSessionMgr_defaultsGetEchoSuppEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetEchoSuppEnabled() +MediaSessionMgr_defaultsGetEchoSuppEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetEchoSuppEnabled + +def MediaSessionMgr_defaultsSetAgcEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAgcEnabled(*args) +MediaSessionMgr_defaultsSetAgcEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetAgcEnabled + +def MediaSessionMgr_defaultsGetAgcEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetAgcEnabled() +MediaSessionMgr_defaultsGetAgcEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetAgcEnabled + +def MediaSessionMgr_defaultsSetAgcLevel(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAgcLevel(*args) +MediaSessionMgr_defaultsSetAgcLevel = _tinyWRAP.MediaSessionMgr_defaultsSetAgcLevel + +def MediaSessionMgr_defaultsGetAgcLevel(): + return _tinyWRAP.MediaSessionMgr_defaultsGetAgcLevel() +MediaSessionMgr_defaultsGetAgcLevel = _tinyWRAP.MediaSessionMgr_defaultsGetAgcLevel + +def MediaSessionMgr_defaultsSetVadEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetVadEnabled(*args) +MediaSessionMgr_defaultsSetVadEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetVadEnabled + +def MediaSessionMgr_defaultsGetGetVadEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetGetVadEnabled() +MediaSessionMgr_defaultsGetGetVadEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetGetVadEnabled + +def MediaSessionMgr_defaultsSetNoiseSuppEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppEnabled(*args) +MediaSessionMgr_defaultsSetNoiseSuppEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppEnabled + +def MediaSessionMgr_defaultsGetNoiseSuppEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppEnabled() +MediaSessionMgr_defaultsGetNoiseSuppEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppEnabled + +def MediaSessionMgr_defaultsSetNoiseSuppLevel(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppLevel(*args) +MediaSessionMgr_defaultsSetNoiseSuppLevel = _tinyWRAP.MediaSessionMgr_defaultsSetNoiseSuppLevel + +def MediaSessionMgr_defaultsGetNoiseSuppLevel(): + return _tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppLevel() +MediaSessionMgr_defaultsGetNoiseSuppLevel = _tinyWRAP.MediaSessionMgr_defaultsGetNoiseSuppLevel + +def MediaSessionMgr_defaultsSet100relEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSet100relEnabled(*args) +MediaSessionMgr_defaultsSet100relEnabled = _tinyWRAP.MediaSessionMgr_defaultsSet100relEnabled + +def MediaSessionMgr_defaultsGet100relEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGet100relEnabled() +MediaSessionMgr_defaultsGet100relEnabled = _tinyWRAP.MediaSessionMgr_defaultsGet100relEnabled + +def MediaSessionMgr_defaultsSetScreenSize(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetScreenSize(*args) +MediaSessionMgr_defaultsSetScreenSize = _tinyWRAP.MediaSessionMgr_defaultsSetScreenSize + +def MediaSessionMgr_defaultsSetAudioGain(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAudioGain(*args) +MediaSessionMgr_defaultsSetAudioGain = _tinyWRAP.MediaSessionMgr_defaultsSetAudioGain + +def MediaSessionMgr_defaultsSetAudioPtime(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAudioPtime(*args) +MediaSessionMgr_defaultsSetAudioPtime = _tinyWRAP.MediaSessionMgr_defaultsSetAudioPtime + +def MediaSessionMgr_defaultsSetAudioChannels(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAudioChannels(*args) +MediaSessionMgr_defaultsSetAudioChannels = _tinyWRAP.MediaSessionMgr_defaultsSetAudioChannels + +def MediaSessionMgr_defaultsSetRtpPortRange(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetRtpPortRange(*args) +MediaSessionMgr_defaultsSetRtpPortRange = _tinyWRAP.MediaSessionMgr_defaultsSetRtpPortRange + +def MediaSessionMgr_defaultsSetRtpSymetricEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetRtpSymetricEnabled(*args) +MediaSessionMgr_defaultsSetRtpSymetricEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetRtpSymetricEnabled + +def MediaSessionMgr_defaultsSetMediaType(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetMediaType(*args) +MediaSessionMgr_defaultsSetMediaType = _tinyWRAP.MediaSessionMgr_defaultsSetMediaType + +def MediaSessionMgr_defaultsSetVolume(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetVolume(*args) +MediaSessionMgr_defaultsSetVolume = _tinyWRAP.MediaSessionMgr_defaultsSetVolume + +def MediaSessionMgr_defaultsGetVolume(): + return _tinyWRAP.MediaSessionMgr_defaultsGetVolume() +MediaSessionMgr_defaultsGetVolume = _tinyWRAP.MediaSessionMgr_defaultsGetVolume + +def MediaSessionMgr_defaultsSetInviteSessionTimers(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetInviteSessionTimers(*args) +MediaSessionMgr_defaultsSetInviteSessionTimers = _tinyWRAP.MediaSessionMgr_defaultsSetInviteSessionTimers + +def MediaSessionMgr_defaultsSetSRtpMode(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetSRtpMode(*args) +MediaSessionMgr_defaultsSetSRtpMode = _tinyWRAP.MediaSessionMgr_defaultsSetSRtpMode + +def MediaSessionMgr_defaultsGetSRtpMode(): + return _tinyWRAP.MediaSessionMgr_defaultsGetSRtpMode() +MediaSessionMgr_defaultsGetSRtpMode = _tinyWRAP.MediaSessionMgr_defaultsGetSRtpMode + +def MediaSessionMgr_defaultsSetSRtpType(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetSRtpType(*args) +MediaSessionMgr_defaultsSetSRtpType = _tinyWRAP.MediaSessionMgr_defaultsSetSRtpType + +def MediaSessionMgr_defaultsGetSRtpType(): + return _tinyWRAP.MediaSessionMgr_defaultsGetSRtpType() +MediaSessionMgr_defaultsGetSRtpType = _tinyWRAP.MediaSessionMgr_defaultsGetSRtpType + +def MediaSessionMgr_defaultsSetRtcpEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetRtcpEnabled(*args) +MediaSessionMgr_defaultsSetRtcpEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetRtcpEnabled + +def MediaSessionMgr_defaultsGetRtcpEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetRtcpEnabled() +MediaSessionMgr_defaultsGetRtcpEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetRtcpEnabled + +def MediaSessionMgr_defaultsSetRtcpMuxEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetRtcpMuxEnabled(*args) +MediaSessionMgr_defaultsSetRtcpMuxEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetRtcpMuxEnabled + +def MediaSessionMgr_defaultsGetRtcpMuxEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetRtcpMuxEnabled() +MediaSessionMgr_defaultsGetRtcpMuxEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetRtcpMuxEnabled + +def MediaSessionMgr_defaultsSetStunEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetStunEnabled(*args) +MediaSessionMgr_defaultsSetStunEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetStunEnabled + +def MediaSessionMgr_defaultsSetIceStunEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetIceStunEnabled(*args) +MediaSessionMgr_defaultsSetIceStunEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetIceStunEnabled + +def MediaSessionMgr_defaultsSetIceTurnEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetIceTurnEnabled(*args) +MediaSessionMgr_defaultsSetIceTurnEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetIceTurnEnabled + +def MediaSessionMgr_defaultsSetStunServer(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetStunServer(*args) +MediaSessionMgr_defaultsSetStunServer = _tinyWRAP.MediaSessionMgr_defaultsSetStunServer + +def MediaSessionMgr_defaultsSetStunCred(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetStunCred(*args) +MediaSessionMgr_defaultsSetStunCred = _tinyWRAP.MediaSessionMgr_defaultsSetStunCred + +def MediaSessionMgr_defaultsSetIceEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetIceEnabled(*args) +MediaSessionMgr_defaultsSetIceEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetIceEnabled + +def MediaSessionMgr_defaultsSetByPassEncoding(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetByPassEncoding(*args) +MediaSessionMgr_defaultsSetByPassEncoding = _tinyWRAP.MediaSessionMgr_defaultsSetByPassEncoding + +def MediaSessionMgr_defaultsGetByPassEncoding(): + return _tinyWRAP.MediaSessionMgr_defaultsGetByPassEncoding() +MediaSessionMgr_defaultsGetByPassEncoding = _tinyWRAP.MediaSessionMgr_defaultsGetByPassEncoding + +def MediaSessionMgr_defaultsSetByPassDecoding(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetByPassDecoding(*args) +MediaSessionMgr_defaultsSetByPassDecoding = _tinyWRAP.MediaSessionMgr_defaultsSetByPassDecoding + +def MediaSessionMgr_defaultsGetByPassDecoding(): + return _tinyWRAP.MediaSessionMgr_defaultsGetByPassDecoding() +MediaSessionMgr_defaultsGetByPassDecoding = _tinyWRAP.MediaSessionMgr_defaultsGetByPassDecoding + +def MediaSessionMgr_defaultsSetVideoJbEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetVideoJbEnabled(*args) +MediaSessionMgr_defaultsSetVideoJbEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetVideoJbEnabled + +def MediaSessionMgr_defaultsGetVideoJbEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetVideoJbEnabled() +MediaSessionMgr_defaultsGetVideoJbEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetVideoJbEnabled + +def MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(*args) +MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled = _tinyWRAP.MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled + +def MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(): + return _tinyWRAP.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled() +MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled = _tinyWRAP.MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled + +def MediaSessionMgr_defaultsSetRtpBuffSize(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetRtpBuffSize(*args) +MediaSessionMgr_defaultsSetRtpBuffSize = _tinyWRAP.MediaSessionMgr_defaultsSetRtpBuffSize + +def MediaSessionMgr_defaultsGetRtpBuffSize(): + return _tinyWRAP.MediaSessionMgr_defaultsGetRtpBuffSize() +MediaSessionMgr_defaultsGetRtpBuffSize = _tinyWRAP.MediaSessionMgr_defaultsGetRtpBuffSize + +def MediaSessionMgr_defaultsSetAvpfTail(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAvpfTail(*args) +MediaSessionMgr_defaultsSetAvpfTail = _tinyWRAP.MediaSessionMgr_defaultsSetAvpfTail + +def MediaSessionMgr_defaultsSetAvpfMode(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetAvpfMode(*args) +MediaSessionMgr_defaultsSetAvpfMode = _tinyWRAP.MediaSessionMgr_defaultsSetAvpfMode + +def MediaSessionMgr_defaultsSetOpusMaxCaptureRate(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxCaptureRate(*args) +MediaSessionMgr_defaultsSetOpusMaxCaptureRate = _tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxCaptureRate + +def MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(*args) +MediaSessionMgr_defaultsSetOpusMaxPlaybackRate = _tinyWRAP.MediaSessionMgr_defaultsSetOpusMaxPlaybackRate + +def MediaSessionMgr_defaultsSetMaxFds(*args): + return _tinyWRAP.MediaSessionMgr_defaultsSetMaxFds(*args) +MediaSessionMgr_defaultsSetMaxFds = _tinyWRAP.MediaSessionMgr_defaultsSetMaxFds + +class MediaContent(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, MediaContent, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, MediaContent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_MediaContent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.MediaContent_getType(self) + def getDataLength(self): return _tinyWRAP.MediaContent_getDataLength(self) + def getData(self, *args): return _tinyWRAP.MediaContent_getData(self, *args) + __swig_getmethods__["parse"] = lambda x: _tinyWRAP.MediaContent_parse + if _newclass:parse = staticmethod(_tinyWRAP.MediaContent_parse) + def getPayloadLength(self): return _tinyWRAP.MediaContent_getPayloadLength(self) + def getPayload(self, *args): return _tinyWRAP.MediaContent_getPayload(self, *args) +MediaContent_swigregister = _tinyWRAP.MediaContent_swigregister +MediaContent_swigregister(MediaContent) + +def MediaContent_parse(*args): + return _tinyWRAP.MediaContent_parse(*args) +MediaContent_parse = _tinyWRAP.MediaContent_parse + +class MediaContentCPIM(MediaContent): + __swig_setmethods__ = {} + for _s in [MediaContent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, MediaContentCPIM, name, value) + __swig_getmethods__ = {} + for _s in [MediaContent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, MediaContentCPIM, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_MediaContentCPIM + __del__ = lambda self : None; + def getPayloadLength(self): return _tinyWRAP.MediaContentCPIM_getPayloadLength(self) + def getPayload(self, *args): return _tinyWRAP.MediaContentCPIM_getPayload(self, *args) + def getHeaderValue(self, *args): return _tinyWRAP.MediaContentCPIM_getHeaderValue(self, *args) +MediaContentCPIM_swigregister = _tinyWRAP.MediaContentCPIM_swigregister +MediaContentCPIM_swigregister(MediaContentCPIM) + +class SipUri(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipUri, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipUri, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SipUri(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipUri + __del__ = lambda self : None; + def isValid(self, *args): return _tinyWRAP.SipUri_isValid(self, *args) + def getScheme(self): return _tinyWRAP.SipUri_getScheme(self) + def getHost(self): return _tinyWRAP.SipUri_getHost(self) + def getPort(self): return _tinyWRAP.SipUri_getPort(self) + def getUserName(self): return _tinyWRAP.SipUri_getUserName(self) + def getPassword(self): return _tinyWRAP.SipUri_getPassword(self) + def getDisplayName(self): return _tinyWRAP.SipUri_getDisplayName(self) + def getParamValue(self, *args): return _tinyWRAP.SipUri_getParamValue(self, *args) + def setDisplayName(self, *args): return _tinyWRAP.SipUri_setDisplayName(self, *args) +SipUri_swigregister = _tinyWRAP.SipUri_swigregister +SipUri_swigregister(SipUri) + +class SdpMessage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SdpMessage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SdpMessage, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SdpMessage() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SdpMessage + __del__ = lambda self : None; + def getSdpHeaderValue(self, *args): return _tinyWRAP.SdpMessage_getSdpHeaderValue(self, *args) + def getSdpHeaderAValue(self, *args): return _tinyWRAP.SdpMessage_getSdpHeaderAValue(self, *args) +SdpMessage_swigregister = _tinyWRAP.SdpMessage_swigregister +SdpMessage_swigregister(SdpMessage) + +class SipMessage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipMessage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipMessage, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SipMessage() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipMessage + __del__ = lambda self : None; + def isResponse(self): return _tinyWRAP.SipMessage_isResponse(self) + def getRequestType(self): return _tinyWRAP.SipMessage_getRequestType(self) + def getResponseCode(self): return _tinyWRAP.SipMessage_getResponseCode(self) + def getResponsePhrase(self): return _tinyWRAP.SipMessage_getResponsePhrase(self) + def getSipHeaderValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderValue(self, *args) + def getSipHeaderParamValue(self, *args): return _tinyWRAP.SipMessage_getSipHeaderParamValue(self, *args) + def getSipContentLength(self): return _tinyWRAP.SipMessage_getSipContentLength(self) + def getSipContent(self, *args): return _tinyWRAP.SipMessage_getSipContent(self, *args) + def getSdpMessage(self): return _tinyWRAP.SipMessage_getSdpMessage(self) +SipMessage_swigregister = _tinyWRAP.SipMessage_swigregister +SipMessage_swigregister(SipMessage) + +class SipEvent(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipEvent, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_SipEvent + __del__ = lambda self : None; + def getCode(self): return _tinyWRAP.SipEvent_getCode(self) + def getPhrase(self): return _tinyWRAP.SipEvent_getPhrase(self) + def getBaseSession(self): return _tinyWRAP.SipEvent_getBaseSession(self) + def getSipMessage(self): return _tinyWRAP.SipEvent_getSipMessage(self) +SipEvent_swigregister = _tinyWRAP.SipEvent_swigregister +SipEvent_swigregister(SipEvent) + +class DialogEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, DialogEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, DialogEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_DialogEvent + __del__ = lambda self : None; +DialogEvent_swigregister = _tinyWRAP.DialogEvent_swigregister +DialogEvent_swigregister(DialogEvent) + +class StackEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, StackEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, StackEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_StackEvent + __del__ = lambda self : None; +StackEvent_swigregister = _tinyWRAP.StackEvent_swigregister +StackEvent_swigregister(StackEvent) + +class InviteEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, InviteEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, InviteEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_InviteEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.InviteEvent_getType(self) + def getMediaType(self): return _tinyWRAP.InviteEvent_getMediaType(self) + def getSession(self): return _tinyWRAP.InviteEvent_getSession(self) + def takeCallSessionOwnership(self): return _tinyWRAP.InviteEvent_takeCallSessionOwnership(self) + def takeMsrpSessionOwnership(self): return _tinyWRAP.InviteEvent_takeMsrpSessionOwnership(self) +InviteEvent_swigregister = _tinyWRAP.InviteEvent_swigregister +InviteEvent_swigregister(InviteEvent) + +class MessagingEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, MessagingEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, MessagingEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_MessagingEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.MessagingEvent_getType(self) + def getSession(self): return _tinyWRAP.MessagingEvent_getSession(self) + def takeSessionOwnership(self): return _tinyWRAP.MessagingEvent_takeSessionOwnership(self) +MessagingEvent_swigregister = _tinyWRAP.MessagingEvent_swigregister +MessagingEvent_swigregister(MessagingEvent) + +class InfoEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, InfoEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, InfoEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_InfoEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.InfoEvent_getType(self) + def getSession(self): return _tinyWRAP.InfoEvent_getSession(self) + def takeSessionOwnership(self): return _tinyWRAP.InfoEvent_takeSessionOwnership(self) +InfoEvent_swigregister = _tinyWRAP.InfoEvent_swigregister +InfoEvent_swigregister(InfoEvent) + +class OptionsEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, OptionsEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, OptionsEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_OptionsEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.OptionsEvent_getType(self) + def getSession(self): return _tinyWRAP.OptionsEvent_getSession(self) + def takeSessionOwnership(self): return _tinyWRAP.OptionsEvent_takeSessionOwnership(self) +OptionsEvent_swigregister = _tinyWRAP.OptionsEvent_swigregister +OptionsEvent_swigregister(OptionsEvent) + +class PublicationEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, PublicationEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, PublicationEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_PublicationEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.PublicationEvent_getType(self) + def getSession(self): return _tinyWRAP.PublicationEvent_getSession(self) + def takeSessionOwnership(self): return _tinyWRAP.PublicationEvent_takeSessionOwnership(self) +PublicationEvent_swigregister = _tinyWRAP.PublicationEvent_swigregister +PublicationEvent_swigregister(PublicationEvent) + +class RegistrationEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, RegistrationEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_RegistrationEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.RegistrationEvent_getType(self) + def getSession(self): return _tinyWRAP.RegistrationEvent_getSession(self) + def takeSessionOwnership(self): return _tinyWRAP.RegistrationEvent_takeSessionOwnership(self) +RegistrationEvent_swigregister = _tinyWRAP.RegistrationEvent_swigregister +RegistrationEvent_swigregister(RegistrationEvent) + +class SubscriptionEvent(SipEvent): + __swig_setmethods__ = {} + for _s in [SipEvent]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionEvent, name, value) + __swig_getmethods__ = {} + for _s in [SipEvent]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, SubscriptionEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_SubscriptionEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.SubscriptionEvent_getType(self) + def getSession(self): return _tinyWRAP.SubscriptionEvent_getSession(self) + def takeSessionOwnership(self): return _tinyWRAP.SubscriptionEvent_takeSessionOwnership(self) +SubscriptionEvent_swigregister = _tinyWRAP.SubscriptionEvent_swigregister +SubscriptionEvent_swigregister(SubscriptionEvent) + +class T140CallbackData(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, T140CallbackData, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, T140CallbackData, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_T140CallbackData + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.T140CallbackData_getType(self) + def getSize(self): return _tinyWRAP.T140CallbackData_getSize(self) + def getData(self, *args): return _tinyWRAP.T140CallbackData_getData(self, *args) +T140CallbackData_swigregister = _tinyWRAP.T140CallbackData_swigregister +T140CallbackData_swigregister(T140CallbackData) + +class T140Callback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, T140Callback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, T140Callback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == T140Callback: + _self = None + else: + _self = self + this = _tinyWRAP.new_T140Callback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_T140Callback + __del__ = lambda self : None; + def ondata(self, *args): return _tinyWRAP.T140Callback_ondata(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_T140Callback(self) + return weakref_proxy(self) +T140Callback_swigregister = _tinyWRAP.T140Callback_swigregister +T140Callback_swigregister(T140Callback) + +class SipSession(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipSession, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SipSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipSession + __del__ = lambda self : None; + def haveOwnership(self): return _tinyWRAP.SipSession_haveOwnership(self) + def addHeader(self, *args): return _tinyWRAP.SipSession_addHeader(self, *args) + def removeHeader(self, *args): return _tinyWRAP.SipSession_removeHeader(self, *args) + def addCaps(self, *args): return _tinyWRAP.SipSession_addCaps(self, *args) + def removeCaps(self, *args): return _tinyWRAP.SipSession_removeCaps(self, *args) + def setExpires(self, *args): return _tinyWRAP.SipSession_setExpires(self, *args) + def setFromUri(self, *args): return _tinyWRAP.SipSession_setFromUri(self, *args) + def setToUri(self, *args): return _tinyWRAP.SipSession_setToUri(self, *args) + def setSilentHangup(self, *args): return _tinyWRAP.SipSession_setSilentHangup(self, *args) + def addSigCompCompartment(self, *args): return _tinyWRAP.SipSession_addSigCompCompartment(self, *args) + def removeSigCompCompartment(self): return _tinyWRAP.SipSession_removeSigCompCompartment(self) + def getId(self): return _tinyWRAP.SipSession_getId(self) +SipSession_swigregister = _tinyWRAP.SipSession_swigregister +SipSession_swigregister(SipSession) + +class InviteSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, InviteSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, InviteSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_InviteSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_InviteSession + __del__ = lambda self : None; + def accept(self, *args): return _tinyWRAP.InviteSession_accept(self, *args) + def hangup(self, *args): return _tinyWRAP.InviteSession_hangup(self, *args) + def reject(self, *args): return _tinyWRAP.InviteSession_reject(self, *args) + def sendInfo(self, *args): return _tinyWRAP.InviteSession_sendInfo(self, *args) + def getMediaMgr(self): return _tinyWRAP.InviteSession_getMediaMgr(self) +InviteSession_swigregister = _tinyWRAP.InviteSession_swigregister +InviteSession_swigregister(InviteSession) + +class CallSession(InviteSession): + __swig_setmethods__ = {} + for _s in [InviteSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, CallSession, name, value) + __swig_getmethods__ = {} + for _s in [InviteSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, CallSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_CallSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_CallSession + __del__ = lambda self : None; + def callAudio(self, *args): return _tinyWRAP.CallSession_callAudio(self, *args) + def callAudioVideo(self, *args): return _tinyWRAP.CallSession_callAudioVideo(self, *args) + def callVideo(self, *args): return _tinyWRAP.CallSession_callVideo(self, *args) + def call(self, *args): return _tinyWRAP.CallSession_call(self, *args) + def setSessionTimer(self, *args): return _tinyWRAP.CallSession_setSessionTimer(self, *args) + def set100rel(self, *args): return _tinyWRAP.CallSession_set100rel(self, *args) + def setRtcp(self, *args): return _tinyWRAP.CallSession_setRtcp(self, *args) + def setRtcpMux(self, *args): return _tinyWRAP.CallSession_setRtcpMux(self, *args) + def setSRtpMode(self, *args): return _tinyWRAP.CallSession_setSRtpMode(self, *args) + def setAvpfMode(self, *args): return _tinyWRAP.CallSession_setAvpfMode(self, *args) + def setICE(self, *args): return _tinyWRAP.CallSession_setICE(self, *args) + def setICEStun(self, *args): return _tinyWRAP.CallSession_setICEStun(self, *args) + def setICETurn(self, *args): return _tinyWRAP.CallSession_setICETurn(self, *args) + def setSTUNServer(self, *args): return _tinyWRAP.CallSession_setSTUNServer(self, *args) + def setSTUNCred(self, *args): return _tinyWRAP.CallSession_setSTUNCred(self, *args) + def setVideoFps(self, *args): return _tinyWRAP.CallSession_setVideoFps(self, *args) + def setVideoBandwidthUploadMax(self, *args): return _tinyWRAP.CallSession_setVideoBandwidthUploadMax(self, *args) + def setVideoBandwidthDownloadMax(self, *args): return _tinyWRAP.CallSession_setVideoBandwidthDownloadMax(self, *args) + def setVideoPrefSize(self, *args): return _tinyWRAP.CallSession_setVideoPrefSize(self, *args) + def setQoS(self, *args): return _tinyWRAP.CallSession_setQoS(self, *args) + def hold(self, *args): return _tinyWRAP.CallSession_hold(self, *args) + def resume(self, *args): return _tinyWRAP.CallSession_resume(self, *args) + def transfer(self, *args): return _tinyWRAP.CallSession_transfer(self, *args) + def acceptTransfer(self, *args): return _tinyWRAP.CallSession_acceptTransfer(self, *args) + def rejectTransfer(self, *args): return _tinyWRAP.CallSession_rejectTransfer(self, *args) + def sendDTMF(self, *args): return _tinyWRAP.CallSession_sendDTMF(self, *args) + def getSessionTransferId(self): return _tinyWRAP.CallSession_getSessionTransferId(self) + def sendT140Data(self, *args): return _tinyWRAP.CallSession_sendT140Data(self, *args) + def setT140Callback(self, *args): return _tinyWRAP.CallSession_setT140Callback(self, *args) +CallSession_swigregister = _tinyWRAP.CallSession_swigregister +CallSession_swigregister(CallSession) + +class MsrpSession(InviteSession): + __swig_setmethods__ = {} + for _s in [InviteSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, MsrpSession, name, value) + __swig_getmethods__ = {} + for _s in [InviteSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, MsrpSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_MsrpSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_MsrpSession + __del__ = lambda self : None; + def setCallback(self, *args): return _tinyWRAP.MsrpSession_setCallback(self, *args) + def callMsrp(self, *args): return _tinyWRAP.MsrpSession_callMsrp(self, *args) + def sendMessage(self, *args): return _tinyWRAP.MsrpSession_sendMessage(self, *args) + def sendFile(self, *args): return _tinyWRAP.MsrpSession_sendFile(self, *args) +MsrpSession_swigregister = _tinyWRAP.MsrpSession_swigregister +MsrpSession_swigregister(MsrpSession) + +class MessagingSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, MessagingSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, MessagingSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_MessagingSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_MessagingSession + __del__ = lambda self : None; + def send(self, *args): return _tinyWRAP.MessagingSession_send(self, *args) + def accept(self, *args): return _tinyWRAP.MessagingSession_accept(self, *args) + def reject(self, *args): return _tinyWRAP.MessagingSession_reject(self, *args) +MessagingSession_swigregister = _tinyWRAP.MessagingSession_swigregister +MessagingSession_swigregister(MessagingSession) + +class InfoSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, InfoSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, InfoSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_InfoSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_InfoSession + __del__ = lambda self : None; + def send(self, *args): return _tinyWRAP.InfoSession_send(self, *args) + def accept(self, *args): return _tinyWRAP.InfoSession_accept(self, *args) + def reject(self, *args): return _tinyWRAP.InfoSession_reject(self, *args) +InfoSession_swigregister = _tinyWRAP.InfoSession_swigregister +InfoSession_swigregister(InfoSession) + +class OptionsSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, OptionsSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, OptionsSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_OptionsSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_OptionsSession + __del__ = lambda self : None; + def send(self, *args): return _tinyWRAP.OptionsSession_send(self, *args) + def accept(self, *args): return _tinyWRAP.OptionsSession_accept(self, *args) + def reject(self, *args): return _tinyWRAP.OptionsSession_reject(self, *args) +OptionsSession_swigregister = _tinyWRAP.OptionsSession_swigregister +OptionsSession_swigregister(OptionsSession) + +class PublicationSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, PublicationSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, PublicationSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_PublicationSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_PublicationSession + __del__ = lambda self : None; + def publish(self, *args): return _tinyWRAP.PublicationSession_publish(self, *args) + def unPublish(self, *args): return _tinyWRAP.PublicationSession_unPublish(self, *args) +PublicationSession_swigregister = _tinyWRAP.PublicationSession_swigregister +PublicationSession_swigregister(PublicationSession) + +class RegistrationSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, RegistrationSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, RegistrationSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_RegistrationSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_RegistrationSession + __del__ = lambda self : None; + def register_(self, *args): return _tinyWRAP.RegistrationSession_register_(self, *args) + def unRegister(self, *args): return _tinyWRAP.RegistrationSession_unRegister(self, *args) + def accept(self, *args): return _tinyWRAP.RegistrationSession_accept(self, *args) + def reject(self, *args): return _tinyWRAP.RegistrationSession_reject(self, *args) +RegistrationSession_swigregister = _tinyWRAP.RegistrationSession_swigregister +RegistrationSession_swigregister(RegistrationSession) + +class SubscriptionSession(SipSession): + __swig_setmethods__ = {} + for _s in [SipSession]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, SubscriptionSession, name, value) + __swig_getmethods__ = {} + for _s in [SipSession]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, SubscriptionSession, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SubscriptionSession(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SubscriptionSession + __del__ = lambda self : None; + def subscribe(self): return _tinyWRAP.SubscriptionSession_subscribe(self) + def unSubscribe(self): return _tinyWRAP.SubscriptionSession_unSubscribe(self) +SubscriptionSession_swigregister = _tinyWRAP.SubscriptionSession_swigregister +SubscriptionSession_swigregister(SubscriptionSession) + +twrap_proxy_plugin_audio_producer = _tinyWRAP.twrap_proxy_plugin_audio_producer +twrap_proxy_plugin_video_producer = _tinyWRAP.twrap_proxy_plugin_video_producer +twrap_proxy_plugin_audio_consumer = _tinyWRAP.twrap_proxy_plugin_audio_consumer +twrap_proxy_plugin_video_consumer = _tinyWRAP.twrap_proxy_plugin_video_consumer +class ProxyPluginMgr(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyPluginMgr, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyPluginMgr, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyPluginMgr + __del__ = lambda self : None; + __swig_getmethods__["createInstance"] = lambda x: _tinyWRAP.ProxyPluginMgr_createInstance + if _newclass:createInstance = staticmethod(_tinyWRAP.ProxyPluginMgr_createInstance) + __swig_getmethods__["getInstance"] = lambda x: _tinyWRAP.ProxyPluginMgr_getInstance + if _newclass:getInstance = staticmethod(_tinyWRAP.ProxyPluginMgr_getInstance) + def findPlugin(self, *args): return _tinyWRAP.ProxyPluginMgr_findPlugin(self, *args) + def findAudioConsumer(self, *args): return _tinyWRAP.ProxyPluginMgr_findAudioConsumer(self, *args) + def findVideoConsumer(self, *args): return _tinyWRAP.ProxyPluginMgr_findVideoConsumer(self, *args) + def findAudioProducer(self, *args): return _tinyWRAP.ProxyPluginMgr_findAudioProducer(self, *args) + def findVideoProducer(self, *args): return _tinyWRAP.ProxyPluginMgr_findVideoProducer(self, *args) +ProxyPluginMgr_swigregister = _tinyWRAP.ProxyPluginMgr_swigregister +ProxyPluginMgr_swigregister(ProxyPluginMgr) + +def ProxyPluginMgr_createInstance(*args): + return _tinyWRAP.ProxyPluginMgr_createInstance(*args) +ProxyPluginMgr_createInstance = _tinyWRAP.ProxyPluginMgr_createInstance + +def ProxyPluginMgr_getInstance(): + return _tinyWRAP.ProxyPluginMgr_getInstance() +ProxyPluginMgr_getInstance = _tinyWRAP.ProxyPluginMgr_getInstance + +class ProxyPluginMgrCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyPluginMgrCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyPluginMgrCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == ProxyPluginMgrCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_ProxyPluginMgrCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_ProxyPluginMgrCallback + __del__ = lambda self : None; + def OnPluginCreated(self, *args): return _tinyWRAP.ProxyPluginMgrCallback_OnPluginCreated(self, *args) + def OnPluginDestroyed(self, *args): return _tinyWRAP.ProxyPluginMgrCallback_OnPluginDestroyed(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_ProxyPluginMgrCallback(self) + return weakref_proxy(self) +ProxyPluginMgrCallback_swigregister = _tinyWRAP.ProxyPluginMgrCallback_swigregister +ProxyPluginMgrCallback_swigregister(ProxyPluginMgrCallback) + +class ProxyPlugin(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyPlugin, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyPlugin, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyPlugin + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.ProxyPlugin_getType(self) + def getId(self): return _tinyWRAP.ProxyPlugin_getId(self) +ProxyPlugin_swigregister = _tinyWRAP.ProxyPlugin_swigregister +ProxyPlugin_swigregister(ProxyPlugin) + +class ProxyAudioConsumerCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyAudioConsumerCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyAudioConsumerCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == ProxyAudioConsumerCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_ProxyAudioConsumerCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_ProxyAudioConsumerCallback + __del__ = lambda self : None; + def prepare(self, *args): return _tinyWRAP.ProxyAudioConsumerCallback_prepare(self, *args) + def start(self): return _tinyWRAP.ProxyAudioConsumerCallback_start(self) + def pause(self): return _tinyWRAP.ProxyAudioConsumerCallback_pause(self) + def stop(self): return _tinyWRAP.ProxyAudioConsumerCallback_stop(self) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_ProxyAudioConsumerCallback(self) + return weakref_proxy(self) +ProxyAudioConsumerCallback_swigregister = _tinyWRAP.ProxyAudioConsumerCallback_swigregister +ProxyAudioConsumerCallback_swigregister(ProxyAudioConsumerCallback) + +class ProxyAudioConsumer(ProxyPlugin): + __swig_setmethods__ = {} + for _s in [ProxyPlugin]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyAudioConsumer, name, value) + __swig_getmethods__ = {} + for _s in [ProxyPlugin]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, ProxyAudioConsumer, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyAudioConsumer + __del__ = lambda self : None; + def setActualSndCardPlaybackParams(self, *args): return _tinyWRAP.ProxyAudioConsumer_setActualSndCardPlaybackParams(self, *args) + def queryForResampler(self, *args): return _tinyWRAP.ProxyAudioConsumer_queryForResampler(self, *args) + def setPullBuffer(self, *args): return _tinyWRAP.ProxyAudioConsumer_setPullBuffer(self, *args) + def pull(self, *args): return _tinyWRAP.ProxyAudioConsumer_pull(self, *args) + def setGain(self, *args): return _tinyWRAP.ProxyAudioConsumer_setGain(self, *args) + def getGain(self): return _tinyWRAP.ProxyAudioConsumer_getGain(self) + def reset(self): return _tinyWRAP.ProxyAudioConsumer_reset(self) + def setCallback(self, *args): return _tinyWRAP.ProxyAudioConsumer_setCallback(self, *args) + def getMediaSessionId(self): return _tinyWRAP.ProxyAudioConsumer_getMediaSessionId(self) + __swig_getmethods__["registerPlugin"] = lambda x: _tinyWRAP.ProxyAudioConsumer_registerPlugin + if _newclass:registerPlugin = staticmethod(_tinyWRAP.ProxyAudioConsumer_registerPlugin) +ProxyAudioConsumer_swigregister = _tinyWRAP.ProxyAudioConsumer_swigregister +ProxyAudioConsumer_swigregister(ProxyAudioConsumer) + +def ProxyAudioConsumer_registerPlugin(): + return _tinyWRAP.ProxyAudioConsumer_registerPlugin() +ProxyAudioConsumer_registerPlugin = _tinyWRAP.ProxyAudioConsumer_registerPlugin + +class ProxyVideoConsumerCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyVideoConsumerCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyVideoConsumerCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == ProxyVideoConsumerCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_ProxyVideoConsumerCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_ProxyVideoConsumerCallback + __del__ = lambda self : None; + def prepare(self, *args): return _tinyWRAP.ProxyVideoConsumerCallback_prepare(self, *args) + def consume(self, *args): return _tinyWRAP.ProxyVideoConsumerCallback_consume(self, *args) + def bufferCopied(self, *args): return _tinyWRAP.ProxyVideoConsumerCallback_bufferCopied(self, *args) + def start(self): return _tinyWRAP.ProxyVideoConsumerCallback_start(self) + def pause(self): return _tinyWRAP.ProxyVideoConsumerCallback_pause(self) + def stop(self): return _tinyWRAP.ProxyVideoConsumerCallback_stop(self) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_ProxyVideoConsumerCallback(self) + return weakref_proxy(self) +ProxyVideoConsumerCallback_swigregister = _tinyWRAP.ProxyVideoConsumerCallback_swigregister +ProxyVideoConsumerCallback_swigregister(ProxyVideoConsumerCallback) + +class ProxyVideoConsumer(ProxyPlugin): + __swig_setmethods__ = {} + for _s in [ProxyPlugin]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyVideoConsumer, name, value) + __swig_getmethods__ = {} + for _s in [ProxyPlugin]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, ProxyVideoConsumer, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyVideoConsumer + __del__ = lambda self : None; + def setDisplaySize(self, *args): return _tinyWRAP.ProxyVideoConsumer_setDisplaySize(self, *args) + def getDisplayWidth(self): return _tinyWRAP.ProxyVideoConsumer_getDisplayWidth(self) + def getDisplayHeight(self): return _tinyWRAP.ProxyVideoConsumer_getDisplayHeight(self) + def getDecodedWidth(self): return _tinyWRAP.ProxyVideoConsumer_getDecodedWidth(self) + def getDecodedHeight(self): return _tinyWRAP.ProxyVideoConsumer_getDecodedHeight(self) + def setCallback(self, *args): return _tinyWRAP.ProxyVideoConsumer_setCallback(self, *args) + def setAutoResizeDisplay(self, *args): return _tinyWRAP.ProxyVideoConsumer_setAutoResizeDisplay(self, *args) + def getAutoResizeDisplay(self): return _tinyWRAP.ProxyVideoConsumer_getAutoResizeDisplay(self) + def setConsumeBuffer(self, *args): return _tinyWRAP.ProxyVideoConsumer_setConsumeBuffer(self, *args) + def pull(self, *args): return _tinyWRAP.ProxyVideoConsumer_pull(self, *args) + def reset(self): return _tinyWRAP.ProxyVideoConsumer_reset(self) + def getMediaSessionId(self): return _tinyWRAP.ProxyVideoConsumer_getMediaSessionId(self) + __swig_getmethods__["registerPlugin"] = lambda x: _tinyWRAP.ProxyVideoConsumer_registerPlugin + if _newclass:registerPlugin = staticmethod(_tinyWRAP.ProxyVideoConsumer_registerPlugin) + __swig_getmethods__["setDefaultChroma"] = lambda x: _tinyWRAP.ProxyVideoConsumer_setDefaultChroma + if _newclass:setDefaultChroma = staticmethod(_tinyWRAP.ProxyVideoConsumer_setDefaultChroma) + __swig_getmethods__["setDefaultAutoResizeDisplay"] = lambda x: _tinyWRAP.ProxyVideoConsumer_setDefaultAutoResizeDisplay + if _newclass:setDefaultAutoResizeDisplay = staticmethod(_tinyWRAP.ProxyVideoConsumer_setDefaultAutoResizeDisplay) +ProxyVideoConsumer_swigregister = _tinyWRAP.ProxyVideoConsumer_swigregister +ProxyVideoConsumer_swigregister(ProxyVideoConsumer) + +def ProxyVideoConsumer_registerPlugin(): + return _tinyWRAP.ProxyVideoConsumer_registerPlugin() +ProxyVideoConsumer_registerPlugin = _tinyWRAP.ProxyVideoConsumer_registerPlugin + +def ProxyVideoConsumer_setDefaultChroma(*args): + return _tinyWRAP.ProxyVideoConsumer_setDefaultChroma(*args) +ProxyVideoConsumer_setDefaultChroma = _tinyWRAP.ProxyVideoConsumer_setDefaultChroma + +def ProxyVideoConsumer_setDefaultAutoResizeDisplay(*args): + return _tinyWRAP.ProxyVideoConsumer_setDefaultAutoResizeDisplay(*args) +ProxyVideoConsumer_setDefaultAutoResizeDisplay = _tinyWRAP.ProxyVideoConsumer_setDefaultAutoResizeDisplay + +class ProxyVideoFrame(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyVideoFrame, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyVideoFrame, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyVideoFrame + __del__ = lambda self : None; + def getSize(self): return _tinyWRAP.ProxyVideoFrame_getSize(self) + def getContent(self, *args): return _tinyWRAP.ProxyVideoFrame_getContent(self, *args) + def getFrameWidth(self): return _tinyWRAP.ProxyVideoFrame_getFrameWidth(self) + def getFrameHeight(self): return _tinyWRAP.ProxyVideoFrame_getFrameHeight(self) +ProxyVideoFrame_swigregister = _tinyWRAP.ProxyVideoFrame_swigregister +ProxyVideoFrame_swigregister(ProxyVideoFrame) + +class ProxyAudioProducerCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyAudioProducerCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyAudioProducerCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == ProxyAudioProducerCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_ProxyAudioProducerCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_ProxyAudioProducerCallback + __del__ = lambda self : None; + def prepare(self, *args): return _tinyWRAP.ProxyAudioProducerCallback_prepare(self, *args) + def start(self): return _tinyWRAP.ProxyAudioProducerCallback_start(self) + def pause(self): return _tinyWRAP.ProxyAudioProducerCallback_pause(self) + def stop(self): return _tinyWRAP.ProxyAudioProducerCallback_stop(self) + def fillPushBuffer(self): return _tinyWRAP.ProxyAudioProducerCallback_fillPushBuffer(self) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_ProxyAudioProducerCallback(self) + return weakref_proxy(self) +ProxyAudioProducerCallback_swigregister = _tinyWRAP.ProxyAudioProducerCallback_swigregister +ProxyAudioProducerCallback_swigregister(ProxyAudioProducerCallback) + +class ProxyAudioProducer(ProxyPlugin): + __swig_setmethods__ = {} + for _s in [ProxyPlugin]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyAudioProducer, name, value) + __swig_getmethods__ = {} + for _s in [ProxyPlugin]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, ProxyAudioProducer, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyAudioProducer + __del__ = lambda self : None; + def setActualSndCardRecordParams(self, *args): return _tinyWRAP.ProxyAudioProducer_setActualSndCardRecordParams(self, *args) + def setPushBuffer(self, *args): return _tinyWRAP.ProxyAudioProducer_setPushBuffer(self, *args) + def push(self, *args): return _tinyWRAP.ProxyAudioProducer_push(self, *args) + def setGain(self, *args): return _tinyWRAP.ProxyAudioProducer_setGain(self, *args) + def getGain(self): return _tinyWRAP.ProxyAudioProducer_getGain(self) + def setCallback(self, *args): return _tinyWRAP.ProxyAudioProducer_setCallback(self, *args) + def getMediaSessionId(self): return _tinyWRAP.ProxyAudioProducer_getMediaSessionId(self) + __swig_getmethods__["registerPlugin"] = lambda x: _tinyWRAP.ProxyAudioProducer_registerPlugin + if _newclass:registerPlugin = staticmethod(_tinyWRAP.ProxyAudioProducer_registerPlugin) +ProxyAudioProducer_swigregister = _tinyWRAP.ProxyAudioProducer_swigregister +ProxyAudioProducer_swigregister(ProxyAudioProducer) + +def ProxyAudioProducer_registerPlugin(): + return _tinyWRAP.ProxyAudioProducer_registerPlugin() +ProxyAudioProducer_registerPlugin = _tinyWRAP.ProxyAudioProducer_registerPlugin + +class ProxyVideoProducerCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyVideoProducerCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, ProxyVideoProducerCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == ProxyVideoProducerCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_ProxyVideoProducerCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_ProxyVideoProducerCallback + __del__ = lambda self : None; + def prepare(self, *args): return _tinyWRAP.ProxyVideoProducerCallback_prepare(self, *args) + def start(self): return _tinyWRAP.ProxyVideoProducerCallback_start(self) + def pause(self): return _tinyWRAP.ProxyVideoProducerCallback_pause(self) + def stop(self): return _tinyWRAP.ProxyVideoProducerCallback_stop(self) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_ProxyVideoProducerCallback(self) + return weakref_proxy(self) +ProxyVideoProducerCallback_swigregister = _tinyWRAP.ProxyVideoProducerCallback_swigregister +ProxyVideoProducerCallback_swigregister(ProxyVideoProducerCallback) + +class ProxyVideoProducer(ProxyPlugin): + __swig_setmethods__ = {} + for _s in [ProxyPlugin]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, ProxyVideoProducer, name, value) + __swig_getmethods__ = {} + for _s in [ProxyPlugin]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, ProxyVideoProducer, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_ProxyVideoProducer + __del__ = lambda self : None; + def getRotation(self): return _tinyWRAP.ProxyVideoProducer_getRotation(self) + def setRotation(self, *args): return _tinyWRAP.ProxyVideoProducer_setRotation(self, *args) + def getMirror(self): return _tinyWRAP.ProxyVideoProducer_getMirror(self) + def setMirror(self, *args): return _tinyWRAP.ProxyVideoProducer_setMirror(self, *args) + def setActualCameraOutputSize(self, *args): return _tinyWRAP.ProxyVideoProducer_setActualCameraOutputSize(self, *args) + def push(self, *args): return _tinyWRAP.ProxyVideoProducer_push(self, *args) + def setCallback(self, *args): return _tinyWRAP.ProxyVideoProducer_setCallback(self, *args) + def getMediaSessionId(self): return _tinyWRAP.ProxyVideoProducer_getMediaSessionId(self) + __swig_getmethods__["registerPlugin"] = lambda x: _tinyWRAP.ProxyVideoProducer_registerPlugin + if _newclass:registerPlugin = staticmethod(_tinyWRAP.ProxyVideoProducer_registerPlugin) + __swig_getmethods__["setDefaultChroma"] = lambda x: _tinyWRAP.ProxyVideoProducer_setDefaultChroma + if _newclass:setDefaultChroma = staticmethod(_tinyWRAP.ProxyVideoProducer_setDefaultChroma) +ProxyVideoProducer_swigregister = _tinyWRAP.ProxyVideoProducer_swigregister +ProxyVideoProducer_swigregister(ProxyVideoProducer) + +def ProxyVideoProducer_registerPlugin(): + return _tinyWRAP.ProxyVideoProducer_registerPlugin() +ProxyVideoProducer_registerPlugin = _tinyWRAP.ProxyVideoProducer_registerPlugin + +def ProxyVideoProducer_setDefaultChroma(*args): + return _tinyWRAP.ProxyVideoProducer_setDefaultChroma(*args) +ProxyVideoProducer_setDefaultChroma = _tinyWRAP.ProxyVideoProducer_setDefaultChroma + +class SipCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SipCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SipCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == SipCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_SipCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipCallback + __del__ = lambda self : None; + def OnDialogEvent(self, *args): return _tinyWRAP.SipCallback_OnDialogEvent(self, *args) + def OnStackEvent(self, *args): return _tinyWRAP.SipCallback_OnStackEvent(self, *args) + def OnInviteEvent(self, *args): return _tinyWRAP.SipCallback_OnInviteEvent(self, *args) + def OnMessagingEvent(self, *args): return _tinyWRAP.SipCallback_OnMessagingEvent(self, *args) + def OnInfoEvent(self, *args): return _tinyWRAP.SipCallback_OnInfoEvent(self, *args) + def OnOptionsEvent(self, *args): return _tinyWRAP.SipCallback_OnOptionsEvent(self, *args) + def OnPublicationEvent(self, *args): return _tinyWRAP.SipCallback_OnPublicationEvent(self, *args) + def OnRegistrationEvent(self, *args): return _tinyWRAP.SipCallback_OnRegistrationEvent(self, *args) + def OnSubscriptionEvent(self, *args): return _tinyWRAP.SipCallback_OnSubscriptionEvent(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_SipCallback(self) + return weakref_proxy(self) +SipCallback_swigregister = _tinyWRAP.SipCallback_swigregister +SipCallback_swigregister(SipCallback) + +class SafeObject(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SafeObject, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SafeObject, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SafeObject() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SafeObject + __del__ = lambda self : None; + def Lock(self): return _tinyWRAP.SafeObject_Lock(self) + def UnLock(self): return _tinyWRAP.SafeObject_UnLock(self) +SafeObject_swigregister = _tinyWRAP.SafeObject_swigregister +SafeObject_swigregister(SafeObject) + +class SipStack(SafeObject): + __swig_setmethods__ = {} + for _s in [SafeObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) + __setattr__ = lambda self, name, value: _swig_setattr(self, SipStack, name, value) + __swig_getmethods__ = {} + for _s in [SafeObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) + __getattr__ = lambda self, name: _swig_getattr(self, SipStack, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_SipStack(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SipStack + __del__ = lambda self : None; + def start(self): return _tinyWRAP.SipStack_start(self) + def setDebugCallback(self, *args): return _tinyWRAP.SipStack_setDebugCallback(self, *args) + def setDisplayName(self, *args): return _tinyWRAP.SipStack_setDisplayName(self, *args) + def setRealm(self, *args): return _tinyWRAP.SipStack_setRealm(self, *args) + def setIMPI(self, *args): return _tinyWRAP.SipStack_setIMPI(self, *args) + def setIMPU(self, *args): return _tinyWRAP.SipStack_setIMPU(self, *args) + def setPassword(self, *args): return _tinyWRAP.SipStack_setPassword(self, *args) + def setAMF(self, *args): return _tinyWRAP.SipStack_setAMF(self, *args) + def setOperatorId(self, *args): return _tinyWRAP.SipStack_setOperatorId(self, *args) + def setProxyCSCF(self, *args): return _tinyWRAP.SipStack_setProxyCSCF(self, *args) + def setLocalIP(self, *args): return _tinyWRAP.SipStack_setLocalIP(self, *args) + def setLocalPort(self, *args): return _tinyWRAP.SipStack_setLocalPort(self, *args) + def setEarlyIMS(self, *args): return _tinyWRAP.SipStack_setEarlyIMS(self, *args) + def addHeader(self, *args): return _tinyWRAP.SipStack_addHeader(self, *args) + def removeHeader(self, *args): return _tinyWRAP.SipStack_removeHeader(self, *args) + def addDnsServer(self, *args): return _tinyWRAP.SipStack_addDnsServer(self, *args) + def setDnsDiscovery(self, *args): return _tinyWRAP.SipStack_setDnsDiscovery(self, *args) + def setAoR(self, *args): return _tinyWRAP.SipStack_setAoR(self, *args) + def setSigCompParams(self, *args): return _tinyWRAP.SipStack_setSigCompParams(self, *args) + def addSigCompCompartment(self, *args): return _tinyWRAP.SipStack_addSigCompCompartment(self, *args) + def removeSigCompCompartment(self, *args): return _tinyWRAP.SipStack_removeSigCompCompartment(self, *args) + def setSTUNEnabledForICE(self, *args): return _tinyWRAP.SipStack_setSTUNEnabledForICE(self, *args) + def setSTUNServer(self, *args): return _tinyWRAP.SipStack_setSTUNServer(self, *args) + def setSTUNCred(self, *args): return _tinyWRAP.SipStack_setSTUNCred(self, *args) + def setSTUNEnabled(self, *args): return _tinyWRAP.SipStack_setSTUNEnabled(self, *args) + def setTLSSecAgree(self, *args): return _tinyWRAP.SipStack_setTLSSecAgree(self, *args) + def setSSLCertificates(self, *args): return _tinyWRAP.SipStack_setSSLCertificates(self, *args) + def setSSLCretificates(self, *args): return _tinyWRAP.SipStack_setSSLCretificates(self, *args) + def setIPSecSecAgree(self, *args): return _tinyWRAP.SipStack_setIPSecSecAgree(self, *args) + def setIPSecParameters(self, *args): return _tinyWRAP.SipStack_setIPSecParameters(self, *args) + def dnsENUM(self, *args): return _tinyWRAP.SipStack_dnsENUM(self, *args) + def dnsNaptrSrv(self, *args): return _tinyWRAP.SipStack_dnsNaptrSrv(self, *args) + def dnsSrv(self, *args): return _tinyWRAP.SipStack_dnsSrv(self, *args) + def setMaxFDs(self, *args): return _tinyWRAP.SipStack_setMaxFDs(self, *args) + def getLocalIPnPort(self, *args): return _tinyWRAP.SipStack_getLocalIPnPort(self, *args) + def getPreferredIdentity(self): return _tinyWRAP.SipStack_getPreferredIdentity(self) + def isValid(self): return _tinyWRAP.SipStack_isValid(self) + def stop(self): return _tinyWRAP.SipStack_stop(self) + __swig_getmethods__["initialize"] = lambda x: _tinyWRAP.SipStack_initialize + if _newclass:initialize = staticmethod(_tinyWRAP.SipStack_initialize) + __swig_getmethods__["deInitialize"] = lambda x: _tinyWRAP.SipStack_deInitialize + if _newclass:deInitialize = staticmethod(_tinyWRAP.SipStack_deInitialize) + __swig_getmethods__["setCodecs"] = lambda x: _tinyWRAP.SipStack_setCodecs + if _newclass:setCodecs = staticmethod(_tinyWRAP.SipStack_setCodecs) + __swig_getmethods__["setCodecs_2"] = lambda x: _tinyWRAP.SipStack_setCodecs_2 + if _newclass:setCodecs_2 = staticmethod(_tinyWRAP.SipStack_setCodecs_2) + __swig_getmethods__["setCodecPriority"] = lambda x: _tinyWRAP.SipStack_setCodecPriority + if _newclass:setCodecPriority = staticmethod(_tinyWRAP.SipStack_setCodecPriority) + __swig_getmethods__["setCodecPriority_2"] = lambda x: _tinyWRAP.SipStack_setCodecPriority_2 + if _newclass:setCodecPriority_2 = staticmethod(_tinyWRAP.SipStack_setCodecPriority_2) + __swig_getmethods__["isCodecSupported"] = lambda x: _tinyWRAP.SipStack_isCodecSupported + if _newclass:isCodecSupported = staticmethod(_tinyWRAP.SipStack_isCodecSupported) + __swig_getmethods__["isIPSecSupported"] = lambda x: _tinyWRAP.SipStack_isIPSecSupported + if _newclass:isIPSecSupported = staticmethod(_tinyWRAP.SipStack_isIPSecSupported) +SipStack_swigregister = _tinyWRAP.SipStack_swigregister +SipStack_swigregister(SipStack) + +def SipStack_initialize(): + return _tinyWRAP.SipStack_initialize() +SipStack_initialize = _tinyWRAP.SipStack_initialize + +def SipStack_deInitialize(): + return _tinyWRAP.SipStack_deInitialize() +SipStack_deInitialize = _tinyWRAP.SipStack_deInitialize + +def SipStack_setCodecs(*args): + return _tinyWRAP.SipStack_setCodecs(*args) +SipStack_setCodecs = _tinyWRAP.SipStack_setCodecs + +def SipStack_setCodecs_2(*args): + return _tinyWRAP.SipStack_setCodecs_2(*args) +SipStack_setCodecs_2 = _tinyWRAP.SipStack_setCodecs_2 + +def SipStack_setCodecPriority(*args): + return _tinyWRAP.SipStack_setCodecPriority(*args) +SipStack_setCodecPriority = _tinyWRAP.SipStack_setCodecPriority + +def SipStack_setCodecPriority_2(*args): + return _tinyWRAP.SipStack_setCodecPriority_2(*args) +SipStack_setCodecPriority_2 = _tinyWRAP.SipStack_setCodecPriority_2 + +def SipStack_isCodecSupported(*args): + return _tinyWRAP.SipStack_isCodecSupported(*args) +SipStack_isCodecSupported = _tinyWRAP.SipStack_isCodecSupported + +def SipStack_isIPSecSupported(): + return _tinyWRAP.SipStack_isIPSecSupported() +SipStack_isIPSecSupported = _tinyWRAP.SipStack_isIPSecSupported + +tsip_stack_mode_ua = _tinyWRAP.tsip_stack_mode_ua +tsip_stack_mode_p2p = _tinyWRAP.tsip_stack_mode_p2p +tsip_stack_mode_mediaproxy = _tinyWRAP.tsip_stack_mode_mediaproxy +tsip_stack_mode_mcu = _tinyWRAP.tsip_stack_mode_mcu +tsip_NONE = _tinyWRAP.tsip_NONE +tsip_ACK = _tinyWRAP.tsip_ACK +tsip_BYE = _tinyWRAP.tsip_BYE +tsip_CANCEL = _tinyWRAP.tsip_CANCEL +tsip_INVITE = _tinyWRAP.tsip_INVITE +tsip_OPTIONS = _tinyWRAP.tsip_OPTIONS +tsip_REGISTER = _tinyWRAP.tsip_REGISTER +tsip_SUBSCRIBE = _tinyWRAP.tsip_SUBSCRIBE +tsip_NOTIFY = _tinyWRAP.tsip_NOTIFY +tsip_REFER = _tinyWRAP.tsip_REFER +tsip_INFO = _tinyWRAP.tsip_INFO +tsip_UPDATE = _tinyWRAP.tsip_UPDATE +tsip_MESSAGE = _tinyWRAP.tsip_MESSAGE +tsip_PUBLISH = _tinyWRAP.tsip_PUBLISH +tsip_PRACK = _tinyWRAP.tsip_PRACK +tsip_event_invite = _tinyWRAP.tsip_event_invite +tsip_event_message = _tinyWRAP.tsip_event_message +tsip_event_info = _tinyWRAP.tsip_event_info +tsip_event_options = _tinyWRAP.tsip_event_options +tsip_event_publish = _tinyWRAP.tsip_event_publish +tsip_event_register = _tinyWRAP.tsip_event_register +tsip_event_subscribe = _tinyWRAP.tsip_event_subscribe +tsip_event_dialog = _tinyWRAP.tsip_event_dialog +tsip_event_code_dialog_transport_error = _tinyWRAP.tsip_event_code_dialog_transport_error +tsip_event_code_dialog_global_error = _tinyWRAP.tsip_event_code_dialog_global_error +tsip_event_code_dialog_message_error = _tinyWRAP.tsip_event_code_dialog_message_error +tsip_event_code_dialog_request_incoming = _tinyWRAP.tsip_event_code_dialog_request_incoming +tsip_event_code_dialog_request_outgoing = _tinyWRAP.tsip_event_code_dialog_request_outgoing +tsip_event_code_dialog_request_cancelled = _tinyWRAP.tsip_event_code_dialog_request_cancelled +tsip_event_code_dialog_request_sent = _tinyWRAP.tsip_event_code_dialog_request_sent +tsip_event_code_dialog_connecting = _tinyWRAP.tsip_event_code_dialog_connecting +tsip_event_code_dialog_connected = _tinyWRAP.tsip_event_code_dialog_connected +tsip_event_code_dialog_terminating = _tinyWRAP.tsip_event_code_dialog_terminating +tsip_event_code_dialog_terminated = _tinyWRAP.tsip_event_code_dialog_terminated +tsip_event_code_stack_starting = _tinyWRAP.tsip_event_code_stack_starting +tsip_event_code_stack_started = _tinyWRAP.tsip_event_code_stack_started +tsip_event_code_stack_stopping = _tinyWRAP.tsip_event_code_stack_stopping +tsip_event_code_stack_stopped = _tinyWRAP.tsip_event_code_stack_stopped +tsip_event_code_stack_failed_to_start = _tinyWRAP.tsip_event_code_stack_failed_to_start +tsip_event_code_stack_failed_to_stop = _tinyWRAP.tsip_event_code_stack_failed_to_stop +tsip_event_code_stack_disconnected = _tinyWRAP.tsip_event_code_stack_disconnected +tsip_i_newreg = _tinyWRAP.tsip_i_newreg +tsip_i_register = _tinyWRAP.tsip_i_register +tsip_ao_register = _tinyWRAP.tsip_ao_register +tsip_i_unregister = _tinyWRAP.tsip_i_unregister +tsip_ao_unregister = _tinyWRAP.tsip_ao_unregister +tsip_i_subscribe = _tinyWRAP.tsip_i_subscribe +tsip_ao_subscribe = _tinyWRAP.tsip_ao_subscribe +tsip_i_unsubscribe = _tinyWRAP.tsip_i_unsubscribe +tsip_ao_unsubscribe = _tinyWRAP.tsip_ao_unsubscribe +tsip_i_notify = _tinyWRAP.tsip_i_notify +tsip_ao_notify = _tinyWRAP.tsip_ao_notify +tsip_i_publish = _tinyWRAP.tsip_i_publish +tsip_ao_publish = _tinyWRAP.tsip_ao_publish +tsip_i_unpublish = _tinyWRAP.tsip_i_unpublish +tsip_ao_unpublish = _tinyWRAP.tsip_ao_unpublish +tsip_i_message = _tinyWRAP.tsip_i_message +tsip_ao_message = _tinyWRAP.tsip_ao_message +tsip_i_info = _tinyWRAP.tsip_i_info +tsip_ao_info = _tinyWRAP.tsip_ao_info +tsip_i_options = _tinyWRAP.tsip_i_options +tsip_ao_options = _tinyWRAP.tsip_ao_options +tsip_i_newcall = _tinyWRAP.tsip_i_newcall +tsip_i_request = _tinyWRAP.tsip_i_request +tsip_ao_request = _tinyWRAP.tsip_ao_request +tsip_o_ect_trying = _tinyWRAP.tsip_o_ect_trying +tsip_o_ect_accepted = _tinyWRAP.tsip_o_ect_accepted +tsip_o_ect_completed = _tinyWRAP.tsip_o_ect_completed +tsip_o_ect_failed = _tinyWRAP.tsip_o_ect_failed +tsip_o_ect_notify = _tinyWRAP.tsip_o_ect_notify +tsip_i_ect_requested = _tinyWRAP.tsip_i_ect_requested +tsip_i_ect_newcall = _tinyWRAP.tsip_i_ect_newcall +tsip_i_ect_completed = _tinyWRAP.tsip_i_ect_completed +tsip_i_ect_failed = _tinyWRAP.tsip_i_ect_failed +tsip_i_ect_notify = _tinyWRAP.tsip_i_ect_notify +tsip_m_early_media = _tinyWRAP.tsip_m_early_media +tsip_m_updating = _tinyWRAP.tsip_m_updating +tsip_m_updated = _tinyWRAP.tsip_m_updated +tsip_m_local_hold_ok = _tinyWRAP.tsip_m_local_hold_ok +tsip_m_local_hold_nok = _tinyWRAP.tsip_m_local_hold_nok +tsip_m_local_resume_ok = _tinyWRAP.tsip_m_local_resume_ok +tsip_m_local_resume_nok = _tinyWRAP.tsip_m_local_resume_nok +tsip_m_remote_hold = _tinyWRAP.tsip_m_remote_hold +tsip_m_remote_resume = _tinyWRAP.tsip_m_remote_resume +tmedia_qos_stype_none = _tinyWRAP.tmedia_qos_stype_none +tmedia_qos_stype_segmented = _tinyWRAP.tmedia_qos_stype_segmented +tmedia_qos_stype_e2e = _tinyWRAP.tmedia_qos_stype_e2e +tmedia_qos_strength_none = _tinyWRAP.tmedia_qos_strength_none +tmedia_qos_strength_failure = _tinyWRAP.tmedia_qos_strength_failure +tmedia_qos_strength_unknown = _tinyWRAP.tmedia_qos_strength_unknown +tmedia_qos_strength_optional = _tinyWRAP.tmedia_qos_strength_optional +tmedia_qos_strength_mandatory = _tinyWRAP.tmedia_qos_strength_mandatory +tmedia_chroma_none = _tinyWRAP.tmedia_chroma_none +tmedia_chroma_rgb24 = _tinyWRAP.tmedia_chroma_rgb24 +tmedia_chroma_bgr24 = _tinyWRAP.tmedia_chroma_bgr24 +tmedia_chroma_rgb32 = _tinyWRAP.tmedia_chroma_rgb32 +tmedia_chroma_rgb565le = _tinyWRAP.tmedia_chroma_rgb565le +tmedia_chroma_rgb565be = _tinyWRAP.tmedia_chroma_rgb565be +tmedia_chroma_nv12 = _tinyWRAP.tmedia_chroma_nv12 +tmedia_chroma_nv21 = _tinyWRAP.tmedia_chroma_nv21 +tmedia_chroma_yuv422p = _tinyWRAP.tmedia_chroma_yuv422p +tmedia_chroma_uyvy422 = _tinyWRAP.tmedia_chroma_uyvy422 +tmedia_chroma_yuv420p = _tinyWRAP.tmedia_chroma_yuv420p +tmedia_chroma_mjpeg = _tinyWRAP.tmedia_chroma_mjpeg +tmedia_chroma_yuyv422 = _tinyWRAP.tmedia_chroma_yuyv422 +tmedia_mode_none = _tinyWRAP.tmedia_mode_none +tmedia_mode_optional = _tinyWRAP.tmedia_mode_optional +tmedia_mode_mandatory = _tinyWRAP.tmedia_mode_mandatory +tmedia_srtp_mode_none = _tinyWRAP.tmedia_srtp_mode_none +tmedia_srtp_mode_optional = _tinyWRAP.tmedia_srtp_mode_optional +tmedia_srtp_mode_mandatory = _tinyWRAP.tmedia_srtp_mode_mandatory +tmedia_srtp_type_none = _tinyWRAP.tmedia_srtp_type_none +tmedia_srtp_type_sdes = _tinyWRAP.tmedia_srtp_type_sdes +tmedia_srtp_type_dtls = _tinyWRAP.tmedia_srtp_type_dtls +tmedia_srtp_type_sdes_dtls = _tinyWRAP.tmedia_srtp_type_sdes_dtls +tmedia_t140_data_type_utf8 = _tinyWRAP.tmedia_t140_data_type_utf8 +tmedia_t140_data_type_zero_width_no_break_space = _tinyWRAP.tmedia_t140_data_type_zero_width_no_break_space +tmedia_t140_data_type_backspace = _tinyWRAP.tmedia_t140_data_type_backspace +tmedia_t140_data_type_esc = _tinyWRAP.tmedia_t140_data_type_esc +tmedia_t140_data_type_cr = _tinyWRAP.tmedia_t140_data_type_cr +tmedia_t140_data_type_lf = _tinyWRAP.tmedia_t140_data_type_lf +tmedia_t140_data_type_cr_lf = _tinyWRAP.tmedia_t140_data_type_cr_lf +tmedia_t140_data_type_interrupt2 = _tinyWRAP.tmedia_t140_data_type_interrupt2 +tmedia_t140_data_type_bell = _tinyWRAP.tmedia_t140_data_type_bell +tmedia_t140_data_type_sos = _tinyWRAP.tmedia_t140_data_type_sos +tmedia_t140_data_type_string_term = _tinyWRAP.tmedia_t140_data_type_string_term +tmedia_t140_data_type_graphic_start = _tinyWRAP.tmedia_t140_data_type_graphic_start +tmedia_t140_data_type_graphic_end = _tinyWRAP.tmedia_t140_data_type_graphic_end +tmedia_t140_data_type_loss_char_char = _tinyWRAP.tmedia_t140_data_type_loss_char_char +tmedia_t140_data_type_loss_utf8 = _tinyWRAP.tmedia_t140_data_type_loss_utf8 +tmedia_profile_default = _tinyWRAP.tmedia_profile_default +tmedia_profile_rtcweb = _tinyWRAP.tmedia_profile_rtcweb +tmedia_bl_low = _tinyWRAP.tmedia_bl_low +tmedia_bl_medium = _tinyWRAP.tmedia_bl_medium +tmedia_bl_hight = _tinyWRAP.tmedia_bl_hight +tmedia_bl_unrestricted = _tinyWRAP.tmedia_bl_unrestricted +tmedia_pref_video_size_sqcif = _tinyWRAP.tmedia_pref_video_size_sqcif +tmedia_pref_video_size_qcif = _tinyWRAP.tmedia_pref_video_size_qcif +tmedia_pref_video_size_qvga = _tinyWRAP.tmedia_pref_video_size_qvga +tmedia_pref_video_size_cif = _tinyWRAP.tmedia_pref_video_size_cif +tmedia_pref_video_size_hvga = _tinyWRAP.tmedia_pref_video_size_hvga +tmedia_pref_video_size_vga = _tinyWRAP.tmedia_pref_video_size_vga +tmedia_pref_video_size_4cif = _tinyWRAP.tmedia_pref_video_size_4cif +tmedia_pref_video_size_wvga = _tinyWRAP.tmedia_pref_video_size_wvga +tmedia_pref_video_size_svga = _tinyWRAP.tmedia_pref_video_size_svga +tmedia_pref_video_size_480p = _tinyWRAP.tmedia_pref_video_size_480p +tmedia_pref_video_size_xga = _tinyWRAP.tmedia_pref_video_size_xga +tmedia_pref_video_size_720p = _tinyWRAP.tmedia_pref_video_size_720p +tmedia_pref_video_size_16cif = _tinyWRAP.tmedia_pref_video_size_16cif +tmedia_pref_video_size_1080p = _tinyWRAP.tmedia_pref_video_size_1080p +tmedia_pref_video_size_2160p = _tinyWRAP.tmedia_pref_video_size_2160p +tmedia_codec_id_none = _tinyWRAP.tmedia_codec_id_none +tmedia_codec_id_amr_nb_oa = _tinyWRAP.tmedia_codec_id_amr_nb_oa +tmedia_codec_id_amr_nb_be = _tinyWRAP.tmedia_codec_id_amr_nb_be +tmedia_codec_id_amr_wb_oa = _tinyWRAP.tmedia_codec_id_amr_wb_oa +tmedia_codec_id_amr_wb_be = _tinyWRAP.tmedia_codec_id_amr_wb_be +tmedia_codec_id_gsm = _tinyWRAP.tmedia_codec_id_gsm +tmedia_codec_id_pcma = _tinyWRAP.tmedia_codec_id_pcma +tmedia_codec_id_pcmu = _tinyWRAP.tmedia_codec_id_pcmu +tmedia_codec_id_ilbc = _tinyWRAP.tmedia_codec_id_ilbc +tmedia_codec_id_speex_nb = _tinyWRAP.tmedia_codec_id_speex_nb +tmedia_codec_id_speex_wb = _tinyWRAP.tmedia_codec_id_speex_wb +tmedia_codec_id_speex_uwb = _tinyWRAP.tmedia_codec_id_speex_uwb +tmedia_codec_id_bv16 = _tinyWRAP.tmedia_codec_id_bv16 +tmedia_codec_id_bv32 = _tinyWRAP.tmedia_codec_id_bv32 +tmedia_codec_id_opus = _tinyWRAP.tmedia_codec_id_opus +tmedia_codec_id_g729ab = _tinyWRAP.tmedia_codec_id_g729ab +tmedia_codec_id_g722 = _tinyWRAP.tmedia_codec_id_g722 +tmedia_codec_id_h261 = _tinyWRAP.tmedia_codec_id_h261 +tmedia_codec_id_h263 = _tinyWRAP.tmedia_codec_id_h263 +tmedia_codec_id_h263p = _tinyWRAP.tmedia_codec_id_h263p +tmedia_codec_id_h263pp = _tinyWRAP.tmedia_codec_id_h263pp +tmedia_codec_id_h264_bp = _tinyWRAP.tmedia_codec_id_h264_bp +tmedia_codec_id_h264_mp = _tinyWRAP.tmedia_codec_id_h264_mp +tmedia_codec_id_h264_hp = _tinyWRAP.tmedia_codec_id_h264_hp +tmedia_codec_id_h264_bp10 = _tinyWRAP.tmedia_codec_id_h264_bp10 +tmedia_codec_id_h264_bp20 = _tinyWRAP.tmedia_codec_id_h264_bp20 +tmedia_codec_id_h264_bp30 = _tinyWRAP.tmedia_codec_id_h264_bp30 +tmedia_codec_id_h264_svc = _tinyWRAP.tmedia_codec_id_h264_svc +tmedia_codec_id_theora = _tinyWRAP.tmedia_codec_id_theora +tmedia_codec_id_mp4ves_es = _tinyWRAP.tmedia_codec_id_mp4ves_es +tmedia_codec_id_vp8 = _tinyWRAP.tmedia_codec_id_vp8 +tmedia_codec_id_t140 = _tinyWRAP.tmedia_codec_id_t140 +tmedia_codec_id_red = _tinyWRAP.tmedia_codec_id_red +tdav_codec_id_none = _tinyWRAP.tdav_codec_id_none +tdav_codec_id_amr_nb_oa = _tinyWRAP.tdav_codec_id_amr_nb_oa +tdav_codec_id_amr_nb_be = _tinyWRAP.tdav_codec_id_amr_nb_be +tdav_codec_id_amr_wb_oa = _tinyWRAP.tdav_codec_id_amr_wb_oa +tdav_codec_id_amr_wb_be = _tinyWRAP.tdav_codec_id_amr_wb_be +tdav_codec_id_gsm = _tinyWRAP.tdav_codec_id_gsm +tdav_codec_id_pcma = _tinyWRAP.tdav_codec_id_pcma +tdav_codec_id_pcmu = _tinyWRAP.tdav_codec_id_pcmu +tdav_codec_id_ilbc = _tinyWRAP.tdav_codec_id_ilbc +tdav_codec_id_speex_nb = _tinyWRAP.tdav_codec_id_speex_nb +tdav_codec_id_speex_wb = _tinyWRAP.tdav_codec_id_speex_wb +tdav_codec_id_speex_uwb = _tinyWRAP.tdav_codec_id_speex_uwb +tdav_codec_id_bv16 = _tinyWRAP.tdav_codec_id_bv16 +tdav_codec_id_bv32 = _tinyWRAP.tdav_codec_id_bv32 +tdav_codec_id_opus = _tinyWRAP.tdav_codec_id_opus +tdav_codec_id_g729ab = _tinyWRAP.tdav_codec_id_g729ab +tdav_codec_id_g722 = _tinyWRAP.tdav_codec_id_g722 +tdav_codec_id_h261 = _tinyWRAP.tdav_codec_id_h261 +tdav_codec_id_h263 = _tinyWRAP.tdav_codec_id_h263 +tdav_codec_id_h263p = _tinyWRAP.tdav_codec_id_h263p +tdav_codec_id_h263pp = _tinyWRAP.tdav_codec_id_h263pp +tdav_codec_id_h264_bp = _tinyWRAP.tdav_codec_id_h264_bp +tdav_codec_id_h264_mp = _tinyWRAP.tdav_codec_id_h264_mp +tdav_codec_id_h264_hp = _tinyWRAP.tdav_codec_id_h264_hp +tdav_codec_id_h264_bp10 = _tinyWRAP.tdav_codec_id_h264_bp10 +tdav_codec_id_h264_bp20 = _tinyWRAP.tdav_codec_id_h264_bp20 +tdav_codec_id_h264_bp30 = _tinyWRAP.tdav_codec_id_h264_bp30 +tdav_codec_id_h264_svc = _tinyWRAP.tdav_codec_id_h264_svc +tdav_codec_id_theora = _tinyWRAP.tdav_codec_id_theora +tdav_codec_id_mp4ves_es = _tinyWRAP.tdav_codec_id_mp4ves_es +tdav_codec_id_vp8 = _tinyWRAP.tdav_codec_id_vp8 +tdav_codec_id_t140 = _tinyWRAP.tdav_codec_id_t140 +tdav_codec_id_red = _tinyWRAP.tdav_codec_id_red +class XcapSelector(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, XcapSelector, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, XcapSelector, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_XcapSelector(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_XcapSelector + __del__ = lambda self : None; + def setAUID(self, *args): return _tinyWRAP.XcapSelector_setAUID(self, *args) + def setName(self, *args): return _tinyWRAP.XcapSelector_setName(self, *args) + def setAttribute(self, *args): return _tinyWRAP.XcapSelector_setAttribute(self, *args) + def setPos(self, *args): return _tinyWRAP.XcapSelector_setPos(self, *args) + def setPosAttribute(self, *args): return _tinyWRAP.XcapSelector_setPosAttribute(self, *args) + def setNamespace(self, *args): return _tinyWRAP.XcapSelector_setNamespace(self, *args) + def getString(self): return _tinyWRAP.XcapSelector_getString(self) + def reset(self): return _tinyWRAP.XcapSelector_reset(self) +XcapSelector_swigregister = _tinyWRAP.XcapSelector_swigregister +XcapSelector_swigregister(XcapSelector) + +class XcapMessage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, XcapMessage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, XcapMessage, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_XcapMessage() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_XcapMessage + __del__ = lambda self : None; + def getCode(self): return _tinyWRAP.XcapMessage_getCode(self) + def getPhrase(self): return _tinyWRAP.XcapMessage_getPhrase(self) + def getXcapHeaderValue(self, *args): return _tinyWRAP.XcapMessage_getXcapHeaderValue(self, *args) + def getXcapHeaderParamValue(self, *args): return _tinyWRAP.XcapMessage_getXcapHeaderParamValue(self, *args) + def getXcapContentLength(self): return _tinyWRAP.XcapMessage_getXcapContentLength(self) + def getXcapContent(self, *args): return _tinyWRAP.XcapMessage_getXcapContent(self, *args) +XcapMessage_swigregister = _tinyWRAP.XcapMessage_swigregister +XcapMessage_swigregister(XcapMessage) + +class XcapEvent(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, XcapEvent, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, XcapEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_XcapEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.XcapEvent_getType(self) + def getXcapMessage(self): return _tinyWRAP.XcapEvent_getXcapMessage(self) +XcapEvent_swigregister = _tinyWRAP.XcapEvent_swigregister +XcapEvent_swigregister(XcapEvent) + +class XcapCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, XcapCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, XcapCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == XcapCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_XcapCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_XcapCallback + __del__ = lambda self : None; + def onEvent(self, *args): return _tinyWRAP.XcapCallback_onEvent(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_XcapCallback(self) + return weakref_proxy(self) +XcapCallback_swigregister = _tinyWRAP.XcapCallback_swigregister +XcapCallback_swigregister(XcapCallback) + +class XcapStack(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, XcapStack, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, XcapStack, name) + __repr__ = _swig_repr + def __init__(self, *args): + this = _tinyWRAP.new_XcapStack(*args) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_XcapStack + __del__ = lambda self : None; + def registerAUID(self, *args): return _tinyWRAP.XcapStack_registerAUID(self, *args) + def start(self): return _tinyWRAP.XcapStack_start(self) + def setCredentials(self, *args): return _tinyWRAP.XcapStack_setCredentials(self, *args) + def setXcapRoot(self, *args): return _tinyWRAP.XcapStack_setXcapRoot(self, *args) + def setLocalIP(self, *args): return _tinyWRAP.XcapStack_setLocalIP(self, *args) + def setLocalPort(self, *args): return _tinyWRAP.XcapStack_setLocalPort(self, *args) + def addHeader(self, *args): return _tinyWRAP.XcapStack_addHeader(self, *args) + def removeHeader(self, *args): return _tinyWRAP.XcapStack_removeHeader(self, *args) + def setTimeout(self, *args): return _tinyWRAP.XcapStack_setTimeout(self, *args) + def getDocument(self, *args): return _tinyWRAP.XcapStack_getDocument(self, *args) + def getElement(self, *args): return _tinyWRAP.XcapStack_getElement(self, *args) + def getAttribute(self, *args): return _tinyWRAP.XcapStack_getAttribute(self, *args) + def deleteDocument(self, *args): return _tinyWRAP.XcapStack_deleteDocument(self, *args) + def deleteElement(self, *args): return _tinyWRAP.XcapStack_deleteElement(self, *args) + def deleteAttribute(self, *args): return _tinyWRAP.XcapStack_deleteAttribute(self, *args) + def putDocument(self, *args): return _tinyWRAP.XcapStack_putDocument(self, *args) + def putElement(self, *args): return _tinyWRAP.XcapStack_putElement(self, *args) + def putAttribute(self, *args): return _tinyWRAP.XcapStack_putAttribute(self, *args) + def stop(self): return _tinyWRAP.XcapStack_stop(self) +XcapStack_swigregister = _tinyWRAP.XcapStack_swigregister +XcapStack_swigregister(XcapStack) + +thttp_event_dialog_started = _tinyWRAP.thttp_event_dialog_started +thttp_event_message = _tinyWRAP.thttp_event_message +thttp_event_auth_failed = _tinyWRAP.thttp_event_auth_failed +thttp_event_closed = _tinyWRAP.thttp_event_closed +thttp_event_transport_error = _tinyWRAP.thttp_event_transport_error +thttp_event_dialog_terminated = _tinyWRAP.thttp_event_dialog_terminated +twrap_rpmessage_type_sms_none = _tinyWRAP.twrap_rpmessage_type_sms_none +twrap_rpmessage_type_sms_submit = _tinyWRAP.twrap_rpmessage_type_sms_submit +twrap_rpmessage_type_sms_deliver = _tinyWRAP.twrap_rpmessage_type_sms_deliver +twrap_rpmessage_type_sms_ack = _tinyWRAP.twrap_rpmessage_type_sms_ack +twrap_rpmessage_type_sms_error = _tinyWRAP.twrap_rpmessage_type_sms_error +twrap_sms_type_none = _tinyWRAP.twrap_sms_type_none +twrap_sms_type_rpdata = _tinyWRAP.twrap_sms_type_rpdata +twrap_sms_type_smma = _tinyWRAP.twrap_sms_type_smma +twrap_sms_type_ack = _tinyWRAP.twrap_sms_type_ack +twrap_sms_type_error = _tinyWRAP.twrap_sms_type_error +class RPMessage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, RPMessage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, RPMessage, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_RPMessage() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_RPMessage + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.RPMessage_getType(self) + def getPayloadLength(self): return _tinyWRAP.RPMessage_getPayloadLength(self) + def getPayload(self, *args): return _tinyWRAP.RPMessage_getPayload(self, *args) +RPMessage_swigregister = _tinyWRAP.RPMessage_swigregister +RPMessage_swigregister(RPMessage) + +class SMSData(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SMSData, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SMSData, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_SMSData() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_SMSData + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.SMSData_getType(self) + def getMR(self): return _tinyWRAP.SMSData_getMR(self) + def getPayloadLength(self): return _tinyWRAP.SMSData_getPayloadLength(self) + def getPayload(self, *args): return _tinyWRAP.SMSData_getPayload(self, *args) + def getOA(self): return _tinyWRAP.SMSData_getOA(self) + def getDA(self): return _tinyWRAP.SMSData_getDA(self) +SMSData_swigregister = _tinyWRAP.SMSData_swigregister +SMSData_swigregister(SMSData) + +class SMSEncoder(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, SMSEncoder, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, SMSEncoder, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_getmethods__["encodeSubmit"] = lambda x: _tinyWRAP.SMSEncoder_encodeSubmit + if _newclass:encodeSubmit = staticmethod(_tinyWRAP.SMSEncoder_encodeSubmit) + __swig_getmethods__["encodeDeliver"] = lambda x: _tinyWRAP.SMSEncoder_encodeDeliver + if _newclass:encodeDeliver = staticmethod(_tinyWRAP.SMSEncoder_encodeDeliver) + __swig_getmethods__["encodeACK"] = lambda x: _tinyWRAP.SMSEncoder_encodeACK + if _newclass:encodeACK = staticmethod(_tinyWRAP.SMSEncoder_encodeACK) + __swig_getmethods__["encodeError"] = lambda x: _tinyWRAP.SMSEncoder_encodeError + if _newclass:encodeError = staticmethod(_tinyWRAP.SMSEncoder_encodeError) + __swig_getmethods__["decode"] = lambda x: _tinyWRAP.SMSEncoder_decode + if _newclass:decode = staticmethod(_tinyWRAP.SMSEncoder_decode) + __swig_destroy__ = _tinyWRAP.delete_SMSEncoder + __del__ = lambda self : None; +SMSEncoder_swigregister = _tinyWRAP.SMSEncoder_swigregister +SMSEncoder_swigregister(SMSEncoder) + +def SMSEncoder_encodeSubmit(*args): + return _tinyWRAP.SMSEncoder_encodeSubmit(*args) +SMSEncoder_encodeSubmit = _tinyWRAP.SMSEncoder_encodeSubmit + +def SMSEncoder_encodeDeliver(*args): + return _tinyWRAP.SMSEncoder_encodeDeliver(*args) +SMSEncoder_encodeDeliver = _tinyWRAP.SMSEncoder_encodeDeliver + +def SMSEncoder_encodeACK(*args): + return _tinyWRAP.SMSEncoder_encodeACK(*args) +SMSEncoder_encodeACK = _tinyWRAP.SMSEncoder_encodeACK + +def SMSEncoder_encodeError(*args): + return _tinyWRAP.SMSEncoder_encodeError(*args) +SMSEncoder_encodeError = _tinyWRAP.SMSEncoder_encodeError + +def SMSEncoder_decode(*args): + return _tinyWRAP.SMSEncoder_decode(*args) +SMSEncoder_decode = _tinyWRAP.SMSEncoder_decode + +class MsrpMessage(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, MsrpMessage, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, MsrpMessage, name) + __repr__ = _swig_repr + def __init__(self): + this = _tinyWRAP.new_MsrpMessage() + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_MsrpMessage + __del__ = lambda self : None; + def isRequest(self): return _tinyWRAP.MsrpMessage_isRequest(self) + def getCode(self): return _tinyWRAP.MsrpMessage_getCode(self) + def getPhrase(self): return _tinyWRAP.MsrpMessage_getPhrase(self) + def getRequestType(self): return _tinyWRAP.MsrpMessage_getRequestType(self) + def getByteRange(self): return _tinyWRAP.MsrpMessage_getByteRange(self) + def isLastChunck(self): return _tinyWRAP.MsrpMessage_isLastChunck(self) + def isFirstChunck(self): return _tinyWRAP.MsrpMessage_isFirstChunck(self) + def isSuccessReport(self): return _tinyWRAP.MsrpMessage_isSuccessReport(self) + def getMsrpHeaderValue(self, *args): return _tinyWRAP.MsrpMessage_getMsrpHeaderValue(self, *args) + def getMsrpHeaderParamValue(self, *args): return _tinyWRAP.MsrpMessage_getMsrpHeaderParamValue(self, *args) + def getMsrpContentLength(self): return _tinyWRAP.MsrpMessage_getMsrpContentLength(self) + def getMsrpContent(self, *args): return _tinyWRAP.MsrpMessage_getMsrpContent(self, *args) +MsrpMessage_swigregister = _tinyWRAP.MsrpMessage_swigregister +MsrpMessage_swigregister(MsrpMessage) + +class MsrpEvent(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, MsrpEvent, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, MsrpEvent, name) + def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") + __repr__ = _swig_repr + __swig_destroy__ = _tinyWRAP.delete_MsrpEvent + __del__ = lambda self : None; + def getType(self): return _tinyWRAP.MsrpEvent_getType(self) + def getSipSession(self): return _tinyWRAP.MsrpEvent_getSipSession(self) + def getMessage(self): return _tinyWRAP.MsrpEvent_getMessage(self) +MsrpEvent_swigregister = _tinyWRAP.MsrpEvent_swigregister +MsrpEvent_swigregister(MsrpEvent) + +class MsrpCallback(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, MsrpCallback, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, MsrpCallback, name) + __repr__ = _swig_repr + def __init__(self): + if self.__class__ == MsrpCallback: + _self = None + else: + _self = self + this = _tinyWRAP.new_MsrpCallback(_self, ) + try: self.this.append(this) + except: self.this = this + __swig_destroy__ = _tinyWRAP.delete_MsrpCallback + __del__ = lambda self : None; + def OnEvent(self, *args): return _tinyWRAP.MsrpCallback_OnEvent(self, *args) + def __disown__(self): + self.this.disown() + _tinyWRAP.disown_MsrpCallback(self) + return weakref_proxy(self) +MsrpCallback_swigregister = _tinyWRAP.MsrpCallback_swigregister +MsrpCallback_swigregister(MsrpCallback) + +tmsrp_NONE = _tinyWRAP.tmsrp_NONE +tmsrp_SEND = _tinyWRAP.tmsrp_SEND +tmsrp_REPORT = _tinyWRAP.tmsrp_REPORT +tmsrp_AUTH = _tinyWRAP.tmsrp_AUTH +tmsrp_event_type_none = _tinyWRAP.tmsrp_event_type_none +tmsrp_event_type_connected = _tinyWRAP.tmsrp_event_type_connected +tmsrp_event_type_disconnected = _tinyWRAP.tmsrp_event_type_disconnected +tmsrp_event_type_message = _tinyWRAP.tmsrp_event_type_message +# This file is compatible with both classic and new-style classes. + + diff --git a/bindings/python/tinyWRAP_wrap.cxx b/bindings/python/tinyWRAP_wrap.cxx new file mode 100644 index 0000000..1c61908 --- /dev/null +++ b/bindings/python/tinyWRAP_wrap.cxx @@ -0,0 +1,28268 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGPYTHON +#define SWIG_DIRECTORS +#define SWIG_PYTHON_DIRECTOR_NO_VTABLE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +/* Python.h has to appear first */ +#include + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return an integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class" == "Class", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like ||... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like ||... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +/* Compatibility macros for Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + +#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) +#define PyInt_Check(x) PyLong_Check(x) +#define PyInt_AsLong(x) PyLong_AsLong(x) +#define PyInt_FromLong(x) PyLong_FromLong(x) +#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) +#define PyString_Check(name) PyBytes_Check(name) +#define PyString_FromString(x) PyUnicode_FromString(x) +#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) +#define PyString_AsString(str) PyBytes_AsString(str) +#define PyString_Size(str) PyBytes_Size(str) +#define PyString_InternFromString(key) PyUnicode_InternFromString(key) +#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE +#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) +#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) + +#endif + +#ifndef Py_TYPE +# define Py_TYPE(op) ((op)->ob_type) +#endif + +/* SWIG APIs for compatibility of both Python 2 & 3 */ + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_FromFormat PyUnicode_FromFormat +#else +# define SWIG_Python_str_FromFormat PyString_FromFormat +#endif + + +/* Warning: This function will allocate a new string in Python 3, + * so please call SWIG_Python_str_DelForPy3(x) to free the space. + */ +SWIGINTERN char* +SWIG_Python_str_AsChar(PyObject *str) +{ +#if PY_VERSION_HEX >= 0x03000000 + char *cstr; + char *newstr; + Py_ssize_t len; + str = PyUnicode_AsUTF8String(str); + PyBytes_AsStringAndSize(str, &cstr, &len); + newstr = (char *) malloc(len+1); + memcpy(newstr, cstr, len+1); + Py_XDECREF(str); + return newstr; +#else + return PyString_AsString(str); +#endif +} + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) +#else +# define SWIG_Python_str_DelForPy3(x) +#endif + + +SWIGINTERN PyObject* +SWIG_Python_str_FromChar(const char *c) +{ +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromString(c); +#else + return PyString_FromString(c); +#endif +} + +/* Add PyOS_snprintf for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) +# define PyOS_snprintf _snprintf +# else +# define PyOS_snprintf snprintf +# endif +#endif + +/* A crude PyString_FromFormat implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 + +#ifndef SWIG_PYBUFFER_SIZE +# define SWIG_PYBUFFER_SIZE 1024 +#endif + +static PyObject * +PyString_FromFormat(const char *fmt, ...) { + va_list ap; + char buf[SWIG_PYBUFFER_SIZE * 2]; + int res; + va_start(ap, fmt); + res = vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); +} +#endif + +/* Add PyObject_Del for old Pythons */ +#if PY_VERSION_HEX < 0x01060000 +# define PyObject_Del(op) PyMem_DEL((op)) +#endif +#ifndef PyObject_DEL +# define PyObject_DEL PyObject_Del +#endif + +/* A crude PyExc_StopIteration exception for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# ifndef PyExc_StopIteration +# define PyExc_StopIteration PyExc_RuntimeError +# endif +# ifndef PyObject_GenericGetAttr +# define PyObject_GenericGetAttr 0 +# endif +#endif + +/* Py_NotImplemented is defined in 2.1 and up. */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef Py_NotImplemented +# define Py_NotImplemented PyExc_RuntimeError +# endif +#endif + +/* A crude PyString_AsStringAndSize implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} +# endif +#endif + +/* PySequence_Size for old Pythons */ +#if PY_VERSION_HEX < 0x02000000 +# ifndef PySequence_Size +# define PySequence_Size PySequence_Length +# endif +#endif + +/* PyBool_FromLong for old Pythons */ +#if PY_VERSION_HEX < 0x02030000 +static +PyObject *PyBool_FromLong(long ok) +{ + PyObject *result = ok ? Py_True : Py_False; + Py_INCREF(result); + return result; +} +#endif + +/* Py_ssize_t for old Pythons */ +/* This code is as recommended by: */ +/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +typedef inquiry lenfunc; +typedef intargfunc ssizeargfunc; +typedef intintargfunc ssizessizeargfunc; +typedef intobjargproc ssizeobjargproc; +typedef intintobjargproc ssizessizeobjargproc; +typedef getreadbufferproc readbufferproc; +typedef getwritebufferproc writebufferproc; +typedef getsegcountproc segcountproc; +typedef getcharbufferproc charbufferproc; +static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) +{ + long result = 0; + PyObject *i = PyNumber_Int(x); + if (i) { + result = PyInt_AsLong(i); + Py_DECREF(i); + } + return result; +} +#endif + +#if PY_VERSION_HEX < 0x02050000 +#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) +#endif + +#if PY_VERSION_HEX < 0x02040000 +#define Py_VISIT(op) \ + do { \ + if (op) { \ + int vret = visit((op), arg); \ + if (vret) \ + return vret; \ + } \ + } while (0) +#endif + +#if PY_VERSION_HEX < 0x02030000 +typedef struct { + PyTypeObject type; + PyNumberMethods as_number; + PyMappingMethods as_mapping; + PySequenceMethods as_sequence; + PyBufferProcs as_buffer; + PyObject *name, *slots; +} PyHeapTypeObject; +#endif + +#if PY_VERSION_HEX < 0x02030000 +typedef destructor freefunc; +#endif + +#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ + (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ + (PY_MAJOR_VERSION > 3)) +# define SWIGPY_USE_CAPSULE +# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) +#endif + +#if PY_VERSION_HEX < 0x03020000 +#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) +#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIME PyObject* +SWIG_Python_ErrorType(int code) { + PyObject* type = 0; + switch(code) { + case SWIG_MemoryError: + type = PyExc_MemoryError; + break; + case SWIG_IOError: + type = PyExc_IOError; + break; + case SWIG_RuntimeError: + type = PyExc_RuntimeError; + break; + case SWIG_IndexError: + type = PyExc_IndexError; + break; + case SWIG_TypeError: + type = PyExc_TypeError; + break; + case SWIG_DivisionByZero: + type = PyExc_ZeroDivisionError; + break; + case SWIG_OverflowError: + type = PyExc_OverflowError; + break; + case SWIG_SyntaxError: + type = PyExc_SyntaxError; + break; + case SWIG_ValueError: + type = PyExc_ValueError; + break; + case SWIG_SystemError: + type = PyExc_SystemError; + break; + case SWIG_AttributeError: + type = PyExc_AttributeError; + break; + default: + type = PyExc_RuntimeError; + } + return type; +} + + +SWIGRUNTIME void +SWIG_Python_AddErrorMsg(const char* mesg) +{ + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + + if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + PyErr_Clear(); + Py_XINCREF(type); + + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + Py_DECREF(value); + } else { + PyErr_SetString(PyExc_RuntimeError, mesg); + } +} + +#if defined(SWIG_PYTHON_NO_THREADS) +# if defined(SWIG_PYTHON_THREADS) +# undef SWIG_PYTHON_THREADS +# endif +#endif +#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ +# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) +# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ +# define SWIG_PYTHON_USE_GIL +# endif +# endif +# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ +# ifndef SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# endif +# ifdef __cplusplus /* C++ code */ + class SWIG_Python_Thread_Block { + bool status; + PyGILState_STATE state; + public: + void end() { if (status) { PyGILState_Release(state); status = false;} } + SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} + ~SWIG_Python_Thread_Block() { end(); } + }; + class SWIG_Python_Thread_Allow { + bool status; + PyThreadState *save; + public: + void end() { if (status) { PyEval_RestoreThread(save); status = false; }} + SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} + ~SWIG_Python_Thread_Allow() { end(); } + }; +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block +# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow +# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() +# else /* C code */ +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() +# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() +# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) +# endif +# else /* Old thread way, not implemented, user must provide it */ +# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) +# define SWIG_PYTHON_INITIALIZE_THREADS +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) +# define SWIG_PYTHON_THREAD_END_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# endif +# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) +# define SWIG_PYTHON_THREAD_END_ALLOW +# endif +# endif +#else /* No thread support */ +# define SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# define SWIG_PYTHON_THREAD_END_BLOCK +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# define SWIG_PYTHON_THREAD_END_ALLOW +#endif + +/* ----------------------------------------------------------------------------- + * Python API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* ----------------------------------------------------------------------------- + * Constant declarations + * ----------------------------------------------------------------------------- */ + +/* Constant Types */ +#define SWIG_PY_POINTER 4 +#define SWIG_PY_BINARY 5 + +/* Constant information structure */ +typedef struct swig_const_info { + int type; + char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_const_info; + + +/* ----------------------------------------------------------------------------- + * Wrapper of PyInstanceMethod_New() used in Python 3 + * It is exported to the generated module, used for -fastproxy + * ----------------------------------------------------------------------------- */ +#if PY_VERSION_HEX >= 0x03000000 +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) +{ + return PyInstanceMethod_New(func); +} +#else +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) +{ + return NULL; +} +#endif + +#ifdef __cplusplus +} +#endif + + +/* ----------------------------------------------------------------------------- + * pyrun.swg + * + * This file contains the runtime support for Python modules + * and includes code for managing global variables and pointer + * type checking. + * + * ----------------------------------------------------------------------------- */ + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) + +#ifdef SWIGPYTHON_BUILTIN +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) +#else +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) +#endif + +#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) + +#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) +#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) +#define swig_owntype int + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) +#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) +#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) + +#define SWIG_SetErrorObj SWIG_Python_SetErrorObj +#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg +#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) +#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Runtime API implementation */ + +/* Error manipulation */ + +SWIGINTERN void +SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetObject(errtype, obj); + Py_DECREF(obj); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +SWIGINTERN void +SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetString(errtype, msg); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) + +/* Set a constant value */ + +#if defined(SWIGPYTHON_BUILTIN) + +SWIGINTERN void +SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { + PyObject *s = PyString_InternFromString(key); + PyList_Append(seq, s); + Py_DECREF(s); +} + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { +#if PY_VERSION_HEX < 0x02030000 + PyDict_SetItemString(d, (char *)name, obj); +#else + PyDict_SetItemString(d, name, obj); +#endif + Py_DECREF(obj); + if (public_interface) + SwigPyBuiltin_AddPublicSymbol(public_interface, name); +} + +#else + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { +#if PY_VERSION_HEX < 0x02030000 + PyDict_SetItemString(d, (char *)name, obj); +#else + PyDict_SetItemString(d, name, obj); +#endif + Py_DECREF(obj); +} + +#endif + +/* Append a value to the result obj */ + +SWIGINTERN PyObject* +SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { +#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyList_Check(result)) { + PyObject *o2 = result; + result = PyList_New(1); + PyList_SetItem(result, 0, o2); + } + PyList_Append(result,obj); + Py_DECREF(obj); + } + return result; +#else + PyObject* o2; + PyObject* o3; + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyTuple_Check(result)) { + o2 = result; + result = PyTuple_New(1); + PyTuple_SET_ITEM(result, 0, o2); + } + o3 = PyTuple_New(1); + PyTuple_SET_ITEM(o3, 0, obj); + o2 = result; + result = PySequence_Concat(o2, o3); + Py_DECREF(o2); + Py_DECREF(o3); + } + return result; +#endif +} + +/* Unpack the argument tuple */ + +SWIGINTERN int +SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +{ + if (!args) { + if (!min && !max) { + return 1; + } else { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", + name, (min == max ? "" : "at least "), (int)min); + return 0; + } + } + if (!PyTuple_Check(args)) { + if (min <= 1 && max >= 1) { + register int i; + objs[0] = args; + for (i = 1; i < max; ++i) { + objs[i] = 0; + } + return 2; + } + PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); + return 0; + } else { + register Py_ssize_t l = PyTuple_GET_SIZE(args); + if (l < min) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at least "), (int)min, (int)l); + return 0; + } else if (l > max) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at most "), (int)max, (int)l); + return 0; + } else { + register int i; + for (i = 0; i < l; ++i) { + objs[i] = PyTuple_GET_ITEM(args, i); + } + for (; l < max; ++l) { + objs[l] = 0; + } + return i + 1; + } + } +} + +/* A functor is a function object with one single object argument */ +#if PY_VERSION_HEX >= 0x02020000 +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); +#else +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); +#endif + +/* + Helper for static pointer initialization for both C and C++ code, for example + static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); +*/ +#ifdef __cplusplus +#define SWIG_STATIC_POINTER(var) var +#else +#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var +#endif + +/* ----------------------------------------------------------------------------- + * Pointer declarations + * ----------------------------------------------------------------------------- */ + +/* Flags for new pointer objects */ +#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) +#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) + +#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) + +#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) +#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) + +#ifdef __cplusplus +extern "C" { +#endif + +/* How to access Py_None */ +#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# ifndef SWIG_PYTHON_NO_BUILD_NONE +# ifndef SWIG_PYTHON_BUILD_NONE +# define SWIG_PYTHON_BUILD_NONE +# endif +# endif +#endif + +#ifdef SWIG_PYTHON_BUILD_NONE +# ifdef Py_None +# undef Py_None +# define Py_None SWIG_Py_None() +# endif +SWIGRUNTIMEINLINE PyObject * +_SWIG_Py_None(void) +{ + PyObject *none = Py_BuildValue((char*)""); + Py_DECREF(none); + return none; +} +SWIGRUNTIME PyObject * +SWIG_Py_None(void) +{ + static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); + return none; +} +#endif + +/* The python void return value */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Py_Void(void) +{ + PyObject *none = Py_None; + Py_INCREF(none); + return none; +} + +/* SwigPyClientData */ + +typedef struct { + PyObject *klass; + PyObject *newraw; + PyObject *newargs; + PyObject *destroy; + int delargs; + int implicitconv; + PyTypeObject *pytype; +} SwigPyClientData; + +SWIGRUNTIMEINLINE int +SWIG_Python_CheckImplicit(swig_type_info *ty) +{ + SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; + return data ? data->implicitconv : 0; +} + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_ExceptionType(swig_type_info *desc) { + SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; + PyObject *klass = data ? data->klass : 0; + return (klass ? klass : PyExc_RuntimeError); +} + + +SWIGRUNTIME SwigPyClientData * +SwigPyClientData_New(PyObject* obj) +{ + if (!obj) { + return 0; + } else { + SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); + /* the klass element */ + data->klass = obj; + Py_INCREF(data->klass); + /* the newraw method and newargs arguments used to create a new raw instance */ + if (PyClass_Check(obj)) { + data->newraw = 0; + data->newargs = obj; + Py_INCREF(obj); + } else { +#if (PY_VERSION_HEX < 0x02020000) + data->newraw = 0; +#else + data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); +#endif + if (data->newraw) { + Py_INCREF(data->newraw); + data->newargs = PyTuple_New(1); + PyTuple_SetItem(data->newargs, 0, obj); + } else { + data->newargs = obj; + } + Py_INCREF(data->newargs); + } + /* the destroy method, aka as the C++ delete method */ + data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); + if (PyErr_Occurred()) { + PyErr_Clear(); + data->destroy = 0; + } + if (data->destroy) { + int flags; + Py_INCREF(data->destroy); + flags = PyCFunction_GET_FLAGS(data->destroy); +#ifdef METH_O + data->delargs = !(flags & (METH_O)); +#else + data->delargs = 0; +#endif + } else { + data->delargs = 0; + } + data->implicitconv = 0; + data->pytype = 0; + return data; + } +} + +SWIGRUNTIME void +SwigPyClientData_Del(SwigPyClientData *data) { + Py_XDECREF(data->newraw); + Py_XDECREF(data->newargs); + Py_XDECREF(data->destroy); +} + +/* =============== SwigPyObject =====================*/ + +typedef struct { + PyObject_HEAD + void *ptr; + swig_type_info *ty; + int own; + PyObject *next; +#ifdef SWIGPYTHON_BUILTIN + PyObject *dict; +#endif +} SwigPyObject; + +SWIGRUNTIME PyObject * +SwigPyObject_long(SwigPyObject *v) +{ + return PyLong_FromVoidPtr(v->ptr); +} + +SWIGRUNTIME PyObject * +SwigPyObject_format(const char* fmt, SwigPyObject *v) +{ + PyObject *res = NULL; + PyObject *args = PyTuple_New(1); + if (args) { + if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { + PyObject *ofmt = SWIG_Python_str_FromChar(fmt); + if (ofmt) { +#if PY_VERSION_HEX >= 0x03000000 + res = PyUnicode_Format(ofmt,args); +#else + res = PyString_Format(ofmt,args); +#endif + Py_DECREF(ofmt); + } + Py_DECREF(args); + } + } + return res; +} + +SWIGRUNTIME PyObject * +SwigPyObject_oct(SwigPyObject *v) +{ + return SwigPyObject_format("%o",v); +} + +SWIGRUNTIME PyObject * +SwigPyObject_hex(SwigPyObject *v) +{ + return SwigPyObject_format("%x",v); +} + +SWIGRUNTIME PyObject * +#ifdef METH_NOARGS +SwigPyObject_repr(SwigPyObject *v) +#else +SwigPyObject_repr(SwigPyObject *v, PyObject *args) +#endif +{ + const char *name = SWIG_TypePrettyName(v->ty); + PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); + if (v->next) { +# ifdef METH_NOARGS + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); +# else + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); +# endif +# if PY_VERSION_HEX >= 0x03000000 + PyObject *joined = PyUnicode_Concat(repr, nrep); + Py_DecRef(repr); + Py_DecRef(nrep); + repr = joined; +# else + PyString_ConcatAndDel(&repr,nrep); +# endif + } + return repr; +} + +SWIGRUNTIME int +SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char *str; +#ifdef METH_NOARGS + PyObject *repr = SwigPyObject_repr(v); +#else + PyObject *repr = SwigPyObject_repr(v, NULL); +#endif + if (repr) { + str = SWIG_Python_str_AsChar(repr); + fputs(str, fp); + SWIG_Python_str_DelForPy3(str); + Py_DECREF(repr); + return 0; + } else { + return 1; + } +} + +SWIGRUNTIME PyObject * +SwigPyObject_str(SwigPyObject *v) +{ + char result[SWIG_BUFFER_SIZE]; + return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? + SWIG_Python_str_FromChar(result) : 0; +} + +SWIGRUNTIME int +SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) +{ + void *i = v->ptr; + void *j = w->ptr; + return (i < j) ? -1 : ((i > j) ? 1 : 0); +} + +/* Added for Python 3.x, would it also be useful for Python 2.x? */ +SWIGRUNTIME PyObject* +SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) +{ + PyObject* res; + if( op != Py_EQ && op != Py_NE ) { + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; + } + res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); + return res; +} + + +SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); + +#ifdef SWIGPYTHON_BUILTIN +static swig_type_info *SwigPyObject_stype = 0; +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + SwigPyClientData *cd; + assert(SwigPyObject_stype); + cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; + assert(cd); + assert(cd->pytype); + return cd->pytype; +} +#else +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); + return type; +} +#endif + +SWIGRUNTIMEINLINE int +SwigPyObject_Check(PyObject *op) { +#ifdef SWIGPYTHON_BUILTIN + PyTypeObject *target_tp = SwigPyObject_type(); + if (PyType_IsSubtype(op->ob_type, target_tp)) + return 1; + return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); +#else + return (Py_TYPE(op) == SwigPyObject_type()) + || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); +#endif +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own); + +SWIGRUNTIME void +SwigPyObject_dealloc(PyObject *v) +{ + SwigPyObject *sobj = (SwigPyObject *) v; + PyObject *next = sobj->next; + if (sobj->own == SWIG_POINTER_OWN) { + swig_type_info *ty = sobj->ty; + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + PyObject *destroy = data ? data->destroy : 0; + if (destroy) { + /* destroy is always a VARARGS method */ + PyObject *res; + if (data->delargs) { + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); + } else { + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); + } + Py_XDECREF(res); + } +#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) + else { + const char *name = SWIG_TypePrettyName(ty); + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); + } +#endif + } + Py_XDECREF(next); + PyObject_DEL(v); +} + +SWIGRUNTIME PyObject* +SwigPyObject_append(PyObject* v, PyObject* next) +{ + SwigPyObject *sobj = (SwigPyObject *) v; +#ifndef METH_O + PyObject *tmp = 0; + if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; + next = tmp; +#endif + if (!SwigPyObject_Check(next)) { + return NULL; + } + sobj->next = next; + Py_INCREF(next); + return SWIG_Py_Void(); +} + +SWIGRUNTIME PyObject* +#ifdef METH_NOARGS +SwigPyObject_next(PyObject* v) +#else +SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *) v; + if (sobj->next) { + Py_INCREF(sobj->next); + return sobj->next; + } else { + return SWIG_Py_Void(); + } +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_disown(PyObject *v) +#else +SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = 0; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_acquire(PyObject *v) +#else +SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = SWIG_POINTER_OWN; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +SwigPyObject_own(PyObject *v, PyObject *args) +{ + PyObject *val = 0; +#if (PY_VERSION_HEX < 0x02020000) + if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) +#elif (PY_VERSION_HEX < 0x02050000) + if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) +#else + if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) +#endif + { + return NULL; + } + else + { + SwigPyObject *sobj = (SwigPyObject *)v; + PyObject *obj = PyBool_FromLong(sobj->own); + if (val) { +#ifdef METH_NOARGS + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v); + } else { + SwigPyObject_disown(v); + } +#else + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v,args); + } else { + SwigPyObject_disown(v,args); + } +#endif + } + return obj; + } +} + +#ifdef METH_O +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#else +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#endif + +#if PY_VERSION_HEX < 0x02020000 +SWIGINTERN PyObject * +SwigPyObject_getattr(SwigPyObject *sobj,char *name) +{ + return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); +} +#endif + +SWIGRUNTIME PyTypeObject* +SwigPyObject_TypeOnce(void) { + static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; + + static PyNumberMethods SwigPyObject_as_number = { + (binaryfunc)0, /*nb_add*/ + (binaryfunc)0, /*nb_subtract*/ + (binaryfunc)0, /*nb_multiply*/ + /* nb_divide removed in Python 3 */ +#if PY_VERSION_HEX < 0x03000000 + (binaryfunc)0, /*nb_divide*/ +#endif + (binaryfunc)0, /*nb_remainder*/ + (binaryfunc)0, /*nb_divmod*/ + (ternaryfunc)0,/*nb_power*/ + (unaryfunc)0, /*nb_negative*/ + (unaryfunc)0, /*nb_positive*/ + (unaryfunc)0, /*nb_absolute*/ + (inquiry)0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ +#if PY_VERSION_HEX < 0x03000000 + 0, /*nb_coerce*/ +#endif + (unaryfunc)SwigPyObject_long, /*nb_int*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_long, /*nb_long*/ +#else + 0, /*nb_reserved*/ +#endif + (unaryfunc)0, /*nb_float*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_oct, /*nb_oct*/ + (unaryfunc)SwigPyObject_hex, /*nb_hex*/ +#endif +#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ +#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ +#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ + 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ +#endif + }; + + static PyTypeObject swigpyobject_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyObject", /* tp_name */ + sizeof(SwigPyObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyObject_dealloc, /* tp_dealloc */ + (printfunc)SwigPyObject_print, /* tp_print */ +#if PY_VERSION_HEX < 0x02020000 + (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ +#else + (getattrfunc)0, /* tp_getattr */ +#endif + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX >= 0x03000000 + 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ +#else + (cmpfunc)SwigPyObject_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyObject_repr, /* tp_repr */ + &SwigPyObject_as_number, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)SwigPyObject_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigobject_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + swigobject_methods, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + swigpyobject_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + swigpyobject_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&swigpyobject_type) < 0) + return NULL; +#endif + } + return &swigpyobject_type; +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own) +{ + SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); + if (sobj) { + sobj->ptr = ptr; + sobj->ty = ty; + sobj->own = own; + sobj->next = 0; + } + return (PyObject *)sobj; +} + +/* ----------------------------------------------------------------------------- + * Implements a simple Swig Packed type, and use it instead of string + * ----------------------------------------------------------------------------- */ + +typedef struct { + PyObject_HEAD + void *pack; + swig_type_info *ty; + size_t size; +} SwigPyPacked; + +SWIGRUNTIME int +SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char result[SWIG_BUFFER_SIZE]; + fputs("pack, v->size, 0, sizeof(result))) { + fputs("at ", fp); + fputs(result, fp); + } + fputs(v->ty->name,fp); + fputs(">", fp); + return 0; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_repr(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + return SWIG_Python_str_FromFormat("", result, v->ty->name); + } else { + return SWIG_Python_str_FromFormat("", v->ty->name); + } +} + +SWIGRUNTIME PyObject * +SwigPyPacked_str(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ + return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); + } else { + return SWIG_Python_str_FromChar(v->ty->name); + } +} + +SWIGRUNTIME int +SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) +{ + size_t i = v->size; + size_t j = w->size; + int s = (i < j) ? -1 : ((i > j) ? 1 : 0); + return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); +} + +SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); + return type; +} + +SWIGRUNTIMEINLINE int +SwigPyPacked_Check(PyObject *op) { + return ((op)->ob_type == SwigPyPacked_TypeOnce()) + || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); +} + +SWIGRUNTIME void +SwigPyPacked_dealloc(PyObject *v) +{ + if (SwigPyPacked_Check(v)) { + SwigPyPacked *sobj = (SwigPyPacked *) v; + free(sobj->pack); + } + PyObject_DEL(v); +} + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_TypeOnce(void) { + static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; + static PyTypeObject swigpypacked_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX>=0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyPacked", /* tp_name */ + sizeof(SwigPyPacked), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ + (printfunc)SwigPyPacked_print, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX>=0x03000000 + 0, /* tp_reserved in 3.0.1 */ +#else + (cmpfunc)SwigPyPacked_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyPacked_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)SwigPyPacked_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigpacked_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + 0, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + swigpypacked_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + swigpypacked_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&swigpypacked_type) < 0) + return NULL; +#endif + } + return &swigpypacked_type; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) +{ + SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); + if (sobj) { + void *pack = malloc(size); + if (pack) { + memcpy(pack, ptr, size); + sobj->pack = pack; + sobj->ty = ty; + sobj->size = size; + } else { + PyObject_DEL((PyObject *) sobj); + sobj = 0; + } + } + return (PyObject *) sobj; +} + +SWIGRUNTIME swig_type_info * +SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) +{ + if (SwigPyPacked_Check(obj)) { + SwigPyPacked *sobj = (SwigPyPacked *)obj; + if (sobj->size != size) return 0; + memcpy(ptr, sobj->pack, size); + return sobj->ty; + } else { + return 0; + } +} + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIMEINLINE PyObject * +_SWIG_This(void) +{ + return SWIG_Python_str_FromChar("this"); +} + +static PyObject *swig_this = NULL; + +SWIGRUNTIME PyObject * +SWIG_This(void) +{ + if (swig_this == NULL) + swig_this = _SWIG_This(); + return swig_this; +} + +/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ + +/* TODO: I don't know how to implement the fast getset in Python 3 right now */ +#if PY_VERSION_HEX>=0x03000000 +#define SWIG_PYTHON_SLOW_GETSET_THIS +#endif + +SWIGRUNTIME SwigPyObject * +SWIG_Python_GetSwigThis(PyObject *pyobj) +{ + PyObject *obj; + + if (SwigPyObject_Check(pyobj)) + return (SwigPyObject *) pyobj; + +#ifdef SWIGPYTHON_BUILTIN + (void)obj; +# ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + pyobj = PyWeakref_GET_OBJECT(pyobj); + if (pyobj && SwigPyObject_Check(pyobj)) + return (SwigPyObject*) pyobj; + } +# endif + return NULL; +#else + + obj = 0; + +#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) + if (PyInstance_Check(pyobj)) { + obj = _PyInstance_Lookup(pyobj, SWIG_This()); + } else { + PyObject **dictptr = _PyObject_GetDictPtr(pyobj); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; + } else { +#ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); + return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; + } +#endif + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } + } + } +#else + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } +#endif + if (obj && !SwigPyObject_Check(obj)) { + /* a PyObject is called 'this', try to get the 'real this' + SwigPyObject from it */ + return SWIG_Python_GetSwigThis(obj); + } + return (SwigPyObject *)obj; +#endif +} + +/* Acquire a pointer value */ + +SWIGRUNTIME int +SWIG_Python_AcquirePtr(PyObject *obj, int own) { + if (own == SWIG_POINTER_OWN) { + SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); + if (sobj) { + int oldown = sobj->own; + sobj->own = own; + return oldown; + } + } + return 0; +} + +/* Convert a pointer value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { + int res; + SwigPyObject *sobj; + + if (!obj) + return SWIG_ERROR; + if (obj == Py_None) { + if (ptr) + *ptr = 0; + return SWIG_OK; + } + + res = SWIG_ERROR; + + sobj = SWIG_Python_GetSwigThis(obj); + if (own) + *own = 0; + while (sobj) { + void *vptr = sobj->ptr; + if (ty) { + swig_type_info *to = sobj->ty; + if (to == ty) { + /* no type cast needed */ + if (ptr) *ptr = vptr; + break; + } else { + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) { + sobj = (SwigPyObject *)sobj->next; + } else { + if (ptr) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + break; + } + } + } else { + if (ptr) *ptr = vptr; + break; + } + } + if (sobj) { + if (own) + *own = *own | sobj->own; + if (flags & SWIG_POINTER_DISOWN) { + sobj->own = 0; + } + res = SWIG_OK; + } else { + if (flags & SWIG_POINTER_IMPLICIT_CONV) { + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + if (data && !data->implicitconv) { + PyObject *klass = data->klass; + if (klass) { + PyObject *impconv; + data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ + impconv = SWIG_Python_CallFunctor(klass, obj); + data->implicitconv = 0; + if (PyErr_Occurred()) { + PyErr_Clear(); + impconv = 0; + } + if (impconv) { + SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); + if (iobj) { + void *vptr; + res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); + if (SWIG_IsOK(res)) { + if (ptr) { + *ptr = vptr; + /* transfer the ownership to 'ptr' */ + iobj->own = 0; + res = SWIG_AddCast(res); + res = SWIG_AddNewMask(res); + } else { + res = SWIG_AddCast(res); + } + } + } + Py_DECREF(impconv); + } + } + } + } + } + return res; +} + +/* Convert a function ptr value */ + +SWIGRUNTIME int +SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { + if (!PyCFunction_Check(obj)) { + return SWIG_ConvertPtr(obj, ptr, ty, 0); + } else { + void *vptr = 0; + + /* here we get the method pointer for callbacks */ + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; + if (desc) + desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; + if (!desc) + return SWIG_ERROR; + if (ty) { + swig_cast_info *tc = SWIG_TypeCheck(desc,ty); + if (tc) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } else { + return SWIG_ERROR; + } + } else { + *ptr = vptr; + } + return SWIG_OK; + } +} + +/* Convert a packed value value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { + swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); + if (!to) return SWIG_ERROR; + if (ty) { + if (to != ty) { + /* check type cast? */ + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) return SWIG_ERROR; + } + } + return SWIG_OK; +} + +/* ----------------------------------------------------------------------------- + * Create a new pointer object + * ----------------------------------------------------------------------------- */ + +/* + Create a new instance object, without calling __init__, and set the + 'this' attribute. +*/ + +SWIGRUNTIME PyObject* +SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) +{ +#if (PY_VERSION_HEX >= 0x02020000) + PyObject *inst = 0; + PyObject *newraw = data->newraw; + if (newraw) { + inst = PyObject_Call(newraw, data->newargs, NULL); + if (inst) { +#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + PyDict_SetItem(dict, SWIG_This(), swig_this); + } + } +#else + PyObject *key = SWIG_This(); + PyObject_SetAttr(inst, key, swig_this); +#endif + } + } else { +#if PY_VERSION_HEX >= 0x03000000 + inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + if (inst) { + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; + } +#else + PyObject *dict = PyDict_New(); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } +#endif + } + return inst; +#else +#if (PY_VERSION_HEX >= 0x02010000) + PyObject *inst = 0; + PyObject *dict = PyDict_New(); + if (dict) { + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + } + return (PyObject *) inst; +#else + PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); + if (inst == NULL) { + return NULL; + } + inst->in_class = (PyClassObject *)data->newargs; + Py_INCREF(inst->in_class); + inst->in_dict = PyDict_New(); + if (inst->in_dict == NULL) { + Py_DECREF(inst); + return NULL; + } +#ifdef Py_TPFLAGS_HAVE_WEAKREFS + inst->in_weakreflist = NULL; +#endif +#ifdef Py_TPFLAGS_GC + PyObject_GC_Init(inst); +#endif + PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); + return (PyObject *) inst; +#endif +#endif +} + +SWIGRUNTIME void +SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) +{ + PyObject *dict; +#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + } + PyDict_SetItem(dict, SWIG_This(), swig_this); + return; + } +#endif + dict = PyObject_GetAttrString(inst, (char*)"__dict__"); + PyDict_SetItem(dict, SWIG_This(), swig_this); + Py_DECREF(dict); +} + + +SWIGINTERN PyObject * +SWIG_Python_InitShadowInstance(PyObject *args) { + PyObject *obj[2]; + if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { + return NULL; + } else { + SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); + if (sthis) { + SwigPyObject_append((PyObject*) sthis, obj[1]); + } else { + SWIG_Python_SetSwigThis(obj[0], obj[1]); + } + return SWIG_Py_Void(); + } +} + +/* Create a new pointer object */ + +SWIGRUNTIME PyObject * +SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { + SwigPyClientData *clientdata; + PyObject * robj; + int own; + + if (!ptr) + return SWIG_Py_Void(); + + clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; + own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; + if (clientdata && clientdata->pytype) { + SwigPyObject *newobj; + if (flags & SWIG_BUILTIN_TP_INIT) { + newobj = (SwigPyObject*) self; + if (newobj->ptr) { + PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); + while (newobj->next) + newobj = (SwigPyObject *) newobj->next; + newobj->next = next_self; + newobj = (SwigPyObject *)next_self; + } + } else { + newobj = PyObject_New(SwigPyObject, clientdata->pytype); + } + if (newobj) { + newobj->ptr = ptr; + newobj->ty = type; + newobj->own = own; + newobj->next = 0; +#ifdef SWIGPYTHON_BUILTIN + newobj->dict = 0; +#endif + return (PyObject*) newobj; + } + return SWIG_Py_Void(); + } + + assert(!(flags & SWIG_BUILTIN_TP_INIT)); + + robj = SwigPyObject_New(ptr, type, own); + if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); + Py_DECREF(robj); + robj = inst; + } + return robj; +} + +/* Create a new packed object */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { + return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); +} + +/* -----------------------------------------------------------------------------* + * Get type list + * -----------------------------------------------------------------------------*/ + +#ifdef SWIG_LINK_RUNTIME +void *SWIG_ReturnGlobalTypeList(void *); +#endif + +SWIGRUNTIME swig_module_info * +SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { + static void *type_pointer = (void *)0; + /* first check if module already created */ + if (!type_pointer) { +#ifdef SWIG_LINK_RUNTIME + type_pointer = SWIG_ReturnGlobalTypeList((void *)0); +#else +# ifdef SWIGPY_USE_CAPSULE + type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); +# else + type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); +# endif + if (PyErr_Occurred()) { + PyErr_Clear(); + type_pointer = (void *)0; + } +#endif + } + return (swig_module_info *) type_pointer; +} + +#if PY_MAJOR_VERSION < 2 +/* PyModule_AddObject function was introduced in Python 2.0. The following function + is copied out of Python/modsupport.c in python version 2.3.4 */ +SWIGINTERN int +PyModule_AddObject(PyObject *m, char *name, PyObject *o) +{ + PyObject *dict; + if (!PyModule_Check(m)) { + PyErr_SetString(PyExc_TypeError, + "PyModule_AddObject() needs module as first arg"); + return SWIG_ERROR; + } + if (!o) { + PyErr_SetString(PyExc_TypeError, + "PyModule_AddObject() needs non-NULL value"); + return SWIG_ERROR; + } + + dict = PyModule_GetDict(m); + if (dict == NULL) { + /* Internal error -- modules must have a dict! */ + PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", + PyModule_GetName(m)); + return SWIG_ERROR; + } + if (PyDict_SetItemString(dict, name, o)) + return SWIG_ERROR; + Py_DECREF(o); + return SWIG_OK; +} +#endif + +SWIGRUNTIME void +#ifdef SWIGPY_USE_CAPSULE +SWIG_Python_DestroyModule(PyObject *obj) +#else +SWIG_Python_DestroyModule(void *vptr) +#endif +{ +#ifdef SWIGPY_USE_CAPSULE + swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); +#else + swig_module_info *swig_module = (swig_module_info *) vptr; +#endif + swig_type_info **types = swig_module->types; + size_t i; + for (i =0; i < swig_module->size; ++i) { + swig_type_info *ty = types[i]; + if (ty->owndata) { + SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; + if (data) SwigPyClientData_Del(data); + } + } + Py_DECREF(SWIG_This()); + swig_this = NULL; +} + +SWIGRUNTIME void +SWIG_Python_SetModule(swig_module_info *swig_module) { +#if PY_VERSION_HEX >= 0x03000000 + /* Add a dummy module object into sys.modules */ + PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); +#else + static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ + PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); +#endif +#ifdef SWIGPY_USE_CAPSULE + PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +#else + PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +#endif +} + +/* The python cached type query */ +SWIGRUNTIME PyObject * +SWIG_Python_TypeCache(void) { + static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); + return cache; +} + +SWIGRUNTIME swig_type_info * +SWIG_Python_TypeQuery(const char *type) +{ + PyObject *cache = SWIG_Python_TypeCache(); + PyObject *key = SWIG_Python_str_FromChar(type); + PyObject *obj = PyDict_GetItem(cache, key); + swig_type_info *descriptor; + if (obj) { +#ifdef SWIGPY_USE_CAPSULE + descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); +#else + descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); +#endif + } else { + swig_module_info *swig_module = SWIG_GetModule(0); + descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); + if (descriptor) { +#ifdef SWIGPY_USE_CAPSULE + obj = PyCapsule_New((void*) descriptor, NULL, NULL); +#else + obj = PyCObject_FromVoidPtr(descriptor, NULL); +#endif + PyDict_SetItem(cache, key, obj); + Py_DECREF(obj); + } + } + Py_DECREF(key); + return descriptor; +} + +/* + For backward compatibility only +*/ +#define SWIG_POINTER_EXCEPTION 0 +#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) +#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) + +SWIGRUNTIME int +SWIG_Python_AddErrMesg(const char* mesg, int infront) +{ + if (PyErr_Occurred()) { + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + Py_XINCREF(type); + PyErr_Clear(); + if (infront) { + PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); + } else { + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + } + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + } + return 1; + } else { + return 0; + } +} + +SWIGRUNTIME int +SWIG_Python_ArgFail(int argnum) +{ + if (PyErr_Occurred()) { + /* add information about failing argument */ + char mesg[256]; + PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); + return SWIG_Python_AddErrMesg(mesg, 1); + } else { + return 0; + } +} + +SWIGRUNTIMEINLINE const char * +SwigPyObject_GetDesc(PyObject *self) +{ + SwigPyObject *v = (SwigPyObject *)self; + swig_type_info *ty = v ? v->ty : 0; + return ty ? ty->str : ""; +} + +SWIGRUNTIME void +SWIG_Python_TypeError(const char *type, PyObject *obj) +{ + if (type) { +#if defined(SWIG_COBJECT_TYPES) + if (obj && SwigPyObject_Check(obj)) { + const char *otype = (const char *) SwigPyObject_GetDesc(obj); + if (otype) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", + type, otype); + return; + } + } else +#endif + { + const char *otype = (obj ? obj->ob_type->tp_name : 0); + if (otype) { + PyObject *str = PyObject_Str(obj); + const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; + if (cstr) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", + type, otype, cstr); + SWIG_Python_str_DelForPy3(cstr); + } else { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", + type, otype); + } + Py_XDECREF(str); + return; + } + } + PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); + } else { + PyErr_Format(PyExc_TypeError, "unexpected type is received"); + } +} + + +/* Convert a pointer value, signal an exception on a type mismatch */ +SWIGRUNTIME void * +SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { + void *result; + if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { + PyErr_Clear(); +#if SWIG_POINTER_EXCEPTION + if (flags) { + SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); + SWIG_Python_ArgFail(argnum); + } +#endif + } + return result; +} + +#ifdef SWIGPYTHON_BUILTIN +SWIGRUNTIME int +SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { + PyTypeObject *tp = obj->ob_type; + PyObject *descr; + PyObject *encoded_name; + descrsetfunc f; + int res; + +# ifdef Py_USING_UNICODE + if (PyString_Check(name)) { + name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); + if (!name) + return -1; + } else if (!PyUnicode_Check(name)) +# else + if (!PyString_Check(name)) +# endif + { + PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); + return -1; + } else { + Py_INCREF(name); + } + + if (!tp->tp_dict) { + if (PyType_Ready(tp) < 0) + goto done; + } + + res = -1; + descr = _PyType_Lookup(tp, name); + f = NULL; + if (descr != NULL) + f = descr->ob_type->tp_descr_set; + if (!f) { + if (PyString_Check(name)) { + encoded_name = name; + Py_INCREF(name); + } else { + encoded_name = PyUnicode_AsUTF8String(name); + } + PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); + Py_DECREF(encoded_name); + } else { + res = f(descr, obj, value); + } + + done: + Py_DECREF(name); + return res; +} +#endif + + +#ifdef __cplusplus +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + +/* ----------------------------------------------------------------------------- + * director.swg + * + * This file contains support for director classes that proxy + * method calls from C++ to Python extensions. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_DIRECTOR_PYTHON_HEADER_ +#define SWIG_DIRECTOR_PYTHON_HEADER_ + +#ifdef __cplusplus + +#include +#include +#include +#include +#include + + +/* + Use -DSWIG_PYTHON_DIRECTOR_NO_VTABLE if you don't want to generate a 'virtual + table', and avoid multiple GetAttr calls to retrieve the python + methods. +*/ + +#ifndef SWIG_PYTHON_DIRECTOR_NO_VTABLE +#ifndef SWIG_PYTHON_DIRECTOR_VTABLE +#define SWIG_PYTHON_DIRECTOR_VTABLE +#endif +#endif + + + +/* + Use -DSWIG_DIRECTOR_NO_UEH if you prefer to avoid the use of the + Undefined Exception Handler provided by swift +*/ +#ifndef SWIG_DIRECTOR_NO_UEH +#ifndef SWIG_DIRECTOR_UEH +#define SWIG_DIRECTOR_UEH +#endif +#endif + + +/* + Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the + 'Swig' namespace. This could be useful for multi-modules projects. +*/ +#ifdef SWIG_DIRECTOR_STATIC +/* Force anonymous (static) namespace */ +#define Swig +#endif + + +/* + Use -DSWIG_DIRECTOR_NORTTI if you prefer to avoid the use of the + native C++ RTTI and dynamic_cast<>. But be aware that directors + could stop working when using this option. +*/ +#ifdef SWIG_DIRECTOR_NORTTI +/* + When we don't use the native C++ RTTI, we implement a minimal one + only for Directors. +*/ +# ifndef SWIG_DIRECTOR_RTDIR +# define SWIG_DIRECTOR_RTDIR +#include + +namespace Swig { + class Director; + SWIGINTERN std::map& get_rtdir_map() { + static std::map rtdir_map; + return rtdir_map; + } + + SWIGINTERNINLINE void set_rtdir(void *vptr, Director *rtdir) { + get_rtdir_map()[vptr] = rtdir; + } + + SWIGINTERNINLINE Director *get_rtdir(void *vptr) { + std::map::const_iterator pos = get_rtdir_map().find(vptr); + Director *rtdir = (pos != get_rtdir_map().end()) ? pos->second : 0; + return rtdir; + } +} +# endif /* SWIG_DIRECTOR_RTDIR */ + +# define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast(ARG)) +# define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast(ARG1), ARG2) + +#else + +# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast(ARG) +# define SWIG_DIRECTOR_RGTR(ARG1, ARG2) + +#endif /* SWIG_DIRECTOR_NORTTI */ + +extern "C" { + struct swig_type_info; +} + +namespace Swig { + + /* memory handler */ + struct GCItem + { + virtual ~GCItem() {} + + virtual int get_own() const + { + return 0; + } + }; + + struct GCItem_var + { + GCItem_var(GCItem *item = 0) : _item(item) + { + } + + GCItem_var& operator=(GCItem *item) + { + GCItem *tmp = _item; + _item = item; + delete tmp; + return *this; + } + + ~GCItem_var() + { + delete _item; + } + + GCItem * operator->() const + { + return _item; + } + + private: + GCItem *_item; + }; + + struct GCItem_Object : GCItem + { + GCItem_Object(int own) : _own(own) + { + } + + virtual ~GCItem_Object() + { + } + + int get_own() const + { + return _own; + } + + private: + int _own; + }; + + template + struct GCItem_T : GCItem + { + GCItem_T(Type *ptr) : _ptr(ptr) + { + } + + virtual ~GCItem_T() + { + delete _ptr; + } + + private: + Type *_ptr; + }; + + template + struct GCArray_T : GCItem + { + GCArray_T(Type *ptr) : _ptr(ptr) + { + } + + virtual ~GCArray_T() + { + delete[] _ptr; + } + + private: + Type *_ptr; + }; + + /* base class for director exceptions */ + class DirectorException { + protected: + std::string swig_msg; + public: + DirectorException(PyObject *error, const char* hdr ="", const char* msg ="") + : swig_msg(hdr) + { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + if (strlen(msg)) { + swig_msg += " "; + swig_msg += msg; + } + if (!PyErr_Occurred()) { + PyErr_SetString(error, getMessage()); + } + SWIG_PYTHON_THREAD_END_BLOCK; + } + + const char *getMessage() const + { + return swig_msg.c_str(); + } + + static void raise(PyObject *error, const char *msg) + { + throw DirectorException(error, msg); + } + + static void raise(const char *msg) + { + raise(PyExc_RuntimeError, msg); + } + }; + + /* unknown exception handler */ + class UnknownExceptionHandler + { +#ifdef SWIG_DIRECTOR_UEH + static void handler() { + try { + throw; + } catch (DirectorException& e) { + std::cerr << "SWIG Director exception caught:" << std::endl + << e.getMessage() << std::endl; + } catch (std::exception& e) { + std::cerr << "std::exception caught: "<< e.what() << std::endl; + } catch (...) { + std::cerr << "Unknown exception caught." << std::endl; + } + + std::cerr << std::endl + << "Python interpreter traceback:" << std::endl; + PyErr_Print(); + std::cerr << std::endl; + + std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl + << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl + << std::endl + << "Exception is being re-thrown, program will likely abort/terminate." << std::endl; + throw; + } + + public: + + std::unexpected_handler old; + UnknownExceptionHandler(std::unexpected_handler nh = handler) + { + old = std::set_unexpected(nh); + } + + ~UnknownExceptionHandler() + { + std::set_unexpected(old); + } +#endif + }; + + /* type mismatch in the return value from a python method call */ + class DirectorTypeMismatchException : public Swig::DirectorException { + public: + DirectorTypeMismatchException(PyObject *error, const char* msg="") + : Swig::DirectorException(error, "SWIG director type mismatch", msg) + { + } + + DirectorTypeMismatchException(const char* msg="") + : Swig::DirectorException(PyExc_TypeError, "SWIG director type mismatch", msg) + { + } + + static void raise(PyObject *error, const char *msg) + { + throw DirectorTypeMismatchException(error, msg); + } + + static void raise(const char *msg) + { + throw DirectorTypeMismatchException(msg); + } + }; + + /* any python exception that occurs during a director method call */ + class DirectorMethodException : public Swig::DirectorException { + public: + DirectorMethodException(const char* msg = "") + : DirectorException(PyExc_RuntimeError, "SWIG director method error.", msg) + { + } + + static void raise(const char *msg) + { + throw DirectorMethodException(msg); + } + }; + + /* attempt to call a pure virtual method via a director method */ + class DirectorPureVirtualException : public Swig::DirectorException + { + public: + DirectorPureVirtualException(const char* msg = "") + : DirectorException(PyExc_RuntimeError, "SWIG director pure virtual method called", msg) + { + } + + static void raise(const char *msg) + { + throw DirectorPureVirtualException(msg); + } + }; + + +#if defined(SWIG_PYTHON_THREADS) +/* __THREAD__ is the old macro to activate some thread support */ +# if !defined(__THREAD__) +# define __THREAD__ 1 +# endif +#endif + +#ifdef __THREAD__ +# include "pythread.h" + class Guard + { + PyThread_type_lock & mutex_; + + public: + Guard(PyThread_type_lock & mutex) : mutex_(mutex) + { + PyThread_acquire_lock(mutex_, WAIT_LOCK); + } + + ~Guard() + { + PyThread_release_lock(mutex_); + } + }; +# define SWIG_GUARD(mutex) Guard _guard(mutex) +#else +# define SWIG_GUARD(mutex) +#endif + + /* director base class */ + class Director { + private: + /* pointer to the wrapped python object */ + PyObject* swig_self; + /* flag indicating whether the object is owned by python or c++ */ + mutable bool swig_disown_flag; + + /* decrement the reference count of the wrapped python object */ + void swig_decref() const { + if (swig_disown_flag) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + Py_DECREF(swig_self); + SWIG_PYTHON_THREAD_END_BLOCK; + } + } + + public: + /* wrap a python object, optionally taking ownership */ + Director(PyObject* self) : swig_self(self), swig_disown_flag(false) { + swig_incref(); + } + + + /* discard our reference at destruction */ + virtual ~Director() { + swig_decref(); + } + + + /* return a pointer to the wrapped python object */ + PyObject *swig_get_self() const { + return swig_self; + } + + /* acquire ownership of the wrapped python object (the sense of "disown" + * is from python) */ + void swig_disown() const { + if (!swig_disown_flag) { + swig_disown_flag=true; + swig_incref(); + } + } + + /* increase the reference count of the wrapped python object */ + void swig_incref() const { + if (swig_disown_flag) { + Py_INCREF(swig_self); + } + } + + /* methods to implement pseudo protected director members */ + virtual bool swig_get_inner(const char* /* swig_protected_method_name */) const { + return true; + } + + virtual void swig_set_inner(const char* /* swig_protected_method_name */, bool /* swig_val */) const { + } + + /* ownership management */ + private: + typedef std::map swig_ownership_map; + mutable swig_ownership_map swig_owner; +#ifdef __THREAD__ + static PyThread_type_lock swig_mutex_own; +#endif + + public: + template + void swig_acquire_ownership_array(Type *vptr) const + { + if (vptr) { + SWIG_GUARD(swig_mutex_own); + swig_owner[vptr] = new GCArray_T(vptr); + } + } + + template + void swig_acquire_ownership(Type *vptr) const + { + if (vptr) { + SWIG_GUARD(swig_mutex_own); + swig_owner[vptr] = new GCItem_T(vptr); + } + } + + void swig_acquire_ownership_obj(void *vptr, int own) const + { + if (vptr && own) { + SWIG_GUARD(swig_mutex_own); + swig_owner[vptr] = new GCItem_Object(own); + } + } + + int swig_release_ownership(void *vptr) const + { + int own = 0; + if (vptr) { + SWIG_GUARD(swig_mutex_own); + swig_ownership_map::iterator iter = swig_owner.find(vptr); + if (iter != swig_owner.end()) { + own = iter->second->get_own(); + swig_owner.erase(iter); + } + } + return own; + } + + template + static PyObject* swig_pyobj_disown(PyObject *pyobj, PyObject *SWIGUNUSEDPARM(args)) + { + SwigPyObject *sobj = (SwigPyObject *)pyobj; + sobj->own = 0; + Director *d = SWIG_DIRECTOR_CAST(reinterpret_cast(sobj->ptr)); + if (d) + d->swig_disown(); + return PyWeakref_NewProxy(pyobj, NULL); + } + + }; + +#ifdef __THREAD__ + PyThread_type_lock Director::swig_mutex_own = PyThread_allocate_lock(); +#endif +} + +#endif /* __cplusplus */ + + +#endif + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_ActionConfig swig_types[0] +#define SWIGTYPE_p_AudioResampler swig_types[1] +#define SWIGTYPE_p_CallSession swig_types[2] +#define SWIGTYPE_p_Codec swig_types[3] +#define SWIGTYPE_p_DDebugCallback swig_types[4] +#define SWIGTYPE_p_DialogEvent swig_types[5] +#define SWIGTYPE_p_InfoEvent swig_types[6] +#define SWIGTYPE_p_InfoSession swig_types[7] +#define SWIGTYPE_p_InviteEvent swig_types[8] +#define SWIGTYPE_p_InviteSession swig_types[9] +#define SWIGTYPE_p_MediaContent swig_types[10] +#define SWIGTYPE_p_MediaContentCPIM swig_types[11] +#define SWIGTYPE_p_MediaSessionMgr swig_types[12] +#define SWIGTYPE_p_MessagingEvent swig_types[13] +#define SWIGTYPE_p_MessagingSession swig_types[14] +#define SWIGTYPE_p_MsrpCallback swig_types[15] +#define SWIGTYPE_p_MsrpEvent swig_types[16] +#define SWIGTYPE_p_MsrpMessage swig_types[17] +#define SWIGTYPE_p_MsrpSession swig_types[18] +#define SWIGTYPE_p_OptionsEvent swig_types[19] +#define SWIGTYPE_p_OptionsSession swig_types[20] +#define SWIGTYPE_p_ProxyAudioConsumer swig_types[21] +#define SWIGTYPE_p_ProxyAudioConsumerCallback swig_types[22] +#define SWIGTYPE_p_ProxyAudioProducer swig_types[23] +#define SWIGTYPE_p_ProxyAudioProducerCallback swig_types[24] +#define SWIGTYPE_p_ProxyPlugin swig_types[25] +#define SWIGTYPE_p_ProxyPluginMgr swig_types[26] +#define SWIGTYPE_p_ProxyPluginMgrCallback swig_types[27] +#define SWIGTYPE_p_ProxyVideoConsumer swig_types[28] +#define SWIGTYPE_p_ProxyVideoConsumerCallback swig_types[29] +#define SWIGTYPE_p_ProxyVideoFrame swig_types[30] +#define SWIGTYPE_p_ProxyVideoProducer swig_types[31] +#define SWIGTYPE_p_ProxyVideoProducerCallback swig_types[32] +#define SWIGTYPE_p_PublicationEvent swig_types[33] +#define SWIGTYPE_p_PublicationSession swig_types[34] +#define SWIGTYPE_p_RPMessage swig_types[35] +#define SWIGTYPE_p_RegistrationEvent swig_types[36] +#define SWIGTYPE_p_RegistrationSession swig_types[37] +#define SWIGTYPE_p_SMSData swig_types[38] +#define SWIGTYPE_p_SMSEncoder swig_types[39] +#define SWIGTYPE_p_SafeObject swig_types[40] +#define SWIGTYPE_p_SdpMessage swig_types[41] +#define SWIGTYPE_p_SipCallback swig_types[42] +#define SWIGTYPE_p_SipEvent swig_types[43] +#define SWIGTYPE_p_SipMessage swig_types[44] +#define SWIGTYPE_p_SipSession swig_types[45] +#define SWIGTYPE_p_SipStack swig_types[46] +#define SWIGTYPE_p_SipUri swig_types[47] +#define SWIGTYPE_p_StackEvent swig_types[48] +#define SWIGTYPE_p_SubscriptionEvent swig_types[49] +#define SWIGTYPE_p_SubscriptionSession swig_types[50] +#define SWIGTYPE_p_T140Callback swig_types[51] +#define SWIGTYPE_p_T140CallbackData swig_types[52] +#define SWIGTYPE_p_XcapCallback swig_types[53] +#define SWIGTYPE_p_XcapEvent swig_types[54] +#define SWIGTYPE_p_XcapMessage swig_types[55] +#define SWIGTYPE_p_XcapSelector swig_types[56] +#define SWIGTYPE_p_XcapStack swig_types[57] +#define SWIGTYPE_p_char swig_types[58] +#define SWIGTYPE_p_int swig_types[59] +#define SWIGTYPE_p_long_long swig_types[60] +#define SWIGTYPE_p_short swig_types[61] +#define SWIGTYPE_p_signed_char swig_types[62] +#define SWIGTYPE_p_tdav_codec_id_e swig_types[63] +#define SWIGTYPE_p_thttp_event_type_e swig_types[64] +#define SWIGTYPE_p_tmedia_bandwidth_level_e swig_types[65] +#define SWIGTYPE_p_tmedia_chroma_e swig_types[66] +#define SWIGTYPE_p_tmedia_codec_id_e swig_types[67] +#define SWIGTYPE_p_tmedia_mode_e swig_types[68] +#define SWIGTYPE_p_tmedia_pref_video_size_s swig_types[69] +#define SWIGTYPE_p_tmedia_profile_e swig_types[70] +#define SWIGTYPE_p_tmedia_qos_strength_e swig_types[71] +#define SWIGTYPE_p_tmedia_qos_stype_e swig_types[72] +#define SWIGTYPE_p_tmedia_srtp_mode_e swig_types[73] +#define SWIGTYPE_p_tmedia_srtp_type_e swig_types[74] +#define SWIGTYPE_p_tmedia_t140_data_type_e swig_types[75] +#define SWIGTYPE_p_tmsrp_event_type_e swig_types[76] +#define SWIGTYPE_p_tmsrp_request_type_e swig_types[77] +#define SWIGTYPE_p_tsip_event_type_e swig_types[78] +#define SWIGTYPE_p_tsip_info_event_type_e swig_types[79] +#define SWIGTYPE_p_tsip_invite_event_type_e swig_types[80] +#define SWIGTYPE_p_tsip_message_event_type_e swig_types[81] +#define SWIGTYPE_p_tsip_options_event_type_e swig_types[82] +#define SWIGTYPE_p_tsip_publish_event_type_e swig_types[83] +#define SWIGTYPE_p_tsip_register_event_type_e swig_types[84] +#define SWIGTYPE_p_tsip_request_type_e swig_types[85] +#define SWIGTYPE_p_tsip_stack_mode_e swig_types[86] +#define SWIGTYPE_p_tsip_subscribe_event_type_e swig_types[87] +#define SWIGTYPE_p_tsk_list_t swig_types[88] +#define SWIGTYPE_p_twrap_media_type_e swig_types[89] +#define SWIGTYPE_p_twrap_proxy_plugin_type_e swig_types[90] +#define SWIGTYPE_p_twrap_rpmessage_type_e swig_types[91] +#define SWIGTYPE_p_twrap_sms_type_e swig_types[92] +#define SWIGTYPE_p_unsigned_char swig_types[93] +#define SWIGTYPE_p_unsigned_int swig_types[94] +#define SWIGTYPE_p_unsigned_long_long swig_types[95] +#define SWIGTYPE_p_unsigned_short swig_types[96] +static swig_type_info *swig_types[98]; +static swig_module_info swig_module = {swig_types, 97, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#if (PY_VERSION_HEX <= 0x02000000) +# if !defined(SWIG_PYTHON_CLASSIC) +# error "This python version requires swig to be run with the '-classic' option" +# endif +#endif + +/*----------------------------------------------- + @(target):= _tinyWRAP.so + ------------------------------------------------*/ +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_init PyInit__tinyWRAP + +#else +# define SWIG_init init_tinyWRAP + +#endif +#define SWIG_name "_tinyWRAP" + +#define SWIGVERSION 0x020009 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include + + +namespace swig { + class SwigPtr_PyObject { + protected: + PyObject *_obj; + + public: + SwigPtr_PyObject() :_obj(0) + { + } + + SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) + { + Py_XINCREF(_obj); + } + + SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) + { + if (initial_ref) { + Py_XINCREF(_obj); + } + } + + SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) + { + Py_XINCREF(item._obj); + Py_XDECREF(_obj); + _obj = item._obj; + return *this; + } + + ~SwigPtr_PyObject() + { + Py_XDECREF(_obj); + } + + operator PyObject *() const + { + return _obj; + } + + PyObject *operator->() const + { + return _obj; + } + }; +} + + +namespace swig { + struct SwigVar_PyObject : SwigPtr_PyObject { + SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } + + SwigVar_PyObject & operator = (PyObject* obj) + { + Py_XDECREF(_obj); + _obj = obj; + return *this; + } + }; +} + + +#include // Use the C99 official header + + +#include "tinyWRAP_config.h" +#include "DDebug.h" +#include "AudioResampler.h" + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +{ +#if PY_VERSION_HEX>=0x03000000 + if (PyUnicode_Check(obj)) +#else + if (PyString_Check(obj)) +#endif + { + char *cstr; Py_ssize_t len; +#if PY_VERSION_HEX>=0x03000000 + if (!alloc && cptr) { + /* We can't allow converting without allocation, since the internal + representation of string in Python 3 is UCS-2/UCS-4 but we require + a UTF-8 representation. + TODO(bhy) More detailed explanation */ + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + PyBytes_AsStringAndSize(obj, &cstr, &len); + if(alloc) *alloc = SWIG_NEWOBJ; +#else + PyString_AsStringAndSize(obj, &cstr, &len); +#endif + if (cptr) { + if (alloc) { + /* + In python the user should not be able to modify the inner + string representation. To warranty that, if you define + SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string + buffer is always returned. + + The default behavior is just to return the pointer value, + so, be careful. + */ +#if defined(SWIG_PYTHON_SAFE_CSTRINGS) + if (*alloc != SWIG_OLDOBJ) +#else + if (*alloc == SWIG_NEWOBJ) +#endif + { + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + *alloc = SWIG_NEWOBJ; + } + else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } else { + #if PY_VERSION_HEX>=0x03000000 + assert(0); /* Should never reach here in Python 3 */ + #endif + *cptr = SWIG_Python_str_AsChar(obj); + } + } + if (psize) *psize = len + 1; +#if PY_VERSION_HEX>=0x03000000 + Py_XDECREF(obj); +#endif + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *) vptr; + if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > INT_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); + } else { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); +#else + return PyString_FromStringAndSize(carray, static_cast< int >(size)); +#endif + } + } else { + return SWIG_Py_Void(); + } +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double (PyObject *obj, double *val) +{ + int res = SWIG_TypeError; + if (PyFloat_Check(obj)) { + if (val) *val = PyFloat_AsDouble(obj); + return SWIG_OK; + } else if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + double v = PyLong_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + double d = PyFloat_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = d; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); + } else { + PyErr_Clear(); + } + } + } +#endif + return res; +} + + +#include + + +#include + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_long (PyObject *obj, long* val) +{ + if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + long v = PyInt_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { + if (val) *val = (long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_int (PyObject * obj, int *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_int (int value) +{ + return PyInt_FromLong((long) value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) +{ +#if PY_VERSION_HEX < 0x03000000 + if (PyInt_Check(obj)) { + long v = PyInt_AsLong(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else +#endif + if (PyLong_Check(obj)) { + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_bool (bool value) +{ + return PyBool_FromLong(value ? 1 : 0); +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_unsigned_SS_int (unsigned int value) +{ + return PyInt_FromSize_t((size_t) value); +} + + +#include "ActionConfig.h" +#include "MediaSessionMgr.h" +#include "MediaContent.h" +#include "SipUri.h" +#include "SipMessage.h" +#include "SipEvent.h" +#include "SipSession.h" + +#include "ProxyPluginMgr.h" +#include "ProxyConsumer.h" +#include "ProxyProducer.h" + +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" + + +SWIGINTERN int +SWIG_AsVal_short (PyObject * obj, short *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < SHRT_MIN || v > SHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< short >(v); + } + } + return res; +} + + +SWIGINTERN int +SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) +{ + int res = SWIG_TypeError; + if (PyLong_Check(obj)) { + long long v = PyLong_AsLongLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } else { + long v; + res = SWIG_AsVal_long (obj,&v); + if (SWIG_IsOK(res)) { + if (val) *val = v; + return res; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + const double mant_max = 1LL << DBL_MANT_DIG; + const double mant_min = -mant_max; + double d; + res = SWIG_AsVal_double (obj,&d); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { + if (val) *val = (long long)(d); + return SWIG_AddCast(res); + } + res = SWIG_TypeError; + } +#endif + return res; +} + + + #define SWIG_From_long PyLong_FromLong + + +SWIGINTERNINLINE PyObject* +SWIG_From_long_SS_long (long long value) +{ + return ((value < LONG_MIN) || (value > LONG_MAX)) ? + PyLong_FromLongLong(value) : PyLong_FromLong(static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLongLong(value) : PyLong_FromLong(static_cast< long >(value)); +} + + +SWIGINTERN int +SWIG_AsVal_bool (PyObject *obj, bool *val) +{ + int r = PyObject_IsTrue(obj); + if (r == -1) + return SWIG_ERROR; + if (val) *val = r ? true : false; + return SWIG_OK; +} + + +SWIGINTERN int +SWIG_AsVal_float (PyObject * obj, float *val) +{ + double v; + int res = SWIG_AsVal_double (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < -FLT_MAX || v > FLT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< float >(v); + } + } + return res; +} + + + #define SWIG_From_double PyFloat_FromDouble + + +SWIGINTERNINLINE PyObject * +SWIG_From_float (float value) +{ + return SWIG_From_double (value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > USHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned short >(v); + } + } + return res; +} + + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long (unsigned long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLong(value) : PyLong_FromLong(static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_short (unsigned short value) +{ + return SWIG_From_unsigned_SS_long (value); +} + + +SWIGINTERN int +SWIG_AsCharArray(PyObject * obj, char *val, size_t size) +{ + char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; + int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); + if (SWIG_IsOK(res)) { + if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; + if (csize <= size) { + if (val) { + if (csize) memcpy(val, cptr, csize*sizeof(char)); + if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); + } + if (alloc == SWIG_NEWOBJ) { + delete[] cptr; + res = SWIG_DelNewMask(res); + } + return res; + } + if (alloc == SWIG_NEWOBJ) delete[] cptr; + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_char (PyObject * obj, char *val) +{ + int res = SWIG_AsCharArray(obj, val, 1); + if (!SWIG_IsOK(res)) { + long v; + res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); + if (SWIG_IsOK(res)) { + if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { + if (val) *val = static_cast< char >(v); + } else { + res = SWIG_OverflowError; + } + } + } + return res; +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_short (short value) +{ + return SWIG_From_long (value); +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) +{ + int res = SWIG_TypeError; + if (PyLong_Check(obj)) { + unsigned long long v = PyLong_AsUnsignedLongLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } else { + unsigned long v; + res = SWIG_AsVal_unsigned_SS_long (obj,&v); + if (SWIG_IsOK(res)) { + if (val) *val = v; + return res; + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + const double mant_max = 1LL << DBL_MANT_DIG; + double d; + res = SWIG_AsVal_double (obj,&d); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { + if (val) *val = (unsigned long long)(d); + return SWIG_AddCast(res); + } + res = SWIG_TypeError; + } +#endif + return res; +} + + +#include "Xcap.h" + + +#include "SMSEncoder.h" + + +#include "Msrp.h" + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "tinyWRAP_wrap.h" + +SwigDirector_DDebugCallback::SwigDirector_DDebugCallback(PyObject *self): DDebugCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((DDebugCallback *)this, this); +} + + + + +SwigDirector_DDebugCallback::~SwigDirector_DDebugCallback() { +} + +int SwigDirector_DDebugCallback::OnDebugInfo(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call DDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "OnDebugInfo"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugInfo", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'DDebugCallback.OnDebugInfo'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_DDebugCallback::OnDebugWarn(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call DDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "OnDebugWarn"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugWarn", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'DDebugCallback.OnDebugWarn'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_DDebugCallback::OnDebugError(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call DDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "OnDebugError"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugError", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'DDebugCallback.OnDebugError'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_DDebugCallback::OnDebugFatal(char const *message) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_FromCharPtr((const char *)message); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call DDebugCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "OnDebugFatal"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDebugFatal", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'DDebugCallback.OnDebugFatal'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_T140Callback::SwigDirector_T140Callback(PyObject *self): T140Callback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((T140Callback *)this, this); +} + + + + +SwigDirector_T140Callback::~SwigDirector_T140Callback() { +} + +int SwigDirector_T140Callback::ondata(T140CallbackData const *pData) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(pData), SWIGTYPE_p_T140CallbackData, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call T140Callback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "ondata"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"ondata", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'T140Callback.ondata'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_ProxyPluginMgrCallback::SwigDirector_ProxyPluginMgrCallback(PyObject *self): ProxyPluginMgrCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((ProxyPluginMgrCallback *)this, this); +} + + + + +SwigDirector_ProxyPluginMgrCallback::~SwigDirector_ProxyPluginMgrCallback() { +} + +int SwigDirector_ProxyPluginMgrCallback::OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(id)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_int(static_cast< int >(type)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyPluginMgrCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "OnPluginCreated"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnPluginCreated", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyPluginMgrCallback.OnPluginCreated'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyPluginMgrCallback::OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(id)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_int(static_cast< int >(type)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyPluginMgrCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "OnPluginDestroyed"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnPluginDestroyed", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyPluginMgrCallback.OnPluginDestroyed'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_ProxyAudioConsumerCallback::SwigDirector_ProxyAudioConsumerCallback(PyObject *self): ProxyAudioConsumerCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((ProxyAudioConsumerCallback *)this, this); +} + + + + +SwigDirector_ProxyAudioConsumerCallback::~SwigDirector_ProxyAudioConsumerCallback() { +} + +int SwigDirector_ProxyAudioConsumerCallback::prepare(int ptime, int rate, int channels) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_int(static_cast< int >(ptime)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_int(static_cast< int >(rate)); + swig::SwigVar_PyObject obj2; + obj2 = SWIG_From_int(static_cast< int >(channels)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "prepare"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"prepare", (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioConsumerCallback.prepare'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioConsumerCallback::start() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "start"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "start", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioConsumerCallback.start'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioConsumerCallback::pause() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "pause"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "pause", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioConsumerCallback.pause'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioConsumerCallback::stop() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "stop"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "stop", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioConsumerCallback.stop'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_ProxyVideoConsumerCallback::SwigDirector_ProxyVideoConsumerCallback(PyObject *self): ProxyVideoConsumerCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((ProxyVideoConsumerCallback *)this, this); +} + + + + +SwigDirector_ProxyVideoConsumerCallback::~SwigDirector_ProxyVideoConsumerCallback() { +} + +int SwigDirector_ProxyVideoConsumerCallback::prepare(int nWidth, int nHeight, int nFps) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_int(static_cast< int >(nWidth)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_int(static_cast< int >(nHeight)); + swig::SwigVar_PyObject obj2; + obj2 = SWIG_From_int(static_cast< int >(nFps)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "prepare"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"prepare", (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoConsumerCallback.prepare'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoConsumerCallback::consume(ProxyVideoFrame const *frame) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(frame), SWIGTYPE_p_ProxyVideoFrame, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "consume"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"consume", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoConsumerCallback.consume'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoConsumerCallback::bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(nCopiedSize)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(nAvailableSize)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "bufferCopied"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"bufferCopied", (char *)"(OO)" ,(PyObject *)obj0,(PyObject *)obj1); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoConsumerCallback.bufferCopied'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoConsumerCallback::start() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "start"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "start", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoConsumerCallback.start'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoConsumerCallback::pause() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 4; + const char * const swig_method_name = "pause"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "pause", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoConsumerCallback.pause'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoConsumerCallback::stop() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoConsumerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 5; + const char * const swig_method_name = "stop"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "stop", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoConsumerCallback.stop'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_ProxyAudioProducerCallback::SwigDirector_ProxyAudioProducerCallback(PyObject *self): ProxyAudioProducerCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((ProxyAudioProducerCallback *)this, this); +} + + + + +SwigDirector_ProxyAudioProducerCallback::~SwigDirector_ProxyAudioProducerCallback() { +} + +int SwigDirector_ProxyAudioProducerCallback::prepare(int ptime, int rate, int channels) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_int(static_cast< int >(ptime)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_int(static_cast< int >(rate)); + swig::SwigVar_PyObject obj2; + obj2 = SWIG_From_int(static_cast< int >(channels)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "prepare"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"prepare", (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioProducerCallback.prepare'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioProducerCallback::start() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "start"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "start", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioProducerCallback.start'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioProducerCallback::pause() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "pause"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "pause", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioProducerCallback.pause'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioProducerCallback::stop() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "stop"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "stop", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioProducerCallback.stop'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyAudioProducerCallback::fillPushBuffer() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyAudioProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 4; + const char * const swig_method_name = "fillPushBuffer"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "fillPushBuffer", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyAudioProducerCallback.fillPushBuffer'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_ProxyVideoProducerCallback::SwigDirector_ProxyVideoProducerCallback(PyObject *self): ProxyVideoProducerCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((ProxyVideoProducerCallback *)this, this); +} + + + + +SwigDirector_ProxyVideoProducerCallback::~SwigDirector_ProxyVideoProducerCallback() { +} + +int SwigDirector_ProxyVideoProducerCallback::prepare(int width, int height, int fps) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_From_int(static_cast< int >(width)); + swig::SwigVar_PyObject obj1; + obj1 = SWIG_From_int(static_cast< int >(height)); + swig::SwigVar_PyObject obj2; + obj2 = SWIG_From_int(static_cast< int >(fps)); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "prepare"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"prepare", (char *)"(OOO)" ,(PyObject *)obj0,(PyObject *)obj1,(PyObject *)obj2); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoProducerCallback.prepare'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoProducerCallback::start() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "start"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "start", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoProducerCallback.start'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoProducerCallback::pause() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "pause"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "pause", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoProducerCallback.pause'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_ProxyVideoProducerCallback::stop() { + int c_result; + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call ProxyVideoProducerCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "stop"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, NULL, NULL); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *) "stop", NULL); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'ProxyVideoProducerCallback.stop'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_SipCallback::SwigDirector_SipCallback(PyObject *self): SipCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((SipCallback *)this, this); +} + + + + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { +} + +int SwigDirector_SipCallback::OnDialogEvent(DialogEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_DialogEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "OnDialogEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnDialogEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnDialogEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnStackEvent(StackEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_StackEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 1; + const char * const swig_method_name = "OnStackEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnStackEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnStackEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnInviteEvent(InviteEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_InviteEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 2; + const char * const swig_method_name = "OnInviteEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnInviteEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnInviteEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnMessagingEvent(MessagingEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_MessagingEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 3; + const char * const swig_method_name = "OnMessagingEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnMessagingEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnMessagingEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnInfoEvent(InfoEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_InfoEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 4; + const char * const swig_method_name = "OnInfoEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnInfoEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnInfoEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnOptionsEvent(OptionsEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_OptionsEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 5; + const char * const swig_method_name = "OnOptionsEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnOptionsEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnOptionsEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnPublicationEvent(PublicationEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_PublicationEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 6; + const char * const swig_method_name = "OnPublicationEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnPublicationEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnPublicationEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnRegistrationEvent(RegistrationEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_RegistrationEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 7; + const char * const swig_method_name = "OnRegistrationEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnRegistrationEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnRegistrationEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +int SwigDirector_SipCallback::OnSubscriptionEvent(SubscriptionEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_SubscriptionEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call SipCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 8; + const char * const swig_method_name = "OnSubscriptionEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnSubscriptionEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'SipCallback.OnSubscriptionEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_XcapCallback::SwigDirector_XcapCallback(PyObject *self): XcapCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((XcapCallback *)this, this); +} + + + + +SwigDirector_XcapCallback::~SwigDirector_XcapCallback() { +} + +int SwigDirector_XcapCallback::onEvent(XcapEvent const *e) const { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_XcapEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call XcapCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "onEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"onEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'XcapCallback.onEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +SwigDirector_MsrpCallback::SwigDirector_MsrpCallback(PyObject *self): MsrpCallback(), Swig::Director(self) { + SWIG_DIRECTOR_RGTR((MsrpCallback *)this, this); +} + + + + +SwigDirector_MsrpCallback::~SwigDirector_MsrpCallback() { +} + +int SwigDirector_MsrpCallback::OnEvent(MsrpEvent const *e) { + int c_result; + swig::SwigVar_PyObject obj0; + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_MsrpEvent, 0 ); + if (!swig_get_self()) { + Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call MsrpCallback.__init__."); + } +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) + const size_t swig_method_index = 0; + const char * const swig_method_name = "OnEvent"; + PyObject* method = swig_get_method(swig_method_index, swig_method_name); + swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); +#else + swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"OnEvent", (char *)"(O)" ,(PyObject *)obj0); +#endif + if (!result) { + PyObject *error = PyErr_Occurred(); + if (error) { + Swig::DirectorMethodException::raise("Error detected when calling 'MsrpCallback.OnEvent'"); + } + } + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +#ifdef __cplusplus +extern "C" { +#endif +SWIGINTERN PyObject *_wrap_new_DDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + DDebugCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_DDebugCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (DDebugCallback *)new SwigDirector_DDebugCallback(arg1); + } else { + result = (DDebugCallback *)new DDebugCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DDebugCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_DDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_DDebugCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDebugCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DDebugCallback" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_DDebugCallback_OnDebugInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:DDebugCallback_OnDebugInfo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugInfo" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugInfo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->DDebugCallback::OnDebugInfo((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugInfo((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_DDebugCallback_OnDebugWarn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:DDebugCallback_OnDebugWarn",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugWarn" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugWarn" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->DDebugCallback::OnDebugWarn((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugWarn((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_DDebugCallback_OnDebugError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:DDebugCallback_OnDebugError",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugError" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->DDebugCallback::OnDebugError((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugError((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_DDebugCallback_OnDebugFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:DDebugCallback_OnDebugFatal",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DDebugCallback_OnDebugFatal" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DDebugCallback_OnDebugFatal" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->DDebugCallback::OnDebugFatal((char const *)arg2); + } else { + result = (int)(arg1)->OnDebugFatal((char const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_DDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DDebugCallback *arg1 = (DDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_DDebugCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_DDebugCallback" "', argument " "1"" of type '" "DDebugCallback *""'"); + } + arg1 = reinterpret_cast< DDebugCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *DDebugCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_DDebugCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_AudioResampler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + uint32_t arg2 ; + uint32_t arg3 ; + uint32_t arg4 ; + uint32_t arg5 ; + unsigned int val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + unsigned int val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + AudioResampler *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_AudioResampler",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AudioResampler" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AudioResampler" "', argument " "2"" of type '" "uint32_t""'"); + } + arg2 = static_cast< uint32_t >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AudioResampler" "', argument " "3"" of type '" "uint32_t""'"); + } + arg3 = static_cast< uint32_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_AudioResampler" "', argument " "4"" of type '" "uint32_t""'"); + } + arg4 = static_cast< uint32_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_AudioResampler" "', argument " "5"" of type '" "uint32_t""'"); + } + arg5 = static_cast< uint32_t >(val5); + result = (AudioResampler *)new AudioResampler(arg1,arg2,arg3,arg4,arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AudioResampler, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_AudioResampler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_AudioResampler",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AudioResampler, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AudioResampler" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AudioResampler_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:AudioResampler_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_isValid" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + result = (bool)(arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AudioResampler_getOutputRequiredSizeInShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint32_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:AudioResampler_getOutputRequiredSizeInShort",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_getOutputRequiredSizeInShort" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + result = (uint32_t)(arg1)->getOutputRequiredSizeInShort(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AudioResampler_getInputRequiredSizeInShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint32_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:AudioResampler_getInputRequiredSizeInShort",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_getInputRequiredSizeInShort" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + result = (uint32_t)(arg1)->getInputRequiredSizeInShort(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_AudioResampler_process(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + AudioResampler *arg1 = (AudioResampler *) 0 ; + void *arg2 = (void *) 0 ; + uint32_t arg3 ; + void *arg4 = (void *) 0 ; + uint32_t arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + unsigned int val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + uint32_t result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:AudioResampler_process",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_AudioResampler, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AudioResampler_process" "', argument " "1"" of type '" "AudioResampler *""'"); + } + arg1 = reinterpret_cast< AudioResampler * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AudioResampler_process" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AudioResampler_process" "', argument " "3"" of type '" "uint32_t""'"); + } + arg3 = static_cast< uint32_t >(val3); + res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "AudioResampler_process" "', argument " "4"" of type '" "void *""'"); + } + ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AudioResampler_process" "', argument " "5"" of type '" "uint32_t""'"); + } + arg5 = static_cast< uint32_t >(val5); + result = (uint32_t)(arg1)->process((void const *)arg2,arg3,arg4,arg5); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *AudioResampler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_AudioResampler, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ActionConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_ActionConfig")) SWIG_fail; + result = (ActionConfig *)new ActionConfig(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_ActionConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ActionConfig",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ActionConfig" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ActionConfig_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ActionConfig_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_addHeader" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ActionConfig_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ActionConfig_addPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ActionConfig_addPayload",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_addPayload" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ActionConfig_addPayload" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ActionConfig_addPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->addPayload((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ActionConfig_setActiveMedia(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ActionConfig_setActiveMedia",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setActiveMedia" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setActiveMedia" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (bool)(arg1)->setActiveMedia(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ActionConfig_setResponseLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + short arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + short val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + ActionConfig *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ActionConfig_setResponseLine",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setResponseLine" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setResponseLine" "', argument " "2"" of type '" "short""'"); + } + arg2 = static_cast< short >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_setResponseLine" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (ActionConfig *)(arg1)->setResponseLine(arg2,(char const *)arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ActionConfig_setMediaString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + ActionConfig *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ActionConfig_setMediaString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setMediaString" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setMediaString" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_setMediaString" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ActionConfig_setMediaString" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (ActionConfig *)(arg1)->setMediaString(arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ActionConfig_setMediaInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ActionConfig *arg1 = (ActionConfig *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + ActionConfig *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ActionConfig_setMediaInt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActionConfig_setMediaInt" "', argument " "1"" of type '" "ActionConfig *""'"); + } + arg1 = reinterpret_cast< ActionConfig * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ActionConfig_setMediaInt" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ActionConfig_setMediaInt" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ActionConfig_setMediaInt" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (ActionConfig *)(arg1)->setMediaInt(arg2,(char const *)arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *ActionConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ActionConfig, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_Codec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_Codec",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Codec" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getMediaType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + twrap_media_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getMediaType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getMediaType" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (twrap_media_type_t)(arg1)->getMediaType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getName" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (char *)(arg1)->getName(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getDescription",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getDescription" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (char *)(arg1)->getDescription(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getNegFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getNegFormat",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getNegFormat" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (char *)(arg1)->getNegFormat(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getAudioSamplingRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getAudioSamplingRate",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getAudioSamplingRate" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (int)(arg1)->getAudioSamplingRate(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getAudioChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getAudioChannels",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getAudioChannels" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (int)(arg1)->getAudioChannels(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Codec_getAudioPTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + Codec *arg1 = (Codec *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:Codec_getAudioPTime",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Codec, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Codec_getAudioPTime" "', argument " "1"" of type '" "Codec *""'"); + } + arg1 = reinterpret_cast< Codec * >(argp1); + result = (int)(arg1)->getAudioPTime(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *Codec_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_Codec, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_MediaSessionMgr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MediaSessionMgr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MediaSessionMgr" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_sessionSetInt32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MediaSessionMgr_sessionSetInt32",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_sessionSetInt32" "', argument " "4"" of type '" "int32_t""'"); + } + arg4 = static_cast< int32_t >(val4); + result = (bool)(arg1)->sessionSetInt32(arg2,(char const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_sessionGetInt32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int32_t result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MediaSessionMgr_sessionGetInt32",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_sessionGetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_sessionGetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_sessionGetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (int32_t)(arg1)->sessionGetInt32(arg2,(char const *)arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_consumerSetInt32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MediaSessionMgr_consumerSetInt32",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_consumerSetInt32" "', argument " "4"" of type '" "int32_t""'"); + } + arg4 = static_cast< int32_t >(val4); + result = (bool)(arg1)->consumerSetInt32(arg2,(char const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_consumerSetInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + long long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MediaSessionMgr_consumerSetInt64",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_consumerSetInt64" "', argument " "4"" of type '" "int64_t""'"); + } + arg4 = static_cast< int64_t >(val4); + result = (bool)(arg1)->consumerSetInt64(arg2,(char const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_producerSetInt32(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int32_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MediaSessionMgr_producerSetInt32",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_producerSetInt32" "', argument " "4"" of type '" "int32_t""'"); + } + arg4 = static_cast< int32_t >(val4); + result = (bool)(arg1)->producerSetInt32(arg2,(char const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_producerSetInt64(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + char *arg3 = (char *) 0 ; + int64_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + long long val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MediaSessionMgr_producerSetInt64",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_long_SS_long(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "MediaSessionMgr_producerSetInt64" "', argument " "4"" of type '" "int64_t""'"); + } + arg4 = static_cast< int64_t >(val4); + result = (bool)(arg1)->producerSetInt64(arg2,(char const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_producerGetCodec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Codec *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_producerGetCodec",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_producerGetCodec" "', argument " "1"" of type '" "MediaSessionMgr *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_producerGetCodec" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (Codec *)(arg1)->producerGetCodec(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Codec, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_findProxyPluginConsumer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyPlugin *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_findProxyPluginConsumer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_findProxyPluginConsumer" "', argument " "1"" of type '" "MediaSessionMgr const *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_findProxyPluginConsumer" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginConsumer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_findProxyPluginProducer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyPlugin *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_findProxyPluginProducer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_findProxyPluginProducer" "', argument " "1"" of type '" "MediaSessionMgr const *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_findProxyPluginProducer" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (ProxyPlugin *)((MediaSessionMgr const *)arg1)->findProxyPluginProducer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_registerAudioPluginFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_registerAudioPluginFromFile",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_registerAudioPluginFromFile" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (unsigned int)MediaSessionMgr::registerAudioPluginFromFile((char const *)arg1); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_getSessionId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaSessionMgr *arg1 = (MediaSessionMgr *) 0 ; + twrap_media_type_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + uint64_t result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_getSessionId",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_getSessionId" "', argument " "1"" of type '" "MediaSessionMgr const *""'"); + } + arg1 = reinterpret_cast< MediaSessionMgr * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_getSessionId" "', argument " "2"" of type '" "twrap_media_type_t""'"); + } + arg2 = static_cast< twrap_media_type_t >(val2); + result = (uint64_t)((MediaSessionMgr const *)arg1)->getSessionId(arg2); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_profile_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetProfile",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetProfile" "', argument " "1"" of type '" "tmedia_profile_t""'"); + } + arg1 = static_cast< tmedia_profile_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetProfile(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetProfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_profile_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetProfile")) SWIG_fail; + result = (tmedia_profile_t)MediaSessionMgr::defaultsGetProfile(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetBandwidthLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_bandwidth_level_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetBandwidthLevel",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetBandwidthLevel" "', argument " "1"" of type '" "tmedia_bandwidth_level_t""'"); + } + arg1 = static_cast< tmedia_bandwidth_level_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetBandwidthLevel(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetBandwidthLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_bandwidth_level_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetBandwidthLevel")) SWIG_fail; + result = (tmedia_bandwidth_level_t)MediaSessionMgr::defaultsGetBandwidthLevel(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetCongestionCtrlEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetCongestionCtrlEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetCongestionCtrlEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetCongestionCtrlEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetVideoMotionRank(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetVideoMotionRank",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoMotionRank" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoMotionRank(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetVideoFps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetVideoFps",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoFps" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoFps(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetBandwidthVideoUploadMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetBandwidthVideoUploadMax",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetBandwidthVideoUploadMax" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoUploadMax(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetBandwidthVideoDownloadMax(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetPrefVideoSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_pref_video_size_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetPrefVideoSize",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetPrefVideoSize" "', argument " "1"" of type '" "tmedia_pref_video_size_t""'"); + } + arg1 = static_cast< tmedia_pref_video_size_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetPrefVideoSize(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetJbMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetJbMargin",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetJbMargin" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetJbMargin(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetJbMaxLateRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetJbMaxLateRate",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetJbMaxLateRate" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetJbMaxLateRate(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetEchoTail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetEchoTail",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetEchoTail" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetEchoTail(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetEchoTail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetEchoTail")) SWIG_fail; + result = (uint32_t)MediaSessionMgr::defaultsGetEchoTail(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetEchoSkew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetEchoSkew",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetEchoSkew" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetEchoSkew(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetEchoSuppEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetEchoSuppEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetEchoSuppEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetEchoSuppEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetEchoSuppEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetEchoSuppEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetEchoSuppEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAgcEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetAgcEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAgcEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetAgcEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetAgcEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetAgcEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetAgcEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAgcLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + float arg1 ; + float val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetAgcLevel",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_float(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAgcLevel" "', argument " "1"" of type '" "float""'"); + } + arg1 = static_cast< float >(val1); + result = (bool)MediaSessionMgr::defaultsSetAgcLevel(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetAgcLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + float result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetAgcLevel")) SWIG_fail; + result = (float)MediaSessionMgr::defaultsGetAgcLevel(); + resultobj = SWIG_From_float(static_cast< float >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetVadEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetVadEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVadEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetVadEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetGetVadEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetGetVadEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetGetVadEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetNoiseSuppEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetNoiseSuppEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetNoiseSuppEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetNoiseSuppEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetNoiseSuppEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetNoiseSuppEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetNoiseSuppLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetNoiseSuppLevel",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetNoiseSuppLevel" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetNoiseSuppLevel(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetNoiseSuppLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetNoiseSuppLevel")) SWIG_fail; + result = (int32_t)MediaSessionMgr::defaultsGetNoiseSuppLevel(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSet100relEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSet100relEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSet100relEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSet100relEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGet100relEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGet100relEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGet100relEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetScreenSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int32_t arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetScreenSize",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetScreenSize" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetScreenSize" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetScreenSize(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAudioGain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int32_t arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetAudioGain",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAudioGain" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetAudioGain" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetAudioGain(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAudioPtime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetAudioPtime",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAudioPtime" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetAudioPtime(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAudioChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int32_t arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetAudioChannels",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAudioChannels" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetAudioChannels" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetAudioChannels(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetRtpPortRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint16_t arg1 ; + uint16_t arg2 ; + unsigned short val1 ; + int ecode1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetRtpPortRange",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_short(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtpPortRange" "', argument " "1"" of type '" "uint16_t""'"); + } + arg1 = static_cast< uint16_t >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetRtpPortRange" "', argument " "2"" of type '" "uint16_t""'"); + } + arg2 = static_cast< uint16_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetRtpPortRange(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetRtpSymetricEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetRtpSymetricEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtpSymetricEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtpSymetricEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetMediaType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + twrap_media_type_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetMediaType",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetMediaType" "', argument " "1"" of type '" "twrap_media_type_t""'"); + } + arg1 = static_cast< twrap_media_type_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetMediaType(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetVolume",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVolume" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetVolume(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetVolume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetVolume")) SWIG_fail; + result = (int32_t)MediaSessionMgr::defaultsGetVolume(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetInviteSessionTimers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + char *arg2 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetInviteSessionTimers",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetInviteSessionTimers" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaSessionMgr_defaultsSetInviteSessionTimers" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)MediaSessionMgr::defaultsSetInviteSessionTimers(arg1,(char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetSRtpMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_srtp_mode_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetSRtpMode",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetSRtpMode" "', argument " "1"" of type '" "tmedia_srtp_mode_t""'"); + } + arg1 = static_cast< tmedia_srtp_mode_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetSRtpMode(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetSRtpMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_srtp_mode_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetSRtpMode")) SWIG_fail; + result = (tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetSRtpType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_srtp_type_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetSRtpType",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetSRtpType" "', argument " "1"" of type '" "tmedia_srtp_type_t""'"); + } + arg1 = static_cast< tmedia_srtp_type_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetSRtpType(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetSRtpType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_srtp_type_t result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetSRtpType")) SWIG_fail; + result = (tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetRtcpEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetRtcpEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtcpEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtcpEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetRtcpEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetRtcpEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetRtcpEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetRtcpMuxEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetRtcpMuxEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtcpMuxEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtcpMuxEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetRtcpMuxEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetRtcpMuxEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetRtcpMuxEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetStunEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetStunEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetStunEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetStunEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetIceStunEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetIceStunEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetIceStunEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetIceStunEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetIceTurnEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetIceTurnEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetIceTurnEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetIceTurnEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetStunServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + uint16_t arg2 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetStunServer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_defaultsSetStunServer" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetStunServer" "', argument " "2"" of type '" "uint16_t""'"); + } + arg2 = static_cast< uint16_t >(val2); + result = (bool)MediaSessionMgr::defaultsSetStunServer((char const *)arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetStunCred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetStunCred",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaSessionMgr_defaultsSetStunCred" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaSessionMgr_defaultsSetStunCred" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)MediaSessionMgr::defaultsSetStunCred((char const *)arg1,(char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetIceEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetIceEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetIceEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetIceEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetByPassEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetByPassEncoding",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetByPassEncoding" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetByPassEncoding(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetByPassEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetByPassEncoding")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetByPassEncoding(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetByPassDecoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetByPassDecoding",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetByPassDecoding" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetByPassDecoding(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetByPassDecoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetByPassDecoding")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetByPassDecoding(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetVideoJbEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetVideoJbEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoJbEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoJbEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetVideoJbEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetVideoJbEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetVideoJbEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + result = (bool)MediaSessionMgr::defaultsSetVideoZeroArtifactsEnabled(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled")) SWIG_fail; + result = (bool)MediaSessionMgr::defaultsGetVideoZeroArtifactsEnabled(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetRtpBuffSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + unsigned int arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetRtpBuffSize",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetRtpBuffSize" "', argument " "1"" of type '" "unsigned int""'"); + } + arg1 = static_cast< unsigned int >(val1); + result = (bool)MediaSessionMgr::defaultsSetRtpBuffSize(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsGetRtpBuffSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)":MediaSessionMgr_defaultsGetRtpBuffSize")) SWIG_fail; + result = (unsigned int)MediaSessionMgr::defaultsGetRtpBuffSize(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAvpfTail(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + unsigned int arg1 ; + unsigned int arg2 ; + unsigned int val1 ; + int ecode1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaSessionMgr_defaultsSetAvpfTail",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAvpfTail" "', argument " "1"" of type '" "unsigned int""'"); + } + arg1 = static_cast< unsigned int >(val1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaSessionMgr_defaultsSetAvpfTail" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)MediaSessionMgr::defaultsSetAvpfTail(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetAvpfMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + enum tmedia_mode_e arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetAvpfMode",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetAvpfMode" "', argument " "1"" of type '" "enum tmedia_mode_e""'"); + } + arg1 = static_cast< enum tmedia_mode_e >(val1); + result = (bool)MediaSessionMgr::defaultsSetAvpfMode(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetOpusMaxCaptureRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetOpusMaxCaptureRate",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetOpusMaxCaptureRate" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetOpusMaxCaptureRate(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetOpusMaxPlaybackRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + uint32_t arg1 ; + unsigned int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetOpusMaxPlaybackRate",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetOpusMaxPlaybackRate" "', argument " "1"" of type '" "uint32_t""'"); + } + arg1 = static_cast< uint32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetOpusMaxPlaybackRate(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaSessionMgr_defaultsSetMaxFds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int32_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaSessionMgr_defaultsSetMaxFds",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MediaSessionMgr_defaultsSetMaxFds" "', argument " "1"" of type '" "int32_t""'"); + } + arg1 = static_cast< int32_t >(val1); + result = (bool)MediaSessionMgr::defaultsSetMaxFds(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MediaSessionMgr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MediaSessionMgr, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_MediaContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MediaContent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MediaContent" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaContent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getType" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + result = (char *)(arg1)->getType(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_getDataLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaContent_getDataLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getDataLength" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + result = (unsigned int)(arg1)->getDataLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_getData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MediaContent_getData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getData" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContent_getData" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MediaContent_getData" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getData(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_parse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + int res1 ; + unsigned int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + MediaContent *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MediaContent_parse",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_parse" "', argument " "1"" of type '" "void const *""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaContent_parse" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MediaContent_parse" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (MediaContent *)MediaContent::parse((void const *)arg1,arg2,(char const *)arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MediaContent, SWIG_POINTER_OWN | 0 ); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_parse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + int res1 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + MediaContentCPIM *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaContent_parse",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_parse" "', argument " "1"" of type '" "void const *""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MediaContent_parse" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (MediaContentCPIM *)MediaContent::parse((void const *)arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MediaContentCPIM, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_parse(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[0], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_MediaContent_parse__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[0], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MediaContent_parse__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MediaContent_parse'.\n" + " Possible C/C++ prototypes are:\n" + " MediaContent::parse(void const *,unsigned int,char const *)\n" + " MediaContent::parse(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_getPayloadLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContent *arg1 = (MediaContent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaContent_getPayloadLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getPayloadLength" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContent_getPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContent *arg1 = (MediaContent *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MediaContent_getPayload",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContent_getPayload" "', argument " "1"" of type '" "MediaContent *""'"); + } + arg1 = reinterpret_cast< MediaContent * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContent_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MediaContent_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MediaContent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MediaContent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_MediaContentCPIM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MediaContentCPIM",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContentCPIM, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MediaContentCPIM" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContentCPIM_getPayloadLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:MediaContentCPIM_getPayloadLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContentCPIM, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContentCPIM_getPayloadLength" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContentCPIM_getPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MediaContentCPIM_getPayload",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContentCPIM, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContentCPIM_getPayload" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContentCPIM_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MediaContentCPIM_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MediaContentCPIM_getHeaderValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MediaContentCPIM *arg1 = (MediaContentCPIM *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MediaContentCPIM_getHeaderValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MediaContentCPIM, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MediaContentCPIM_getHeaderValue" "', argument " "1"" of type '" "MediaContentCPIM *""'"); + } + arg1 = reinterpret_cast< MediaContentCPIM * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MediaContentCPIM_getHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getHeaderValue((char const *)arg2); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *MediaContentCPIM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MediaContentCPIM, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipUri__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + SipUri *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_SipUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (SipUri *)new SipUri((char const *)arg1,(char const *)arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_SipUri__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + SipUri *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipUri",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipUri" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (SipUri *)new SipUri((char const *)arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipUri, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_SipUri(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_new_SipUri__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_new_SipUri__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SipUri'.\n" + " Possible C/C++ prototypes are:\n" + " SipUri::SipUri(char const *,char const *)\n" + " SipUri::SipUri(char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_delete_SipUri(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipUri",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipUri" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + result = (bool)SipUri::isValid((char const *)arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_isValid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_isValid" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (bool)(arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_isValid(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[2]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 1) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipUri_isValid__SWIG_1(self, args); + } + } + if (argc == 1) { + int _v; + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipUri_isValid__SWIG_0(self, args); + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipUri_isValid'.\n" + " Possible C/C++ prototypes are:\n" + " SipUri::isValid(char const *)\n" + " SipUri::isValid()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getScheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_getScheme",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getScheme" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getScheme(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_getHost",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getHost" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getHost(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned short result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_getPort",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getPort" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (unsigned short)(arg1)->getPort(); + resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_getUserName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getUserName" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getUserName(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_getPassword",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getPassword" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getPassword(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getDisplayName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipUri_getDisplayName",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getDisplayName" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + result = (char *)(arg1)->getDisplayName(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_getParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipUri_getParamValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_getParamValue" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipUri_getParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getParamValue((char const *)arg2); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipUri_setDisplayName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipUri *arg1 = (SipUri *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipUri_setDisplayName",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipUri_setDisplayName" "', argument " "1"" of type '" "SipUri *""'"); + } + arg1 = reinterpret_cast< SipUri * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipUri_setDisplayName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + (arg1)->setDisplayName((char const *)arg2); + resultobj = SWIG_Py_Void(); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *SipUri_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipUri, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SdpMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SdpMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SdpMessage")) SWIG_fail; + result = (SdpMessage *)new SdpMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SdpMessage, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SdpMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SdpMessage *arg1 = (SdpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SdpMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SdpMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SdpMessage" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SdpMessage_getSdpHeaderValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + char val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SdpMessage_getSdpHeaderValue",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SdpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_char(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "3"" of type '" "char""'"); + } + arg3 = static_cast< char >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3,arg4); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SdpMessage_getSdpHeaderValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + char val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SdpMessage_getSdpHeaderValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SdpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_char(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SdpMessage_getSdpHeaderValue" "', argument " "3"" of type '" "char""'"); + } + arg3 = static_cast< char >(val3); + result = (char *)(arg1)->getSdpHeaderValue((char const *)arg2,arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SdpMessage_getSdpHeaderValue(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SdpMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_char(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SdpMessage_getSdpHeaderValue__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SdpMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_char(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SdpMessage_getSdpHeaderValue__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SdpMessage_getSdpHeaderValue'.\n" + " Possible C/C++ prototypes are:\n" + " SdpMessage::getSdpHeaderValue(char const *,char,unsigned int)\n" + " SdpMessage::getSdpHeaderValue(char const *,char)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SdpMessage_getSdpHeaderAValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SdpMessage *arg1 = (SdpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SdpMessage_getSdpHeaderAValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SdpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SdpMessage_getSdpHeaderAValue" "', argument " "1"" of type '" "SdpMessage *""'"); + } + arg1 = reinterpret_cast< SdpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SdpMessage_getSdpHeaderAValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SdpMessage_getSdpHeaderAValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getSdpHeaderAValue((char const *)arg2,(char const *)arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *SdpMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SdpMessage, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SipMessage")) SWIG_fail; + result = (SipMessage *)new SipMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipMessage, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipMessage" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_isResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_isResponse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_isResponse" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (bool)(arg1)->isResponse(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getRequestType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_request_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_getRequestType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getRequestType" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (tsip_request_type_t)(arg1)->getRequestType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getResponseCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + short result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_getResponseCode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getResponseCode" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (short)(arg1)->getResponseCode(); + resultobj = SWIG_From_short(static_cast< short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getResponsePhrase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_getResponsePhrase",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getResponsePhrase" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (char *)(arg1)->getResponsePhrase(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipMessage_getSipHeaderValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipMessage_getSipHeaderValue" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2,arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipMessage_getSipHeaderValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getSipHeaderValue((char const *)arg2); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderValue(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipMessage_getSipHeaderValue__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SipMessage_getSipHeaderValue__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipMessage_getSipHeaderValue'.\n" + " Possible C/C++ prototypes are:\n" + " SipMessage::getSipHeaderValue(char const *,unsigned int)\n" + " SipMessage::getSipHeaderValue(char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderParamValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SipMessage_getSipHeaderParamValue",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderParamValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipMessage_getSipHeaderParamValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipMessage_getSipHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getSipHeaderParamValue((char const *)arg2,(char const *)arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipHeaderParamValue(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipMessage_getSipHeaderParamValue__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SipMessage_getSipHeaderParamValue__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipMessage_getSipHeaderParamValue'.\n" + " Possible C/C++ prototypes are:\n" + " SipMessage::getSipHeaderParamValue(char const *,char const *,unsigned int)\n" + " SipMessage::getSipHeaderParamValue(char const *,char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipContentLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_getSipContentLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipContentLength" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (unsigned int)(arg1)->getSipContentLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSipContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipMessage_getSipContent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSipContent" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipMessage_getSipContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipMessage_getSipContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getSipContent(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipMessage_getSdpMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipMessage *arg1 = (SipMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SdpMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipMessage_getSdpMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipMessage_getSdpMessage" "', argument " "1"" of type '" "SipMessage *""'"); + } + arg1 = reinterpret_cast< SipMessage * >(argp1); + result = (SdpMessage *)(arg1)->getSdpMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SdpMessage, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipMessage, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_SipEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipEvent" "', argument " "1"" of type '" "SipEvent *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + short result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getCode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getCode" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (short)((SipEvent const *)arg1)->getCode(); + resultobj = SWIG_From_short(static_cast< short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getPhrase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getPhrase",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getPhrase" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (char *)((SipEvent const *)arg1)->getPhrase(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getBaseSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SipSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getBaseSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getBaseSession" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipEvent_getSipMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SipMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipEvent_getSipMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipEvent_getSipMessage" "', argument " "1"" of type '" "SipEvent const *""'"); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipMessage *)((SipEvent const *)arg1)->getSipMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipMessage, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_DialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + DialogEvent *arg1 = (DialogEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_DialogEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_DialogEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DialogEvent" "', argument " "1"" of type '" "DialogEvent *""'"); + } + arg1 = reinterpret_cast< DialogEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *DialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_DialogEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_StackEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + StackEvent *arg1 = (StackEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_StackEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_StackEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StackEvent" "', argument " "1"" of type '" "StackEvent *""'"); + } + arg1 = reinterpret_cast< StackEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *StackEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_StackEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_InviteEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_InviteEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InviteEvent" "', argument " "1"" of type '" "InviteEvent *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_invite_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_getType" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (tsip_invite_event_type_t)((InviteEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteEvent_getMediaType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + twrap_media_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteEvent_getMediaType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_getMediaType" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (twrap_media_type_t)((InviteEvent const *)arg1)->getMediaType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + InviteSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_getSession" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (InviteSession *)((InviteEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InviteSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteEvent_takeCallSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + CallSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteEvent_takeCallSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_takeCallSessionOwnership" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (CallSession *)((InviteEvent const *)arg1)->takeCallSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteEvent_takeMsrpSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteEvent *arg1 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MsrpSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteEvent_takeMsrpSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteEvent_takeMsrpSessionOwnership" "', argument " "1"" of type '" "InviteEvent const *""'"); + } + arg1 = reinterpret_cast< InviteEvent * >(argp1); + result = (MsrpSession *)((InviteEvent const *)arg1)->takeMsrpSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpSession, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *InviteEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_InviteEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_MessagingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MessagingEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MessagingEvent" "', argument " "1"" of type '" "MessagingEvent *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_message_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:MessagingEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingEvent_getType" "', argument " "1"" of type '" "MessagingEvent const *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + result = (tsip_message_event_type_t)((MessagingEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MessagingSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MessagingEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingEvent_getSession" "', argument " "1"" of type '" "MessagingEvent const *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + result = (MessagingSession *)((MessagingEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MessagingSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingEvent *arg1 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MessagingSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MessagingEvent_takeSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingEvent_takeSessionOwnership" "', argument " "1"" of type '" "MessagingEvent const *""'"); + } + arg1 = reinterpret_cast< MessagingEvent * >(argp1); + result = (MessagingSession *)((MessagingEvent const *)arg1)->takeSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MessagingSession, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MessagingEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MessagingEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_InfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_InfoEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InfoEvent" "', argument " "1"" of type '" "InfoEvent *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_info_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:InfoEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoEvent_getType" "', argument " "1"" of type '" "InfoEvent const *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + result = (tsip_info_event_type_t)((InfoEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + InfoSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:InfoEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoEvent_getSession" "', argument " "1"" of type '" "InfoEvent const *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + result = (InfoSession *)((InfoEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InfoSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoEvent *arg1 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + InfoSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:InfoEvent_takeSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoEvent_takeSessionOwnership" "', argument " "1"" of type '" "InfoEvent const *""'"); + } + arg1 = reinterpret_cast< InfoEvent * >(argp1); + result = (InfoSession *)((InfoEvent const *)arg1)->takeSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InfoSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *InfoEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_InfoEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_OptionsEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_OptionsEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionsEvent" "', argument " "1"" of type '" "OptionsEvent *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_options_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:OptionsEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsEvent_getType" "', argument " "1"" of type '" "OptionsEvent const *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + result = (tsip_options_event_type_t)((OptionsEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + OptionsSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:OptionsEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsEvent_getSession" "', argument " "1"" of type '" "OptionsEvent const *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + result = (OptionsSession *)((OptionsEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionsSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsEvent *arg1 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + OptionsSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:OptionsEvent_takeSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsEvent_takeSessionOwnership" "', argument " "1"" of type '" "OptionsEvent const *""'"); + } + arg1 = reinterpret_cast< OptionsEvent * >(argp1); + result = (OptionsSession *)((OptionsEvent const *)arg1)->takeSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionsSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *OptionsEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_OptionsEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_PublicationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_PublicationEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationEvent" "', argument " "1"" of type '" "PublicationEvent *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_publish_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:PublicationEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getType" "', argument " "1"" of type '" "PublicationEvent const *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + result = (tsip_publish_event_type_t)((PublicationEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PublicationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:PublicationEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_getSession" "', argument " "1"" of type '" "PublicationEvent const *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + result = (PublicationSession *)((PublicationEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationEvent *arg1 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PublicationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:PublicationEvent_takeSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationEvent_takeSessionOwnership" "', argument " "1"" of type '" "PublicationEvent const *""'"); + } + arg1 = reinterpret_cast< PublicationEvent * >(argp1); + result = (PublicationSession *)((PublicationEvent const *)arg1)->takeSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *PublicationEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_PublicationEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_RegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_RegistrationEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationEvent" "', argument " "1"" of type '" "RegistrationEvent *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_register_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getType" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + RegistrationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_getSession" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + RegistrationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationEvent_takeSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationEvent_takeSessionOwnership" "', argument " "1"" of type '" "RegistrationEvent const *""'"); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->takeSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *RegistrationEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_RegistrationEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_SubscriptionEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SubscriptionEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionEvent" "', argument " "1"" of type '" "SubscriptionEvent *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tsip_subscribe_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getType" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (tsip_subscribe_event_type_t)((SubscriptionEvent const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionEvent_getSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SubscriptionSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_getSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_getSession" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->getSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionEvent_takeSessionOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionEvent *arg1 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SubscriptionSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionEvent_takeSessionOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionEvent_takeSessionOwnership" "', argument " "1"" of type '" "SubscriptionEvent const *""'"); + } + arg1 = reinterpret_cast< SubscriptionEvent * >(argp1); + result = (SubscriptionSession *)((SubscriptionEvent const *)arg1)->takeSessionOwnership(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SubscriptionEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SubscriptionEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_T140CallbackData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_T140CallbackData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140CallbackData, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_T140CallbackData" "', argument " "1"" of type '" "T140CallbackData *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_T140CallbackData_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + enum tmedia_t140_data_type_e result; + + if (!PyArg_ParseTuple(args,(char *)"O:T140CallbackData_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140CallbackData_getType" "', argument " "1"" of type '" "T140CallbackData const *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + result = (enum tmedia_t140_data_type_e)((T140CallbackData const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_T140CallbackData_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:T140CallbackData_getSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140CallbackData_getSize" "', argument " "1"" of type '" "T140CallbackData const *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + result = (unsigned int)((T140CallbackData const *)arg1)->getSize(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_T140CallbackData_getData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140CallbackData *arg1 = (T140CallbackData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:T140CallbackData_getData",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140CallbackData_getData" "', argument " "1"" of type '" "T140CallbackData const *""'"); + } + arg1 = reinterpret_cast< T140CallbackData * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "T140CallbackData_getData" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "T140CallbackData_getData" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)((T140CallbackData const *)arg1)->getData(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *T140CallbackData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_T140CallbackData, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_T140Callback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + T140Callback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_T140Callback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (T140Callback *)new SwigDirector_T140Callback(arg1); + } else { + result = (T140Callback *)new T140Callback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_T140Callback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_T140Callback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140Callback *arg1 = (T140Callback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_T140Callback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140Callback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_T140Callback" "', argument " "1"" of type '" "T140Callback *""'"); + } + arg1 = reinterpret_cast< T140Callback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_T140Callback_ondata(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140Callback *arg1 = (T140Callback *) 0 ; + T140CallbackData *arg2 = (T140CallbackData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:T140Callback_ondata",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140Callback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "T140Callback_ondata" "', argument " "1"" of type '" "T140Callback *""'"); + } + arg1 = reinterpret_cast< T140Callback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_T140CallbackData, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "T140Callback_ondata" "', argument " "2"" of type '" "T140CallbackData const *""'"); + } + arg2 = reinterpret_cast< T140CallbackData * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->T140Callback::ondata((T140CallbackData const *)arg2); + } else { + result = (int)(arg1)->ondata((T140CallbackData const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_T140Callback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + T140Callback *arg1 = (T140Callback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_T140Callback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_T140Callback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_T140Callback" "', argument " "1"" of type '" "T140Callback *""'"); + } + arg1 = reinterpret_cast< T140Callback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *T140Callback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_T140Callback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SipSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SipSession *)new SipSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipSession" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_haveOwnership(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipSession_haveOwnership",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_haveOwnership" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + result = (bool)(arg1)->haveOwnership(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_removeHeader",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeHeader" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addCaps__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipSession_addCaps",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipSession_addCaps" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addCaps__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_addCaps",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addCaps((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addCaps(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_addCaps__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_addCaps__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipSession_addCaps'.\n" + " Possible C/C++ prototypes are:\n" + " SipSession::addCaps(char const *,char const *)\n" + " SipSession::addCaps(char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipSession_removeCaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_removeCaps",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeCaps" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_removeCaps" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeCaps((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setExpires(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setExpires",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setExpires" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setExpires" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setExpires(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setFromUri__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setFromUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setFromUri((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setFromUri__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setFromUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setFromUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setFromUri" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->setFromUri((SipUri const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setFromUri(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_setFromUri__SWIG_1(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_setFromUri__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipSession_setFromUri'.\n" + " Possible C/C++ prototypes are:\n" + " SipSession::setFromUri(char const *)\n" + " SipSession::setFromUri(SipUri const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setToUri__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setToUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setToUri((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setToUri__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setToUri",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setToUri" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_setToUri" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->setToUri((SipUri const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setToUri(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_setToUri__SWIG_1(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_setToUri__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipSession_setToUri'.\n" + " Possible C/C++ prototypes are:\n" + " SipSession::setToUri(char const *)\n" + " SipSession::setToUri(SipUri const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipSession_setSilentHangup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_setSilentHangup",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_setSilentHangup" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipSession_setSilentHangup" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setSilentHangup(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_addSigCompCompartment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipSession_addSigCompCompartment",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_addSigCompCompartment" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipSession_addSigCompCompartment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_removeSigCompCompartment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipSession_removeSigCompCompartment",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_removeSigCompCompartment" "', argument " "1"" of type '" "SipSession *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + result = (bool)(arg1)->removeSigCompCompartment(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipSession_getId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipSession *arg1 = (SipSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipSession_getId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipSession_getId" "', argument " "1"" of type '" "SipSession const *""'"); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + result = (unsigned int)((SipSession const *)arg1)->getId(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_InviteSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + InviteSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_InviteSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InviteSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (InviteSession *)new InviteSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InviteSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_InviteSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_InviteSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InviteSession" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_accept__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:InviteSession_accept",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_accept" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_accept__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteSession_accept",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_accept" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (bool)(arg1)->accept(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_accept(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_accept__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_accept__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InviteSession_accept'.\n" + " Possible C/C++ prototypes are:\n" + " InviteSession::accept(ActionConfig *)\n" + " InviteSession::accept()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_hangup__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:InviteSession_hangup",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_hangup" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_hangup" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->hangup(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_hangup__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteSession_hangup",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_hangup" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (bool)(arg1)->hangup(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_hangup(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_hangup__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_hangup__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InviteSession_hangup'.\n" + " Possible C/C++ prototypes are:\n" + " InviteSession::hangup(ActionConfig *)\n" + " InviteSession::hangup()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_reject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:InviteSession_reject",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_reject" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_reject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteSession_reject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_reject" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (bool)(arg1)->reject(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_reject(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_reject__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_reject__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InviteSession_reject'.\n" + " Possible C/C++ prototypes are:\n" + " InviteSession::reject(ActionConfig *)\n" + " InviteSession::reject()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_sendInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:InviteSession_sendInfo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_sendInfo" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_sendInfo" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InviteSession_sendInfo" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InviteSession_sendInfo" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_sendInfo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:InviteSession_sendInfo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_sendInfo" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InviteSession_sendInfo" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InviteSession_sendInfo" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->sendInfo((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_sendInfo(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_InviteSession_sendInfo__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InviteSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InviteSession_sendInfo__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InviteSession_sendInfo'.\n" + " Possible C/C++ prototypes are:\n" + " InviteSession::sendInfo(void const *,unsigned int,ActionConfig *)\n" + " InviteSession::sendInfo(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_InviteSession_getMediaMgr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InviteSession *arg1 = (InviteSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MediaSessionMgr *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:InviteSession_getMediaMgr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InviteSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InviteSession_getMediaMgr" "', argument " "1"" of type '" "InviteSession *""'"); + } + arg1 = reinterpret_cast< InviteSession * >(argp1); + result = (MediaSessionMgr *)(arg1)->getMediaMgr(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MediaSessionMgr, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *InviteSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_InviteSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_CallSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + CallSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_CallSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CallSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (CallSession *)new CallSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CallSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_CallSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_CallSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CallSession" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudio__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_callAudio",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudio" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudio((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudio__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_callAudio",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callAudio((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudio__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_callAudio",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudio" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudio((SipUri const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudio__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_callAudio",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudio" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudio" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callAudio((SipUri const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudio(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudio__SWIG_3(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudio__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudio__SWIG_2(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudio__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_callAudio'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::callAudio(char const *,ActionConfig *)\n" + " CallSession::callAudio(char const *)\n" + " CallSession::callAudio(SipUri const *,ActionConfig *)\n" + " CallSession::callAudio(SipUri const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudioVideo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_callAudioVideo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudioVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudioVideo((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudioVideo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_callAudioVideo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callAudioVideo((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudioVideo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_callAudioVideo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callAudioVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudioVideo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_callAudioVideo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callAudioVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callAudioVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callAudioVideo((SipUri const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callAudioVideo(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudioVideo__SWIG_3(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudioVideo__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudioVideo__SWIG_2(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callAudioVideo__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_callAudioVideo'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::callAudioVideo(char const *,ActionConfig *)\n" + " CallSession::callAudioVideo(char const *)\n" + " CallSession::callAudioVideo(SipUri const *,ActionConfig *)\n" + " CallSession::callAudioVideo(SipUri const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callVideo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_callVideo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callVideo((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callVideo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_callVideo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callVideo((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callVideo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_callVideo",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_callVideo" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callVideo((SipUri const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callVideo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_callVideo",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_callVideo" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_callVideo" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callVideo((SipUri const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_callVideo(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callVideo__SWIG_3(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callVideo__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callVideo__SWIG_2(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_callVideo__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_callVideo'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::callVideo(char const *,ActionConfig *)\n" + " CallSession::callVideo(char const *)\n" + " CallSession::callVideo(SipUri const *,ActionConfig *)\n" + " CallSession::callVideo(SipUri const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_call__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:CallSession_call",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallSession_call" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->call((char const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_call__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + twrap_media_type_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_call",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + result = (bool)(arg1)->call((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_call__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:CallSession_call",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CallSession_call" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->call((SipUri const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_call__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + twrap_media_type_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_call",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_call" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_call" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_call" "', argument " "3"" of type '" "twrap_media_type_t""'"); + } + arg3 = static_cast< twrap_media_type_t >(val3); + result = (bool)(arg1)->call((SipUri const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_call(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_CallSession_call__SWIG_3(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_CallSession_call__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_call__SWIG_2(self, args); + } + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_call__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_call'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::call(char const *,twrap_media_type_t,ActionConfig *)\n" + " CallSession::call(char const *,twrap_media_type_t)\n" + " CallSession::call(SipUri const *,twrap_media_type_t,ActionConfig *)\n" + " CallSession::call(SipUri const *,twrap_media_type_t)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setSessionTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + unsigned int arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_setSessionTimer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSessionTimer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setSessionTimer" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_setSessionTimer" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setSessionTimer(arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_set100rel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_set100rel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_set100rel" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_set100rel" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->set100rel(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setRtcp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setRtcp",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setRtcp" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setRtcp" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setRtcp(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setRtcpMux(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setRtcpMux",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setRtcpMux" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setRtcpMux" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setRtcpMux(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setSRtpMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_srtp_mode_e arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setSRtpMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSRtpMode" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setSRtpMode" "', argument " "2"" of type '" "enum tmedia_srtp_mode_e""'"); + } + arg2 = static_cast< enum tmedia_srtp_mode_e >(val2); + result = (bool)(arg1)->setSRtpMode(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setAvpfMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_mode_e arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setAvpfMode",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setAvpfMode" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setAvpfMode" "', argument " "2"" of type '" "enum tmedia_mode_e""'"); + } + arg2 = static_cast< enum tmedia_mode_e >(val2); + result = (bool)(arg1)->setAvpfMode(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setICE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setICE",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setICE" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setICE" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setICE(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setICEStun(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setICEStun",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setICEStun" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setICEStun" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setICEStun(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setICETurn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setICETurn",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setICETurn" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setICETurn" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setICETurn(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setSTUNServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + uint16_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_setSTUNServer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSTUNServer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_setSTUNServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_setSTUNServer" "', argument " "3"" of type '" "uint16_t""'"); + } + arg3 = static_cast< uint16_t >(val3); + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setSTUNCred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_setSTUNCred",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setSTUNCred" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_setSTUNCred" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_setSTUNCred" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setVideoFps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setVideoFps",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoFps" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoFps" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)(arg1)->setVideoFps(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setVideoBandwidthUploadMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setVideoBandwidthUploadMax",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoBandwidthUploadMax" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoBandwidthUploadMax" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)(arg1)->setVideoBandwidthUploadMax(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setVideoBandwidthDownloadMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + int32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setVideoBandwidthDownloadMax",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoBandwidthDownloadMax" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoBandwidthDownloadMax" "', argument " "2"" of type '" "int32_t""'"); + } + arg2 = static_cast< int32_t >(val2); + result = (bool)(arg1)->setVideoBandwidthDownloadMax(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setVideoPrefSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_pref_video_size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setVideoPrefSize",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setVideoPrefSize" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setVideoPrefSize" "', argument " "2"" of type '" "tmedia_pref_video_size_t""'"); + } + arg2 = static_cast< tmedia_pref_video_size_t >(val2); + result = (bool)(arg1)->setVideoPrefSize(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setQoS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + tmedia_qos_stype_t arg2 ; + tmedia_qos_strength_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_setQoS",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setQoS" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_setQoS" "', argument " "2"" of type '" "tmedia_qos_stype_t""'"); + } + arg2 = static_cast< tmedia_qos_stype_t >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CallSession_setQoS" "', argument " "3"" of type '" "tmedia_qos_strength_t""'"); + } + arg3 = static_cast< tmedia_qos_strength_t >(val3); + result = (bool)(arg1)->setQoS(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_hold__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_hold",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_hold" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_hold" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->hold(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_hold__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:CallSession_hold",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_hold" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->hold(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_hold(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_hold__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_hold__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_hold'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::hold(ActionConfig *)\n" + " CallSession::hold()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_resume__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_resume",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_resume" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_resume" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->resume(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_resume__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:CallSession_resume",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_resume" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->resume(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_resume(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_resume__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_resume__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_resume'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::resume(ActionConfig *)\n" + " CallSession::resume()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_transfer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_transfer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_transfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_transfer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_transfer" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->transfer((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_transfer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_transfer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_transfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_transfer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->transfer((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_transfer(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_transfer__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_transfer__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_transfer'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::transfer(char const *,ActionConfig *)\n" + " CallSession::transfer(char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_acceptTransfer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_acceptTransfer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_acceptTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_acceptTransfer" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->acceptTransfer(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_acceptTransfer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:CallSession_acceptTransfer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_acceptTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->acceptTransfer(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_acceptTransfer(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_acceptTransfer__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_acceptTransfer__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_acceptTransfer'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::acceptTransfer(ActionConfig *)\n" + " CallSession::acceptTransfer()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_rejectTransfer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_rejectTransfer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_rejectTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_rejectTransfer" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->rejectTransfer(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_rejectTransfer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:CallSession_rejectTransfer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_rejectTransfer" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (bool)(arg1)->rejectTransfer(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_rejectTransfer(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_rejectTransfer__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_rejectTransfer__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_rejectTransfer'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::rejectTransfer(ActionConfig *)\n" + " CallSession::rejectTransfer()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_sendDTMF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_sendDTMF",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendDTMF" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendDTMF" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)(arg1)->sendDTMF(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_getSessionTransferId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:CallSession_getSessionTransferId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_getSessionTransferId" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + result = (unsigned int)(arg1)->getSessionTransferId(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_sendT140Data__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:CallSession_sendT140Data",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendT140Data" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendT140Data" "', argument " "2"" of type '" "enum tmedia_t140_data_type_e""'"); + } + arg2 = static_cast< enum tmedia_t140_data_type_e >(val2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_sendT140Data" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CallSession_sendT140Data" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_sendT140Data__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *arg3 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int res3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:CallSession_sendT140Data",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendT140Data" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendT140Data" "', argument " "2"" of type '" "enum tmedia_t140_data_type_e""'"); + } + arg2 = static_cast< enum tmedia_t140_data_type_e >(val2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CallSession_sendT140Data" "', argument " "3"" of type '" "void const *""'"); + } + result = (bool)(arg1)->sendT140Data(arg2,(void const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_sendT140Data__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + enum tmedia_t140_data_type_e arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_sendT140Data",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_sendT140Data" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CallSession_sendT140Data" "', argument " "2"" of type '" "enum tmedia_t140_data_type_e""'"); + } + arg2 = static_cast< enum tmedia_t140_data_type_e >(val2); + result = (bool)(arg1)->sendT140Data(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_CallSession_sendT140Data(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_CallSession_sendT140Data__SWIG_2(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[2], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_CallSession_sendT140Data__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CallSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_int(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[2], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_CallSession_sendT140Data__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CallSession_sendT140Data'.\n" + " Possible C/C++ prototypes are:\n" + " CallSession::sendT140Data(enum tmedia_t140_data_type_e,void const *,unsigned int)\n" + " CallSession::sendT140Data(enum tmedia_t140_data_type_e,void const *)\n" + " CallSession::sendT140Data(enum tmedia_t140_data_type_e)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_CallSession_setT140Callback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CallSession *arg1 = (CallSession *) 0 ; + T140Callback *arg2 = (T140Callback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:CallSession_setT140Callback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CallSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CallSession_setT140Callback" "', argument " "1"" of type '" "CallSession *""'"); + } + arg1 = reinterpret_cast< CallSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_T140Callback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CallSession_setT140Callback" "', argument " "2"" of type '" "T140Callback const *""'"); + } + arg2 = reinterpret_cast< T140Callback * >(argp2); + result = (bool)(arg1)->setT140Callback((T140Callback const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *CallSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_CallSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_MsrpSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + MsrpSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:new_MsrpSession",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MsrpSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MsrpSession" "', argument " "2"" of type '" "MsrpCallback *""'"); + } + arg2 = reinterpret_cast< MsrpCallback * >(argp2); + result = (MsrpSession *)new MsrpSession(arg1,arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_MsrpSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MsrpSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpSession" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_setCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + MsrpCallback *arg2 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MsrpSession_setCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_setCallback" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_setCallback" "', argument " "2"" of type '" "MsrpCallback *""'"); + } + arg2 = reinterpret_cast< MsrpCallback * >(argp2); + result = (bool)(arg1)->setCallback(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_callMsrp__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MsrpSession_callMsrp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MsrpSession_callMsrp" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callMsrp((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_callMsrp__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MsrpSession_callMsrp",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->callMsrp((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_callMsrp__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + ActionConfig *arg3 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MsrpSession_callMsrp",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MsrpSession_callMsrp" "', argument " "3"" of type '" "ActionConfig *""'"); + } + arg3 = reinterpret_cast< ActionConfig * >(argp3); + result = (bool)(arg1)->callMsrp((SipUri const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_callMsrp__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + SipUri *arg2 = (SipUri *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MsrpSession_callMsrp",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_callMsrp" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SipUri, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_callMsrp" "', argument " "2"" of type '" "SipUri const *""'"); + } + arg2 = reinterpret_cast< SipUri * >(argp2); + result = (bool)(arg1)->callMsrp((SipUri const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_callMsrp(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_callMsrp__SWIG_3(self, args); + } + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_callMsrp__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_SipUri, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_callMsrp__SWIG_2(self, args); + } + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_callMsrp__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MsrpSession_callMsrp'.\n" + " Possible C/C++ prototypes are:\n" + " MsrpSession::callMsrp(char const *,ActionConfig *)\n" + " MsrpSession::callMsrp(char const *)\n" + " MsrpSession::callMsrp(SipUri const *,ActionConfig *)\n" + " MsrpSession::callMsrp(SipUri const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_sendMessage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MsrpSession_sendMessage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendMessage" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_sendMessage" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MsrpSession_sendMessage" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MsrpSession_sendMessage" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_sendMessage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MsrpSession_sendMessage",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendMessage" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_sendMessage" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MsrpSession_sendMessage" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->sendMessage((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_sendMessage(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_MsrpSession_sendMessage__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_sendMessage__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MsrpSession_sendMessage'.\n" + " Possible C/C++ prototypes are:\n" + " MsrpSession::sendMessage(void const *,unsigned int,ActionConfig *)\n" + " MsrpSession::sendMessage(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_sendFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MsrpSession_sendFile",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendFile" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpSession_sendFile" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->sendFile(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_sendFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpSession *arg1 = (MsrpSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpSession_sendFile",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpSession_sendFile" "', argument " "1"" of type '" "MsrpSession *""'"); + } + arg1 = reinterpret_cast< MsrpSession * >(argp1); + result = (bool)(arg1)->sendFile(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpSession_sendFile(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_sendFile__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MsrpSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MsrpSession_sendFile__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MsrpSession_sendFile'.\n" + " Possible C/C++ prototypes are:\n" + " MsrpSession::sendFile(ActionConfig *)\n" + " MsrpSession::sendFile()\n"); + return 0; +} + + +SWIGINTERN PyObject *MsrpSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MsrpSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_MessagingSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MessagingSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_MessagingSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MessagingSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (MessagingSession *)new MessagingSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MessagingSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_MessagingSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MessagingSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MessagingSession" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_send__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:MessagingSession_send",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_send" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MessagingSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "MessagingSession_send" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_send__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MessagingSession_send",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_send" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MessagingSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->send((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_send(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_MessagingSession_send__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MessagingSession_send__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MessagingSession_send'.\n" + " Possible C/C++ prototypes are:\n" + " MessagingSession::send(void const *,unsigned int,ActionConfig *)\n" + " MessagingSession::send(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_accept__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MessagingSession_accept",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_accept" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_accept__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MessagingSession_accept",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_accept" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + result = (bool)(arg1)->accept(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_accept(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MessagingSession_accept__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MessagingSession_accept__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MessagingSession_accept'.\n" + " Possible C/C++ prototypes are:\n" + " MessagingSession::accept(ActionConfig *)\n" + " MessagingSession::accept()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_reject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MessagingSession_reject",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_reject" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MessagingSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_reject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MessagingSession *arg1 = (MessagingSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MessagingSession_reject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MessagingSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MessagingSession_reject" "', argument " "1"" of type '" "MessagingSession *""'"); + } + arg1 = reinterpret_cast< MessagingSession * >(argp1); + result = (bool)(arg1)->reject(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MessagingSession_reject(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MessagingSession_reject__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_MessagingSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_MessagingSession_reject__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MessagingSession_reject'.\n" + " Possible C/C++ prototypes are:\n" + " MessagingSession::reject(ActionConfig *)\n" + " MessagingSession::reject()\n"); + return 0; +} + + +SWIGINTERN PyObject *MessagingSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MessagingSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_InfoSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + InfoSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_InfoSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InfoSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (InfoSession *)new InfoSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_InfoSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_InfoSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_InfoSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InfoSession" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_send__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:InfoSession_send",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_send" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InfoSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "InfoSession_send" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->send((void const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_send__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:InfoSession_send",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_send" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_send" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InfoSession_send" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->send((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_send(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_InfoSession_send__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InfoSession_send__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InfoSession_send'.\n" + " Possible C/C++ prototypes are:\n" + " InfoSession::send(void const *,unsigned int,ActionConfig *)\n" + " InfoSession::send(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_accept__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:InfoSession_accept",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_accept" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_accept__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:InfoSession_accept",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_accept" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + result = (bool)(arg1)->accept(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_accept(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InfoSession_accept__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InfoSession_accept__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InfoSession_accept'.\n" + " Possible C/C++ prototypes are:\n" + " InfoSession::accept(ActionConfig *)\n" + " InfoSession::accept()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_reject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:InfoSession_reject",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_reject" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InfoSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_reject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + InfoSession *arg1 = (InfoSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:InfoSession_reject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_InfoSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InfoSession_reject" "', argument " "1"" of type '" "InfoSession *""'"); + } + arg1 = reinterpret_cast< InfoSession * >(argp1); + result = (bool)(arg1)->reject(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_InfoSession_reject(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InfoSession_reject__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_InfoSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_InfoSession_reject__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'InfoSession_reject'.\n" + " Possible C/C++ prototypes are:\n" + " InfoSession::reject(ActionConfig *)\n" + " InfoSession::reject()\n"); + return 0; +} + + +SWIGINTERN PyObject *InfoSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_InfoSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_OptionsSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + OptionsSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_OptionsSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionsSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (OptionsSession *)new OptionsSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_OptionsSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_OptionsSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_OptionsSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionsSession" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_send__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:OptionsSession_send",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_send" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionsSession_send" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->send(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_send__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:OptionsSession_send",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_send" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + result = (bool)(arg1)->send(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_send(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_OptionsSession_send__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_OptionsSession_send__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionsSession_send'.\n" + " Possible C/C++ prototypes are:\n" + " OptionsSession::send(ActionConfig *)\n" + " OptionsSession::send()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_accept__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:OptionsSession_accept",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_accept" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionsSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_accept__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:OptionsSession_accept",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_accept" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + result = (bool)(arg1)->accept(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_accept(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_OptionsSession_accept__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_OptionsSession_accept__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionsSession_accept'.\n" + " Possible C/C++ prototypes are:\n" + " OptionsSession::accept(ActionConfig *)\n" + " OptionsSession::accept()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_reject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:OptionsSession_reject",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_reject" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionsSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_reject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + OptionsSession *arg1 = (OptionsSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:OptionsSession_reject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_OptionsSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionsSession_reject" "', argument " "1"" of type '" "OptionsSession *""'"); + } + arg1 = reinterpret_cast< OptionsSession * >(argp1); + result = (bool)(arg1)->reject(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_OptionsSession_reject(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_OptionsSession_reject__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OptionsSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_OptionsSession_reject__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'OptionsSession_reject'.\n" + " Possible C/C++ prototypes are:\n" + " OptionsSession::reject(ActionConfig *)\n" + " OptionsSession::reject()\n"); + return 0; +} + + +SWIGINTERN PyObject *OptionsSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_OptionsSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_PublicationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + PublicationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_PublicationSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PublicationSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (PublicationSession *)new PublicationSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PublicationSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_PublicationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_PublicationSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PublicationSession" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationSession_publish__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + ActionConfig *arg4 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:PublicationSession_publish",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_publish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_publish" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PublicationSession_publish" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PublicationSession_publish" "', argument " "4"" of type '" "ActionConfig *""'"); + } + arg4 = reinterpret_cast< ActionConfig * >(argp4); + result = (bool)(arg1)->publish((void const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationSession_publish__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:PublicationSession_publish",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_publish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_publish" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PublicationSession_publish" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->publish((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationSession_publish(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_PublicationSession_publish__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_PublicationSession_publish__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PublicationSession_publish'.\n" + " Possible C/C++ prototypes are:\n" + " PublicationSession::publish(void const *,unsigned int,ActionConfig *)\n" + " PublicationSession::publish(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_PublicationSession_unPublish__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationSession *arg1 = (PublicationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:PublicationSession_unPublish",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_unPublish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PublicationSession_unPublish" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->unPublish(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationSession_unPublish__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PublicationSession *arg1 = (PublicationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:PublicationSession_unPublish",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PublicationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PublicationSession_unPublish" "', argument " "1"" of type '" "PublicationSession *""'"); + } + arg1 = reinterpret_cast< PublicationSession * >(argp1); + result = (bool)(arg1)->unPublish(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_PublicationSession_unPublish(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_PublicationSession_unPublish__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_PublicationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_PublicationSession_unPublish__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PublicationSession_unPublish'.\n" + " Possible C/C++ prototypes are:\n" + " PublicationSession::unPublish(ActionConfig *)\n" + " PublicationSession::unPublish()\n"); + return 0; +} + + +SWIGINTERN PyObject *PublicationSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_PublicationSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_RegistrationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + RegistrationSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_RegistrationSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegistrationSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (RegistrationSession *)new RegistrationSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_RegistrationSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_RegistrationSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegistrationSession" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_register___SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:RegistrationSession_register_",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_register_" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_register_" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->register_(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_register___SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_register_",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_register_" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->register_(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_register_(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_register___SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_register___SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RegistrationSession_register_'.\n" + " Possible C/C++ prototypes are:\n" + " RegistrationSession::register_(ActionConfig *)\n" + " RegistrationSession::register_()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_unRegister__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:RegistrationSession_unRegister",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_unRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_unRegister" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->unRegister(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_unRegister__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_unRegister",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_unRegister" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->unRegister(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_unRegister(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_unRegister__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_unRegister__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RegistrationSession_unRegister'.\n" + " Possible C/C++ prototypes are:\n" + " RegistrationSession::unRegister(ActionConfig *)\n" + " RegistrationSession::unRegister()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_accept__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:RegistrationSession_accept",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_accept" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_accept" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->accept(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_accept__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_accept",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_accept" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->accept(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_accept(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_accept__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_accept__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RegistrationSession_accept'.\n" + " Possible C/C++ prototypes are:\n" + " RegistrationSession::accept(ActionConfig *)\n" + " RegistrationSession::accept()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_reject__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + ActionConfig *arg2 = (ActionConfig *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:RegistrationSession_reject",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_reject" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ActionConfig, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RegistrationSession_reject" "', argument " "2"" of type '" "ActionConfig *""'"); + } + arg2 = reinterpret_cast< ActionConfig * >(argp2); + result = (bool)(arg1)->reject(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_reject__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:RegistrationSession_reject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegistrationSession_reject" "', argument " "1"" of type '" "RegistrationSession *""'"); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->reject(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RegistrationSession_reject(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 2) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_reject__SWIG_1(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_RegistrationSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ActionConfig, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_RegistrationSession_reject__SWIG_0(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'RegistrationSession_reject'.\n" + " Possible C/C++ prototypes are:\n" + " RegistrationSession::reject(ActionConfig *)\n" + " RegistrationSession::reject()\n"); + return 0; +} + + +SWIGINTERN PyObject *RegistrationSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_RegistrationSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SubscriptionSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + SubscriptionSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SubscriptionSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SubscriptionSession" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SubscriptionSession *)new SubscriptionSession(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SubscriptionSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SubscriptionSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SubscriptionSession" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionSession_subscribe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionSession_subscribe",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_subscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->subscribe(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SubscriptionSession_unSubscribe(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SubscriptionSession *arg1 = (SubscriptionSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SubscriptionSession_unSubscribe",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SubscriptionSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SubscriptionSession_unSubscribe" "', argument " "1"" of type '" "SubscriptionSession *""'"); + } + arg1 = reinterpret_cast< SubscriptionSession * >(argp1); + result = (bool)(arg1)->unSubscribe(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SubscriptionSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SubscriptionSession, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyPluginMgr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyPluginMgr",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgr, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyPluginMgr" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_createInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + ProxyPluginMgr *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyPluginMgr_createInstance",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_createInstance" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + result = (ProxyPluginMgr *)ProxyPluginMgr::createInstance(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPluginMgr, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_getInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":ProxyPluginMgr_getInstance")) SWIG_fail; + result = (ProxyPluginMgr *)ProxyPluginMgr::getInstance(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_findPlugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyPlugin *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyPluginMgr_findPlugin",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findPlugin" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findPlugin" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyPlugin *)(arg1)->findPlugin(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_findAudioConsumer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyAudioConsumer *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyPluginMgr_findAudioConsumer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findAudioConsumer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findAudioConsumer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyAudioConsumer *)(arg1)->findAudioConsumer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_findVideoConsumer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyVideoConsumer *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyPluginMgr_findVideoConsumer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findVideoConsumer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findVideoConsumer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyVideoConsumer *)(arg1)->findVideoConsumer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_findAudioProducer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyAudioProducer *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyPluginMgr_findAudioProducer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findAudioProducer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findAudioProducer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyAudioProducer *)(arg1)->findAudioProducer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgr_findVideoProducer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgr *arg1 = (ProxyPluginMgr *) 0 ; + uint64_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + ProxyVideoProducer *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyPluginMgr_findVideoProducer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgr, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgr_findVideoProducer" "', argument " "1"" of type '" "ProxyPluginMgr *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgr * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgr_findVideoProducer" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + result = (ProxyVideoProducer *)(arg1)->findVideoProducer(arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyPluginMgr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyPluginMgr, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ProxyPluginMgrCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + ProxyPluginMgrCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_ProxyPluginMgrCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (ProxyPluginMgrCallback *)new SwigDirector_ProxyPluginMgrCallback(arg1); + } else { + result = (ProxyPluginMgrCallback *)new ProxyPluginMgrCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyPluginMgrCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_ProxyPluginMgrCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyPluginMgrCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyPluginMgrCallback" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgrCallback_OnPluginCreated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyPluginMgrCallback_OnPluginCreated",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgrCallback_OnPluginCreated" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgrCallback_OnPluginCreated" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyPluginMgrCallback_OnPluginCreated" "', argument " "3"" of type '" "enum twrap_proxy_plugin_type_e""'"); + } + arg3 = static_cast< enum twrap_proxy_plugin_type_e >(val3); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginCreated(arg2,arg3); + } else { + result = (int)(arg1)->OnPluginCreated(arg2,arg3); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPluginMgrCallback_OnPluginDestroyed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + uint64_t arg2 ; + enum twrap_proxy_plugin_type_e arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned long long val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyPluginMgrCallback_OnPluginDestroyed",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPluginMgrCallback_OnPluginDestroyed" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyPluginMgrCallback_OnPluginDestroyed" "', argument " "2"" of type '" "uint64_t""'"); + } + arg2 = static_cast< uint64_t >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyPluginMgrCallback_OnPluginDestroyed" "', argument " "3"" of type '" "enum twrap_proxy_plugin_type_e""'"); + } + arg3 = static_cast< enum twrap_proxy_plugin_type_e >(val3); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyPluginMgrCallback::OnPluginDestroyed(arg2,arg3); + } else { + result = (int)(arg1)->OnPluginDestroyed(arg2,arg3); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_ProxyPluginMgrCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPluginMgrCallback *arg1 = (ProxyPluginMgrCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_ProxyPluginMgrCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPluginMgrCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ProxyPluginMgrCallback" "', argument " "1"" of type '" "ProxyPluginMgrCallback *""'"); + } + arg1 = reinterpret_cast< ProxyPluginMgrCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyPluginMgrCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyPluginMgrCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyPlugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyPlugin",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPlugin, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyPlugin" "', argument " "1"" of type '" "ProxyPlugin *""'"); + } + arg1 = reinterpret_cast< ProxyPlugin * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPlugin_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + twrap_proxy_plugin_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyPlugin_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPlugin_getType" "', argument " "1"" of type '" "ProxyPlugin const *""'"); + } + arg1 = reinterpret_cast< ProxyPlugin * >(argp1); + result = (twrap_proxy_plugin_type_t)((ProxyPlugin const *)arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyPlugin_getId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyPlugin *arg1 = (ProxyPlugin *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint64_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyPlugin_getId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyPlugin, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyPlugin_getId" "', argument " "1"" of type '" "ProxyPlugin const *""'"); + } + arg1 = reinterpret_cast< ProxyPlugin * >(argp1); + result = (uint64_t)((ProxyPlugin const *)arg1)->getId(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyPlugin_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyPlugin, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ProxyAudioConsumerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + ProxyAudioConsumerCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_ProxyAudioConsumerCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (ProxyAudioConsumerCallback *)new SwigDirector_ProxyAudioConsumerCallback(arg1); + } else { + result = (ProxyAudioConsumerCallback *)new ProxyAudioConsumerCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioConsumerCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_ProxyAudioConsumerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyAudioConsumerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioConsumerCallback" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumerCallback_prepare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyAudioConsumerCallback_prepare",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioConsumerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioConsumerCallback::prepare(arg2,arg3,arg4); + } else { + result = (int)(arg1)->prepare(arg2,arg3,arg4); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumerCallback_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumerCallback_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_start" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioConsumerCallback::start(); + } else { + result = (int)(arg1)->start(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumerCallback_pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumerCallback_pause",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_pause" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioConsumerCallback::pause(); + } else { + result = (int)(arg1)->pause(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumerCallback_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumerCallback_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumerCallback_stop" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioConsumerCallback::stop(); + } else { + result = (int)(arg1)->stop(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_ProxyAudioConsumerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumerCallback *arg1 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_ProxyAudioConsumerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ProxyAudioConsumerCallback" "', argument " "1"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyAudioConsumerCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyAudioConsumerCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyAudioConsumer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyAudioConsumer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioConsumer" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_setActualSndCardPlaybackParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyAudioConsumer_setActualSndCardPlaybackParams",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioConsumer_setActualSndCardPlaybackParams" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (bool)(arg1)->setActualSndCardPlaybackParams(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_queryForResampler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + uint16_t arg4 ; + uint16_t arg5 ; + uint16_t arg6 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + unsigned short val4 ; + int ecode4 = 0 ; + unsigned short val5 ; + int ecode5 = 0 ; + unsigned short val6 ; + int ecode6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:ProxyAudioConsumer_queryForResampler",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "2"" of type '" "uint16_t""'"); + } + arg2 = static_cast< uint16_t >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "3"" of type '" "uint16_t""'"); + } + arg3 = static_cast< uint16_t >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "4"" of type '" "uint16_t""'"); + } + arg4 = static_cast< uint16_t >(val4); + ecode5 = SWIG_AsVal_unsigned_SS_short(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "5"" of type '" "uint16_t""'"); + } + arg5 = static_cast< uint16_t >(val5); + ecode6 = SWIG_AsVal_unsigned_SS_short(obj5, &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ProxyAudioConsumer_queryForResampler" "', argument " "6"" of type '" "uint16_t""'"); + } + arg6 = static_cast< uint16_t >(val6); + result = (bool)(arg1)->queryForResampler(arg2,arg3,arg4,arg5,arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_setPullBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyAudioConsumer_setPullBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setPullBuffer" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_setPullBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_setPullBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setPullBuffer((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_pull__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyAudioConsumer_pull",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_pull" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_pull" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioConsumer_pull" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->pull(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_pull__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioConsumer_pull",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_pull" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_pull" "', argument " "2"" of type '" "void *""'"); + } + result = (unsigned int)(arg1)->pull(arg2); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_pull__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumer_pull",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_pull" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (unsigned int)(arg1)->pull(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_pull(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioConsumer, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_ProxyAudioConsumer_pull__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioConsumer, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_ProxyAudioConsumer_pull__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioConsumer, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_ProxyAudioConsumer_pull__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ProxyAudioConsumer_pull'.\n" + " Possible C/C++ prototypes are:\n" + " ProxyAudioConsumer::pull(void *,unsigned int)\n" + " ProxyAudioConsumer::pull(void *)\n" + " ProxyAudioConsumer::pull()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_setGain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioConsumer_setGain",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setGain" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioConsumer_setGain" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setGain(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_getGain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumer_getGain",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_getGain" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (unsigned int)(arg1)->getGain(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumer_reset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_reset" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (bool)(arg1)->reset(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_setCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + ProxyAudioConsumerCallback *arg2 = (ProxyAudioConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioConsumer_setCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_setCallback" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ProxyAudioConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioConsumer_setCallback" "', argument " "2"" of type '" "ProxyAudioConsumerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyAudioConsumerCallback * >(argp2); + (arg1)->setCallback(arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_getMediaSessionId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioConsumer *arg1 = (ProxyAudioConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint64_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioConsumer_getMediaSessionId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioConsumer_getMediaSessionId" "', argument " "1"" of type '" "ProxyAudioConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioConsumer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioConsumer_registerPlugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":ProxyAudioConsumer_registerPlugin")) SWIG_fail; + result = (bool)ProxyAudioConsumer::registerPlugin(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyAudioConsumer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyAudioConsumer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ProxyVideoConsumerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + ProxyVideoConsumerCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_ProxyVideoConsumerCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (ProxyVideoConsumerCallback *)new SwigDirector_ProxyVideoConsumerCallback(arg1); + } else { + result = (ProxyVideoConsumerCallback *)new ProxyVideoConsumerCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoConsumerCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_ProxyVideoConsumerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyVideoConsumerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoConsumerCallback" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumerCallback_prepare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyVideoConsumerCallback_prepare",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyVideoConsumerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoConsumerCallback::prepare(arg2,arg3,arg4); + } else { + result = (int)(arg1)->prepare(arg2,arg3,arg4); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumerCallback_consume(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + ProxyVideoFrame *arg2 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyVideoConsumerCallback_consume",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_consume" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumerCallback_consume" "', argument " "2"" of type '" "ProxyVideoFrame const *""'"); + } + arg2 = reinterpret_cast< ProxyVideoFrame * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoConsumerCallback::consume((ProxyVideoFrame const *)arg2); + } else { + result = (int)(arg1)->consume((ProxyVideoFrame const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumerCallback_bufferCopied(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoConsumerCallback_bufferCopied",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_bufferCopied" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumerCallback_bufferCopied" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumerCallback_bufferCopied" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoConsumerCallback::bufferCopied(arg2,arg3); + } else { + result = (int)(arg1)->bufferCopied(arg2,arg3); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumerCallback_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumerCallback_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_start" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoConsumerCallback::start(); + } else { + result = (int)(arg1)->start(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumerCallback_pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumerCallback_pause",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_pause" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoConsumerCallback::pause(); + } else { + result = (int)(arg1)->pause(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumerCallback_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumerCallback_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumerCallback_stop" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoConsumerCallback::stop(); + } else { + result = (int)(arg1)->stop(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_ProxyVideoConsumerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumerCallback *arg1 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_ProxyVideoConsumerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ProxyVideoConsumerCallback" "', argument " "1"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyVideoConsumerCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyVideoConsumerCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyVideoConsumer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyVideoConsumer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoConsumer" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_setDisplaySize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoConsumer_setDisplaySize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setDisplaySize" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumer_setDisplaySize" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumer_setDisplaySize" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setDisplaySize(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_getDisplayWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_getDisplayWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDisplayWidth" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDisplayWidth(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_getDisplayHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_getDisplayHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDisplayHeight" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDisplayHeight(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_getDecodedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_getDecodedWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDecodedWidth" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDecodedWidth(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_getDecodedHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_getDecodedHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getDecodedHeight" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (unsigned int)(arg1)->getDecodedHeight(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_setCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + ProxyVideoConsumerCallback *arg2 = (ProxyVideoConsumerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyVideoConsumer_setCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setCallback" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ProxyVideoConsumerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumer_setCallback" "', argument " "2"" of type '" "ProxyVideoConsumerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyVideoConsumerCallback * >(argp2); + (arg1)->setCallback(arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_setAutoResizeDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyVideoConsumer_setAutoResizeDisplay",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setAutoResizeDisplay" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoConsumer_setAutoResizeDisplay" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setAutoResizeDisplay(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_getAutoResizeDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_getAutoResizeDisplay",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getAutoResizeDisplay" "', argument " "1"" of type '" "ProxyVideoConsumer const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (bool)((ProxyVideoConsumer const *)arg1)->getAutoResizeDisplay(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_setConsumeBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoConsumer_setConsumeBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_setConsumeBuffer" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumer_setConsumeBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumer_setConsumeBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setConsumeBuffer((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_pull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoConsumer_pull",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_pull" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoConsumer_pull" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoConsumer_pull" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->pull(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_reset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_reset" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (bool)(arg1)->reset(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_getMediaSessionId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoConsumer *arg1 = (ProxyVideoConsumer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint64_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_getMediaSessionId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoConsumer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoConsumer_getMediaSessionId" "', argument " "1"" of type '" "ProxyVideoConsumer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoConsumer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_registerPlugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":ProxyVideoConsumer_registerPlugin")) SWIG_fail; + result = (bool)ProxyVideoConsumer::registerPlugin(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_setDefaultChroma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_chroma_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_setDefaultChroma",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ProxyVideoConsumer_setDefaultChroma" "', argument " "1"" of type '" "tmedia_chroma_t""'"); + } + arg1 = static_cast< tmedia_chroma_t >(val1); + ProxyVideoConsumer::setDefaultChroma(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoConsumer_setDefaultAutoResizeDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool arg1 ; + bool val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoConsumer_setDefaultAutoResizeDisplay",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_bool(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ProxyVideoConsumer_setDefaultAutoResizeDisplay" "', argument " "1"" of type '" "bool""'"); + } + arg1 = static_cast< bool >(val1); + ProxyVideoConsumer::setDefaultAutoResizeDisplay(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyVideoConsumer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyVideoConsumer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyVideoFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyVideoFrame",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoFrame, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoFrame" "', argument " "1"" of type '" "ProxyVideoFrame *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoFrame_getSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoFrame_getSize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getSize" "', argument " "1"" of type '" "ProxyVideoFrame *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + result = (unsigned int)(arg1)->getSize(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoFrame_getContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoFrame_getContent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getContent" "', argument " "1"" of type '" "ProxyVideoFrame *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoFrame_getContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoFrame_getContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getContent(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoFrame_getFrameWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoFrame_getFrameWidth",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getFrameWidth" "', argument " "1"" of type '" "ProxyVideoFrame const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameWidth(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoFrame_getFrameHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoFrame *arg1 = (ProxyVideoFrame *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoFrame_getFrameHeight",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoFrame, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoFrame_getFrameHeight" "', argument " "1"" of type '" "ProxyVideoFrame const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoFrame * >(argp1); + result = (unsigned int)((ProxyVideoFrame const *)arg1)->getFrameHeight(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyVideoFrame_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyVideoFrame, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ProxyAudioProducerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + ProxyAudioProducerCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_ProxyAudioProducerCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (ProxyAudioProducerCallback *)new SwigDirector_ProxyAudioProducerCallback(arg1); + } else { + result = (ProxyAudioProducerCallback *)new ProxyAudioProducerCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyAudioProducerCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_ProxyAudioProducerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyAudioProducerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioProducerCallback" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducerCallback_prepare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyAudioProducerCallback_prepare",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioProducerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioProducerCallback::prepare(arg2,arg3,arg4); + } else { + result = (int)(arg1)->prepare(arg2,arg3,arg4); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducerCallback_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducerCallback_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_start" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioProducerCallback::start(); + } else { + result = (int)(arg1)->start(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducerCallback_pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducerCallback_pause",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_pause" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioProducerCallback::pause(); + } else { + result = (int)(arg1)->pause(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducerCallback_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducerCallback_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_stop" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioProducerCallback::stop(); + } else { + result = (int)(arg1)->stop(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducerCallback_fillPushBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducerCallback_fillPushBuffer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducerCallback_fillPushBuffer" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyAudioProducerCallback::fillPushBuffer(); + } else { + result = (int)(arg1)->fillPushBuffer(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_ProxyAudioProducerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducerCallback *arg1 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_ProxyAudioProducerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ProxyAudioProducerCallback" "', argument " "1"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducerCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyAudioProducerCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyAudioProducerCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyAudioProducer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyAudioProducer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyAudioProducer" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setActualSndCardRecordParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyAudioProducer_setActualSndCardRecordParams",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioProducer_setActualSndCardRecordParams" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + result = (bool)(arg1)->setActualSndCardRecordParams(arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setPushBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + bool arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyAudioProducer_setPushBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_bool(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setPushBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyAudioProducer_setPushBuffer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_setPushBuffer" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setPushBuffer((void const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setPushBuffer(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_ProxyAudioProducer_setPushBuffer__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_bool(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_ProxyAudioProducer_setPushBuffer__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ProxyAudioProducer_setPushBuffer'.\n" + " Possible C/C++ prototypes are:\n" + " ProxyAudioProducer::setPushBuffer(void const *,unsigned int,bool)\n" + " ProxyAudioProducer::setPushBuffer(void const *,unsigned int)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_push__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyAudioProducer_push",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_push" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_push" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyAudioProducer_push" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (int)(arg1)->push((void const *)arg2,arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_push__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *arg2 = (void *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioProducer_push",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_push" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_push" "', argument " "2"" of type '" "void const *""'"); + } + result = (int)(arg1)->push((void const *)arg2); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_push__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducer_push",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_push" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + result = (int)(arg1)->push(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_push(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_ProxyAudioProducer_push__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_ProxyAudioProducer_push__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ProxyAudioProducer, 0); + _v = SWIG_CheckState(res); + if (_v) { + void *ptr = 0; + int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_ProxyAudioProducer_push__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ProxyAudioProducer_push'.\n" + " Possible C/C++ prototypes are:\n" + " ProxyAudioProducer::push(void const *,unsigned int)\n" + " ProxyAudioProducer::push(void const *)\n" + " ProxyAudioProducer::push()\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setGain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioProducer_setGain",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setGain" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyAudioProducer_setGain" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setGain(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_getGain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducer_getGain",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_getGain" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + result = (unsigned int)(arg1)->getGain(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_setCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + ProxyAudioProducerCallback *arg2 = (ProxyAudioProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyAudioProducer_setCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_setCallback" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ProxyAudioProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyAudioProducer_setCallback" "', argument " "2"" of type '" "ProxyAudioProducerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyAudioProducerCallback * >(argp2); + (arg1)->setCallback(arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_getMediaSessionId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyAudioProducer *arg1 = (ProxyAudioProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint64_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyAudioProducer_getMediaSessionId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyAudioProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyAudioProducer_getMediaSessionId" "', argument " "1"" of type '" "ProxyAudioProducer *""'"); + } + arg1 = reinterpret_cast< ProxyAudioProducer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyAudioProducer_registerPlugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":ProxyAudioProducer_registerPlugin")) SWIG_fail; + result = (bool)ProxyAudioProducer::registerPlugin(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyAudioProducer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyAudioProducer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_ProxyVideoProducerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + ProxyVideoProducerCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_ProxyVideoProducerCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (ProxyVideoProducerCallback *)new SwigDirector_ProxyVideoProducerCallback(arg1); + } else { + result = (ProxyVideoProducerCallback *)new ProxyVideoProducerCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ProxyVideoProducerCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_ProxyVideoProducerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyVideoProducerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoProducerCallback" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducerCallback_prepare(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:ProxyVideoProducerCallback_prepare",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ProxyVideoProducerCallback_prepare" "', argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoProducerCallback::prepare(arg2,arg3,arg4); + } else { + result = (int)(arg1)->prepare(arg2,arg3,arg4); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducerCallback_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducerCallback_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_start" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoProducerCallback::start(); + } else { + result = (int)(arg1)->start(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducerCallback_pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducerCallback_pause",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_pause" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoProducerCallback::pause(); + } else { + result = (int)(arg1)->pause(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducerCallback_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducerCallback_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducerCallback_stop" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->ProxyVideoProducerCallback::stop(); + } else { + result = (int)(arg1)->stop(); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_ProxyVideoProducerCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducerCallback *arg1 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_ProxyVideoProducerCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_ProxyVideoProducerCallback" "', argument " "1"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducerCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyVideoProducerCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyVideoProducerCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_ProxyVideoProducer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_ProxyVideoProducer",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ProxyVideoProducer" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_getRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducer_getRotation",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_getRotation" "', argument " "1"" of type '" "ProxyVideoProducer const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + result = (int)((ProxyVideoProducer const *)arg1)->getRotation(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_setRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyVideoProducer_setRotation",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setRotation" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducer_setRotation" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)(arg1)->setRotation(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_getMirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducer_getMirror",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_getMirror" "', argument " "1"" of type '" "ProxyVideoProducer const *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + result = (bool)((ProxyVideoProducer const *)arg1)->getMirror(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_setMirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyVideoProducer_setMirror",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setMirror" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducer_setMirror" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setMirror(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_setActualCameraOutputSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoProducer_setActualCameraOutputSize",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setActualCameraOutputSize" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ProxyVideoProducer_setActualCameraOutputSize" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoProducer_setActualCameraOutputSize" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (bool)(arg1)->setActualCameraOutputSize(arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_push(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:ProxyVideoProducer_push",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_push" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoProducer_push" "', argument " "2"" of type '" "void const *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ProxyVideoProducer_push" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (int)(arg1)->push((void const *)arg2,arg3); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_setCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + ProxyVideoProducerCallback *arg2 = (ProxyVideoProducerCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:ProxyVideoProducer_setCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_setCallback" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_ProxyVideoProducerCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ProxyVideoProducer_setCallback" "', argument " "2"" of type '" "ProxyVideoProducerCallback *""'"); + } + arg2 = reinterpret_cast< ProxyVideoProducerCallback * >(argp2); + (arg1)->setCallback(arg2); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_getMediaSessionId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + ProxyVideoProducer *arg1 = (ProxyVideoProducer *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + uint64_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducer_getMediaSessionId",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_ProxyVideoProducer, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ProxyVideoProducer_getMediaSessionId" "', argument " "1"" of type '" "ProxyVideoProducer *""'"); + } + arg1 = reinterpret_cast< ProxyVideoProducer * >(argp1); + result = (uint64_t)(arg1)->getMediaSessionId(); + resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_registerPlugin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":ProxyVideoProducer_registerPlugin")) SWIG_fail; + result = (bool)ProxyVideoProducer::registerPlugin(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_ProxyVideoProducer_setDefaultChroma(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tmedia_chroma_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:ProxyVideoProducer_setDefaultChroma",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ProxyVideoProducer_setDefaultChroma" "', argument " "1"" of type '" "tmedia_chroma_t""'"); + } + arg1 = static_cast< tmedia_chroma_t >(val1); + ProxyVideoProducer::setDefaultChroma(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *ProxyVideoProducer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_ProxyVideoProducer, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + SipCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_SipCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (SipCallback *)new SwigDirector_SipCallback(arg1); + } else { + result = (SipCallback *)new SipCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + DialogEvent *arg2 = (DialogEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnDialogEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnDialogEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_DialogEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnDialogEvent" "', argument " "2"" of type '" "DialogEvent const *""'"); + } + arg2 = reinterpret_cast< DialogEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnDialogEvent((DialogEvent const *)arg2); + } else { + result = (int)(arg1)->OnDialogEvent((DialogEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnStackEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + StackEvent *arg2 = (StackEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnStackEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnStackEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_StackEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnStackEvent" "', argument " "2"" of type '" "StackEvent const *""'"); + } + arg2 = reinterpret_cast< StackEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnStackEvent((StackEvent const *)arg2); + } else { + result = (int)(arg1)->OnStackEvent((StackEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnInviteEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + InviteEvent *arg2 = (InviteEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnInviteEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnInviteEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_InviteEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnInviteEvent" "', argument " "2"" of type '" "InviteEvent const *""'"); + } + arg2 = reinterpret_cast< InviteEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnInviteEvent((InviteEvent const *)arg2); + } else { + result = (int)(arg1)->OnInviteEvent((InviteEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnMessagingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + MessagingEvent *arg2 = (MessagingEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnMessagingEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnMessagingEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MessagingEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnMessagingEvent" "', argument " "2"" of type '" "MessagingEvent const *""'"); + } + arg2 = reinterpret_cast< MessagingEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnMessagingEvent((MessagingEvent const *)arg2); + } else { + result = (int)(arg1)->OnMessagingEvent((MessagingEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnInfoEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + InfoEvent *arg2 = (InfoEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnInfoEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnInfoEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_InfoEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnInfoEvent" "', argument " "2"" of type '" "InfoEvent const *""'"); + } + arg2 = reinterpret_cast< InfoEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnInfoEvent((InfoEvent const *)arg2); + } else { + result = (int)(arg1)->OnInfoEvent((InfoEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnOptionsEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + OptionsEvent *arg2 = (OptionsEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnOptionsEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnOptionsEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_OptionsEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnOptionsEvent" "', argument " "2"" of type '" "OptionsEvent const *""'"); + } + arg2 = reinterpret_cast< OptionsEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnOptionsEvent((OptionsEvent const *)arg2); + } else { + result = (int)(arg1)->OnOptionsEvent((OptionsEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnPublicationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + PublicationEvent *arg2 = (PublicationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnPublicationEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnPublicationEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_PublicationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnPublicationEvent" "', argument " "2"" of type '" "PublicationEvent const *""'"); + } + arg2 = reinterpret_cast< PublicationEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnPublicationEvent((PublicationEvent const *)arg2); + } else { + result = (int)(arg1)->OnPublicationEvent((PublicationEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnRegistrationEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnRegistrationEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnRegistrationEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnRegistrationEvent" "', argument " "2"" of type '" "RegistrationEvent const *""'"); + } + arg2 = reinterpret_cast< RegistrationEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnRegistrationEvent((RegistrationEvent const *)arg2); + } else { + result = (int)(arg1)->OnRegistrationEvent((RegistrationEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipCallback_OnSubscriptionEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + SubscriptionEvent *arg2 = (SubscriptionEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipCallback_OnSubscriptionEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipCallback_OnSubscriptionEvent" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_SubscriptionEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipCallback_OnSubscriptionEvent" "', argument " "2"" of type '" "SubscriptionEvent const *""'"); + } + arg2 = reinterpret_cast< SubscriptionEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnSubscriptionEvent((SubscriptionEvent const *)arg2); + } else { + result = (int)(arg1)->OnSubscriptionEvent((SubscriptionEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_SipCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_SipCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_SipCallback" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SafeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SafeObject")) SWIG_fail; + result = (SafeObject *)new SafeObject(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SafeObject, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SafeObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SafeObject",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SafeObject" "', argument " "1"" of type '" "SafeObject *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SafeObject_Lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SafeObject_Lock",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_Lock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->Lock(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SafeObject_UnLock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SafeObject_UnLock",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeObject_UnLock" "', argument " "1"" of type '" "SafeObject const *""'"); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)((SafeObject const *)arg1)->UnLock(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SafeObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SafeObject, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SipStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + SipStack *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_SipStack",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SipStack" "', argument " "1"" of type '" "SipCallback *""'"); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SipStack" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_SipStack" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_SipStack" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipStack, SWIG_POINTER_NEW | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SipStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SipStack",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SipStack" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_start" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->start(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setDebugCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + DDebugCallback *arg2 = (DDebugCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setDebugCallback",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDebugCallback" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_DDebugCallback, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDebugCallback" "', argument " "2"" of type '" "DDebugCallback *""'"); + } + arg2 = reinterpret_cast< DDebugCallback * >(argp2); + result = (bool)(arg1)->setDebugCallback(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setDisplayName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setDisplayName",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDisplayName" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setDisplayName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setDisplayName((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setRealm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setRealm",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setRealm" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setRealm" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setRealm((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setIMPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPI",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPI" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPI" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPI((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setIMPU(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIMPU",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIMPU" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIMPU" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setIMPU((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setPassword",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setPassword" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setPassword" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setPassword((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setAMF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setAMF",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setAMF" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setAMF" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setAMF((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setOperatorId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setOperatorId",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setOperatorId" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setOperatorId" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setOperatorId((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setProxyCSCF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setProxyCSCF",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setProxyCSCF" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setProxyCSCF" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setProxyCSCF" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setProxyCSCF" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setProxyCSCF" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalIP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_setLocalIP",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setLocalIP" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setLocalIP((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalIP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setLocalIP",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalIP" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalIP(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipStack_setLocalIP__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipStack_setLocalIP__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipStack_setLocalIP'.\n" + " Possible C/C++ prototypes are:\n" + " SipStack::setLocalIP(char const *,char const *)\n" + " SipStack::setLocalIP(char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalPort__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_setLocalPort",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned short""'"); + } + arg2 = static_cast< unsigned short >(val2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setLocalPort" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setLocalPort(arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalPort__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + unsigned short arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned short val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setLocalPort",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setLocalPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setLocalPort" "', argument " "2"" of type '" "unsigned short""'"); + } + arg2 = static_cast< unsigned short >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setLocalPort(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SipStack_setLocalPort__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipStack_setLocalPort__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipStack_setLocalPort'.\n" + " Possible C/C++ prototypes are:\n" + " SipStack::setLocalPort(unsigned short,char const *)\n" + " SipStack::setLocalPort(unsigned short)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setEarlyIMS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setEarlyIMS",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setEarlyIMS" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setEarlyIMS" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setEarlyIMS(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_removeHeader",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeHeader" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_addDnsServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_addDnsServer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addDnsServer" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addDnsServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addDnsServer((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setDnsDiscovery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setDnsDiscovery",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setDnsDiscovery" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setDnsDiscovery" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setDnsDiscovery(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setAoR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_setAoR",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setAoR" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setAoR" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setAoR" "', argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + result = (bool)(arg1)->setAoR((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSigCompParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + unsigned int arg4 ; + bool arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + bool val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setSigCompParams",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSigCompParams" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setSigCompParams" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setSigCompParams" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SipStack_setSigCompParams" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + ecode5 = SWIG_AsVal_bool(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SipStack_setSigCompParams" "', argument " "5"" of type '" "bool""'"); + } + arg5 = static_cast< bool >(val5); + result = (bool)(arg1)->setSigCompParams(arg2,arg3,arg4,arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_addSigCompCompartment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_addSigCompCompartment",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_addSigCompCompartment" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_addSigCompCompartment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addSigCompCompartment((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_removeSigCompCompartment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_removeSigCompCompartment",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_removeSigCompCompartment" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_removeSigCompCompartment" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeSigCompCompartment((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSTUNEnabledForICE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setSTUNEnabledForICE",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNEnabledForICE" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setSTUNEnabledForICE" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setSTUNEnabledForICE(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSTUNServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_setSTUNServer",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNServer" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSTUNServer" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SipStack_setSTUNServer" "', argument " "3"" of type '" "unsigned short""'"); + } + arg3 = static_cast< unsigned short >(val3); + result = (bool)(arg1)->setSTUNServer((char const *)arg2,arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSTUNCred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_setSTUNCred",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNCred" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSTUNCred" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSTUNCred" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setSTUNCred((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSTUNEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setSTUNEnabled",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSTUNEnabled" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setSTUNEnabled" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setSTUNEnabled(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setTLSSecAgree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setTLSSecAgree",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setTLSSecAgree" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setTLSSecAgree" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setTLSSecAgree(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSSLCertificates__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + bool val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setSSLCertificates",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCertificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCertificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCertificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCertificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + ecode5 = SWIG_AsVal_bool(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SipStack_setSSLCertificates" "', argument " "5"" of type '" "bool""'"); + } + arg5 = static_cast< bool >(val5); + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSSLCertificates__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SipStack_setSSLCertificates",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCertificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCertificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCertificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCertificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (bool)(arg1)->setSSLCertificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSSLCertificates(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[6]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipStack_setSSLCertificates__SWIG_1(self, args); + } + } + } + } + } + if (argc == 5) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_bool(argv[4], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SipStack_setSSLCertificates__SWIG_0(self, args); + } + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipStack_setSSLCertificates'.\n" + " Possible C/C++ prototypes are:\n" + " SipStack::setSSLCertificates(char const *,char const *,char const *,bool)\n" + " SipStack::setSSLCertificates(char const *,char const *,char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSSLCretificates__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + bool arg5 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + bool val5 ; + int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setSSLCretificates",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCretificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCretificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCretificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCretificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + ecode5 = SWIG_AsVal_bool(obj4, &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SipStack_setSSLCretificates" "', argument " "5"" of type '" "bool""'"); + } + arg5 = static_cast< bool >(val5); + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSSLCretificates__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SipStack_setSSLCretificates",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setSSLCretificates" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setSSLCretificates" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setSSLCretificates" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setSSLCretificates" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (bool)(arg1)->setSSLCretificates((char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setSSLCretificates(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[6]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 5) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipStack_setSSLCretificates__SWIG_1(self, args); + } + } + } + } + } + if (argc == 5) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipStack, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_bool(argv[4], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_SipStack_setSSLCretificates__SWIG_0(self, args); + } + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SipStack_setSSLCretificates'.\n" + " Possible C/C++ prototypes are:\n" + " SipStack::setSSLCretificates(char const *,char const *,char const *,bool)\n" + " SipStack::setSSLCretificates(char const *,char const *,char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setIPSecSecAgree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + bool arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setIPSecSecAgree",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIPSecSecAgree" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_bool(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setIPSecSecAgree" "', argument " "2"" of type '" "bool""'"); + } + arg2 = static_cast< bool >(val2); + result = (bool)(arg1)->setIPSecSecAgree(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setIPSecParameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:SipStack_setIPSecParameters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setIPSecParameters" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_setIPSecParameters" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_setIPSecParameters" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_setIPSecParameters" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "SipStack_setIPSecParameters" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setIPSecParameters((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_dnsENUM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SipStack_dnsENUM",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_dnsENUM" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_dnsENUM" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_dnsENUM" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SipStack_dnsENUM" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (char *)(arg1)->dnsENUM((char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_dnsNaptrSrv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned short *arg4 = (unsigned short *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned short temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"OOO:SipStack_dnsNaptrSrv",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_dnsNaptrSrv" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_dnsNaptrSrv" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SipStack_dnsNaptrSrv" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->dnsNaptrSrv((char const *)arg2,(char const *)arg3,arg4); + resultobj = SWIG_FromCharPtr((const char *)result); + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_short((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_short, new_flags)); + } + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_dnsSrv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_dnsSrv",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_dnsSrv" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_dnsSrv" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->dnsSrv((char const *)arg2,arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_short((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); + } + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setMaxFDs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setMaxFDs",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_setMaxFDs" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setMaxFDs" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setMaxFDs(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_getLocalIPnPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned short *arg3 = (unsigned short *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned short temp3 ; + int res3 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + arg3 = &temp3; + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_getLocalIPnPort",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_getLocalIPnPort" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SipStack_getLocalIPnPort" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getLocalIPnPort((char const *)arg2,arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_short((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_short, new_flags)); + } + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_getPreferredIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_getPreferredIdentity",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_getPreferredIdentity" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (char *)(arg1)->getPreferredIdentity(); + resultobj = SWIG_FromCharPtr((const char *)result); + delete[] result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_isValid",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_isValid" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->isValid(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SipStack_stop" "', argument " "1"" of type '" "SipStack *""'"); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->stop(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_initialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":SipStack_initialize")) SWIG_fail; + result = (bool)SipStack::initialize(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_deInitialize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":SipStack_deInitialize")) SWIG_fail; + result = (bool)SipStack::deInitialize(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setCodecs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tdav_codec_id_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_setCodecs",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecs" "', argument " "1"" of type '" "tdav_codec_id_t""'"); + } + arg1 = static_cast< tdav_codec_id_t >(val1); + SipStack::setCodecs(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setCodecs_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int64_t arg1 ; + long long val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_setCodecs_2",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_long_SS_long(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecs_2" "', argument " "1"" of type '" "int64_t""'"); + } + arg1 = static_cast< int64_t >(val1); + SipStack::setCodecs_2(arg1); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setCodecPriority(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tdav_codec_id_t arg1 ; + int arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setCodecPriority",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecPriority" "', argument " "1"" of type '" "tdav_codec_id_t""'"); + } + arg1 = static_cast< tdav_codec_id_t >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setCodecPriority" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)SipStack::setCodecPriority(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_setCodecPriority_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + int arg2 ; + int val1 ; + int ecode1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:SipStack_setCodecPriority_2",&obj0,&obj1)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_setCodecPriority_2" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SipStack_setCodecPriority_2" "', argument " "2"" of type '" "int""'"); + } + arg2 = static_cast< int >(val2); + result = (bool)SipStack::setCodecPriority_2(arg1,arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_isCodecSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + tdav_codec_id_t arg1 ; + int val1 ; + int ecode1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:SipStack_isCodecSupported",&obj0)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SipStack_isCodecSupported" "', argument " "1"" of type '" "tdav_codec_id_t""'"); + } + arg1 = static_cast< tdav_codec_id_t >(val1); + result = (bool)SipStack::isCodecSupported(arg1); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SipStack_isIPSecSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + bool result; + + if (!PyArg_ParseTuple(args,(char *)":SipStack_isIPSecSupported")) SWIG_fail; + result = (bool)SipStack::isIPSecSupported(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SipStack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SipStack, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_XcapSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_XcapSelector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XcapSelector" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + result = (XcapSelector *)new XcapSelector(arg1); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_XcapSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_XcapSelector",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapSelector" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_setAUID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapSelector_setAUID",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setAUID" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setAUID" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (XcapSelector *)(arg1)->setAUID((char const *)arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_setName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapSelector_setName",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setName" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setName" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (XcapSelector *)(arg1)->setName((char const *)arg2); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_setAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:XcapSelector_setAttribute",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setAttribute" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapSelector_setAttribute" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XcapSelector_setAttribute" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (XcapSelector *)(arg1)->setAttribute((char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_setPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapSelector_setPos",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setPos" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setPos" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapSelector_setPos" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (XcapSelector *)(arg1)->setPos((char const *)arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_setPosAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:XcapSelector_setPosAttribute",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setPosAttribute" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setPosAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapSelector_setPosAttribute" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XcapSelector_setPosAttribute" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "XcapSelector_setPosAttribute" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (XcapSelector *)(arg1)->setPosAttribute((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_setNamespace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + XcapSelector *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapSelector_setNamespace",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_setNamespace" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapSelector_setNamespace" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapSelector_setNamespace" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (XcapSelector *)(arg1)->setNamespace((char const *)arg2,(char const *)arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_getString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapSelector_getString",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_getString" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + result = (char *)(arg1)->getString(); + resultobj = SWIG_FromCharPtr((const char *)result); + delete[] result; + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapSelector_reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapSelector *arg1 = (XcapSelector *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapSelector_reset",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapSelector, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapSelector_reset" "', argument " "1"" of type '" "XcapSelector *""'"); + } + arg1 = reinterpret_cast< XcapSelector * >(argp1); + (arg1)->reset(); + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *XcapSelector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_XcapSelector, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_XcapMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_XcapMessage")) SWIG_fail; + result = (XcapMessage *)new XcapMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapMessage, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_XcapMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_XcapMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapMessage" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + short result; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapMessage_getCode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getCode" "', argument " "1"" of type '" "XcapMessage const *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + result = (short)((XcapMessage const *)arg1)->getCode(); + resultobj = SWIG_From_short(static_cast< short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getPhrase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapMessage_getPhrase",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getPhrase" "', argument " "1"" of type '" "XcapMessage const *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + result = (char *)((XcapMessage const *)arg1)->getPhrase(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapHeaderValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapMessage_getXcapHeaderValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2,arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapHeaderValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapMessage_getXcapHeaderValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getXcapHeaderValue((char const *)arg2); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapHeaderValue(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 3) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_XcapMessage_getXcapHeaderValue__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_XcapMessage_getXcapHeaderValue__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'XcapMessage_getXcapHeaderValue'.\n" + " Possible C/C++ prototypes are:\n" + " XcapMessage::getXcapHeaderValue(char const *,unsigned int)\n" + " XcapMessage::getXcapHeaderValue(char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapHeaderParamValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:XcapMessage_getXcapHeaderParamValue",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3,arg4); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapHeaderParamValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapMessage_getXcapHeaderParamValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapMessage_getXcapHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getXcapHeaderParamValue((char const *)arg2,(char const *)arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapHeaderParamValue(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = args ? (int)PyObject_Length(args) : 0; + for (ii = 0; (ii < 4) && (ii < argc); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_XcapMessage_getXcapHeaderParamValue__SWIG_1(self, args); + } + } + } + } + if (argc == 4) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_XcapMessage, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_XcapMessage_getXcapHeaderParamValue__SWIG_0(self, args); + } + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'XcapMessage_getXcapHeaderParamValue'.\n" + " Possible C/C++ prototypes are:\n" + " XcapMessage::getXcapHeaderParamValue(char const *,char const *,unsigned int)\n" + " XcapMessage::getXcapHeaderParamValue(char const *,char const *)\n"); + return 0; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapContentLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapMessage_getXcapContentLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapContentLength" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + result = (unsigned int)(arg1)->getXcapContentLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapMessage_getXcapContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapMessage *arg1 = (XcapMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapMessage_getXcapContent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapMessage_getXcapContent" "', argument " "1"" of type '" "XcapMessage *""'"); + } + arg1 = reinterpret_cast< XcapMessage * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapMessage_getXcapContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XcapMessage_getXcapContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getXcapContent(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *XcapMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_XcapMessage, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_XcapEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapEvent *arg1 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_XcapEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapEvent" "', argument " "1"" of type '" "XcapEvent *""'"); + } + arg1 = reinterpret_cast< XcapEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapEvent *arg1 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + thttp_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapEvent_getType" "', argument " "1"" of type '" "XcapEvent *""'"); + } + arg1 = reinterpret_cast< XcapEvent * >(argp1); + result = (thttp_event_type_t)(arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapEvent_getXcapMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapEvent *arg1 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + XcapMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapEvent_getXcapMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapEvent_getXcapMessage" "', argument " "1"" of type '" "XcapEvent const *""'"); + } + arg1 = reinterpret_cast< XcapEvent * >(argp1); + result = (XcapMessage *)((XcapEvent const *)arg1)->getXcapMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapMessage, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *XcapEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_XcapEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_XcapCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + XcapCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_XcapCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (XcapCallback *)new SwigDirector_XcapCallback(arg1); + } else { + result = (XcapCallback *)new XcapCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_XcapCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapCallback *arg1 = (XcapCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_XcapCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapCallback" "', argument " "1"" of type '" "XcapCallback *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapCallback_onEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapCallback *arg1 = (XcapCallback *) 0 ; + XcapEvent *arg2 = (XcapEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapCallback_onEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapCallback_onEvent" "', argument " "1"" of type '" "XcapCallback const *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_XcapEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapCallback_onEvent" "', argument " "2"" of type '" "XcapEvent const *""'"); + } + arg2 = reinterpret_cast< XcapEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)((XcapCallback const *)arg1)->XcapCallback::onEvent((XcapEvent const *)arg2); + } else { + result = (int)((XcapCallback const *)arg1)->onEvent((XcapEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_XcapCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapCallback *arg1 = (XcapCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_XcapCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_XcapCallback" "', argument " "1"" of type '" "XcapCallback *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *XcapCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_XcapCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_XcapStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapCallback *arg1 = (XcapCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + XcapStack *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:new_XcapStack",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_XcapStack" "', argument " "1"" of type '" "XcapCallback *""'"); + } + arg1 = reinterpret_cast< XcapCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_XcapStack" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_XcapStack" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_XcapStack" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (XcapStack *)new XcapStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_XcapStack, SWIG_POINTER_NEW | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_XcapStack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_XcapStack",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XcapStack" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_registerAUID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + bool arg6 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + bool val6 ; + int ecode6 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOOO:XcapStack_registerAUID",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_registerAUID" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_registerAUID" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_registerAUID" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "XcapStack_registerAUID" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "XcapStack_registerAUID" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + ecode6 = SWIG_AsVal_bool(obj5, &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "XcapStack_registerAUID" "', argument " "6"" of type '" "bool""'"); + } + arg6 = static_cast< bool >(val6); + result = (bool)(arg1)->registerAUID((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapStack_start",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_start" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + result = (bool)(arg1)->start(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_setCredentials(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapStack_setCredentials",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setCredentials" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_setCredentials" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_setCredentials" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->setCredentials((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_setXcapRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_setXcapRoot",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setXcapRoot" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_setXcapRoot" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setXcapRoot((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_setLocalIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_setLocalIP",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setLocalIP" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_setLocalIP" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_setLocalPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_setLocalPort",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setLocalPort" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XcapStack_setLocalPort" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_addHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:XcapStack_addHeader",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_addHeader" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_addHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_addHeader" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_removeHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_removeHeader",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_removeHeader" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_removeHeader" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_setTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_setTimeout",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_setTimeout" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "XcapStack_setTimeout" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setTimeout(arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_getDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_getDocument",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_getDocument" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_getDocument" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->getDocument((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_getElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_getElement",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_getElement" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_getElement" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->getElement((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_getAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_getAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_getAttribute" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_getAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->getAttribute((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_deleteDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_deleteDocument",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_deleteDocument" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_deleteDocument" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->deleteDocument((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_deleteElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_deleteElement",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_deleteElement" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_deleteElement" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->deleteElement((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_deleteAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:XcapStack_deleteAttribute",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_deleteAttribute" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_deleteAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->deleteAttribute((char const *)arg2); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_putDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOOO:XcapStack_putDocument",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_putDocument" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_putDocument" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_putDocument" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapStack_putDocument" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "XcapStack_putDocument" "', argument " "5"" of type '" "char const *""'"); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->putDocument((char const *)arg2,(void const *)arg3,arg4,(char const *)arg5); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_putElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:XcapStack_putElement",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_putElement" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_putElement" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_putElement" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapStack_putElement" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (bool)(arg1)->putElement((char const *)arg2,(void const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_putAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + char *arg2 = (char *) 0 ; + void *arg3 = (void *) 0 ; + unsigned int arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + unsigned int val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:XcapStack_putAttribute",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_putAttribute" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XcapStack_putAttribute" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "XcapStack_putAttribute" "', argument " "3"" of type '" "void const *""'"); + } + ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XcapStack_putAttribute" "', argument " "4"" of type '" "unsigned int""'"); + } + arg4 = static_cast< unsigned int >(val4); + result = (bool)(arg1)->putAttribute((char const *)arg2,(void const *)arg3,arg4); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_XcapStack_stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + XcapStack *arg1 = (XcapStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:XcapStack_stop",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_XcapStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XcapStack_stop" "', argument " "1"" of type '" "XcapStack *""'"); + } + arg1 = reinterpret_cast< XcapStack * >(argp1); + result = (bool)(arg1)->stop(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *XcapStack_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_XcapStack, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_RPMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RPMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_RPMessage")) SWIG_fail; + result = (RPMessage *)new RPMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_RPMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RPMessage *arg1 = (RPMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_RPMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RPMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RPMessage" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RPMessage_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RPMessage *arg1 = (RPMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + twrap_rpmessage_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:RPMessage_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RPMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RPMessage_getType" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + result = (twrap_rpmessage_type_t)(arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RPMessage_getPayloadLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RPMessage *arg1 = (RPMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:RPMessage_getPayloadLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RPMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RPMessage_getPayloadLength" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_RPMessage_getPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + RPMessage *arg1 = (RPMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:RPMessage_getPayload",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_RPMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RPMessage_getPayload" "', argument " "1"" of type '" "RPMessage *""'"); + } + arg1 = reinterpret_cast< RPMessage * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RPMessage_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RPMessage_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *RPMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_RPMessage, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_SMSData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_SMSData")) SWIG_fail; + result = (SMSData *)new SMSData(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SMSData, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SMSData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SMSData",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SMSData" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSData_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + twrap_sms_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:SMSData_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getType" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (twrap_sms_type_t)(arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSData_getMR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SMSData_getMR",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getMR" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (int)(arg1)->getMR(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSData_getPayloadLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:SMSData_getPayloadLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getPayloadLength" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (unsigned int)(arg1)->getPayloadLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSData_getPayload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SMSData_getPayload",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getPayload" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSData_getPayload" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SMSData_getPayload" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getPayload(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSData_getOA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SMSData_getOA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getOA" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (char *)(arg1)->getOA(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSData_getDA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSData *arg1 = (SMSData *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:SMSData_getDA",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSData, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSData_getDA" "', argument " "1"" of type '" "SMSData *""'"); + } + arg1 = reinterpret_cast< SMSData * >(argp1); + result = (char *)(arg1)->getDA(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SMSData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SMSData, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_SMSEncoder_encodeSubmit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + RPMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SMSEncoder_encodeSubmit",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeSubmit" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeSubmit" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeSubmit" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SMSEncoder_encodeSubmit" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (RPMessage *)SMSEncoder::encodeSubmit(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_POINTER_OWN | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSEncoder_encodeDeliver(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + RPMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SMSEncoder_encodeDeliver",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeDeliver" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeDeliver" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeDeliver" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SMSEncoder_encodeDeliver" "', argument " "4"" of type '" "char const *""'"); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (RPMessage *)SMSEncoder::encodeDeliver(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_POINTER_OWN | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSEncoder_encodeACK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + RPMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SMSEncoder_encodeACK",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeACK" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeACK" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeACK" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_bool(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SMSEncoder_encodeACK" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + result = (RPMessage *)SMSEncoder::encodeACK(arg1,(char const *)arg2,(char const *)arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_POINTER_OWN | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSEncoder_encodeError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + int arg1 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + bool arg4 ; + int val1 ; + int ecode1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + RPMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:SMSEncoder_encodeError",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + ecode1 = SWIG_AsVal_int(obj0, &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SMSEncoder_encodeError" "', argument " "1"" of type '" "int""'"); + } + arg1 = static_cast< int >(val1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SMSEncoder_encodeError" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SMSEncoder_encodeError" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + ecode4 = SWIG_AsVal_bool(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "SMSEncoder_encodeError" "', argument " "4"" of type '" "bool""'"); + } + arg4 = static_cast< bool >(val4); + result = (RPMessage *)SMSEncoder::encodeError(arg1,(char const *)arg2,(char const *)arg3,arg4); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RPMessage, SWIG_POINTER_OWN | 0 ); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_SMSEncoder_decode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + void *arg1 = (void *) 0 ; + unsigned int arg2 ; + bool arg3 ; + int res1 ; + unsigned int val2 ; + int ecode2 = 0 ; + bool val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + SMSData *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:SMSEncoder_decode",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SMSEncoder_decode" "', argument " "1"" of type '" "void const *""'"); + } + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SMSEncoder_decode" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + ecode3 = SWIG_AsVal_bool(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SMSEncoder_decode" "', argument " "3"" of type '" "bool""'"); + } + arg3 = static_cast< bool >(val3); + result = (SMSData *)SMSEncoder::decode((void const *)arg1,arg2,arg3); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SMSData, SWIG_POINTER_OWN | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_SMSEncoder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + SMSEncoder *arg1 = (SMSEncoder *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_SMSEncoder",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_SMSEncoder, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SMSEncoder" "', argument " "1"" of type '" "SMSEncoder *""'"); + } + arg1 = reinterpret_cast< SMSEncoder * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *SMSEncoder_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_SMSEncoder, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_MsrpMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)":new_MsrpMessage")) SWIG_fail; + result = (MsrpMessage *)new MsrpMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpMessage, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_MsrpMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MsrpMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpMessage" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_isRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_isRequest",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isRequest" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isRequest(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + short result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_getCode",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getCode" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (short)(arg1)->getCode(); + resultobj = SWIG_From_short(static_cast< short >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getPhrase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_getPhrase",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getPhrase" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (char *)(arg1)->getPhrase(); + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getRequestType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tmsrp_request_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_getRequestType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getRequestType" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (tmsrp_request_type_t)(arg1)->getRequestType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getByteRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + int64_t *arg2 = (int64_t *) 0 ; + int64_t *arg3 = (int64_t *) 0 ; + int64_t *arg4 = (int64_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int64_t temp2 ; + int res2 = SWIG_TMPOBJ ; + int64_t temp3 ; + int res3 = SWIG_TMPOBJ ; + int64_t temp4 ; + int res4 = SWIG_TMPOBJ ; + PyObject * obj0 = 0 ; + + arg2 = &temp2; + arg3 = &temp3; + arg4 = &temp4; + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_getByteRange",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getByteRange" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + (arg1)->getByteRange(arg2,arg3,arg4); + resultobj = SWIG_Py_Void(); + if (SWIG_IsTmpObj(res2)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long_SS_long((*arg2))); + } else { + int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long_long, new_flags)); + } + if (SWIG_IsTmpObj(res3)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long_SS_long((*arg3))); + } else { + int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long_long, new_flags)); + } + if (SWIG_IsTmpObj(res4)) { + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long_SS_long((*arg4))); + } else { + int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; + resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long_long, new_flags)); + } + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_isLastChunck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_isLastChunck",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isLastChunck" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isLastChunck(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_isFirstChunck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_isFirstChunck",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isFirstChunck" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isFirstChunck(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_isSuccessReport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_isSuccessReport",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_isSuccessReport" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (bool)(arg1)->isSuccessReport(); + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getMsrpHeaderValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:MsrpMessage_getMsrpHeaderValue",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpHeaderValue" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpMessage_getMsrpHeaderValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (char *)(arg1)->getMsrpHeaderValue((char const *)arg2); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getMsrpHeaderParamValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MsrpMessage_getMsrpHeaderParamValue",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpHeaderParamValue" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpMessage_getMsrpHeaderParamValue" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MsrpMessage_getMsrpHeaderParamValue" "', argument " "3"" of type '" "char const *""'"); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (char *)(arg1)->getMsrpHeaderParamValue((char const *)arg2,(char const *)arg3); + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + delete[] result; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getMsrpContentLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpMessage_getMsrpContentLength",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpContentLength" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + result = (unsigned int)(arg1)->getMsrpContentLength(); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpMessage_getMsrpContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpMessage *arg1 = (MsrpMessage *) 0 ; + void *arg2 = (void *) 0 ; + unsigned int arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + unsigned int val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:MsrpMessage_getMsrpContent",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpMessage, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpMessage_getMsrpContent" "', argument " "1"" of type '" "MsrpMessage *""'"); + } + arg1 = reinterpret_cast< MsrpMessage * >(argp1); + res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpMessage_getMsrpContent" "', argument " "2"" of type '" "void *""'"); + } + ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MsrpMessage_getMsrpContent" "', argument " "3"" of type '" "unsigned int""'"); + } + arg3 = static_cast< unsigned int >(val3); + result = (unsigned int)(arg1)->getMsrpContent(arg2,arg3); + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MsrpMessage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MsrpMessage, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_delete_MsrpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MsrpEvent",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpEvent, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpEvent" "', argument " "1"" of type '" "MsrpEvent *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpEvent_getType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + tmsrp_event_type_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpEvent_getType",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpEvent_getType" "', argument " "1"" of type '" "MsrpEvent *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + result = (tmsrp_event_type_t)(arg1)->getType(); + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpEvent_getSipSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MsrpSession *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpEvent_getSipSession",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpEvent_getSipSession" "', argument " "1"" of type '" "MsrpEvent *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + result = (MsrpSession *)(arg1)->getSipSession(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpSession, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpEvent_getMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpEvent *arg1 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + MsrpMessage *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:MsrpEvent_getMessage",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpEvent_getMessage" "', argument " "1"" of type '" "MsrpEvent const *""'"); + } + arg1 = reinterpret_cast< MsrpEvent * >(argp1); + result = (MsrpMessage *)((MsrpEvent const *)arg1)->getMessage(); + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpMessage, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MsrpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MsrpEvent, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_new_MsrpCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + PyObject *arg1 = (PyObject *) 0 ; + PyObject * obj0 = 0 ; + MsrpCallback *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_MsrpCallback",&obj0)) SWIG_fail; + arg1 = obj0; + if ( arg1 != Py_None ) { + /* subclassed */ + result = (MsrpCallback *)new SwigDirector_MsrpCallback(arg1); + } else { + result = (MsrpCallback *)new MsrpCallback(); + } + + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MsrpCallback, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_MsrpCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_MsrpCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpCallback, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MsrpCallback" "', argument " "1"" of type '" "MsrpCallback *""'"); + } + arg1 = reinterpret_cast< MsrpCallback * >(argp1); + delete arg1; + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_MsrpCallback_OnEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + MsrpEvent *arg2 = (MsrpEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + + if (!PyArg_ParseTuple(args,(char *)"OO:MsrpCallback_OnEvent",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MsrpCallback_OnEvent" "', argument " "1"" of type '" "MsrpCallback *""'"); + } + arg1 = reinterpret_cast< MsrpCallback * >(argp1); + res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_MsrpEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MsrpCallback_OnEvent" "', argument " "2"" of type '" "MsrpEvent const *""'"); + } + arg2 = reinterpret_cast< MsrpEvent * >(argp2); + director = SWIG_DIRECTOR_CAST(arg1); + upcall = (director && (director->swig_get_self()==obj0)); + try { + if (upcall) { + result = (int)(arg1)->MsrpCallback::OnEvent((MsrpEvent const *)arg2); + } else { + result = (int)(arg1)->OnEvent((MsrpEvent const *)arg2); + } + } catch (Swig::DirectorException&) { + SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_disown_MsrpCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + MsrpCallback *arg1 = (MsrpCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:disown_MsrpCallback",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MsrpCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "disown_MsrpCallback" "', argument " "1"" of type '" "MsrpCallback *""'"); + } + arg1 = reinterpret_cast< MsrpCallback * >(argp1); + { + Swig::Director *director = SWIG_DIRECTOR_CAST(arg1); + if (director) director->swig_disown(); + } + + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *MsrpCallback_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_MsrpCallback, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +static PyMethodDef SwigMethods[] = { + { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, + { (char *)"new_DDebugCallback", _wrap_new_DDebugCallback, METH_VARARGS, NULL}, + { (char *)"delete_DDebugCallback", _wrap_delete_DDebugCallback, METH_VARARGS, NULL}, + { (char *)"DDebugCallback_OnDebugInfo", _wrap_DDebugCallback_OnDebugInfo, METH_VARARGS, NULL}, + { (char *)"DDebugCallback_OnDebugWarn", _wrap_DDebugCallback_OnDebugWarn, METH_VARARGS, NULL}, + { (char *)"DDebugCallback_OnDebugError", _wrap_DDebugCallback_OnDebugError, METH_VARARGS, NULL}, + { (char *)"DDebugCallback_OnDebugFatal", _wrap_DDebugCallback_OnDebugFatal, METH_VARARGS, NULL}, + { (char *)"disown_DDebugCallback", _wrap_disown_DDebugCallback, METH_VARARGS, NULL}, + { (char *)"DDebugCallback_swigregister", DDebugCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"new_AudioResampler", _wrap_new_AudioResampler, METH_VARARGS, NULL}, + { (char *)"delete_AudioResampler", _wrap_delete_AudioResampler, METH_VARARGS, NULL}, + { (char *)"AudioResampler_isValid", _wrap_AudioResampler_isValid, METH_VARARGS, NULL}, + { (char *)"AudioResampler_getOutputRequiredSizeInShort", _wrap_AudioResampler_getOutputRequiredSizeInShort, METH_VARARGS, NULL}, + { (char *)"AudioResampler_getInputRequiredSizeInShort", _wrap_AudioResampler_getInputRequiredSizeInShort, METH_VARARGS, NULL}, + { (char *)"AudioResampler_process", _wrap_AudioResampler_process, METH_VARARGS, NULL}, + { (char *)"AudioResampler_swigregister", AudioResampler_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ActionConfig", _wrap_new_ActionConfig, METH_VARARGS, NULL}, + { (char *)"delete_ActionConfig", _wrap_delete_ActionConfig, METH_VARARGS, NULL}, + { (char *)"ActionConfig_addHeader", _wrap_ActionConfig_addHeader, METH_VARARGS, NULL}, + { (char *)"ActionConfig_addPayload", _wrap_ActionConfig_addPayload, METH_VARARGS, NULL}, + { (char *)"ActionConfig_setActiveMedia", _wrap_ActionConfig_setActiveMedia, METH_VARARGS, NULL}, + { (char *)"ActionConfig_setResponseLine", _wrap_ActionConfig_setResponseLine, METH_VARARGS, NULL}, + { (char *)"ActionConfig_setMediaString", _wrap_ActionConfig_setMediaString, METH_VARARGS, NULL}, + { (char *)"ActionConfig_setMediaInt", _wrap_ActionConfig_setMediaInt, METH_VARARGS, NULL}, + { (char *)"ActionConfig_swigregister", ActionConfig_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_Codec", _wrap_delete_Codec, METH_VARARGS, NULL}, + { (char *)"Codec_getMediaType", _wrap_Codec_getMediaType, METH_VARARGS, NULL}, + { (char *)"Codec_getName", _wrap_Codec_getName, METH_VARARGS, NULL}, + { (char *)"Codec_getDescription", _wrap_Codec_getDescription, METH_VARARGS, NULL}, + { (char *)"Codec_getNegFormat", _wrap_Codec_getNegFormat, METH_VARARGS, NULL}, + { (char *)"Codec_getAudioSamplingRate", _wrap_Codec_getAudioSamplingRate, METH_VARARGS, NULL}, + { (char *)"Codec_getAudioChannels", _wrap_Codec_getAudioChannels, METH_VARARGS, NULL}, + { (char *)"Codec_getAudioPTime", _wrap_Codec_getAudioPTime, METH_VARARGS, NULL}, + { (char *)"Codec_swigregister", Codec_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_MediaSessionMgr", _wrap_delete_MediaSessionMgr, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_sessionSetInt32", _wrap_MediaSessionMgr_sessionSetInt32, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_sessionGetInt32", _wrap_MediaSessionMgr_sessionGetInt32, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_consumerSetInt32", _wrap_MediaSessionMgr_consumerSetInt32, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_consumerSetInt64", _wrap_MediaSessionMgr_consumerSetInt64, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_producerSetInt32", _wrap_MediaSessionMgr_producerSetInt32, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_producerSetInt64", _wrap_MediaSessionMgr_producerSetInt64, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_producerGetCodec", _wrap_MediaSessionMgr_producerGetCodec, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_findProxyPluginConsumer", _wrap_MediaSessionMgr_findProxyPluginConsumer, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_findProxyPluginProducer", _wrap_MediaSessionMgr_findProxyPluginProducer, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_registerAudioPluginFromFile", _wrap_MediaSessionMgr_registerAudioPluginFromFile, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_getSessionId", _wrap_MediaSessionMgr_getSessionId, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetProfile", _wrap_MediaSessionMgr_defaultsSetProfile, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetProfile", _wrap_MediaSessionMgr_defaultsGetProfile, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetBandwidthLevel", _wrap_MediaSessionMgr_defaultsSetBandwidthLevel, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetBandwidthLevel", _wrap_MediaSessionMgr_defaultsGetBandwidthLevel, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetCongestionCtrlEnabled", _wrap_MediaSessionMgr_defaultsSetCongestionCtrlEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetVideoMotionRank", _wrap_MediaSessionMgr_defaultsSetVideoMotionRank, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetVideoFps", _wrap_MediaSessionMgr_defaultsSetVideoFps, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetBandwidthVideoUploadMax", _wrap_MediaSessionMgr_defaultsSetBandwidthVideoUploadMax, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax", _wrap_MediaSessionMgr_defaultsSetBandwidthVideoDownloadMax, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetPrefVideoSize", _wrap_MediaSessionMgr_defaultsSetPrefVideoSize, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetJbMargin", _wrap_MediaSessionMgr_defaultsSetJbMargin, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetJbMaxLateRate", _wrap_MediaSessionMgr_defaultsSetJbMaxLateRate, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetEchoTail", _wrap_MediaSessionMgr_defaultsSetEchoTail, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetEchoTail", _wrap_MediaSessionMgr_defaultsGetEchoTail, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetEchoSkew", _wrap_MediaSessionMgr_defaultsSetEchoSkew, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetEchoSuppEnabled", _wrap_MediaSessionMgr_defaultsSetEchoSuppEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetEchoSuppEnabled", _wrap_MediaSessionMgr_defaultsGetEchoSuppEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAgcEnabled", _wrap_MediaSessionMgr_defaultsSetAgcEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetAgcEnabled", _wrap_MediaSessionMgr_defaultsGetAgcEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAgcLevel", _wrap_MediaSessionMgr_defaultsSetAgcLevel, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetAgcLevel", _wrap_MediaSessionMgr_defaultsGetAgcLevel, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetVadEnabled", _wrap_MediaSessionMgr_defaultsSetVadEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetGetVadEnabled", _wrap_MediaSessionMgr_defaultsGetGetVadEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetNoiseSuppEnabled", _wrap_MediaSessionMgr_defaultsSetNoiseSuppEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetNoiseSuppEnabled", _wrap_MediaSessionMgr_defaultsGetNoiseSuppEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetNoiseSuppLevel", _wrap_MediaSessionMgr_defaultsSetNoiseSuppLevel, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetNoiseSuppLevel", _wrap_MediaSessionMgr_defaultsGetNoiseSuppLevel, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSet100relEnabled", _wrap_MediaSessionMgr_defaultsSet100relEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGet100relEnabled", _wrap_MediaSessionMgr_defaultsGet100relEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetScreenSize", _wrap_MediaSessionMgr_defaultsSetScreenSize, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAudioGain", _wrap_MediaSessionMgr_defaultsSetAudioGain, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAudioPtime", _wrap_MediaSessionMgr_defaultsSetAudioPtime, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAudioChannels", _wrap_MediaSessionMgr_defaultsSetAudioChannels, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetRtpPortRange", _wrap_MediaSessionMgr_defaultsSetRtpPortRange, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetRtpSymetricEnabled", _wrap_MediaSessionMgr_defaultsSetRtpSymetricEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetMediaType", _wrap_MediaSessionMgr_defaultsSetMediaType, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetVolume", _wrap_MediaSessionMgr_defaultsSetVolume, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetVolume", _wrap_MediaSessionMgr_defaultsGetVolume, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetInviteSessionTimers", _wrap_MediaSessionMgr_defaultsSetInviteSessionTimers, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetSRtpMode", _wrap_MediaSessionMgr_defaultsSetSRtpMode, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetSRtpMode", _wrap_MediaSessionMgr_defaultsGetSRtpMode, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetSRtpType", _wrap_MediaSessionMgr_defaultsSetSRtpType, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetSRtpType", _wrap_MediaSessionMgr_defaultsGetSRtpType, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetRtcpEnabled", _wrap_MediaSessionMgr_defaultsSetRtcpEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetRtcpEnabled", _wrap_MediaSessionMgr_defaultsGetRtcpEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetRtcpMuxEnabled", _wrap_MediaSessionMgr_defaultsSetRtcpMuxEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetRtcpMuxEnabled", _wrap_MediaSessionMgr_defaultsGetRtcpMuxEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetStunEnabled", _wrap_MediaSessionMgr_defaultsSetStunEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetIceStunEnabled", _wrap_MediaSessionMgr_defaultsSetIceStunEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetIceTurnEnabled", _wrap_MediaSessionMgr_defaultsSetIceTurnEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetStunServer", _wrap_MediaSessionMgr_defaultsSetStunServer, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetStunCred", _wrap_MediaSessionMgr_defaultsSetStunCred, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetIceEnabled", _wrap_MediaSessionMgr_defaultsSetIceEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetByPassEncoding", _wrap_MediaSessionMgr_defaultsSetByPassEncoding, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetByPassEncoding", _wrap_MediaSessionMgr_defaultsGetByPassEncoding, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetByPassDecoding", _wrap_MediaSessionMgr_defaultsSetByPassDecoding, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetByPassDecoding", _wrap_MediaSessionMgr_defaultsGetByPassDecoding, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetVideoJbEnabled", _wrap_MediaSessionMgr_defaultsSetVideoJbEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetVideoJbEnabled", _wrap_MediaSessionMgr_defaultsGetVideoJbEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled", _wrap_MediaSessionMgr_defaultsSetVideoZeroArtifactsEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled", _wrap_MediaSessionMgr_defaultsGetVideoZeroArtifactsEnabled, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetRtpBuffSize", _wrap_MediaSessionMgr_defaultsSetRtpBuffSize, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsGetRtpBuffSize", _wrap_MediaSessionMgr_defaultsGetRtpBuffSize, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAvpfTail", _wrap_MediaSessionMgr_defaultsSetAvpfTail, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetAvpfMode", _wrap_MediaSessionMgr_defaultsSetAvpfMode, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetOpusMaxCaptureRate", _wrap_MediaSessionMgr_defaultsSetOpusMaxCaptureRate, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetOpusMaxPlaybackRate", _wrap_MediaSessionMgr_defaultsSetOpusMaxPlaybackRate, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_defaultsSetMaxFds", _wrap_MediaSessionMgr_defaultsSetMaxFds, METH_VARARGS, NULL}, + { (char *)"MediaSessionMgr_swigregister", MediaSessionMgr_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_MediaContent", _wrap_delete_MediaContent, METH_VARARGS, NULL}, + { (char *)"MediaContent_getType", _wrap_MediaContent_getType, METH_VARARGS, NULL}, + { (char *)"MediaContent_getDataLength", _wrap_MediaContent_getDataLength, METH_VARARGS, NULL}, + { (char *)"MediaContent_getData", _wrap_MediaContent_getData, METH_VARARGS, NULL}, + { (char *)"MediaContent_parse", _wrap_MediaContent_parse, METH_VARARGS, NULL}, + { (char *)"MediaContent_getPayloadLength", _wrap_MediaContent_getPayloadLength, METH_VARARGS, NULL}, + { (char *)"MediaContent_getPayload", _wrap_MediaContent_getPayload, METH_VARARGS, NULL}, + { (char *)"MediaContent_swigregister", MediaContent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_MediaContentCPIM", _wrap_delete_MediaContentCPIM, METH_VARARGS, NULL}, + { (char *)"MediaContentCPIM_getPayloadLength", _wrap_MediaContentCPIM_getPayloadLength, METH_VARARGS, NULL}, + { (char *)"MediaContentCPIM_getPayload", _wrap_MediaContentCPIM_getPayload, METH_VARARGS, NULL}, + { (char *)"MediaContentCPIM_getHeaderValue", _wrap_MediaContentCPIM_getHeaderValue, METH_VARARGS, NULL}, + { (char *)"MediaContentCPIM_swigregister", MediaContentCPIM_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipUri", _wrap_new_SipUri, METH_VARARGS, NULL}, + { (char *)"delete_SipUri", _wrap_delete_SipUri, METH_VARARGS, NULL}, + { (char *)"SipUri_isValid", _wrap_SipUri_isValid, METH_VARARGS, NULL}, + { (char *)"SipUri_getScheme", _wrap_SipUri_getScheme, METH_VARARGS, NULL}, + { (char *)"SipUri_getHost", _wrap_SipUri_getHost, METH_VARARGS, NULL}, + { (char *)"SipUri_getPort", _wrap_SipUri_getPort, METH_VARARGS, NULL}, + { (char *)"SipUri_getUserName", _wrap_SipUri_getUserName, METH_VARARGS, NULL}, + { (char *)"SipUri_getPassword", _wrap_SipUri_getPassword, METH_VARARGS, NULL}, + { (char *)"SipUri_getDisplayName", _wrap_SipUri_getDisplayName, METH_VARARGS, NULL}, + { (char *)"SipUri_getParamValue", _wrap_SipUri_getParamValue, METH_VARARGS, NULL}, + { (char *)"SipUri_setDisplayName", _wrap_SipUri_setDisplayName, METH_VARARGS, NULL}, + { (char *)"SipUri_swigregister", SipUri_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SdpMessage", _wrap_new_SdpMessage, METH_VARARGS, NULL}, + { (char *)"delete_SdpMessage", _wrap_delete_SdpMessage, METH_VARARGS, NULL}, + { (char *)"SdpMessage_getSdpHeaderValue", _wrap_SdpMessage_getSdpHeaderValue, METH_VARARGS, NULL}, + { (char *)"SdpMessage_getSdpHeaderAValue", _wrap_SdpMessage_getSdpHeaderAValue, METH_VARARGS, NULL}, + { (char *)"SdpMessage_swigregister", SdpMessage_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipMessage", _wrap_new_SipMessage, METH_VARARGS, NULL}, + { (char *)"delete_SipMessage", _wrap_delete_SipMessage, METH_VARARGS, NULL}, + { (char *)"SipMessage_isResponse", _wrap_SipMessage_isResponse, METH_VARARGS, NULL}, + { (char *)"SipMessage_getRequestType", _wrap_SipMessage_getRequestType, METH_VARARGS, NULL}, + { (char *)"SipMessage_getResponseCode", _wrap_SipMessage_getResponseCode, METH_VARARGS, NULL}, + { (char *)"SipMessage_getResponsePhrase", _wrap_SipMessage_getResponsePhrase, METH_VARARGS, NULL}, + { (char *)"SipMessage_getSipHeaderValue", _wrap_SipMessage_getSipHeaderValue, METH_VARARGS, NULL}, + { (char *)"SipMessage_getSipHeaderParamValue", _wrap_SipMessage_getSipHeaderParamValue, METH_VARARGS, NULL}, + { (char *)"SipMessage_getSipContentLength", _wrap_SipMessage_getSipContentLength, METH_VARARGS, NULL}, + { (char *)"SipMessage_getSipContent", _wrap_SipMessage_getSipContent, METH_VARARGS, NULL}, + { (char *)"SipMessage_getSdpMessage", _wrap_SipMessage_getSdpMessage, METH_VARARGS, NULL}, + { (char *)"SipMessage_swigregister", SipMessage_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_SipEvent", _wrap_delete_SipEvent, METH_VARARGS, NULL}, + { (char *)"SipEvent_getCode", _wrap_SipEvent_getCode, METH_VARARGS, NULL}, + { (char *)"SipEvent_getPhrase", _wrap_SipEvent_getPhrase, METH_VARARGS, NULL}, + { (char *)"SipEvent_getBaseSession", _wrap_SipEvent_getBaseSession, METH_VARARGS, NULL}, + { (char *)"SipEvent_getSipMessage", _wrap_SipEvent_getSipMessage, METH_VARARGS, NULL}, + { (char *)"SipEvent_swigregister", SipEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_DialogEvent", _wrap_delete_DialogEvent, METH_VARARGS, NULL}, + { (char *)"DialogEvent_swigregister", DialogEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_StackEvent", _wrap_delete_StackEvent, METH_VARARGS, NULL}, + { (char *)"StackEvent_swigregister", StackEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_InviteEvent", _wrap_delete_InviteEvent, METH_VARARGS, NULL}, + { (char *)"InviteEvent_getType", _wrap_InviteEvent_getType, METH_VARARGS, NULL}, + { (char *)"InviteEvent_getMediaType", _wrap_InviteEvent_getMediaType, METH_VARARGS, NULL}, + { (char *)"InviteEvent_getSession", _wrap_InviteEvent_getSession, METH_VARARGS, NULL}, + { (char *)"InviteEvent_takeCallSessionOwnership", _wrap_InviteEvent_takeCallSessionOwnership, METH_VARARGS, NULL}, + { (char *)"InviteEvent_takeMsrpSessionOwnership", _wrap_InviteEvent_takeMsrpSessionOwnership, METH_VARARGS, NULL}, + { (char *)"InviteEvent_swigregister", InviteEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_MessagingEvent", _wrap_delete_MessagingEvent, METH_VARARGS, NULL}, + { (char *)"MessagingEvent_getType", _wrap_MessagingEvent_getType, METH_VARARGS, NULL}, + { (char *)"MessagingEvent_getSession", _wrap_MessagingEvent_getSession, METH_VARARGS, NULL}, + { (char *)"MessagingEvent_takeSessionOwnership", _wrap_MessagingEvent_takeSessionOwnership, METH_VARARGS, NULL}, + { (char *)"MessagingEvent_swigregister", MessagingEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_InfoEvent", _wrap_delete_InfoEvent, METH_VARARGS, NULL}, + { (char *)"InfoEvent_getType", _wrap_InfoEvent_getType, METH_VARARGS, NULL}, + { (char *)"InfoEvent_getSession", _wrap_InfoEvent_getSession, METH_VARARGS, NULL}, + { (char *)"InfoEvent_takeSessionOwnership", _wrap_InfoEvent_takeSessionOwnership, METH_VARARGS, NULL}, + { (char *)"InfoEvent_swigregister", InfoEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_OptionsEvent", _wrap_delete_OptionsEvent, METH_VARARGS, NULL}, + { (char *)"OptionsEvent_getType", _wrap_OptionsEvent_getType, METH_VARARGS, NULL}, + { (char *)"OptionsEvent_getSession", _wrap_OptionsEvent_getSession, METH_VARARGS, NULL}, + { (char *)"OptionsEvent_takeSessionOwnership", _wrap_OptionsEvent_takeSessionOwnership, METH_VARARGS, NULL}, + { (char *)"OptionsEvent_swigregister", OptionsEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_PublicationEvent", _wrap_delete_PublicationEvent, METH_VARARGS, NULL}, + { (char *)"PublicationEvent_getType", _wrap_PublicationEvent_getType, METH_VARARGS, NULL}, + { (char *)"PublicationEvent_getSession", _wrap_PublicationEvent_getSession, METH_VARARGS, NULL}, + { (char *)"PublicationEvent_takeSessionOwnership", _wrap_PublicationEvent_takeSessionOwnership, METH_VARARGS, NULL}, + { (char *)"PublicationEvent_swigregister", PublicationEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_RegistrationEvent", _wrap_delete_RegistrationEvent, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_getType", _wrap_RegistrationEvent_getType, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_getSession", _wrap_RegistrationEvent_getSession, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_takeSessionOwnership", _wrap_RegistrationEvent_takeSessionOwnership, METH_VARARGS, NULL}, + { (char *)"RegistrationEvent_swigregister", RegistrationEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_SubscriptionEvent", _wrap_delete_SubscriptionEvent, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_getType", _wrap_SubscriptionEvent_getType, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_getSession", _wrap_SubscriptionEvent_getSession, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_takeSessionOwnership", _wrap_SubscriptionEvent_takeSessionOwnership, METH_VARARGS, NULL}, + { (char *)"SubscriptionEvent_swigregister", SubscriptionEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_T140CallbackData", _wrap_delete_T140CallbackData, METH_VARARGS, NULL}, + { (char *)"T140CallbackData_getType", _wrap_T140CallbackData_getType, METH_VARARGS, NULL}, + { (char *)"T140CallbackData_getSize", _wrap_T140CallbackData_getSize, METH_VARARGS, NULL}, + { (char *)"T140CallbackData_getData", _wrap_T140CallbackData_getData, METH_VARARGS, NULL}, + { (char *)"T140CallbackData_swigregister", T140CallbackData_swigregister, METH_VARARGS, NULL}, + { (char *)"new_T140Callback", _wrap_new_T140Callback, METH_VARARGS, NULL}, + { (char *)"delete_T140Callback", _wrap_delete_T140Callback, METH_VARARGS, NULL}, + { (char *)"T140Callback_ondata", _wrap_T140Callback_ondata, METH_VARARGS, NULL}, + { (char *)"disown_T140Callback", _wrap_disown_T140Callback, METH_VARARGS, NULL}, + { (char *)"T140Callback_swigregister", T140Callback_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipSession", _wrap_new_SipSession, METH_VARARGS, NULL}, + { (char *)"delete_SipSession", _wrap_delete_SipSession, METH_VARARGS, NULL}, + { (char *)"SipSession_haveOwnership", _wrap_SipSession_haveOwnership, METH_VARARGS, NULL}, + { (char *)"SipSession_addHeader", _wrap_SipSession_addHeader, METH_VARARGS, NULL}, + { (char *)"SipSession_removeHeader", _wrap_SipSession_removeHeader, METH_VARARGS, NULL}, + { (char *)"SipSession_addCaps", _wrap_SipSession_addCaps, METH_VARARGS, NULL}, + { (char *)"SipSession_removeCaps", _wrap_SipSession_removeCaps, METH_VARARGS, NULL}, + { (char *)"SipSession_setExpires", _wrap_SipSession_setExpires, METH_VARARGS, NULL}, + { (char *)"SipSession_setFromUri", _wrap_SipSession_setFromUri, METH_VARARGS, NULL}, + { (char *)"SipSession_setToUri", _wrap_SipSession_setToUri, METH_VARARGS, NULL}, + { (char *)"SipSession_setSilentHangup", _wrap_SipSession_setSilentHangup, METH_VARARGS, NULL}, + { (char *)"SipSession_addSigCompCompartment", _wrap_SipSession_addSigCompCompartment, METH_VARARGS, NULL}, + { (char *)"SipSession_removeSigCompCompartment", _wrap_SipSession_removeSigCompCompartment, METH_VARARGS, NULL}, + { (char *)"SipSession_getId", _wrap_SipSession_getId, METH_VARARGS, NULL}, + { (char *)"SipSession_swigregister", SipSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_InviteSession", _wrap_new_InviteSession, METH_VARARGS, NULL}, + { (char *)"delete_InviteSession", _wrap_delete_InviteSession, METH_VARARGS, NULL}, + { (char *)"InviteSession_accept", _wrap_InviteSession_accept, METH_VARARGS, NULL}, + { (char *)"InviteSession_hangup", _wrap_InviteSession_hangup, METH_VARARGS, NULL}, + { (char *)"InviteSession_reject", _wrap_InviteSession_reject, METH_VARARGS, NULL}, + { (char *)"InviteSession_sendInfo", _wrap_InviteSession_sendInfo, METH_VARARGS, NULL}, + { (char *)"InviteSession_getMediaMgr", _wrap_InviteSession_getMediaMgr, METH_VARARGS, NULL}, + { (char *)"InviteSession_swigregister", InviteSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_CallSession", _wrap_new_CallSession, METH_VARARGS, NULL}, + { (char *)"delete_CallSession", _wrap_delete_CallSession, METH_VARARGS, NULL}, + { (char *)"CallSession_callAudio", _wrap_CallSession_callAudio, METH_VARARGS, NULL}, + { (char *)"CallSession_callAudioVideo", _wrap_CallSession_callAudioVideo, METH_VARARGS, NULL}, + { (char *)"CallSession_callVideo", _wrap_CallSession_callVideo, METH_VARARGS, NULL}, + { (char *)"CallSession_call", _wrap_CallSession_call, METH_VARARGS, NULL}, + { (char *)"CallSession_setSessionTimer", _wrap_CallSession_setSessionTimer, METH_VARARGS, NULL}, + { (char *)"CallSession_set100rel", _wrap_CallSession_set100rel, METH_VARARGS, NULL}, + { (char *)"CallSession_setRtcp", _wrap_CallSession_setRtcp, METH_VARARGS, NULL}, + { (char *)"CallSession_setRtcpMux", _wrap_CallSession_setRtcpMux, METH_VARARGS, NULL}, + { (char *)"CallSession_setSRtpMode", _wrap_CallSession_setSRtpMode, METH_VARARGS, NULL}, + { (char *)"CallSession_setAvpfMode", _wrap_CallSession_setAvpfMode, METH_VARARGS, NULL}, + { (char *)"CallSession_setICE", _wrap_CallSession_setICE, METH_VARARGS, NULL}, + { (char *)"CallSession_setICEStun", _wrap_CallSession_setICEStun, METH_VARARGS, NULL}, + { (char *)"CallSession_setICETurn", _wrap_CallSession_setICETurn, METH_VARARGS, NULL}, + { (char *)"CallSession_setSTUNServer", _wrap_CallSession_setSTUNServer, METH_VARARGS, NULL}, + { (char *)"CallSession_setSTUNCred", _wrap_CallSession_setSTUNCred, METH_VARARGS, NULL}, + { (char *)"CallSession_setVideoFps", _wrap_CallSession_setVideoFps, METH_VARARGS, NULL}, + { (char *)"CallSession_setVideoBandwidthUploadMax", _wrap_CallSession_setVideoBandwidthUploadMax, METH_VARARGS, NULL}, + { (char *)"CallSession_setVideoBandwidthDownloadMax", _wrap_CallSession_setVideoBandwidthDownloadMax, METH_VARARGS, NULL}, + { (char *)"CallSession_setVideoPrefSize", _wrap_CallSession_setVideoPrefSize, METH_VARARGS, NULL}, + { (char *)"CallSession_setQoS", _wrap_CallSession_setQoS, METH_VARARGS, NULL}, + { (char *)"CallSession_hold", _wrap_CallSession_hold, METH_VARARGS, NULL}, + { (char *)"CallSession_resume", _wrap_CallSession_resume, METH_VARARGS, NULL}, + { (char *)"CallSession_transfer", _wrap_CallSession_transfer, METH_VARARGS, NULL}, + { (char *)"CallSession_acceptTransfer", _wrap_CallSession_acceptTransfer, METH_VARARGS, NULL}, + { (char *)"CallSession_rejectTransfer", _wrap_CallSession_rejectTransfer, METH_VARARGS, NULL}, + { (char *)"CallSession_sendDTMF", _wrap_CallSession_sendDTMF, METH_VARARGS, NULL}, + { (char *)"CallSession_getSessionTransferId", _wrap_CallSession_getSessionTransferId, METH_VARARGS, NULL}, + { (char *)"CallSession_sendT140Data", _wrap_CallSession_sendT140Data, METH_VARARGS, NULL}, + { (char *)"CallSession_setT140Callback", _wrap_CallSession_setT140Callback, METH_VARARGS, NULL}, + { (char *)"CallSession_swigregister", CallSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_MsrpSession", _wrap_new_MsrpSession, METH_VARARGS, NULL}, + { (char *)"delete_MsrpSession", _wrap_delete_MsrpSession, METH_VARARGS, NULL}, + { (char *)"MsrpSession_setCallback", _wrap_MsrpSession_setCallback, METH_VARARGS, NULL}, + { (char *)"MsrpSession_callMsrp", _wrap_MsrpSession_callMsrp, METH_VARARGS, NULL}, + { (char *)"MsrpSession_sendMessage", _wrap_MsrpSession_sendMessage, METH_VARARGS, NULL}, + { (char *)"MsrpSession_sendFile", _wrap_MsrpSession_sendFile, METH_VARARGS, NULL}, + { (char *)"MsrpSession_swigregister", MsrpSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_MessagingSession", _wrap_new_MessagingSession, METH_VARARGS, NULL}, + { (char *)"delete_MessagingSession", _wrap_delete_MessagingSession, METH_VARARGS, NULL}, + { (char *)"MessagingSession_send", _wrap_MessagingSession_send, METH_VARARGS, NULL}, + { (char *)"MessagingSession_accept", _wrap_MessagingSession_accept, METH_VARARGS, NULL}, + { (char *)"MessagingSession_reject", _wrap_MessagingSession_reject, METH_VARARGS, NULL}, + { (char *)"MessagingSession_swigregister", MessagingSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_InfoSession", _wrap_new_InfoSession, METH_VARARGS, NULL}, + { (char *)"delete_InfoSession", _wrap_delete_InfoSession, METH_VARARGS, NULL}, + { (char *)"InfoSession_send", _wrap_InfoSession_send, METH_VARARGS, NULL}, + { (char *)"InfoSession_accept", _wrap_InfoSession_accept, METH_VARARGS, NULL}, + { (char *)"InfoSession_reject", _wrap_InfoSession_reject, METH_VARARGS, NULL}, + { (char *)"InfoSession_swigregister", InfoSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_OptionsSession", _wrap_new_OptionsSession, METH_VARARGS, NULL}, + { (char *)"delete_OptionsSession", _wrap_delete_OptionsSession, METH_VARARGS, NULL}, + { (char *)"OptionsSession_send", _wrap_OptionsSession_send, METH_VARARGS, NULL}, + { (char *)"OptionsSession_accept", _wrap_OptionsSession_accept, METH_VARARGS, NULL}, + { (char *)"OptionsSession_reject", _wrap_OptionsSession_reject, METH_VARARGS, NULL}, + { (char *)"OptionsSession_swigregister", OptionsSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_PublicationSession", _wrap_new_PublicationSession, METH_VARARGS, NULL}, + { (char *)"delete_PublicationSession", _wrap_delete_PublicationSession, METH_VARARGS, NULL}, + { (char *)"PublicationSession_publish", _wrap_PublicationSession_publish, METH_VARARGS, NULL}, + { (char *)"PublicationSession_unPublish", _wrap_PublicationSession_unPublish, METH_VARARGS, NULL}, + { (char *)"PublicationSession_swigregister", PublicationSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_RegistrationSession", _wrap_new_RegistrationSession, METH_VARARGS, NULL}, + { (char *)"delete_RegistrationSession", _wrap_delete_RegistrationSession, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_register_", _wrap_RegistrationSession_register_, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_unRegister", _wrap_RegistrationSession_unRegister, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_accept", _wrap_RegistrationSession_accept, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_reject", _wrap_RegistrationSession_reject, METH_VARARGS, NULL}, + { (char *)"RegistrationSession_swigregister", RegistrationSession_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SubscriptionSession", _wrap_new_SubscriptionSession, METH_VARARGS, NULL}, + { (char *)"delete_SubscriptionSession", _wrap_delete_SubscriptionSession, METH_VARARGS, NULL}, + { (char *)"SubscriptionSession_subscribe", _wrap_SubscriptionSession_subscribe, METH_VARARGS, NULL}, + { (char *)"SubscriptionSession_unSubscribe", _wrap_SubscriptionSession_unSubscribe, METH_VARARGS, NULL}, + { (char *)"SubscriptionSession_swigregister", SubscriptionSession_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyPluginMgr", _wrap_delete_ProxyPluginMgr, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_createInstance", _wrap_ProxyPluginMgr_createInstance, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_getInstance", _wrap_ProxyPluginMgr_getInstance, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_findPlugin", _wrap_ProxyPluginMgr_findPlugin, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_findAudioConsumer", _wrap_ProxyPluginMgr_findAudioConsumer, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_findVideoConsumer", _wrap_ProxyPluginMgr_findVideoConsumer, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_findAudioProducer", _wrap_ProxyPluginMgr_findAudioProducer, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_findVideoProducer", _wrap_ProxyPluginMgr_findVideoProducer, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgr_swigregister", ProxyPluginMgr_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ProxyPluginMgrCallback", _wrap_new_ProxyPluginMgrCallback, METH_VARARGS, NULL}, + { (char *)"delete_ProxyPluginMgrCallback", _wrap_delete_ProxyPluginMgrCallback, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgrCallback_OnPluginCreated", _wrap_ProxyPluginMgrCallback_OnPluginCreated, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgrCallback_OnPluginDestroyed", _wrap_ProxyPluginMgrCallback_OnPluginDestroyed, METH_VARARGS, NULL}, + { (char *)"disown_ProxyPluginMgrCallback", _wrap_disown_ProxyPluginMgrCallback, METH_VARARGS, NULL}, + { (char *)"ProxyPluginMgrCallback_swigregister", ProxyPluginMgrCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyPlugin", _wrap_delete_ProxyPlugin, METH_VARARGS, NULL}, + { (char *)"ProxyPlugin_getType", _wrap_ProxyPlugin_getType, METH_VARARGS, NULL}, + { (char *)"ProxyPlugin_getId", _wrap_ProxyPlugin_getId, METH_VARARGS, NULL}, + { (char *)"ProxyPlugin_swigregister", ProxyPlugin_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ProxyAudioConsumerCallback", _wrap_new_ProxyAudioConsumerCallback, METH_VARARGS, NULL}, + { (char *)"delete_ProxyAudioConsumerCallback", _wrap_delete_ProxyAudioConsumerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumerCallback_prepare", _wrap_ProxyAudioConsumerCallback_prepare, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumerCallback_start", _wrap_ProxyAudioConsumerCallback_start, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumerCallback_pause", _wrap_ProxyAudioConsumerCallback_pause, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumerCallback_stop", _wrap_ProxyAudioConsumerCallback_stop, METH_VARARGS, NULL}, + { (char *)"disown_ProxyAudioConsumerCallback", _wrap_disown_ProxyAudioConsumerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumerCallback_swigregister", ProxyAudioConsumerCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyAudioConsumer", _wrap_delete_ProxyAudioConsumer, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_setActualSndCardPlaybackParams", _wrap_ProxyAudioConsumer_setActualSndCardPlaybackParams, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_queryForResampler", _wrap_ProxyAudioConsumer_queryForResampler, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_setPullBuffer", _wrap_ProxyAudioConsumer_setPullBuffer, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_pull", _wrap_ProxyAudioConsumer_pull, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_setGain", _wrap_ProxyAudioConsumer_setGain, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_getGain", _wrap_ProxyAudioConsumer_getGain, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_reset", _wrap_ProxyAudioConsumer_reset, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_setCallback", _wrap_ProxyAudioConsumer_setCallback, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_getMediaSessionId", _wrap_ProxyAudioConsumer_getMediaSessionId, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_registerPlugin", _wrap_ProxyAudioConsumer_registerPlugin, METH_VARARGS, NULL}, + { (char *)"ProxyAudioConsumer_swigregister", ProxyAudioConsumer_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ProxyVideoConsumerCallback", _wrap_new_ProxyVideoConsumerCallback, METH_VARARGS, NULL}, + { (char *)"delete_ProxyVideoConsumerCallback", _wrap_delete_ProxyVideoConsumerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_prepare", _wrap_ProxyVideoConsumerCallback_prepare, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_consume", _wrap_ProxyVideoConsumerCallback_consume, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_bufferCopied", _wrap_ProxyVideoConsumerCallback_bufferCopied, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_start", _wrap_ProxyVideoConsumerCallback_start, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_pause", _wrap_ProxyVideoConsumerCallback_pause, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_stop", _wrap_ProxyVideoConsumerCallback_stop, METH_VARARGS, NULL}, + { (char *)"disown_ProxyVideoConsumerCallback", _wrap_disown_ProxyVideoConsumerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumerCallback_swigregister", ProxyVideoConsumerCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyVideoConsumer", _wrap_delete_ProxyVideoConsumer, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_setDisplaySize", _wrap_ProxyVideoConsumer_setDisplaySize, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_getDisplayWidth", _wrap_ProxyVideoConsumer_getDisplayWidth, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_getDisplayHeight", _wrap_ProxyVideoConsumer_getDisplayHeight, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_getDecodedWidth", _wrap_ProxyVideoConsumer_getDecodedWidth, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_getDecodedHeight", _wrap_ProxyVideoConsumer_getDecodedHeight, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_setCallback", _wrap_ProxyVideoConsumer_setCallback, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_setAutoResizeDisplay", _wrap_ProxyVideoConsumer_setAutoResizeDisplay, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_getAutoResizeDisplay", _wrap_ProxyVideoConsumer_getAutoResizeDisplay, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_setConsumeBuffer", _wrap_ProxyVideoConsumer_setConsumeBuffer, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_pull", _wrap_ProxyVideoConsumer_pull, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_reset", _wrap_ProxyVideoConsumer_reset, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_getMediaSessionId", _wrap_ProxyVideoConsumer_getMediaSessionId, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_registerPlugin", _wrap_ProxyVideoConsumer_registerPlugin, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_setDefaultChroma", _wrap_ProxyVideoConsumer_setDefaultChroma, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_setDefaultAutoResizeDisplay", _wrap_ProxyVideoConsumer_setDefaultAutoResizeDisplay, METH_VARARGS, NULL}, + { (char *)"ProxyVideoConsumer_swigregister", ProxyVideoConsumer_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyVideoFrame", _wrap_delete_ProxyVideoFrame, METH_VARARGS, NULL}, + { (char *)"ProxyVideoFrame_getSize", _wrap_ProxyVideoFrame_getSize, METH_VARARGS, NULL}, + { (char *)"ProxyVideoFrame_getContent", _wrap_ProxyVideoFrame_getContent, METH_VARARGS, NULL}, + { (char *)"ProxyVideoFrame_getFrameWidth", _wrap_ProxyVideoFrame_getFrameWidth, METH_VARARGS, NULL}, + { (char *)"ProxyVideoFrame_getFrameHeight", _wrap_ProxyVideoFrame_getFrameHeight, METH_VARARGS, NULL}, + { (char *)"ProxyVideoFrame_swigregister", ProxyVideoFrame_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ProxyAudioProducerCallback", _wrap_new_ProxyAudioProducerCallback, METH_VARARGS, NULL}, + { (char *)"delete_ProxyAudioProducerCallback", _wrap_delete_ProxyAudioProducerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducerCallback_prepare", _wrap_ProxyAudioProducerCallback_prepare, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducerCallback_start", _wrap_ProxyAudioProducerCallback_start, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducerCallback_pause", _wrap_ProxyAudioProducerCallback_pause, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducerCallback_stop", _wrap_ProxyAudioProducerCallback_stop, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducerCallback_fillPushBuffer", _wrap_ProxyAudioProducerCallback_fillPushBuffer, METH_VARARGS, NULL}, + { (char *)"disown_ProxyAudioProducerCallback", _wrap_disown_ProxyAudioProducerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducerCallback_swigregister", ProxyAudioProducerCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyAudioProducer", _wrap_delete_ProxyAudioProducer, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_setActualSndCardRecordParams", _wrap_ProxyAudioProducer_setActualSndCardRecordParams, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_setPushBuffer", _wrap_ProxyAudioProducer_setPushBuffer, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_push", _wrap_ProxyAudioProducer_push, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_setGain", _wrap_ProxyAudioProducer_setGain, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_getGain", _wrap_ProxyAudioProducer_getGain, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_setCallback", _wrap_ProxyAudioProducer_setCallback, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_getMediaSessionId", _wrap_ProxyAudioProducer_getMediaSessionId, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_registerPlugin", _wrap_ProxyAudioProducer_registerPlugin, METH_VARARGS, NULL}, + { (char *)"ProxyAudioProducer_swigregister", ProxyAudioProducer_swigregister, METH_VARARGS, NULL}, + { (char *)"new_ProxyVideoProducerCallback", _wrap_new_ProxyVideoProducerCallback, METH_VARARGS, NULL}, + { (char *)"delete_ProxyVideoProducerCallback", _wrap_delete_ProxyVideoProducerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducerCallback_prepare", _wrap_ProxyVideoProducerCallback_prepare, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducerCallback_start", _wrap_ProxyVideoProducerCallback_start, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducerCallback_pause", _wrap_ProxyVideoProducerCallback_pause, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducerCallback_stop", _wrap_ProxyVideoProducerCallback_stop, METH_VARARGS, NULL}, + { (char *)"disown_ProxyVideoProducerCallback", _wrap_disown_ProxyVideoProducerCallback, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducerCallback_swigregister", ProxyVideoProducerCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_ProxyVideoProducer", _wrap_delete_ProxyVideoProducer, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_getRotation", _wrap_ProxyVideoProducer_getRotation, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_setRotation", _wrap_ProxyVideoProducer_setRotation, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_getMirror", _wrap_ProxyVideoProducer_getMirror, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_setMirror", _wrap_ProxyVideoProducer_setMirror, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_setActualCameraOutputSize", _wrap_ProxyVideoProducer_setActualCameraOutputSize, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_push", _wrap_ProxyVideoProducer_push, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_setCallback", _wrap_ProxyVideoProducer_setCallback, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_getMediaSessionId", _wrap_ProxyVideoProducer_getMediaSessionId, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_registerPlugin", _wrap_ProxyVideoProducer_registerPlugin, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_setDefaultChroma", _wrap_ProxyVideoProducer_setDefaultChroma, METH_VARARGS, NULL}, + { (char *)"ProxyVideoProducer_swigregister", ProxyVideoProducer_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipCallback", _wrap_new_SipCallback, METH_VARARGS, NULL}, + { (char *)"delete_SipCallback", _wrap_delete_SipCallback, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnDialogEvent", _wrap_SipCallback_OnDialogEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnStackEvent", _wrap_SipCallback_OnStackEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnInviteEvent", _wrap_SipCallback_OnInviteEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnMessagingEvent", _wrap_SipCallback_OnMessagingEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnInfoEvent", _wrap_SipCallback_OnInfoEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnOptionsEvent", _wrap_SipCallback_OnOptionsEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnPublicationEvent", _wrap_SipCallback_OnPublicationEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnRegistrationEvent", _wrap_SipCallback_OnRegistrationEvent, METH_VARARGS, NULL}, + { (char *)"SipCallback_OnSubscriptionEvent", _wrap_SipCallback_OnSubscriptionEvent, METH_VARARGS, NULL}, + { (char *)"disown_SipCallback", _wrap_disown_SipCallback, METH_VARARGS, NULL}, + { (char *)"SipCallback_swigregister", SipCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SafeObject", _wrap_new_SafeObject, METH_VARARGS, NULL}, + { (char *)"delete_SafeObject", _wrap_delete_SafeObject, METH_VARARGS, NULL}, + { (char *)"SafeObject_Lock", _wrap_SafeObject_Lock, METH_VARARGS, NULL}, + { (char *)"SafeObject_UnLock", _wrap_SafeObject_UnLock, METH_VARARGS, NULL}, + { (char *)"SafeObject_swigregister", SafeObject_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SipStack", _wrap_new_SipStack, METH_VARARGS, NULL}, + { (char *)"delete_SipStack", _wrap_delete_SipStack, METH_VARARGS, NULL}, + { (char *)"SipStack_start", _wrap_SipStack_start, METH_VARARGS, NULL}, + { (char *)"SipStack_setDebugCallback", _wrap_SipStack_setDebugCallback, METH_VARARGS, NULL}, + { (char *)"SipStack_setDisplayName", _wrap_SipStack_setDisplayName, METH_VARARGS, NULL}, + { (char *)"SipStack_setRealm", _wrap_SipStack_setRealm, METH_VARARGS, NULL}, + { (char *)"SipStack_setIMPI", _wrap_SipStack_setIMPI, METH_VARARGS, NULL}, + { (char *)"SipStack_setIMPU", _wrap_SipStack_setIMPU, METH_VARARGS, NULL}, + { (char *)"SipStack_setPassword", _wrap_SipStack_setPassword, METH_VARARGS, NULL}, + { (char *)"SipStack_setAMF", _wrap_SipStack_setAMF, METH_VARARGS, NULL}, + { (char *)"SipStack_setOperatorId", _wrap_SipStack_setOperatorId, METH_VARARGS, NULL}, + { (char *)"SipStack_setProxyCSCF", _wrap_SipStack_setProxyCSCF, METH_VARARGS, NULL}, + { (char *)"SipStack_setLocalIP", _wrap_SipStack_setLocalIP, METH_VARARGS, NULL}, + { (char *)"SipStack_setLocalPort", _wrap_SipStack_setLocalPort, METH_VARARGS, NULL}, + { (char *)"SipStack_setEarlyIMS", _wrap_SipStack_setEarlyIMS, METH_VARARGS, NULL}, + { (char *)"SipStack_addHeader", _wrap_SipStack_addHeader, METH_VARARGS, NULL}, + { (char *)"SipStack_removeHeader", _wrap_SipStack_removeHeader, METH_VARARGS, NULL}, + { (char *)"SipStack_addDnsServer", _wrap_SipStack_addDnsServer, METH_VARARGS, NULL}, + { (char *)"SipStack_setDnsDiscovery", _wrap_SipStack_setDnsDiscovery, METH_VARARGS, NULL}, + { (char *)"SipStack_setAoR", _wrap_SipStack_setAoR, METH_VARARGS, NULL}, + { (char *)"SipStack_setSigCompParams", _wrap_SipStack_setSigCompParams, METH_VARARGS, NULL}, + { (char *)"SipStack_addSigCompCompartment", _wrap_SipStack_addSigCompCompartment, METH_VARARGS, NULL}, + { (char *)"SipStack_removeSigCompCompartment", _wrap_SipStack_removeSigCompCompartment, METH_VARARGS, NULL}, + { (char *)"SipStack_setSTUNEnabledForICE", _wrap_SipStack_setSTUNEnabledForICE, METH_VARARGS, NULL}, + { (char *)"SipStack_setSTUNServer", _wrap_SipStack_setSTUNServer, METH_VARARGS, NULL}, + { (char *)"SipStack_setSTUNCred", _wrap_SipStack_setSTUNCred, METH_VARARGS, NULL}, + { (char *)"SipStack_setSTUNEnabled", _wrap_SipStack_setSTUNEnabled, METH_VARARGS, NULL}, + { (char *)"SipStack_setTLSSecAgree", _wrap_SipStack_setTLSSecAgree, METH_VARARGS, NULL}, + { (char *)"SipStack_setSSLCertificates", _wrap_SipStack_setSSLCertificates, METH_VARARGS, NULL}, + { (char *)"SipStack_setSSLCretificates", _wrap_SipStack_setSSLCretificates, METH_VARARGS, NULL}, + { (char *)"SipStack_setIPSecSecAgree", _wrap_SipStack_setIPSecSecAgree, METH_VARARGS, NULL}, + { (char *)"SipStack_setIPSecParameters", _wrap_SipStack_setIPSecParameters, METH_VARARGS, NULL}, + { (char *)"SipStack_dnsENUM", _wrap_SipStack_dnsENUM, METH_VARARGS, NULL}, + { (char *)"SipStack_dnsNaptrSrv", _wrap_SipStack_dnsNaptrSrv, METH_VARARGS, NULL}, + { (char *)"SipStack_dnsSrv", _wrap_SipStack_dnsSrv, METH_VARARGS, NULL}, + { (char *)"SipStack_setMaxFDs", _wrap_SipStack_setMaxFDs, METH_VARARGS, NULL}, + { (char *)"SipStack_getLocalIPnPort", _wrap_SipStack_getLocalIPnPort, METH_VARARGS, NULL}, + { (char *)"SipStack_getPreferredIdentity", _wrap_SipStack_getPreferredIdentity, METH_VARARGS, NULL}, + { (char *)"SipStack_isValid", _wrap_SipStack_isValid, METH_VARARGS, NULL}, + { (char *)"SipStack_stop", _wrap_SipStack_stop, METH_VARARGS, NULL}, + { (char *)"SipStack_initialize", _wrap_SipStack_initialize, METH_VARARGS, NULL}, + { (char *)"SipStack_deInitialize", _wrap_SipStack_deInitialize, METH_VARARGS, NULL}, + { (char *)"SipStack_setCodecs", _wrap_SipStack_setCodecs, METH_VARARGS, NULL}, + { (char *)"SipStack_setCodecs_2", _wrap_SipStack_setCodecs_2, METH_VARARGS, NULL}, + { (char *)"SipStack_setCodecPriority", _wrap_SipStack_setCodecPriority, METH_VARARGS, NULL}, + { (char *)"SipStack_setCodecPriority_2", _wrap_SipStack_setCodecPriority_2, METH_VARARGS, NULL}, + { (char *)"SipStack_isCodecSupported", _wrap_SipStack_isCodecSupported, METH_VARARGS, NULL}, + { (char *)"SipStack_isIPSecSupported", _wrap_SipStack_isIPSecSupported, METH_VARARGS, NULL}, + { (char *)"SipStack_swigregister", SipStack_swigregister, METH_VARARGS, NULL}, + { (char *)"new_XcapSelector", _wrap_new_XcapSelector, METH_VARARGS, NULL}, + { (char *)"delete_XcapSelector", _wrap_delete_XcapSelector, METH_VARARGS, NULL}, + { (char *)"XcapSelector_setAUID", _wrap_XcapSelector_setAUID, METH_VARARGS, NULL}, + { (char *)"XcapSelector_setName", _wrap_XcapSelector_setName, METH_VARARGS, NULL}, + { (char *)"XcapSelector_setAttribute", _wrap_XcapSelector_setAttribute, METH_VARARGS, NULL}, + { (char *)"XcapSelector_setPos", _wrap_XcapSelector_setPos, METH_VARARGS, NULL}, + { (char *)"XcapSelector_setPosAttribute", _wrap_XcapSelector_setPosAttribute, METH_VARARGS, NULL}, + { (char *)"XcapSelector_setNamespace", _wrap_XcapSelector_setNamespace, METH_VARARGS, NULL}, + { (char *)"XcapSelector_getString", _wrap_XcapSelector_getString, METH_VARARGS, NULL}, + { (char *)"XcapSelector_reset", _wrap_XcapSelector_reset, METH_VARARGS, NULL}, + { (char *)"XcapSelector_swigregister", XcapSelector_swigregister, METH_VARARGS, NULL}, + { (char *)"new_XcapMessage", _wrap_new_XcapMessage, METH_VARARGS, NULL}, + { (char *)"delete_XcapMessage", _wrap_delete_XcapMessage, METH_VARARGS, NULL}, + { (char *)"XcapMessage_getCode", _wrap_XcapMessage_getCode, METH_VARARGS, NULL}, + { (char *)"XcapMessage_getPhrase", _wrap_XcapMessage_getPhrase, METH_VARARGS, NULL}, + { (char *)"XcapMessage_getXcapHeaderValue", _wrap_XcapMessage_getXcapHeaderValue, METH_VARARGS, NULL}, + { (char *)"XcapMessage_getXcapHeaderParamValue", _wrap_XcapMessage_getXcapHeaderParamValue, METH_VARARGS, NULL}, + { (char *)"XcapMessage_getXcapContentLength", _wrap_XcapMessage_getXcapContentLength, METH_VARARGS, NULL}, + { (char *)"XcapMessage_getXcapContent", _wrap_XcapMessage_getXcapContent, METH_VARARGS, NULL}, + { (char *)"XcapMessage_swigregister", XcapMessage_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_XcapEvent", _wrap_delete_XcapEvent, METH_VARARGS, NULL}, + { (char *)"XcapEvent_getType", _wrap_XcapEvent_getType, METH_VARARGS, NULL}, + { (char *)"XcapEvent_getXcapMessage", _wrap_XcapEvent_getXcapMessage, METH_VARARGS, NULL}, + { (char *)"XcapEvent_swigregister", XcapEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"new_XcapCallback", _wrap_new_XcapCallback, METH_VARARGS, NULL}, + { (char *)"delete_XcapCallback", _wrap_delete_XcapCallback, METH_VARARGS, NULL}, + { (char *)"XcapCallback_onEvent", _wrap_XcapCallback_onEvent, METH_VARARGS, NULL}, + { (char *)"disown_XcapCallback", _wrap_disown_XcapCallback, METH_VARARGS, NULL}, + { (char *)"XcapCallback_swigregister", XcapCallback_swigregister, METH_VARARGS, NULL}, + { (char *)"new_XcapStack", _wrap_new_XcapStack, METH_VARARGS, NULL}, + { (char *)"delete_XcapStack", _wrap_delete_XcapStack, METH_VARARGS, NULL}, + { (char *)"XcapStack_registerAUID", _wrap_XcapStack_registerAUID, METH_VARARGS, NULL}, + { (char *)"XcapStack_start", _wrap_XcapStack_start, METH_VARARGS, NULL}, + { (char *)"XcapStack_setCredentials", _wrap_XcapStack_setCredentials, METH_VARARGS, NULL}, + { (char *)"XcapStack_setXcapRoot", _wrap_XcapStack_setXcapRoot, METH_VARARGS, NULL}, + { (char *)"XcapStack_setLocalIP", _wrap_XcapStack_setLocalIP, METH_VARARGS, NULL}, + { (char *)"XcapStack_setLocalPort", _wrap_XcapStack_setLocalPort, METH_VARARGS, NULL}, + { (char *)"XcapStack_addHeader", _wrap_XcapStack_addHeader, METH_VARARGS, NULL}, + { (char *)"XcapStack_removeHeader", _wrap_XcapStack_removeHeader, METH_VARARGS, NULL}, + { (char *)"XcapStack_setTimeout", _wrap_XcapStack_setTimeout, METH_VARARGS, NULL}, + { (char *)"XcapStack_getDocument", _wrap_XcapStack_getDocument, METH_VARARGS, NULL}, + { (char *)"XcapStack_getElement", _wrap_XcapStack_getElement, METH_VARARGS, NULL}, + { (char *)"XcapStack_getAttribute", _wrap_XcapStack_getAttribute, METH_VARARGS, NULL}, + { (char *)"XcapStack_deleteDocument", _wrap_XcapStack_deleteDocument, METH_VARARGS, NULL}, + { (char *)"XcapStack_deleteElement", _wrap_XcapStack_deleteElement, METH_VARARGS, NULL}, + { (char *)"XcapStack_deleteAttribute", _wrap_XcapStack_deleteAttribute, METH_VARARGS, NULL}, + { (char *)"XcapStack_putDocument", _wrap_XcapStack_putDocument, METH_VARARGS, NULL}, + { (char *)"XcapStack_putElement", _wrap_XcapStack_putElement, METH_VARARGS, NULL}, + { (char *)"XcapStack_putAttribute", _wrap_XcapStack_putAttribute, METH_VARARGS, NULL}, + { (char *)"XcapStack_stop", _wrap_XcapStack_stop, METH_VARARGS, NULL}, + { (char *)"XcapStack_swigregister", XcapStack_swigregister, METH_VARARGS, NULL}, + { (char *)"new_RPMessage", _wrap_new_RPMessage, METH_VARARGS, NULL}, + { (char *)"delete_RPMessage", _wrap_delete_RPMessage, METH_VARARGS, NULL}, + { (char *)"RPMessage_getType", _wrap_RPMessage_getType, METH_VARARGS, NULL}, + { (char *)"RPMessage_getPayloadLength", _wrap_RPMessage_getPayloadLength, METH_VARARGS, NULL}, + { (char *)"RPMessage_getPayload", _wrap_RPMessage_getPayload, METH_VARARGS, NULL}, + { (char *)"RPMessage_swigregister", RPMessage_swigregister, METH_VARARGS, NULL}, + { (char *)"new_SMSData", _wrap_new_SMSData, METH_VARARGS, NULL}, + { (char *)"delete_SMSData", _wrap_delete_SMSData, METH_VARARGS, NULL}, + { (char *)"SMSData_getType", _wrap_SMSData_getType, METH_VARARGS, NULL}, + { (char *)"SMSData_getMR", _wrap_SMSData_getMR, METH_VARARGS, NULL}, + { (char *)"SMSData_getPayloadLength", _wrap_SMSData_getPayloadLength, METH_VARARGS, NULL}, + { (char *)"SMSData_getPayload", _wrap_SMSData_getPayload, METH_VARARGS, NULL}, + { (char *)"SMSData_getOA", _wrap_SMSData_getOA, METH_VARARGS, NULL}, + { (char *)"SMSData_getDA", _wrap_SMSData_getDA, METH_VARARGS, NULL}, + { (char *)"SMSData_swigregister", SMSData_swigregister, METH_VARARGS, NULL}, + { (char *)"SMSEncoder_encodeSubmit", _wrap_SMSEncoder_encodeSubmit, METH_VARARGS, NULL}, + { (char *)"SMSEncoder_encodeDeliver", _wrap_SMSEncoder_encodeDeliver, METH_VARARGS, NULL}, + { (char *)"SMSEncoder_encodeACK", _wrap_SMSEncoder_encodeACK, METH_VARARGS, NULL}, + { (char *)"SMSEncoder_encodeError", _wrap_SMSEncoder_encodeError, METH_VARARGS, NULL}, + { (char *)"SMSEncoder_decode", _wrap_SMSEncoder_decode, METH_VARARGS, NULL}, + { (char *)"delete_SMSEncoder", _wrap_delete_SMSEncoder, METH_VARARGS, NULL}, + { (char *)"SMSEncoder_swigregister", SMSEncoder_swigregister, METH_VARARGS, NULL}, + { (char *)"new_MsrpMessage", _wrap_new_MsrpMessage, METH_VARARGS, NULL}, + { (char *)"delete_MsrpMessage", _wrap_delete_MsrpMessage, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_isRequest", _wrap_MsrpMessage_isRequest, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getCode", _wrap_MsrpMessage_getCode, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getPhrase", _wrap_MsrpMessage_getPhrase, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getRequestType", _wrap_MsrpMessage_getRequestType, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getByteRange", _wrap_MsrpMessage_getByteRange, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_isLastChunck", _wrap_MsrpMessage_isLastChunck, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_isFirstChunck", _wrap_MsrpMessage_isFirstChunck, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_isSuccessReport", _wrap_MsrpMessage_isSuccessReport, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getMsrpHeaderValue", _wrap_MsrpMessage_getMsrpHeaderValue, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getMsrpHeaderParamValue", _wrap_MsrpMessage_getMsrpHeaderParamValue, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getMsrpContentLength", _wrap_MsrpMessage_getMsrpContentLength, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_getMsrpContent", _wrap_MsrpMessage_getMsrpContent, METH_VARARGS, NULL}, + { (char *)"MsrpMessage_swigregister", MsrpMessage_swigregister, METH_VARARGS, NULL}, + { (char *)"delete_MsrpEvent", _wrap_delete_MsrpEvent, METH_VARARGS, NULL}, + { (char *)"MsrpEvent_getType", _wrap_MsrpEvent_getType, METH_VARARGS, NULL}, + { (char *)"MsrpEvent_getSipSession", _wrap_MsrpEvent_getSipSession, METH_VARARGS, NULL}, + { (char *)"MsrpEvent_getMessage", _wrap_MsrpEvent_getMessage, METH_VARARGS, NULL}, + { (char *)"MsrpEvent_swigregister", MsrpEvent_swigregister, METH_VARARGS, NULL}, + { (char *)"new_MsrpCallback", _wrap_new_MsrpCallback, METH_VARARGS, NULL}, + { (char *)"delete_MsrpCallback", _wrap_delete_MsrpCallback, METH_VARARGS, NULL}, + { (char *)"MsrpCallback_OnEvent", _wrap_MsrpCallback_OnEvent, METH_VARARGS, NULL}, + { (char *)"disown_MsrpCallback", _wrap_disown_MsrpCallback, METH_VARARGS, NULL}, + { (char *)"MsrpCallback_swigregister", MsrpCallback_swigregister, METH_VARARGS, NULL}, + { NULL, NULL, 0, NULL } +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static void *_p_ProxyAudioConsumerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyAudioConsumer *) x)); +} +static void *_p_ProxyVideoConsumerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyVideoConsumer *) x)); +} +static void *_p_ProxyAudioProducerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyAudioProducer *) x)); +} +static void *_p_ProxyVideoProducerTo_p_ProxyPlugin(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((ProxyPlugin *) ((ProxyVideoProducer *) x)); +} +static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SafeObject *) ((SipStack *) x)); +} +static void *_p_MediaContentCPIMTo_p_MediaContent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((MediaContent *) ((MediaContentCPIM *) x)); +} +static void *_p_CallSessionTo_p_InviteSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((InviteSession *) ((CallSession *) x)); +} +static void *_p_MsrpSessionTo_p_InviteSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((InviteSession *) ((MsrpSession *) x)); +} +static void *_p_InviteSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((InviteSession *) x)); +} +static void *_p_CallSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) (InviteSession *) ((CallSession *) x)); +} +static void *_p_MsrpSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) (InviteSession *) ((MsrpSession *) x)); +} +static void *_p_MessagingSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((MessagingSession *) x)); +} +static void *_p_InfoSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((InfoSession *) x)); +} +static void *_p_OptionsSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((OptionsSession *) x)); +} +static void *_p_PublicationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((PublicationSession *) x)); +} +static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((RegistrationSession *) x)); +} +static void *_p_SubscriptionSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((SubscriptionSession *) x)); +} +static void *_p_InfoEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((InfoEvent *) x)); +} +static void *_p_InviteEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((InviteEvent *) x)); +} +static void *_p_OptionsEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((OptionsEvent *) x)); +} +static void *_p_DialogEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((DialogEvent *) x)); +} +static void *_p_PublicationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((PublicationEvent *) x)); +} +static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((RegistrationEvent *) x)); +} +static void *_p_SubscriptionEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((SubscriptionEvent *) x)); +} +static void *_p_StackEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((StackEvent *) x)); +} +static void *_p_MessagingEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((MessagingEvent *) x)); +} +static swig_type_info _swigt__p_ActionConfig = {"_p_ActionConfig", "ActionConfig *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_AudioResampler = {"_p_AudioResampler", "AudioResampler *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CallSession = {"_p_CallSession", "CallSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_Codec = {"_p_Codec", "Codec *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_DDebugCallback = {"_p_DDebugCallback", "DDebugCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_DialogEvent = {"_p_DialogEvent", "DialogEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_InfoEvent = {"_p_InfoEvent", "InfoEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_InfoSession = {"_p_InfoSession", "InfoSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_InviteEvent = {"_p_InviteEvent", "InviteEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_InviteSession = {"_p_InviteSession", "InviteSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MediaContent = {"_p_MediaContent", "MediaContent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MediaContentCPIM = {"_p_MediaContentCPIM", "MediaContentCPIM *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MediaSessionMgr = {"_p_MediaSessionMgr", "MediaSessionMgr *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MessagingEvent = {"_p_MessagingEvent", "MessagingEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MessagingSession = {"_p_MessagingSession", "MessagingSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MsrpCallback = {"_p_MsrpCallback", "MsrpCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MsrpEvent = {"_p_MsrpEvent", "MsrpEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MsrpMessage = {"_p_MsrpMessage", "MsrpMessage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_MsrpSession = {"_p_MsrpSession", "MsrpSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_OptionsEvent = {"_p_OptionsEvent", "OptionsEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_OptionsSession = {"_p_OptionsSession", "OptionsSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyAudioConsumer = {"_p_ProxyAudioConsumer", "ProxyAudioConsumer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyAudioConsumerCallback = {"_p_ProxyAudioConsumerCallback", "ProxyAudioConsumerCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyAudioProducer = {"_p_ProxyAudioProducer", "ProxyAudioProducer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyAudioProducerCallback = {"_p_ProxyAudioProducerCallback", "ProxyAudioProducerCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyPlugin = {"_p_ProxyPlugin", "ProxyPlugin *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyPluginMgr = {"_p_ProxyPluginMgr", "ProxyPluginMgr *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyPluginMgrCallback = {"_p_ProxyPluginMgrCallback", "ProxyPluginMgrCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyVideoConsumer = {"_p_ProxyVideoConsumer", "ProxyVideoConsumer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyVideoConsumerCallback = {"_p_ProxyVideoConsumerCallback", "ProxyVideoConsumerCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyVideoFrame = {"_p_ProxyVideoFrame", "ProxyVideoFrame *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyVideoProducer = {"_p_ProxyVideoProducer", "ProxyVideoProducer *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_ProxyVideoProducerCallback = {"_p_ProxyVideoProducerCallback", "ProxyVideoProducerCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_PublicationEvent = {"_p_PublicationEvent", "PublicationEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_PublicationSession = {"_p_PublicationSession", "PublicationSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_RPMessage = {"_p_RPMessage", "RPMessage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SMSData = {"_p_SMSData", "SMSData *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SMSEncoder = {"_p_SMSEncoder", "SMSEncoder *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SdpMessage = {"_p_SdpMessage", "SdpMessage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipMessage = {"_p_SipMessage", "SipMessage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipUri = {"_p_SipUri", "SipUri *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_StackEvent = {"_p_StackEvent", "StackEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SubscriptionEvent = {"_p_SubscriptionEvent", "SubscriptionEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SubscriptionSession = {"_p_SubscriptionSession", "SubscriptionSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_T140Callback = {"_p_T140Callback", "T140Callback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_T140CallbackData = {"_p_T140CallbackData", "T140CallbackData *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_XcapCallback = {"_p_XcapCallback", "XcapCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_XcapEvent = {"_p_XcapEvent", "XcapEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_XcapMessage = {"_p_XcapMessage", "XcapMessage *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_XcapSelector = {"_p_XcapSelector", "XcapSelector *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_XcapStack = {"_p_XcapStack", "XcapStack *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_short = {"_p_short", "short *|int_least16_t *|int16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int_least8_t *|int_fast8_t *|int8_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tdav_codec_id_e = {"_p_tdav_codec_id_e", "enum tdav_codec_id_e *|tdav_codec_id_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_thttp_event_type_e = {"_p_thttp_event_type_e", "enum thttp_event_type_e *|thttp_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_bandwidth_level_e = {"_p_tmedia_bandwidth_level_e", "enum tmedia_bandwidth_level_e *|tmedia_bandwidth_level_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_chroma_e = {"_p_tmedia_chroma_e", "tmedia_chroma_t *|enum tmedia_chroma_e *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_codec_id_e = {"_p_tmedia_codec_id_e", "enum tmedia_codec_id_e *|tmedia_codec_id_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_mode_e = {"_p_tmedia_mode_e", "enum tmedia_mode_e *|tmedia_mode_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_pref_video_size_s = {"_p_tmedia_pref_video_size_s", "tmedia_pref_video_size_t *|enum tmedia_pref_video_size_s *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_profile_e = {"_p_tmedia_profile_e", "tmedia_profile_t *|enum tmedia_profile_e *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_qos_strength_e = {"_p_tmedia_qos_strength_e", "tmedia_qos_strength_t *|enum tmedia_qos_strength_e *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_qos_stype_e = {"_p_tmedia_qos_stype_e", "enum tmedia_qos_stype_e *|tmedia_qos_stype_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_srtp_mode_e = {"_p_tmedia_srtp_mode_e", "enum tmedia_srtp_mode_e *|tmedia_srtp_mode_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_srtp_type_e = {"_p_tmedia_srtp_type_e", "enum tmedia_srtp_type_e *|tmedia_srtp_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmedia_t140_data_type_e = {"_p_tmedia_t140_data_type_e", "enum tmedia_t140_data_type_e *|tmedia_t140_data_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmsrp_event_type_e = {"_p_tmsrp_event_type_e", "enum tmsrp_event_type_e *|tmsrp_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tmsrp_request_type_e = {"_p_tmsrp_request_type_e", "enum tmsrp_request_type_e *|tmsrp_request_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_info_event_type_e = {"_p_tsip_info_event_type_e", "enum tsip_info_event_type_e *|tsip_info_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_invite_event_type_e = {"_p_tsip_invite_event_type_e", "enum tsip_invite_event_type_e *|tsip_invite_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_message_event_type_e = {"_p_tsip_message_event_type_e", "enum tsip_message_event_type_e *|tsip_message_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_options_event_type_e = {"_p_tsip_options_event_type_e", "enum tsip_options_event_type_e *|tsip_options_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_publish_event_type_e = {"_p_tsip_publish_event_type_e", "enum tsip_publish_event_type_e *|tsip_publish_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_request_type_e = {"_p_tsip_request_type_e", "enum tsip_request_type_e *|tsip_request_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_stack_mode_e = {"_p_tsip_stack_mode_e", "enum tsip_stack_mode_e *|tsip_stack_mode_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_subscribe_event_type_e = {"_p_tsip_subscribe_event_type_e", "enum tsip_subscribe_event_type_e *|tsip_subscribe_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsk_list_t = {"_p_tsk_list_t", "twrap_xcap_steps_L_t *|twrap_proxy_plungins_L_t *|tsk_list_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_media_type_e = {"_p_twrap_media_type_e", "enum twrap_media_type_e *|twrap_media_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_proxy_plugin_type_e = {"_p_twrap_proxy_plugin_type_e", "enum twrap_proxy_plugin_type_e *|twrap_proxy_plugin_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_rpmessage_type_e = {"_p_twrap_rpmessage_type_e", "enum twrap_rpmessage_type_e *|twrap_rpmessage_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_twrap_sms_type_e = {"_p_twrap_sms_type_e", "enum twrap_sms_type_e *|twrap_sms_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint_least8_t *|uint_fast8_t *|uint8_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|uint_fast16_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_ActionConfig, + &_swigt__p_AudioResampler, + &_swigt__p_CallSession, + &_swigt__p_Codec, + &_swigt__p_DDebugCallback, + &_swigt__p_DialogEvent, + &_swigt__p_InfoEvent, + &_swigt__p_InfoSession, + &_swigt__p_InviteEvent, + &_swigt__p_InviteSession, + &_swigt__p_MediaContent, + &_swigt__p_MediaContentCPIM, + &_swigt__p_MediaSessionMgr, + &_swigt__p_MessagingEvent, + &_swigt__p_MessagingSession, + &_swigt__p_MsrpCallback, + &_swigt__p_MsrpEvent, + &_swigt__p_MsrpMessage, + &_swigt__p_MsrpSession, + &_swigt__p_OptionsEvent, + &_swigt__p_OptionsSession, + &_swigt__p_ProxyAudioConsumer, + &_swigt__p_ProxyAudioConsumerCallback, + &_swigt__p_ProxyAudioProducer, + &_swigt__p_ProxyAudioProducerCallback, + &_swigt__p_ProxyPlugin, + &_swigt__p_ProxyPluginMgr, + &_swigt__p_ProxyPluginMgrCallback, + &_swigt__p_ProxyVideoConsumer, + &_swigt__p_ProxyVideoConsumerCallback, + &_swigt__p_ProxyVideoFrame, + &_swigt__p_ProxyVideoProducer, + &_swigt__p_ProxyVideoProducerCallback, + &_swigt__p_PublicationEvent, + &_swigt__p_PublicationSession, + &_swigt__p_RPMessage, + &_swigt__p_RegistrationEvent, + &_swigt__p_RegistrationSession, + &_swigt__p_SMSData, + &_swigt__p_SMSEncoder, + &_swigt__p_SafeObject, + &_swigt__p_SdpMessage, + &_swigt__p_SipCallback, + &_swigt__p_SipEvent, + &_swigt__p_SipMessage, + &_swigt__p_SipSession, + &_swigt__p_SipStack, + &_swigt__p_SipUri, + &_swigt__p_StackEvent, + &_swigt__p_SubscriptionEvent, + &_swigt__p_SubscriptionSession, + &_swigt__p_T140Callback, + &_swigt__p_T140CallbackData, + &_swigt__p_XcapCallback, + &_swigt__p_XcapEvent, + &_swigt__p_XcapMessage, + &_swigt__p_XcapSelector, + &_swigt__p_XcapStack, + &_swigt__p_char, + &_swigt__p_int, + &_swigt__p_long_long, + &_swigt__p_short, + &_swigt__p_signed_char, + &_swigt__p_tdav_codec_id_e, + &_swigt__p_thttp_event_type_e, + &_swigt__p_tmedia_bandwidth_level_e, + &_swigt__p_tmedia_chroma_e, + &_swigt__p_tmedia_codec_id_e, + &_swigt__p_tmedia_mode_e, + &_swigt__p_tmedia_pref_video_size_s, + &_swigt__p_tmedia_profile_e, + &_swigt__p_tmedia_qos_strength_e, + &_swigt__p_tmedia_qos_stype_e, + &_swigt__p_tmedia_srtp_mode_e, + &_swigt__p_tmedia_srtp_type_e, + &_swigt__p_tmedia_t140_data_type_e, + &_swigt__p_tmsrp_event_type_e, + &_swigt__p_tmsrp_request_type_e, + &_swigt__p_tsip_event_type_e, + &_swigt__p_tsip_info_event_type_e, + &_swigt__p_tsip_invite_event_type_e, + &_swigt__p_tsip_message_event_type_e, + &_swigt__p_tsip_options_event_type_e, + &_swigt__p_tsip_publish_event_type_e, + &_swigt__p_tsip_register_event_type_e, + &_swigt__p_tsip_request_type_e, + &_swigt__p_tsip_stack_mode_e, + &_swigt__p_tsip_subscribe_event_type_e, + &_swigt__p_tsk_list_t, + &_swigt__p_twrap_media_type_e, + &_swigt__p_twrap_proxy_plugin_type_e, + &_swigt__p_twrap_rpmessage_type_e, + &_swigt__p_twrap_sms_type_e, + &_swigt__p_unsigned_char, + &_swigt__p_unsigned_int, + &_swigt__p_unsigned_long_long, + &_swigt__p_unsigned_short, +}; + +static swig_cast_info _swigc__p_ActionConfig[] = { {&_swigt__p_ActionConfig, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_AudioResampler[] = { {&_swigt__p_AudioResampler, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CallSession[] = { {&_swigt__p_CallSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_Codec[] = { {&_swigt__p_Codec, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_DDebugCallback[] = { {&_swigt__p_DDebugCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_DialogEvent[] = { {&_swigt__p_DialogEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InfoEvent[] = { {&_swigt__p_InfoEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InfoSession[] = { {&_swigt__p_InfoSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InviteEvent[] = { {&_swigt__p_InviteEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_InviteSession[] = { {&_swigt__p_InviteSession, 0, 0, 0}, {&_swigt__p_CallSession, _p_CallSessionTo_p_InviteSession, 0, 0}, {&_swigt__p_MsrpSession, _p_MsrpSessionTo_p_InviteSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MediaContent[] = { {&_swigt__p_MediaContent, 0, 0, 0}, {&_swigt__p_MediaContentCPIM, _p_MediaContentCPIMTo_p_MediaContent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MediaContentCPIM[] = { {&_swigt__p_MediaContentCPIM, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MediaSessionMgr[] = { {&_swigt__p_MediaSessionMgr, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MessagingEvent[] = { {&_swigt__p_MessagingEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MessagingSession[] = { {&_swigt__p_MessagingSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpCallback[] = { {&_swigt__p_MsrpCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpEvent[] = { {&_swigt__p_MsrpEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpMessage[] = { {&_swigt__p_MsrpMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_MsrpSession[] = { {&_swigt__p_MsrpSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_OptionsEvent[] = { {&_swigt__p_OptionsEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_OptionsSession[] = { {&_swigt__p_OptionsSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioConsumer[] = { {&_swigt__p_ProxyAudioConsumer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioConsumerCallback[] = { {&_swigt__p_ProxyAudioConsumerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioProducer[] = { {&_swigt__p_ProxyAudioProducer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyAudioProducerCallback[] = { {&_swigt__p_ProxyAudioProducerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyPlugin[] = { {&_swigt__p_ProxyPlugin, 0, 0, 0}, {&_swigt__p_ProxyAudioConsumer, _p_ProxyAudioConsumerTo_p_ProxyPlugin, 0, 0}, {&_swigt__p_ProxyVideoConsumer, _p_ProxyVideoConsumerTo_p_ProxyPlugin, 0, 0}, {&_swigt__p_ProxyAudioProducer, _p_ProxyAudioProducerTo_p_ProxyPlugin, 0, 0}, {&_swigt__p_ProxyVideoProducer, _p_ProxyVideoProducerTo_p_ProxyPlugin, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyPluginMgr[] = { {&_swigt__p_ProxyPluginMgr, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyPluginMgrCallback[] = { {&_swigt__p_ProxyPluginMgrCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoConsumer[] = { {&_swigt__p_ProxyVideoConsumer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoConsumerCallback[] = { {&_swigt__p_ProxyVideoConsumerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoFrame[] = { {&_swigt__p_ProxyVideoFrame, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoProducer[] = { {&_swigt__p_ProxyVideoProducer, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_ProxyVideoProducerCallback[] = { {&_swigt__p_ProxyVideoProducerCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_PublicationEvent[] = { {&_swigt__p_PublicationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_PublicationSession[] = { {&_swigt__p_PublicationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RPMessage[] = { {&_swigt__p_RPMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SMSData[] = { {&_swigt__p_SMSData, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SMSEncoder[] = { {&_swigt__p_SMSEncoder, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SdpMessage[] = { {&_swigt__p_SdpMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_InfoEvent, _p_InfoEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_InviteEvent, _p_InviteEventTo_p_SipEvent, 0, 0}, {&_swigt__p_OptionsEvent, _p_OptionsEventTo_p_SipEvent, 0, 0}, {&_swigt__p_DialogEvent, _p_DialogEventTo_p_SipEvent, 0, 0}, {&_swigt__p_PublicationEvent, _p_PublicationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0}, {&_swigt__p_SubscriptionEvent, _p_SubscriptionEventTo_p_SipEvent, 0, 0}, {&_swigt__p_StackEvent, _p_StackEventTo_p_SipEvent, 0, 0}, {&_swigt__p_MessagingEvent, _p_MessagingEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipMessage[] = { {&_swigt__p_SipMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_InviteSession, _p_InviteSessionTo_p_SipSession, 0, 0}, {&_swigt__p_CallSession, _p_CallSessionTo_p_SipSession, 0, 0}, {&_swigt__p_MsrpSession, _p_MsrpSessionTo_p_SipSession, 0, 0}, {&_swigt__p_MessagingSession, _p_MessagingSessionTo_p_SipSession, 0, 0}, {&_swigt__p_InfoSession, _p_InfoSessionTo_p_SipSession, 0, 0}, {&_swigt__p_OptionsSession, _p_OptionsSessionTo_p_SipSession, 0, 0}, {&_swigt__p_PublicationSession, _p_PublicationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0}, {&_swigt__p_SubscriptionSession, _p_SubscriptionSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipUri[] = { {&_swigt__p_SipUri, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_StackEvent[] = { {&_swigt__p_StackEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionEvent[] = { {&_swigt__p_SubscriptionEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SubscriptionSession[] = { {&_swigt__p_SubscriptionSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_T140Callback[] = { {&_swigt__p_T140Callback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_T140CallbackData[] = { {&_swigt__p_T140CallbackData, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapCallback[] = { {&_swigt__p_XcapCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapEvent[] = { {&_swigt__p_XcapEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapMessage[] = { {&_swigt__p_XcapMessage, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapSelector[] = { {&_swigt__p_XcapSelector, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_XcapStack[] = { {&_swigt__p_XcapStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tdav_codec_id_e[] = { {&_swigt__p_tdav_codec_id_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_thttp_event_type_e[] = { {&_swigt__p_thttp_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_bandwidth_level_e[] = { {&_swigt__p_tmedia_bandwidth_level_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_chroma_e[] = { {&_swigt__p_tmedia_chroma_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_codec_id_e[] = { {&_swigt__p_tmedia_codec_id_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_mode_e[] = { {&_swigt__p_tmedia_mode_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_pref_video_size_s[] = { {&_swigt__p_tmedia_pref_video_size_s, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_profile_e[] = { {&_swigt__p_tmedia_profile_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_qos_strength_e[] = { {&_swigt__p_tmedia_qos_strength_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_qos_stype_e[] = { {&_swigt__p_tmedia_qos_stype_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_srtp_mode_e[] = { {&_swigt__p_tmedia_srtp_mode_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_srtp_type_e[] = { {&_swigt__p_tmedia_srtp_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmedia_t140_data_type_e[] = { {&_swigt__p_tmedia_t140_data_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmsrp_event_type_e[] = { {&_swigt__p_tmsrp_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tmsrp_request_type_e[] = { {&_swigt__p_tmsrp_request_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_info_event_type_e[] = { {&_swigt__p_tsip_info_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_invite_event_type_e[] = { {&_swigt__p_tsip_invite_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_message_event_type_e[] = { {&_swigt__p_tsip_message_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_options_event_type_e[] = { {&_swigt__p_tsip_options_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_publish_event_type_e[] = { {&_swigt__p_tsip_publish_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_request_type_e[] = { {&_swigt__p_tsip_request_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_stack_mode_e[] = { {&_swigt__p_tsip_stack_mode_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_subscribe_event_type_e[] = { {&_swigt__p_tsip_subscribe_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsk_list_t[] = { {&_swigt__p_tsk_list_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_media_type_e[] = { {&_swigt__p_twrap_media_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_proxy_plugin_type_e[] = { {&_swigt__p_twrap_proxy_plugin_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_rpmessage_type_e[] = { {&_swigt__p_twrap_rpmessage_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_twrap_sms_type_e[] = { {&_swigt__p_twrap_sms_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_ActionConfig, + _swigc__p_AudioResampler, + _swigc__p_CallSession, + _swigc__p_Codec, + _swigc__p_DDebugCallback, + _swigc__p_DialogEvent, + _swigc__p_InfoEvent, + _swigc__p_InfoSession, + _swigc__p_InviteEvent, + _swigc__p_InviteSession, + _swigc__p_MediaContent, + _swigc__p_MediaContentCPIM, + _swigc__p_MediaSessionMgr, + _swigc__p_MessagingEvent, + _swigc__p_MessagingSession, + _swigc__p_MsrpCallback, + _swigc__p_MsrpEvent, + _swigc__p_MsrpMessage, + _swigc__p_MsrpSession, + _swigc__p_OptionsEvent, + _swigc__p_OptionsSession, + _swigc__p_ProxyAudioConsumer, + _swigc__p_ProxyAudioConsumerCallback, + _swigc__p_ProxyAudioProducer, + _swigc__p_ProxyAudioProducerCallback, + _swigc__p_ProxyPlugin, + _swigc__p_ProxyPluginMgr, + _swigc__p_ProxyPluginMgrCallback, + _swigc__p_ProxyVideoConsumer, + _swigc__p_ProxyVideoConsumerCallback, + _swigc__p_ProxyVideoFrame, + _swigc__p_ProxyVideoProducer, + _swigc__p_ProxyVideoProducerCallback, + _swigc__p_PublicationEvent, + _swigc__p_PublicationSession, + _swigc__p_RPMessage, + _swigc__p_RegistrationEvent, + _swigc__p_RegistrationSession, + _swigc__p_SMSData, + _swigc__p_SMSEncoder, + _swigc__p_SafeObject, + _swigc__p_SdpMessage, + _swigc__p_SipCallback, + _swigc__p_SipEvent, + _swigc__p_SipMessage, + _swigc__p_SipSession, + _swigc__p_SipStack, + _swigc__p_SipUri, + _swigc__p_StackEvent, + _swigc__p_SubscriptionEvent, + _swigc__p_SubscriptionSession, + _swigc__p_T140Callback, + _swigc__p_T140CallbackData, + _swigc__p_XcapCallback, + _swigc__p_XcapEvent, + _swigc__p_XcapMessage, + _swigc__p_XcapSelector, + _swigc__p_XcapStack, + _swigc__p_char, + _swigc__p_int, + _swigc__p_long_long, + _swigc__p_short, + _swigc__p_signed_char, + _swigc__p_tdav_codec_id_e, + _swigc__p_thttp_event_type_e, + _swigc__p_tmedia_bandwidth_level_e, + _swigc__p_tmedia_chroma_e, + _swigc__p_tmedia_codec_id_e, + _swigc__p_tmedia_mode_e, + _swigc__p_tmedia_pref_video_size_s, + _swigc__p_tmedia_profile_e, + _swigc__p_tmedia_qos_strength_e, + _swigc__p_tmedia_qos_stype_e, + _swigc__p_tmedia_srtp_mode_e, + _swigc__p_tmedia_srtp_type_e, + _swigc__p_tmedia_t140_data_type_e, + _swigc__p_tmsrp_event_type_e, + _swigc__p_tmsrp_request_type_e, + _swigc__p_tsip_event_type_e, + _swigc__p_tsip_info_event_type_e, + _swigc__p_tsip_invite_event_type_e, + _swigc__p_tsip_message_event_type_e, + _swigc__p_tsip_options_event_type_e, + _swigc__p_tsip_publish_event_type_e, + _swigc__p_tsip_register_event_type_e, + _swigc__p_tsip_request_type_e, + _swigc__p_tsip_stack_mode_e, + _swigc__p_tsip_subscribe_event_type_e, + _swigc__p_tsk_list_t, + _swigc__p_twrap_media_type_e, + _swigc__p_twrap_proxy_plugin_type_e, + _swigc__p_twrap_rpmessage_type_e, + _swigc__p_twrap_sms_type_e, + _swigc__p_unsigned_char, + _swigc__p_unsigned_int, + _swigc__p_unsigned_long_long, + _swigc__p_unsigned_short, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_const_info swig_const_table[] = { +{0, 0, 0, 0.0, 0, 0}}; + +#ifdef __cplusplus +} +#endif +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" { +#endif + + /* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + + /* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + + typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; + } swig_globalvar; + + typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; + } swig_varlinkobject; + + SWIGINTERN PyObject * + swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_InternFromString(""); +#else + return PyString_FromString(""); +#endif + } + + SWIGINTERN PyObject * + swig_varlink_str(swig_varlinkobject *v) { +#if PY_VERSION_HEX >= 0x03000000 + PyObject *str = PyUnicode_InternFromString("("); + PyObject *tail; + PyObject *joined; + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + tail = PyUnicode_FromString(var->name); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + if (var->next) { + tail = PyUnicode_InternFromString(", "); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + } + } + tail = PyUnicode_InternFromString(")"); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; +#else + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); +#endif + return str; + } + + SWIGINTERN int + swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { + char *tmp; + PyObject *str = swig_varlink_str(v); + fprintf(fp,"Swig global variables "); + fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(str); + return 0; + } + + SWIGINTERN void + swig_varlink_dealloc(swig_varlinkobject *v) { + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } + } + + SWIGINTERN PyObject * + swig_varlink_getattr(swig_varlinkobject *v, char *n) { + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN int + swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN PyTypeObject* + swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(NULL, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"swigvarlink", /* tp_name */ + sizeof(swig_varlinkobject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor) swig_varlink_dealloc, /* tp_dealloc */ + (printfunc) swig_varlink_print, /* tp_print */ + (getattrfunc) swig_varlink_getattr, /* tp_getattr */ + (setattrfunc) swig_varlink_setattr, /* tp_setattr */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc) swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#if PY_VERSION_HEX >= 0x02060000 + 0, /* tp_version */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + varlink_type = tmp; + type_init = 1; +#if PY_VERSION_HEX < 0x02020000 + varlink_type.ob_type = &PyType_Type; +#else + if (PyType_Ready(&varlink_type) < 0) + return NULL; +#endif + } + return &varlink_type; + } + + /* Create a variable linking object for use later */ + SWIGINTERN PyObject * + SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); + } + + SWIGINTERN void + SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + strncpy(gv->name,name,size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; + } + + SWIGINTERN PyObject * + SWIG_globals(void) { + static PyObject *_SWIG_globals = 0; + if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); + return _SWIG_globals; + } + + /* ----------------------------------------------------------------------------- + * constants/methods manipulation + * ----------------------------------------------------------------------------- */ + + /* Install Constants */ + SWIGINTERN void + SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { + PyObject *obj = 0; + size_t i; + for (i = 0; constants[i].type; ++i) { + switch(constants[i].type) { + case SWIG_PY_POINTER: + obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); + break; + case SWIG_PY_BINARY: + obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); + break; + default: + obj = 0; + break; + } + if (obj) { + PyDict_SetItemString(d, constants[i].name, obj); + Py_DECREF(obj); + } + } + } + + /* -----------------------------------------------------------------------------*/ + /* Fix SwigMethods to carry the callback ptrs when needed */ + /* -----------------------------------------------------------------------------*/ + + SWIGINTERN void + SWIG_Python_FixMethods(PyMethodDef *methods, + swig_const_info *const_table, + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { + const char *c = methods[i].ml_doc; + if (c && (c = strstr(c, "swig_ptr: "))) { + int j; + swig_const_info *ci = 0; + const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); + break; + } + } + if (ci) { + void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; + if (ptr) { + size_t shift = (ci->ptype) - types; + swig_type_info *ty = types_initial[shift]; + size_t ldoc = (c - methods[i].ml_doc); + size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; + char *ndoc = (char*)malloc(ldoc + lptr + 10); + if (ndoc) { + char *buff = ndoc; + strncpy(buff, methods[i].ml_doc, ldoc); + buff += ldoc; + strncpy(buff, "swig_ptr: ", 10); + buff += 10; + SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); + methods[i].ml_doc = ndoc; + } + } + } + } + } + } + +#ifdef __cplusplus +} +#endif + +/* -----------------------------------------------------------------------------* + * Partial Init method + * -----------------------------------------------------------------------------*/ + +#ifdef __cplusplus +extern "C" +#endif + +SWIGEXPORT +#if PY_VERSION_HEX >= 0x03000000 +PyObject* +#else +void +#endif +SWIG_init(void) { + PyObject *m, *d, *md; +#if PY_VERSION_HEX >= 0x03000000 + static struct PyModuleDef SWIG_module = { +# if PY_VERSION_HEX >= 0x03020000 + PyModuleDef_HEAD_INIT, +# else + { + PyObject_HEAD_INIT(NULL) + NULL, /* m_init */ + 0, /* m_index */ + NULL, /* m_copy */ + }, +# endif + (char *) SWIG_name, + NULL, + -1, + SwigMethods, + NULL, + NULL, + NULL, + NULL + }; +#endif + +#if defined(SWIGPYTHON_BUILTIN) + static SwigPyClientData SwigPyObject_clientdata = { + 0, 0, 0, 0, 0, 0, 0 + }; + static PyGetSetDef this_getset_def = { + (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL + }; + static SwigPyGetSet thisown_getset_closure = { + (PyCFunction) SwigPyObject_own, + (PyCFunction) SwigPyObject_own + }; + static PyGetSetDef thisown_getset_def = { + (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure + }; + PyObject *metatype_args; + PyTypeObject *builtin_pytype; + int builtin_base_count; + swig_type_info *builtin_basetype; + PyObject *tuple; + PyGetSetDescrObject *static_getset; + PyTypeObject *metatype; + SwigPyClientData *cd; + PyObject *public_interface, *public_symbol; + PyObject *this_descr; + PyObject *thisown_descr; + int i; + + (void)builtin_pytype; + (void)builtin_base_count; + (void)builtin_basetype; + (void)tuple; + (void)static_getset; + + /* metatype is used to implement static member variables. */ + metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); + assert(metatype_args); + metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); + assert(metatype); + Py_DECREF(metatype_args); + metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; + assert(PyType_Ready(metatype) >= 0); +#endif + + /* Fix SwigMethods to carry the callback ptrs when needed */ + SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); + +#if PY_VERSION_HEX >= 0x03000000 + m = PyModule_Create(&SWIG_module); +#else + m = Py_InitModule((char *) SWIG_name, SwigMethods); +#endif + md = d = PyModule_GetDict(m); + (void)md; + + SWIG_InitializeModule(0); + +#ifdef SWIGPYTHON_BUILTIN + SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); + assert(SwigPyObject_stype); + cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; + if (!cd) { + SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; + SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); + } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { + PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); +# if PY_VERSION_HEX >= 0x03000000 + return NULL; +# else + return; +# endif + } + + /* All objects have a 'this' attribute */ + this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); + (void)this_descr; + + /* All objects have a 'thisown' attribute */ + thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); + (void)thisown_descr; + + public_interface = PyList_New(0); + public_symbol = 0; + (void)public_symbol; + + PyDict_SetItemString(md, "__all__", public_interface); + Py_DECREF(public_interface); + for (i = 0; SwigMethods[i].ml_name != NULL; ++i) + SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); + for (i = 0; swig_const_table[i].name != 0; ++i) + SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); +#endif + + SWIG_InstallConstants(d,swig_const_table); + + SWIG_Python_SetConstant(d, "twrap_media_none",SWIG_From_int(static_cast< int >(twrap_media_none))); + SWIG_Python_SetConstant(d, "twrap_media_audio",SWIG_From_int(static_cast< int >(twrap_media_audio))); + SWIG_Python_SetConstant(d, "twrap_media_video",SWIG_From_int(static_cast< int >(twrap_media_video))); + SWIG_Python_SetConstant(d, "twrap_media_msrp",SWIG_From_int(static_cast< int >(twrap_media_msrp))); + SWIG_Python_SetConstant(d, "twrap_media_t140",SWIG_From_int(static_cast< int >(twrap_media_t140))); + SWIG_Python_SetConstant(d, "twrap_media_bfcp",SWIG_From_int(static_cast< int >(twrap_media_bfcp))); + SWIG_Python_SetConstant(d, "twrap_media_bfcp_audio",SWIG_From_int(static_cast< int >(twrap_media_bfcp_audio))); + SWIG_Python_SetConstant(d, "twrap_media_bfcp_video",SWIG_From_int(static_cast< int >(twrap_media_bfcp_video))); + SWIG_Python_SetConstant(d, "twrap_media_audiovideo",SWIG_From_int(static_cast< int >(twrap_media_audiovideo))); + SWIG_Python_SetConstant(d, "twrap_media_audio_video",SWIG_From_int(static_cast< int >(twrap_media_audio_video))); + SWIG_Python_SetConstant(d, "twrap_proxy_plugin_audio_producer",SWIG_From_int(static_cast< int >(twrap_proxy_plugin_audio_producer))); + SWIG_Python_SetConstant(d, "twrap_proxy_plugin_video_producer",SWIG_From_int(static_cast< int >(twrap_proxy_plugin_video_producer))); + SWIG_Python_SetConstant(d, "twrap_proxy_plugin_audio_consumer",SWIG_From_int(static_cast< int >(twrap_proxy_plugin_audio_consumer))); + SWIG_Python_SetConstant(d, "twrap_proxy_plugin_video_consumer",SWIG_From_int(static_cast< int >(twrap_proxy_plugin_video_consumer))); + SWIG_Python_SetConstant(d, "tsip_stack_mode_ua",SWIG_From_int(static_cast< int >(tsip_stack_mode_ua))); + SWIG_Python_SetConstant(d, "tsip_stack_mode_p2p",SWIG_From_int(static_cast< int >(tsip_stack_mode_p2p))); + SWIG_Python_SetConstant(d, "tsip_stack_mode_mediaproxy",SWIG_From_int(static_cast< int >(tsip_stack_mode_mediaproxy))); + SWIG_Python_SetConstant(d, "tsip_stack_mode_mcu",SWIG_From_int(static_cast< int >(tsip_stack_mode_mcu))); + SWIG_Python_SetConstant(d, "tsip_NONE",SWIG_From_int(static_cast< int >(tsip_NONE))); + SWIG_Python_SetConstant(d, "tsip_ACK",SWIG_From_int(static_cast< int >(tsip_ACK))); + SWIG_Python_SetConstant(d, "tsip_BYE",SWIG_From_int(static_cast< int >(tsip_BYE))); + SWIG_Python_SetConstant(d, "tsip_CANCEL",SWIG_From_int(static_cast< int >(tsip_CANCEL))); + SWIG_Python_SetConstant(d, "tsip_INVITE",SWIG_From_int(static_cast< int >(tsip_INVITE))); + SWIG_Python_SetConstant(d, "tsip_OPTIONS",SWIG_From_int(static_cast< int >(tsip_OPTIONS))); + SWIG_Python_SetConstant(d, "tsip_REGISTER",SWIG_From_int(static_cast< int >(tsip_REGISTER))); + SWIG_Python_SetConstant(d, "tsip_SUBSCRIBE",SWIG_From_int(static_cast< int >(tsip_SUBSCRIBE))); + SWIG_Python_SetConstant(d, "tsip_NOTIFY",SWIG_From_int(static_cast< int >(tsip_NOTIFY))); + SWIG_Python_SetConstant(d, "tsip_REFER",SWIG_From_int(static_cast< int >(tsip_REFER))); + SWIG_Python_SetConstant(d, "tsip_INFO",SWIG_From_int(static_cast< int >(tsip_INFO))); + SWIG_Python_SetConstant(d, "tsip_UPDATE",SWIG_From_int(static_cast< int >(tsip_UPDATE))); + SWIG_Python_SetConstant(d, "tsip_MESSAGE",SWIG_From_int(static_cast< int >(tsip_MESSAGE))); + SWIG_Python_SetConstant(d, "tsip_PUBLISH",SWIG_From_int(static_cast< int >(tsip_PUBLISH))); + SWIG_Python_SetConstant(d, "tsip_PRACK",SWIG_From_int(static_cast< int >(tsip_PRACK))); + SWIG_Python_SetConstant(d, "tsip_event_invite",SWIG_From_int(static_cast< int >(tsip_event_invite))); + SWIG_Python_SetConstant(d, "tsip_event_message",SWIG_From_int(static_cast< int >(tsip_event_message))); + SWIG_Python_SetConstant(d, "tsip_event_info",SWIG_From_int(static_cast< int >(tsip_event_info))); + SWIG_Python_SetConstant(d, "tsip_event_options",SWIG_From_int(static_cast< int >(tsip_event_options))); + SWIG_Python_SetConstant(d, "tsip_event_publish",SWIG_From_int(static_cast< int >(tsip_event_publish))); + SWIG_Python_SetConstant(d, "tsip_event_register",SWIG_From_int(static_cast< int >(tsip_event_register))); + SWIG_Python_SetConstant(d, "tsip_event_subscribe",SWIG_From_int(static_cast< int >(tsip_event_subscribe))); + SWIG_Python_SetConstant(d, "tsip_event_dialog",SWIG_From_int(static_cast< int >(tsip_event_dialog))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_transport_error",SWIG_From_int(static_cast< int >(702))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_global_error",SWIG_From_int(static_cast< int >(703))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_message_error",SWIG_From_int(static_cast< int >(704))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_request_incoming",SWIG_From_int(static_cast< int >(800))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_request_outgoing",SWIG_From_int(static_cast< int >(802))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_request_cancelled",SWIG_From_int(static_cast< int >(803))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_request_sent",SWIG_From_int(static_cast< int >(804))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_connecting",SWIG_From_int(static_cast< int >(900))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_connected",SWIG_From_int(static_cast< int >(901))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_terminating",SWIG_From_int(static_cast< int >(902))); + SWIG_Python_SetConstant(d, "tsip_event_code_dialog_terminated",SWIG_From_int(static_cast< int >(903))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_starting",SWIG_From_int(static_cast< int >(950))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_started",SWIG_From_int(static_cast< int >(951))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_stopping",SWIG_From_int(static_cast< int >(952))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_stopped",SWIG_From_int(static_cast< int >(953))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_failed_to_start",SWIG_From_int(static_cast< int >(954))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_failed_to_stop",SWIG_From_int(static_cast< int >(955))); + SWIG_Python_SetConstant(d, "tsip_event_code_stack_disconnected",SWIG_From_int(static_cast< int >(956))); + SWIG_Python_SetConstant(d, "tsip_i_newreg",SWIG_From_int(static_cast< int >(tsip_i_newreg))); + SWIG_Python_SetConstant(d, "tsip_i_register",SWIG_From_int(static_cast< int >(tsip_i_register))); + SWIG_Python_SetConstant(d, "tsip_ao_register",SWIG_From_int(static_cast< int >(tsip_ao_register))); + SWIG_Python_SetConstant(d, "tsip_i_unregister",SWIG_From_int(static_cast< int >(tsip_i_unregister))); + SWIG_Python_SetConstant(d, "tsip_ao_unregister",SWIG_From_int(static_cast< int >(tsip_ao_unregister))); + SWIG_Python_SetConstant(d, "tsip_i_subscribe",SWIG_From_int(static_cast< int >(tsip_i_subscribe))); + SWIG_Python_SetConstant(d, "tsip_ao_subscribe",SWIG_From_int(static_cast< int >(tsip_ao_subscribe))); + SWIG_Python_SetConstant(d, "tsip_i_unsubscribe",SWIG_From_int(static_cast< int >(tsip_i_unsubscribe))); + SWIG_Python_SetConstant(d, "tsip_ao_unsubscribe",SWIG_From_int(static_cast< int >(tsip_ao_unsubscribe))); + SWIG_Python_SetConstant(d, "tsip_i_notify",SWIG_From_int(static_cast< int >(tsip_i_notify))); + SWIG_Python_SetConstant(d, "tsip_ao_notify",SWIG_From_int(static_cast< int >(tsip_ao_notify))); + SWIG_Python_SetConstant(d, "tsip_i_publish",SWIG_From_int(static_cast< int >(tsip_i_publish))); + SWIG_Python_SetConstant(d, "tsip_ao_publish",SWIG_From_int(static_cast< int >(tsip_ao_publish))); + SWIG_Python_SetConstant(d, "tsip_i_unpublish",SWIG_From_int(static_cast< int >(tsip_i_unpublish))); + SWIG_Python_SetConstant(d, "tsip_ao_unpublish",SWIG_From_int(static_cast< int >(tsip_ao_unpublish))); + SWIG_Python_SetConstant(d, "tsip_i_message",SWIG_From_int(static_cast< int >(tsip_i_message))); + SWIG_Python_SetConstant(d, "tsip_ao_message",SWIG_From_int(static_cast< int >(tsip_ao_message))); + SWIG_Python_SetConstant(d, "tsip_i_info",SWIG_From_int(static_cast< int >(tsip_i_info))); + SWIG_Python_SetConstant(d, "tsip_ao_info",SWIG_From_int(static_cast< int >(tsip_ao_info))); + SWIG_Python_SetConstant(d, "tsip_i_options",SWIG_From_int(static_cast< int >(tsip_i_options))); + SWIG_Python_SetConstant(d, "tsip_ao_options",SWIG_From_int(static_cast< int >(tsip_ao_options))); + SWIG_Python_SetConstant(d, "tsip_i_newcall",SWIG_From_int(static_cast< int >(tsip_i_newcall))); + SWIG_Python_SetConstant(d, "tsip_i_request",SWIG_From_int(static_cast< int >(tsip_i_request))); + SWIG_Python_SetConstant(d, "tsip_ao_request",SWIG_From_int(static_cast< int >(tsip_ao_request))); + SWIG_Python_SetConstant(d, "tsip_o_ect_trying",SWIG_From_int(static_cast< int >(tsip_o_ect_trying))); + SWIG_Python_SetConstant(d, "tsip_o_ect_accepted",SWIG_From_int(static_cast< int >(tsip_o_ect_accepted))); + SWIG_Python_SetConstant(d, "tsip_o_ect_completed",SWIG_From_int(static_cast< int >(tsip_o_ect_completed))); + SWIG_Python_SetConstant(d, "tsip_o_ect_failed",SWIG_From_int(static_cast< int >(tsip_o_ect_failed))); + SWIG_Python_SetConstant(d, "tsip_o_ect_notify",SWIG_From_int(static_cast< int >(tsip_o_ect_notify))); + SWIG_Python_SetConstant(d, "tsip_i_ect_requested",SWIG_From_int(static_cast< int >(tsip_i_ect_requested))); + SWIG_Python_SetConstant(d, "tsip_i_ect_newcall",SWIG_From_int(static_cast< int >(tsip_i_ect_newcall))); + SWIG_Python_SetConstant(d, "tsip_i_ect_completed",SWIG_From_int(static_cast< int >(tsip_i_ect_completed))); + SWIG_Python_SetConstant(d, "tsip_i_ect_failed",SWIG_From_int(static_cast< int >(tsip_i_ect_failed))); + SWIG_Python_SetConstant(d, "tsip_i_ect_notify",SWIG_From_int(static_cast< int >(tsip_i_ect_notify))); + SWIG_Python_SetConstant(d, "tsip_m_early_media",SWIG_From_int(static_cast< int >(tsip_m_early_media))); + SWIG_Python_SetConstant(d, "tsip_m_updating",SWIG_From_int(static_cast< int >(tsip_m_updating))); + SWIG_Python_SetConstant(d, "tsip_m_updated",SWIG_From_int(static_cast< int >(tsip_m_updated))); + SWIG_Python_SetConstant(d, "tsip_m_local_hold_ok",SWIG_From_int(static_cast< int >(tsip_m_local_hold_ok))); + SWIG_Python_SetConstant(d, "tsip_m_local_hold_nok",SWIG_From_int(static_cast< int >(tsip_m_local_hold_nok))); + SWIG_Python_SetConstant(d, "tsip_m_local_resume_ok",SWIG_From_int(static_cast< int >(tsip_m_local_resume_ok))); + SWIG_Python_SetConstant(d, "tsip_m_local_resume_nok",SWIG_From_int(static_cast< int >(tsip_m_local_resume_nok))); + SWIG_Python_SetConstant(d, "tsip_m_remote_hold",SWIG_From_int(static_cast< int >(tsip_m_remote_hold))); + SWIG_Python_SetConstant(d, "tsip_m_remote_resume",SWIG_From_int(static_cast< int >(tsip_m_remote_resume))); + SWIG_Python_SetConstant(d, "tmedia_qos_stype_none",SWIG_From_int(static_cast< int >(tmedia_qos_stype_none))); + SWIG_Python_SetConstant(d, "tmedia_qos_stype_segmented",SWIG_From_int(static_cast< int >(tmedia_qos_stype_segmented))); + SWIG_Python_SetConstant(d, "tmedia_qos_stype_e2e",SWIG_From_int(static_cast< int >(tmedia_qos_stype_e2e))); + SWIG_Python_SetConstant(d, "tmedia_qos_strength_none",SWIG_From_int(static_cast< int >(tmedia_qos_strength_none))); + SWIG_Python_SetConstant(d, "tmedia_qos_strength_failure",SWIG_From_int(static_cast< int >(tmedia_qos_strength_failure))); + SWIG_Python_SetConstant(d, "tmedia_qos_strength_unknown",SWIG_From_int(static_cast< int >(tmedia_qos_strength_unknown))); + SWIG_Python_SetConstant(d, "tmedia_qos_strength_optional",SWIG_From_int(static_cast< int >(tmedia_qos_strength_optional))); + SWIG_Python_SetConstant(d, "tmedia_qos_strength_mandatory",SWIG_From_int(static_cast< int >(tmedia_qos_strength_mandatory))); + SWIG_Python_SetConstant(d, "tmedia_chroma_none",SWIG_From_int(static_cast< int >(tmedia_chroma_none))); + SWIG_Python_SetConstant(d, "tmedia_chroma_rgb24",SWIG_From_int(static_cast< int >(tmedia_chroma_rgb24))); + SWIG_Python_SetConstant(d, "tmedia_chroma_bgr24",SWIG_From_int(static_cast< int >(tmedia_chroma_bgr24))); + SWIG_Python_SetConstant(d, "tmedia_chroma_rgb32",SWIG_From_int(static_cast< int >(tmedia_chroma_rgb32))); + SWIG_Python_SetConstant(d, "tmedia_chroma_rgb565le",SWIG_From_int(static_cast< int >(tmedia_chroma_rgb565le))); + SWIG_Python_SetConstant(d, "tmedia_chroma_rgb565be",SWIG_From_int(static_cast< int >(tmedia_chroma_rgb565be))); + SWIG_Python_SetConstant(d, "tmedia_chroma_nv12",SWIG_From_int(static_cast< int >(tmedia_chroma_nv12))); + SWIG_Python_SetConstant(d, "tmedia_chroma_nv21",SWIG_From_int(static_cast< int >(tmedia_chroma_nv21))); + SWIG_Python_SetConstant(d, "tmedia_chroma_yuv422p",SWIG_From_int(static_cast< int >(tmedia_chroma_yuv422p))); + SWIG_Python_SetConstant(d, "tmedia_chroma_uyvy422",SWIG_From_int(static_cast< int >(tmedia_chroma_uyvy422))); + SWIG_Python_SetConstant(d, "tmedia_chroma_yuv420p",SWIG_From_int(static_cast< int >(tmedia_chroma_yuv420p))); + SWIG_Python_SetConstant(d, "tmedia_chroma_mjpeg",SWIG_From_int(static_cast< int >(tmedia_chroma_mjpeg))); + SWIG_Python_SetConstant(d, "tmedia_chroma_yuyv422",SWIG_From_int(static_cast< int >(tmedia_chroma_yuyv422))); + SWIG_Python_SetConstant(d, "tmedia_mode_none",SWIG_From_int(static_cast< int >(tmedia_mode_none))); + SWIG_Python_SetConstant(d, "tmedia_mode_optional",SWIG_From_int(static_cast< int >(tmedia_mode_optional))); + SWIG_Python_SetConstant(d, "tmedia_mode_mandatory",SWIG_From_int(static_cast< int >(tmedia_mode_mandatory))); + SWIG_Python_SetConstant(d, "tmedia_srtp_mode_none",SWIG_From_int(static_cast< int >(tmedia_srtp_mode_none))); + SWIG_Python_SetConstant(d, "tmedia_srtp_mode_optional",SWIG_From_int(static_cast< int >(tmedia_srtp_mode_optional))); + SWIG_Python_SetConstant(d, "tmedia_srtp_mode_mandatory",SWIG_From_int(static_cast< int >(tmedia_srtp_mode_mandatory))); + SWIG_Python_SetConstant(d, "tmedia_srtp_type_none",SWIG_From_int(static_cast< int >(tmedia_srtp_type_none))); + SWIG_Python_SetConstant(d, "tmedia_srtp_type_sdes",SWIG_From_int(static_cast< int >(tmedia_srtp_type_sdes))); + SWIG_Python_SetConstant(d, "tmedia_srtp_type_dtls",SWIG_From_int(static_cast< int >(tmedia_srtp_type_dtls))); + SWIG_Python_SetConstant(d, "tmedia_srtp_type_sdes_dtls",SWIG_From_int(static_cast< int >(tmedia_srtp_type_sdes_dtls))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_utf8",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_utf8))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_zero_width_no_break_space",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_zero_width_no_break_space))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_backspace",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_backspace))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_esc",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_esc))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_cr",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_cr))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_lf",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_lf))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_cr_lf",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_cr_lf))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_interrupt2",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_interrupt2))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_bell",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_bell))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_sos",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_sos))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_string_term",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_string_term))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_graphic_start",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_graphic_start))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_graphic_end",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_graphic_end))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_loss_char_char",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_loss_char_char))); + SWIG_Python_SetConstant(d, "tmedia_t140_data_type_loss_utf8",SWIG_From_int(static_cast< int >(tmedia_t140_data_type_loss_utf8))); + SWIG_Python_SetConstant(d, "tmedia_profile_default",SWIG_From_int(static_cast< int >(tmedia_profile_default))); + SWIG_Python_SetConstant(d, "tmedia_profile_rtcweb",SWIG_From_int(static_cast< int >(tmedia_profile_rtcweb))); + SWIG_Python_SetConstant(d, "tmedia_bl_low",SWIG_From_int(static_cast< int >(tmedia_bl_low))); + SWIG_Python_SetConstant(d, "tmedia_bl_medium",SWIG_From_int(static_cast< int >(tmedia_bl_medium))); + SWIG_Python_SetConstant(d, "tmedia_bl_hight",SWIG_From_int(static_cast< int >(tmedia_bl_hight))); + SWIG_Python_SetConstant(d, "tmedia_bl_unrestricted",SWIG_From_int(static_cast< int >(tmedia_bl_unrestricted))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_sqcif",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_sqcif))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_qcif",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_qcif))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_qvga",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_qvga))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_cif",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_cif))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_hvga",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_hvga))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_vga",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_vga))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_4cif",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_4cif))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_wvga",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_wvga))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_svga",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_svga))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_480p",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_480p))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_xga",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_xga))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_720p",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_720p))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_16cif",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_16cif))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_1080p",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_1080p))); + SWIG_Python_SetConstant(d, "tmedia_pref_video_size_2160p",SWIG_From_int(static_cast< int >(tmedia_pref_video_size_2160p))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_none",SWIG_From_int(static_cast< int >(tmedia_codec_id_none))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_amr_nb_oa",SWIG_From_int(static_cast< int >(tmedia_codec_id_amr_nb_oa))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_amr_nb_be",SWIG_From_int(static_cast< int >(tmedia_codec_id_amr_nb_be))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_amr_wb_oa",SWIG_From_int(static_cast< int >(tmedia_codec_id_amr_wb_oa))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_amr_wb_be",SWIG_From_int(static_cast< int >(tmedia_codec_id_amr_wb_be))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_gsm",SWIG_From_int(static_cast< int >(tmedia_codec_id_gsm))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_pcma",SWIG_From_int(static_cast< int >(tmedia_codec_id_pcma))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_pcmu",SWIG_From_int(static_cast< int >(tmedia_codec_id_pcmu))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_ilbc",SWIG_From_int(static_cast< int >(tmedia_codec_id_ilbc))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_speex_nb",SWIG_From_int(static_cast< int >(tmedia_codec_id_speex_nb))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_speex_wb",SWIG_From_int(static_cast< int >(tmedia_codec_id_speex_wb))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_speex_uwb",SWIG_From_int(static_cast< int >(tmedia_codec_id_speex_uwb))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_bv16",SWIG_From_int(static_cast< int >(tmedia_codec_id_bv16))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_bv32",SWIG_From_int(static_cast< int >(tmedia_codec_id_bv32))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_opus",SWIG_From_int(static_cast< int >(tmedia_codec_id_opus))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_g729ab",SWIG_From_int(static_cast< int >(tmedia_codec_id_g729ab))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_g722",SWIG_From_int(static_cast< int >(tmedia_codec_id_g722))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h261",SWIG_From_int(static_cast< int >(tmedia_codec_id_h261))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h263",SWIG_From_int(static_cast< int >(tmedia_codec_id_h263))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h263p",SWIG_From_int(static_cast< int >(tmedia_codec_id_h263p))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h263pp",SWIG_From_int(static_cast< int >(tmedia_codec_id_h263pp))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_bp",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_bp))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_mp",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_mp))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_hp",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_hp))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_bp10",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_bp10))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_bp20",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_bp20))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_bp30",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_bp30))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_h264_svc",SWIG_From_int(static_cast< int >(tmedia_codec_id_h264_svc))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_theora",SWIG_From_int(static_cast< int >(tmedia_codec_id_theora))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_mp4ves_es",SWIG_From_int(static_cast< int >(tmedia_codec_id_mp4ves_es))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_vp8",SWIG_From_int(static_cast< int >(tmedia_codec_id_vp8))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_t140",SWIG_From_int(static_cast< int >(tmedia_codec_id_t140))); + SWIG_Python_SetConstant(d, "tmedia_codec_id_red",SWIG_From_int(static_cast< int >(tmedia_codec_id_red))); + SWIG_Python_SetConstant(d, "tdav_codec_id_none",SWIG_From_int(static_cast< int >(tdav_codec_id_none))); + SWIG_Python_SetConstant(d, "tdav_codec_id_amr_nb_oa",SWIG_From_int(static_cast< int >(tdav_codec_id_amr_nb_oa))); + SWIG_Python_SetConstant(d, "tdav_codec_id_amr_nb_be",SWIG_From_int(static_cast< int >(tdav_codec_id_amr_nb_be))); + SWIG_Python_SetConstant(d, "tdav_codec_id_amr_wb_oa",SWIG_From_int(static_cast< int >(tdav_codec_id_amr_wb_oa))); + SWIG_Python_SetConstant(d, "tdav_codec_id_amr_wb_be",SWIG_From_int(static_cast< int >(tdav_codec_id_amr_wb_be))); + SWIG_Python_SetConstant(d, "tdav_codec_id_gsm",SWIG_From_int(static_cast< int >(tdav_codec_id_gsm))); + SWIG_Python_SetConstant(d, "tdav_codec_id_pcma",SWIG_From_int(static_cast< int >(tdav_codec_id_pcma))); + SWIG_Python_SetConstant(d, "tdav_codec_id_pcmu",SWIG_From_int(static_cast< int >(tdav_codec_id_pcmu))); + SWIG_Python_SetConstant(d, "tdav_codec_id_ilbc",SWIG_From_int(static_cast< int >(tdav_codec_id_ilbc))); + SWIG_Python_SetConstant(d, "tdav_codec_id_speex_nb",SWIG_From_int(static_cast< int >(tdav_codec_id_speex_nb))); + SWIG_Python_SetConstant(d, "tdav_codec_id_speex_wb",SWIG_From_int(static_cast< int >(tdav_codec_id_speex_wb))); + SWIG_Python_SetConstant(d, "tdav_codec_id_speex_uwb",SWIG_From_int(static_cast< int >(tdav_codec_id_speex_uwb))); + SWIG_Python_SetConstant(d, "tdav_codec_id_bv16",SWIG_From_int(static_cast< int >(tdav_codec_id_bv16))); + SWIG_Python_SetConstant(d, "tdav_codec_id_bv32",SWIG_From_int(static_cast< int >(tdav_codec_id_bv32))); + SWIG_Python_SetConstant(d, "tdav_codec_id_opus",SWIG_From_int(static_cast< int >(tdav_codec_id_opus))); + SWIG_Python_SetConstant(d, "tdav_codec_id_g729ab",SWIG_From_int(static_cast< int >(tdav_codec_id_g729ab))); + SWIG_Python_SetConstant(d, "tdav_codec_id_g722",SWIG_From_int(static_cast< int >(tdav_codec_id_g722))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h261",SWIG_From_int(static_cast< int >(tdav_codec_id_h261))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h263",SWIG_From_int(static_cast< int >(tdav_codec_id_h263))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h263p",SWIG_From_int(static_cast< int >(tdav_codec_id_h263p))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h263pp",SWIG_From_int(static_cast< int >(tdav_codec_id_h263pp))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_bp",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_bp))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_mp",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_mp))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_hp",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_hp))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_bp10",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_bp10))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_bp20",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_bp20))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_bp30",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_bp30))); + SWIG_Python_SetConstant(d, "tdav_codec_id_h264_svc",SWIG_From_int(static_cast< int >(tdav_codec_id_h264_svc))); + SWIG_Python_SetConstant(d, "tdav_codec_id_theora",SWIG_From_int(static_cast< int >(tdav_codec_id_theora))); + SWIG_Python_SetConstant(d, "tdav_codec_id_mp4ves_es",SWIG_From_int(static_cast< int >(tdav_codec_id_mp4ves_es))); + SWIG_Python_SetConstant(d, "tdav_codec_id_vp8",SWIG_From_int(static_cast< int >(tdav_codec_id_vp8))); + SWIG_Python_SetConstant(d, "tdav_codec_id_t140",SWIG_From_int(static_cast< int >(tdav_codec_id_t140))); + SWIG_Python_SetConstant(d, "tdav_codec_id_red",SWIG_From_int(static_cast< int >(tdav_codec_id_red))); + SWIG_Python_SetConstant(d, "thttp_event_dialog_started",SWIG_From_int(static_cast< int >(thttp_event_dialog_started))); + SWIG_Python_SetConstant(d, "thttp_event_message",SWIG_From_int(static_cast< int >(thttp_event_message))); + SWIG_Python_SetConstant(d, "thttp_event_auth_failed",SWIG_From_int(static_cast< int >(thttp_event_auth_failed))); + SWIG_Python_SetConstant(d, "thttp_event_closed",SWIG_From_int(static_cast< int >(thttp_event_closed))); + SWIG_Python_SetConstant(d, "thttp_event_transport_error",SWIG_From_int(static_cast< int >(thttp_event_transport_error))); + SWIG_Python_SetConstant(d, "thttp_event_dialog_terminated",SWIG_From_int(static_cast< int >(thttp_event_dialog_terminated))); + SWIG_Python_SetConstant(d, "twrap_rpmessage_type_sms_none",SWIG_From_int(static_cast< int >(twrap_rpmessage_type_sms_none))); + SWIG_Python_SetConstant(d, "twrap_rpmessage_type_sms_submit",SWIG_From_int(static_cast< int >(twrap_rpmessage_type_sms_submit))); + SWIG_Python_SetConstant(d, "twrap_rpmessage_type_sms_deliver",SWIG_From_int(static_cast< int >(twrap_rpmessage_type_sms_deliver))); + SWIG_Python_SetConstant(d, "twrap_rpmessage_type_sms_ack",SWIG_From_int(static_cast< int >(twrap_rpmessage_type_sms_ack))); + SWIG_Python_SetConstant(d, "twrap_rpmessage_type_sms_error",SWIG_From_int(static_cast< int >(twrap_rpmessage_type_sms_error))); + SWIG_Python_SetConstant(d, "twrap_sms_type_none",SWIG_From_int(static_cast< int >(twrap_sms_type_none))); + SWIG_Python_SetConstant(d, "twrap_sms_type_rpdata",SWIG_From_int(static_cast< int >(twrap_sms_type_rpdata))); + SWIG_Python_SetConstant(d, "twrap_sms_type_smma",SWIG_From_int(static_cast< int >(twrap_sms_type_smma))); + SWIG_Python_SetConstant(d, "twrap_sms_type_ack",SWIG_From_int(static_cast< int >(twrap_sms_type_ack))); + SWIG_Python_SetConstant(d, "twrap_sms_type_error",SWIG_From_int(static_cast< int >(twrap_sms_type_error))); + SWIG_Python_SetConstant(d, "tmsrp_NONE",SWIG_From_int(static_cast< int >(tmsrp_NONE))); + SWIG_Python_SetConstant(d, "tmsrp_SEND",SWIG_From_int(static_cast< int >(tmsrp_SEND))); + SWIG_Python_SetConstant(d, "tmsrp_REPORT",SWIG_From_int(static_cast< int >(tmsrp_REPORT))); + SWIG_Python_SetConstant(d, "tmsrp_AUTH",SWIG_From_int(static_cast< int >(tmsrp_AUTH))); + SWIG_Python_SetConstant(d, "tmsrp_event_type_none",SWIG_From_int(static_cast< int >(tmsrp_event_type_none))); + SWIG_Python_SetConstant(d, "tmsrp_event_type_connected",SWIG_From_int(static_cast< int >(tmsrp_event_type_connected))); + SWIG_Python_SetConstant(d, "tmsrp_event_type_disconnected",SWIG_From_int(static_cast< int >(tmsrp_event_type_disconnected))); + SWIG_Python_SetConstant(d, "tmsrp_event_type_message",SWIG_From_int(static_cast< int >(tmsrp_event_type_message))); +#if PY_VERSION_HEX >= 0x03000000 + return m; +#else + return; +#endif +} + diff --git a/bindings/python/tinyWRAP_wrap.h b/bindings/python/tinyWRAP_wrap.h new file mode 100644 index 0000000..4a768eb --- /dev/null +++ b/bindings/python/tinyWRAP_wrap.h @@ -0,0 +1,495 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 2.0.9 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_tinyWRAP_WRAP_H_ +#define SWIG_tinyWRAP_WRAP_H_ + +#include +#include + + +class SwigDirector_DDebugCallback : public DDebugCallback, public Swig::Director { + +public: + SwigDirector_DDebugCallback(PyObject *self); + virtual ~SwigDirector_DDebugCallback(); + virtual int OnDebugInfo(char const *message); + virtual int OnDebugWarn(char const *message); + virtual int OnDebugError(char const *message); + virtual int OnDebugFatal(char const *message); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class DDebugCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[4]; +#endif + +}; + + +class SwigDirector_T140Callback : public T140Callback, public Swig::Director { + +public: + SwigDirector_T140Callback(PyObject *self); + virtual ~SwigDirector_T140Callback(); + virtual int ondata(T140CallbackData const *pData); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class T140Callback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[1]; +#endif + +}; + + +class SwigDirector_ProxyPluginMgrCallback : public ProxyPluginMgrCallback, public Swig::Director { + +public: + SwigDirector_ProxyPluginMgrCallback(PyObject *self); + virtual ~SwigDirector_ProxyPluginMgrCallback(); + virtual int OnPluginCreated(uint64_t id, enum twrap_proxy_plugin_type_e type); + virtual int OnPluginDestroyed(uint64_t id, enum twrap_proxy_plugin_type_e type); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class ProxyPluginMgrCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[2]; +#endif + +}; + + +class SwigDirector_ProxyAudioConsumerCallback : public ProxyAudioConsumerCallback, public Swig::Director { + +public: + SwigDirector_ProxyAudioConsumerCallback(PyObject *self); + virtual ~SwigDirector_ProxyAudioConsumerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class ProxyAudioConsumerCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[4]; +#endif + +}; + + +class SwigDirector_ProxyVideoConsumerCallback : public ProxyVideoConsumerCallback, public Swig::Director { + +public: + SwigDirector_ProxyVideoConsumerCallback(PyObject *self); + virtual ~SwigDirector_ProxyVideoConsumerCallback(); + virtual int prepare(int nWidth, int nHeight, int nFps); + virtual int consume(ProxyVideoFrame const *frame); + virtual int bufferCopied(unsigned int nCopiedSize, unsigned int nAvailableSize); + virtual int start(); + virtual int pause(); + virtual int stop(); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class ProxyVideoConsumerCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[6]; +#endif + +}; + + +class SwigDirector_ProxyAudioProducerCallback : public ProxyAudioProducerCallback, public Swig::Director { + +public: + SwigDirector_ProxyAudioProducerCallback(PyObject *self); + virtual ~SwigDirector_ProxyAudioProducerCallback(); + virtual int prepare(int ptime, int rate, int channels); + virtual int start(); + virtual int pause(); + virtual int stop(); + virtual int fillPushBuffer(); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class ProxyAudioProducerCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[5]; +#endif + +}; + + +class SwigDirector_ProxyVideoProducerCallback : public ProxyVideoProducerCallback, public Swig::Director { + +public: + SwigDirector_ProxyVideoProducerCallback(PyObject *self); + virtual ~SwigDirector_ProxyVideoProducerCallback(); + virtual int prepare(int width, int height, int fps); + virtual int start(); + virtual int pause(); + virtual int stop(); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class ProxyVideoProducerCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[4]; +#endif + +}; + + +class SwigDirector_SipCallback : public SipCallback, public Swig::Director { + +public: + SwigDirector_SipCallback(PyObject *self); + virtual ~SwigDirector_SipCallback(); + virtual int OnDialogEvent(DialogEvent const *e); + virtual int OnStackEvent(StackEvent const *e); + virtual int OnInviteEvent(InviteEvent const *e); + virtual int OnMessagingEvent(MessagingEvent const *e); + virtual int OnInfoEvent(InfoEvent const *e); + virtual int OnOptionsEvent(OptionsEvent const *e); + virtual int OnPublicationEvent(PublicationEvent const *e); + virtual int OnRegistrationEvent(RegistrationEvent const *e); + virtual int OnSubscriptionEvent(SubscriptionEvent const *e); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class SipCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[9]; +#endif + +}; + + +class SwigDirector_XcapCallback : public XcapCallback, public Swig::Director { + +public: + SwigDirector_XcapCallback(PyObject *self); + virtual ~SwigDirector_XcapCallback(); + virtual int onEvent(XcapEvent const *e) const; + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class XcapCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[1]; +#endif + +}; + + +class SwigDirector_MsrpCallback : public MsrpCallback, public Swig::Director { + +public: + SwigDirector_MsrpCallback(PyObject *self); + virtual ~SwigDirector_MsrpCallback(); + virtual int OnEvent(MsrpEvent const *e); + + +/* Internal Director utilities */ +public: + bool swig_get_inner(const char* swig_protected_method_name) const { + std::map::const_iterator iv = swig_inner.find(swig_protected_method_name); + return (iv != swig_inner.end() ? iv->second : false); + } + + void swig_set_inner(const char* swig_protected_method_name, bool val) const + { swig_inner[swig_protected_method_name] = val;} + +private: + mutable std::map swig_inner; + + +#if defined(SWIG_PYTHON_DIRECTOR_VTABLE) +/* VTable implementation */ + PyObject *swig_get_method(size_t method_index, const char *method_name) const { + PyObject *method = vtable[method_index]; + if (!method) { + swig::SwigVar_PyObject name = SWIG_Python_str_FromChar(method_name); + method = PyObject_GetAttr(swig_get_self(), name); + if (!method) { + std::string msg = "Method in class MsrpCallback doesn't exist, undefined "; + msg += method_name; + Swig::DirectorMethodException::raise(msg.c_str()); + } + vtable[method_index] = method; + } + return method; + } +private: + mutable swig::SwigVar_PyObject vtable[1]; +#endif + +}; + + +#endif diff --git a/bindings/ruby/ruby.i b/bindings/ruby/ruby.i new file mode 100644 index 0000000..84c794e --- /dev/null +++ b/bindings/ruby/ruby.i @@ -0,0 +1,7 @@ +/* File : ruby.i */ + +/* http://www.swig.org/Doc1.3/Library.html#Library_carrays +* 8.3.2 Passing binary data */ +%apply (char *STRING, int LENGTH) { (const void* buffer, int len) }; + +%include ../_common/tinyWRAP.i diff --git a/bindings/ruby/tinyWRAP_wrap.cxx b/bindings/ruby/tinyWRAP_wrap.cxx new file mode 100644 index 0000000..4eed3a9 --- /dev/null +++ b/bindings/ruby/tinyWRAP_wrap.cxx @@ -0,0 +1,4293 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGRUBY +#define SWIG_DIRECTORS + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper& rhs); + SwigValueWrapper(const SwigValueWrapper& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return and integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if () { + if () { + *ptr = ; + return SWIG_NEWOBJ; + } else { + *ptr = ; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class" == "Class", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like ||... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like ||... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +#include + +/* Remove global macros defined in Ruby's win32.h */ +#ifdef write +# undef write +#endif +#ifdef read +# undef read +#endif +#ifdef bind +# undef bind +#endif +#ifdef close +# undef close +#endif +#ifdef connect +# undef connect +#endif + + +/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ +#ifndef NUM2LL +#define NUM2LL(x) NUM2LONG((x)) +#endif +#ifndef LL2NUM +#define LL2NUM(x) INT2NUM((long) (x)) +#endif +#ifndef ULL2NUM +#define ULL2NUM(x) UINT2NUM((unsigned long) (x)) +#endif + +/* Ruby 1.7 doesn't (yet) define NUM2ULL() */ +#ifndef NUM2ULL +#ifdef HAVE_LONG_LONG +#define NUM2ULL(x) rb_num2ull((x)) +#else +#define NUM2ULL(x) NUM2ULONG(x) +#endif +#endif + +/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */ +/* Define these for older versions so we can just write code the new way */ +#ifndef RSTRING_LEN +# define RSTRING_LEN(x) RSTRING(x)->len +#endif +#ifndef RSTRING_PTR +# define RSTRING_PTR(x) RSTRING(x)->ptr +#endif +#ifndef RSTRING_END +# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) +#endif +#ifndef RARRAY_LEN +# define RARRAY_LEN(x) RARRAY(x)->len +#endif +#ifndef RARRAY_PTR +# define RARRAY_PTR(x) RARRAY(x)->ptr +#endif +#ifndef RFLOAT_VALUE +# define RFLOAT_VALUE(x) RFLOAT(x)->value +#endif +#ifndef DOUBLE2NUM +# define DOUBLE2NUM(x) rb_float_new(x) +#endif +#ifndef RHASH_TBL +# define RHASH_TBL(x) (RHASH(x)->tbl) +#endif +#ifndef RHASH_ITER_LEV +# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) +#endif +#ifndef RHASH_IFNONE +# define RHASH_IFNONE(x) (RHASH(x)->ifnone) +#endif +#ifndef RHASH_SIZE +# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) +#endif +#ifndef RHASH_EMPTY_P +# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) +#endif +#ifndef RSTRUCT_LEN +# define RSTRUCT_LEN(x) RSTRUCT(x)->len +#endif +#ifndef RSTRUCT_PTR +# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr +#endif + + + +/* + * Need to be very careful about how these macros are defined, especially + * when compiling C++ code or C code with an ANSI C compiler. + * + * VALUEFUNC(f) is a macro used to typecast a C function that implements + * a Ruby method so that it can be passed as an argument to API functions + * like rb_define_method() and rb_define_singleton_method(). + * + * VOIDFUNC(f) is a macro used to typecast a C function that implements + * either the "mark" or "free" stuff for a Ruby Data object, so that it + * can be passed as an argument to API functions like Data_Wrap_Struct() + * and Data_Make_Struct(). + */ + +#ifdef __cplusplus +# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ +# define PROTECTFUNC(f) ((VALUE (*)()) f) +# define VALUEFUNC(f) ((VALUE (*)()) f) +# define VOIDFUNC(f) ((void (*)()) f) +# else +# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ +# define PROTECTFUNC(f) ((VALUE (*)()) f) +# define VALUEFUNC(f) ((VALUE (*)()) f) +# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) +# else /* These definitions should work for Ruby 1.7+ */ +# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) +# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) +# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) +# endif +# endif +#else +# define VALUEFUNC(f) (f) +# define VOIDFUNC(f) (f) +#endif + +/* Don't use for expressions have side effect */ +#ifndef RB_STRING_VALUE +#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) +#endif +#ifndef StringValue +#define StringValue(s) RB_STRING_VALUE(s) +#endif +#ifndef StringValuePtr +#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s)) +#endif +#ifndef StringValueLen +#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s)) +#endif +#ifndef SafeStringValue +#define SafeStringValue(v) do {\ + StringValue(v);\ + rb_check_safe_str(v);\ +} while (0) +#endif + +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC +#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) +#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") +#endif + +static VALUE _mSWIG = Qnil; + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + + +/* Define some additional error types */ +#define SWIG_ObjectPreviouslyDeletedError -100 + + +/* Define custom exceptions for errors that do not map to existing Ruby + exceptions. Note this only works for C++ since a global cannot be + initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/ + +SWIGINTERN VALUE +getNullReferenceError(void) { + static int init = 0; + static VALUE rb_eNullReferenceError ; + if (!init) { + init = 1; + rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); + } + return rb_eNullReferenceError; +} + +SWIGINTERN VALUE +getObjectPreviouslyDeletedError(void) { + static int init = 0; + static VALUE rb_eObjectPreviouslyDeleted ; + if (!init) { + init = 1; + rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); + } + return rb_eObjectPreviouslyDeleted; +} + + +SWIGINTERN VALUE +SWIG_Ruby_ErrorType(int SWIG_code) { + VALUE type; + switch (SWIG_code) { + case SWIG_MemoryError: + type = rb_eNoMemError; + break; + case SWIG_IOError: + type = rb_eIOError; + break; + case SWIG_RuntimeError: + type = rb_eRuntimeError; + break; + case SWIG_IndexError: + type = rb_eIndexError; + break; + case SWIG_TypeError: + type = rb_eTypeError; + break; + case SWIG_DivisionByZero: + type = rb_eZeroDivError; + break; + case SWIG_OverflowError: + type = rb_eRangeError; + break; + case SWIG_SyntaxError: + type = rb_eSyntaxError; + break; + case SWIG_ValueError: + type = rb_eArgError; + break; + case SWIG_SystemError: + type = rb_eFatal; + break; + case SWIG_AttributeError: + type = rb_eRuntimeError; + break; + case SWIG_NullReferenceError: + type = getNullReferenceError(); + break; + case SWIG_ObjectPreviouslyDeletedError: + type = getObjectPreviouslyDeletedError(); + break; + case SWIG_UnknownError: + type = rb_eRuntimeError; + break; + default: + type = rb_eRuntimeError; + } + return type; +} + + +/* This function is called when a user inputs a wrong argument to + a method. + */ +SWIGINTERN +const char* Ruby_Format_TypeError( const char* msg, + const char* type, + const char* name, + const int argn, + VALUE input ) +{ + char buf[128]; + VALUE str; + VALUE asStr; + if ( msg && *msg ) + { + str = rb_str_new2(msg); + } + else + { + str = rb_str_new(NULL, 0); + } + + str = rb_str_cat2( str, "Expected argument " ); + sprintf( buf, "%d of type ", argn-1 ); + str = rb_str_cat2( str, buf ); + str = rb_str_cat2( str, type ); + str = rb_str_cat2( str, ", but got " ); + str = rb_str_cat2( str, rb_obj_classname(input) ); + str = rb_str_cat2( str, " " ); + asStr = rb_inspect(input); + if ( RSTRING_LEN(asStr) > 30 ) + { + str = rb_str_cat( str, StringValuePtr(asStr), 30 ); + str = rb_str_cat2( str, "..." ); + } + else + { + str = rb_str_append( str, asStr ); + } + + if ( name ) + { + str = rb_str_cat2( str, "\n\tin SWIG method '" ); + str = rb_str_cat2( str, name ); + str = rb_str_cat2( str, "'" ); + } + + return StringValuePtr( str ); +} + +/* This function is called when an overloaded method fails */ +SWIGINTERN +void Ruby_Format_OverloadedError( + const int argc, + const int maxargs, + const char* method, + const char* prototypes + ) +{ + const char* msg = "Wrong # of arguments"; + if ( argc <= maxargs ) msg = "Wrong arguments"; + rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" + "Possible C/C++ prototypes are:\n%s", + msg, method, prototypes); +} + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * rubytracking.swg + * + * This file contains support for tracking mappings from + * Ruby objects to C++ objects. This functionality is needed + * to implement mark functions for Ruby's mark and sweep + * garbage collector. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* Ruby 1.8 actually assumes the first case. */ +#if SIZEOF_VOIDP == SIZEOF_LONG +# define SWIG2NUM(v) LONG2NUM((unsigned long)v) +# define NUM2SWIG(x) (unsigned long)NUM2LONG(x) +#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG +# define SWIG2NUM(v) LL2NUM((unsigned long long)v) +# define NUM2SWIG(x) (unsigned long long)NUM2LL(x) +#else +# error sizeof(void*) is not the same as long or long long +#endif + + +/* Global Ruby hash table to store Trackings from C/C++ + structs to Ruby Objects. +*/ +static VALUE swig_ruby_trackings = Qnil; + +/* Global variable that stores a reference to the ruby + hash table delete function. */ +static ID swig_ruby_hash_delete; + +/* Setup a Ruby hash table to store Trackings */ +SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { + /* Create a ruby hash table to store Trackings from C++ + objects to Ruby objects. */ + + /* Try to see if some other .so has already created a + tracking hash table, which we keep hidden in an instance var + in the SWIG module. + This is done to allow multiple DSOs to share the same + tracking table. + */ + ID trackings_id = rb_intern( "@__trackings__" ); + VALUE verbose = rb_gv_get("VERBOSE"); + rb_gv_set("VERBOSE", Qfalse); + swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id ); + rb_gv_set("VERBOSE", verbose); + + /* No, it hasn't. Create one ourselves */ + if ( swig_ruby_trackings == Qnil ) + { + swig_ruby_trackings = rb_hash_new(); + rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings ); + } + + /* Now store a reference to the hash table delete function + so that we only have to look it up once.*/ + swig_ruby_hash_delete = rb_intern("delete"); +} + +/* Get a Ruby number to reference a pointer */ +SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { + /* We cast the pointer to an unsigned long + and then store a reference to it using + a Ruby number object. */ + + /* Convert the pointer to a Ruby number */ + return SWIG2NUM(ptr); +} + +/* Get a Ruby number to reference an object */ +SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { + /* We cast the object to an unsigned long + and then store a reference to it using + a Ruby number object. */ + + /* Convert the Object to a Ruby number */ + return SWIG2NUM(object); +} + +/* Get a Ruby object from a previously stored reference */ +SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { + /* The provided Ruby number object is a reference + to the Ruby object we want.*/ + + /* Convert the Ruby number to a Ruby object */ + return NUM2SWIG(reference); +} + +/* Add a Tracking from a C/C++ struct to a Ruby object */ +SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { + /* In a Ruby hash table we store the pointer and + the associated Ruby object. The trick here is + that we cannot store the Ruby object directly - if + we do then it cannot be garbage collected. So + instead we typecast it as a unsigned long and + convert it to a Ruby number object.*/ + + /* Get a reference to the pointer as a Ruby number */ + VALUE key = SWIG_RubyPtrToReference(ptr); + + /* Get a reference to the Ruby object as a Ruby number */ + VALUE value = SWIG_RubyObjectToReference(object); + + /* Store the mapping to the global hash table. */ + rb_hash_aset(swig_ruby_trackings, key, value); +} + +/* Get the Ruby object that owns the specified C/C++ struct */ +SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { + /* Get a reference to the pointer as a Ruby number */ + VALUE key = SWIG_RubyPtrToReference(ptr); + + /* Now lookup the value stored in the global hash table */ + VALUE value = rb_hash_aref(swig_ruby_trackings, key); + + if (value == Qnil) { + /* No object exists - return nil. */ + return Qnil; + } + else { + /* Convert this value to Ruby object */ + return SWIG_RubyReferenceToObject(value); + } +} + +/* Remove a Tracking from a C/C++ struct to a Ruby object. It + is very important to remove objects once they are destroyed + since the same memory address may be reused later to create + a new object. */ +SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { + /* Get a reference to the pointer as a Ruby number */ + VALUE key = SWIG_RubyPtrToReference(ptr); + + /* Delete the object from the hash table by calling Ruby's + do this we need to call the Hash.delete method.*/ + rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key); +} + +/* This is a helper method that unlinks a Ruby object from its + underlying C++ object. This is needed if the lifetime of the + Ruby object is longer than the C++ object */ +SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { + VALUE object = SWIG_RubyInstanceFor(ptr); + + if (object != Qnil) { + DATA_PTR(object) = 0; + } +} + + +#ifdef __cplusplus +} +#endif + +/* ----------------------------------------------------------------------------- + * Ruby API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGINTERN VALUE +SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { + if (NIL_P(target)) { + target = o; + } else { + if (TYPE(target) != T_ARRAY) { + VALUE o2 = target; + target = rb_ary_new(); + rb_ary_push(target, o2); + } + rb_ary_push(target, o); + } + return target; +} + +/* For ruby1.8.4 and earlier. */ +#ifndef RUBY_INIT_STACK + RUBY_EXTERN void Init_stack(VALUE* addr); +# define RUBY_INIT_STACK \ + VALUE variable_in_this_stack_frame; \ + Init_stack(&variable_in_this_stack_frame); +#endif + + +#ifdef __cplusplus +} +#endif + + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * rubyrun.swg + * + * This file contains the runtime support for Ruby modules + * and includes code for managing global variables and pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* For backward compatibility only */ +#define SWIG_POINTER_EXCEPTION 0 + +/* for raw pointers */ +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) +#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) +#define swig_owntype ruby_owntype + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule() +#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) + + +/* Error manipulation */ + +#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) +#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Ruby-specific SWIG API */ + +#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() +#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) +#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) +#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) +#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) + +#include "assert.h" + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + VALUE klass; + VALUE mImpl; + void (*mark)(void *); + void (*destroy)(void *); + int trackObjects; +} swig_class; + + +/* Global pointer used to keep some internal SWIG stuff */ +static VALUE _cSWIG_Pointer = Qnil; +static VALUE swig_runtime_data_type_pointer = Qnil; + +/* Global IDs used to keep some internal SWIG stuff */ +static ID swig_arity_id = 0; +static ID swig_call_id = 0; + +/* + If your swig extension is to be run within an embedded ruby and has + director callbacks, you should set -DRUBY_EMBEDDED during compilation. + This will reset ruby's stack frame on each entry point from the main + program the first time a virtual director function is invoked (in a + non-recursive way). + If this is not done, you run the risk of Ruby trashing the stack. +*/ + +#ifdef RUBY_EMBEDDED + +# define SWIG_INIT_STACK \ + if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ + ++swig_virtual_calls; +# define SWIG_RELEASE_STACK --swig_virtual_calls; +# define Ruby_DirectorTypeMismatchException(x) \ + rb_raise( rb_eTypeError, x ); return c_result; + + static unsigned int swig_virtual_calls = 0; + +#else /* normal non-embedded extension */ + +# define SWIG_INIT_STACK +# define SWIG_RELEASE_STACK +# define Ruby_DirectorTypeMismatchException(x) \ + throw Swig::DirectorTypeMismatchException( x ); + +#endif /* RUBY_EMBEDDED */ + + +SWIGRUNTIME VALUE +getExceptionClass(void) { + static int init = 0; + static VALUE rubyExceptionClass ; + if (!init) { + init = 1; + rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); + } + return rubyExceptionClass; +} + +/* This code checks to see if the Ruby object being raised as part + of an exception inherits from the Ruby class Exception. If so, + the object is simply returned. If not, then a new Ruby exception + object is created and that will be returned to Ruby.*/ +SWIGRUNTIME VALUE +SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { + VALUE exceptionClass = getExceptionClass(); + if (rb_obj_is_kind_of(obj, exceptionClass)) { + return obj; + } else { + return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); + } +} + +/* Initialize Ruby runtime support */ +SWIGRUNTIME void +SWIG_Ruby_InitRuntime(void) +{ + if (_mSWIG == Qnil) { + _mSWIG = rb_define_module("SWIG"); + swig_call_id = rb_intern("call"); + swig_arity_id = rb_intern("arity"); + } +} + +/* Define Ruby class for C type */ +SWIGRUNTIME void +SWIG_Ruby_define_class(swig_type_info *type) +{ + VALUE klass; + char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); + sprintf(klass_name, "TYPE%s", type->name); + if (NIL_P(_cSWIG_Pointer)) { + _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); + rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); + } + klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); + free((void *) klass_name); +} + +/* Create a new pointer object */ +SWIGRUNTIME VALUE +SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) +{ + int own = flags & SWIG_POINTER_OWN; + int track; + char *klass_name; + swig_class *sklass; + VALUE klass; + VALUE obj; + + if (!ptr) + return Qnil; + + if (type->clientdata) { + sklass = (swig_class *) type->clientdata; + + /* Are we tracking this class and have we already returned this Ruby object? */ + track = sklass->trackObjects; + if (track) { + obj = SWIG_RubyInstanceFor(ptr); + + /* Check the object's type and make sure it has the correct type. + It might not in cases where methods do things like + downcast methods. */ + if (obj != Qnil) { + VALUE value = rb_iv_get(obj, "@__swigtype__"); + char* type_name = RSTRING_PTR(value); + + if (strcmp(type->name, type_name) == 0) { + return obj; + } + } + } + + /* Create a new Ruby object */ + obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), + ( own ? VOIDFUNC(sklass->destroy) : + (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) + ), ptr); + + /* If tracking is on for this class then track this object. */ + if (track) { + SWIG_RubyAddTracking(ptr, obj); + } + } else { + klass_name = (char *) malloc(4 + strlen(type->name) + 1); + sprintf(klass_name, "TYPE%s", type->name); + klass = rb_const_get(_mSWIG, rb_intern(klass_name)); + free((void *) klass_name); + obj = Data_Wrap_Struct(klass, 0, 0, ptr); + } + rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); + + return obj; +} + +/* Create a new class instance (always owned) */ +SWIGRUNTIME VALUE +SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) +{ + VALUE obj; + swig_class *sklass = (swig_class *) type->clientdata; + obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); + rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); + return obj; +} + +/* Get type mangle from class name */ +SWIGRUNTIMEINLINE char * +SWIG_Ruby_MangleStr(VALUE obj) +{ + VALUE stype = rb_iv_get(obj, "@__swigtype__"); + return StringValuePtr(stype); +} + +/* Acquire a pointer value */ +typedef void (*ruby_owntype)(void*); + +SWIGRUNTIME ruby_owntype +SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) { + if (obj) { + ruby_owntype oldown = RDATA(obj)->dfree; + RDATA(obj)->dfree = own; + return oldown; + } else { + return 0; + } +} + +/* Convert a pointer value */ +SWIGRUNTIME int +SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own) +{ + char *c; + swig_cast_info *tc; + void *vptr = 0; + + /* Grab the pointer */ + if (NIL_P(obj)) { + *ptr = 0; + return SWIG_OK; + } else { + if (TYPE(obj) != T_DATA) { + return SWIG_ERROR; + } + Data_Get_Struct(obj, void, vptr); + } + + if (own) *own = RDATA(obj)->dfree; + + /* Check to see if the input object is giving up ownership + of the underlying C struct or C++ object. If so then we + need to reset the destructor since the Ruby object no + longer owns the underlying C++ object.*/ + if (flags & SWIG_POINTER_DISOWN) { + /* Is tracking on for this class? */ + int track = 0; + if (ty && ty->clientdata) { + swig_class *sklass = (swig_class *) ty->clientdata; + track = sklass->trackObjects; + } + + if (track) { + /* We are tracking objects for this class. Thus we change the destructor + * to SWIG_RubyRemoveTracking. This allows us to + * remove the mapping from the C++ to Ruby object + * when the Ruby object is garbage collected. If we don't + * do this, then it is possible we will return a reference + * to a Ruby object that no longer exists thereby crashing Ruby. */ + RDATA(obj)->dfree = SWIG_RubyRemoveTracking; + } else { + RDATA(obj)->dfree = 0; + } + } + + /* Do type-checking if type info was provided */ + if (ty) { + if (ty->clientdata) { + if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { + if (vptr == 0) { + /* The object has already been deleted */ + return SWIG_ObjectPreviouslyDeletedError; + } + *ptr = vptr; + return SWIG_OK; + } + } + if ((c = SWIG_MangleStr(obj)) == NULL) { + return SWIG_ERROR; + } + tc = SWIG_TypeCheck(c, ty); + if (!tc) { + return SWIG_ERROR; + } else { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc, vptr, &newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } + } else { + *ptr = vptr; + } + + return SWIG_OK; +} + +/* Check convert */ +SWIGRUNTIMEINLINE int +SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) +{ + char *c = SWIG_MangleStr(obj); + if (!c) return 0; + return SWIG_TypeCheck(c,ty) != 0; +} + +SWIGRUNTIME VALUE +SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { + char result[1024]; + char *r = result; + if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; + *(r++) = '_'; + r = SWIG_PackData(r, ptr, sz); + strcpy(r, type->name); + return rb_str_new2(result); +} + +/* Convert a packed value value */ +SWIGRUNTIME int +SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { + swig_cast_info *tc; + const char *c; + + if (TYPE(obj) != T_STRING) goto type_error; + c = StringValuePtr(obj); + /* Pointer values must start with leading underscore */ + if (*c != '_') goto type_error; + c++; + c = SWIG_UnpackData(c, ptr, sz); + if (ty) { + tc = SWIG_TypeCheck(c, ty); + if (!tc) goto type_error; + } + return SWIG_OK; + + type_error: + return SWIG_ERROR; +} + +SWIGRUNTIME swig_module_info * +SWIG_Ruby_GetModule(void) +{ + VALUE pointer; + swig_module_info *ret = 0; + VALUE verbose = rb_gv_get("VERBOSE"); + + /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ + rb_gv_set("VERBOSE", Qfalse); + + /* first check if pointer already created */ + pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + if (pointer != Qnil) { + Data_Get_Struct(pointer, swig_module_info, ret); + } + + /* reinstate warnings */ + rb_gv_set("VERBOSE", verbose); + return ret; +} + +SWIGRUNTIME void +SWIG_Ruby_SetModule(swig_module_info *pointer) +{ + /* register a new class */ + VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); + /* create and store the structure pointer to a global variable */ + swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); + rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); +} + +/* This function can be used to check whether a proc or method or similarly + callable function has been passed. Usually used in a %typecheck, like: + + %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { + $result = SWIG_Ruby_isCallable( $input ); + } + */ +SWIGINTERN +int SWIG_Ruby_isCallable( VALUE proc ) +{ + if ( rb_respond_to( proc, swig_call_id ) == Qtrue ) + return 1; + return 0; +} + +/* This function can be used to check the arity (number of arguments) + a proc or method can take. Usually used in a %typecheck. + Valid arities will be that equal to minimal or those < 0 + which indicate a variable number of parameters at the end. + */ +SWIGINTERN +int SWIG_Ruby_arity( VALUE proc, int minimal ) +{ + if ( rb_respond_to( proc, swig_arity_id ) == Qtrue ) + { + VALUE num = rb_funcall( proc, swig_arity_id, 0 ); + int arity = NUM2INT(num); + if ( arity < 0 && (arity+1) < -minimal ) return 1; + if ( arity == minimal ) return 1; + return 1; + } + return 0; +} + + +#ifdef __cplusplus +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * director.swg + * + * This file contains support for director classes that proxy + * method calls from C++ to Ruby extensions. + * ----------------------------------------------------------------------------- */ + +/* + Use -DSWIG_DIRECTOR_NOUEH if you prefer to avoid the use of the + Undefined Exception Handler provided by swift +*/ +#ifndef SWIG_DIRECTOR_NOUEH +#ifndef SWIG_DIRECTOR_UEH +#define SWIG_DIRECTOR_UEH +#endif +#endif + +#ifdef __cplusplus + +#include +#include +#include + +namespace Swig { + /* memory handler */ + struct GCItem + { + virtual ~GCItem() + { + } + + virtual ruby_owntype get_own() const + { + return 0; + } + }; + + struct GCItem_var + { + GCItem_var(GCItem *item = 0) : _item(item) + { + } + + GCItem_var& operator=(GCItem *item) + { + GCItem *tmp = _item; + _item = item; + delete tmp; + return *this; + } + + ~GCItem_var() + { + delete _item; + } + + GCItem * operator->() const + { + return _item; + } + + private: + GCItem *_item; + }; + + + template + struct GCItem_T : GCItem + { + GCItem_T(Type *ptr) : _ptr(ptr) + { + } + + virtual ~GCItem_T() + { + delete _ptr; + } + + private: + Type *_ptr; + }; + + struct GCItem_Object : GCItem + { + GCItem_Object(ruby_owntype own) : _own(own) + { + } + + virtual ~GCItem_Object() + { + } + + ruby_owntype get_own() const + { + return _own; + } + + private: + ruby_owntype _own; + }; + + + template + struct GCArray_T : GCItem + { + GCArray_T(Type *ptr) : _ptr(ptr) + { + } + + virtual ~GCArray_T() + { + delete[] _ptr; + } + + private: + Type *_ptr; + }; + + + /* body args */ + struct body_args { + VALUE recv; + ID id; + int argc; + VALUE *argv; + }; + + /* Base class for director exceptions */ + class DirectorException { + protected: + VALUE swig_error; + std::string swig_msg; + protected: + DirectorException(VALUE error) + : swig_error(error) + { + } + + DirectorException(VALUE error, const char* hdr, const char* msg ="") + : swig_error(error), swig_msg(hdr) { + if (strlen(msg)) { + swig_msg += " "; + swig_msg += msg; + } + if (swig_msg.size()) { + VALUE str = rb_str_new(swig_msg.data(), swig_msg.size()); + swig_error = rb_exc_new3(error, str); + } else { + swig_error = error; + } + } + public: + VALUE getType() const { + return CLASS_OF(swig_error); + } + VALUE getError() const { + return swig_error; + } + const std::string& getMessage() const + { + return swig_msg; + } + + virtual ~DirectorException() {} + }; + + /* unknown exception handler */ + + class UnknownExceptionHandler + { +#ifdef SWIG_DIRECTOR_UEH + static void handler() { + try { + throw; + } catch (DirectorException& e) { + std::cerr << "Swig Director exception caught:" << std::endl + << e.getMessage() << std::endl; + } catch (std::exception& e) { + std::cerr << "std::exception caught: "<< e.what() << std::endl; + } catch (...) { + std::cerr << "Unknown exception caught." << std::endl; + } + std::cerr << std::endl + << "Ruby interpreter traceback:" << std::endl; + std::cerr << std::endl; + std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl + << "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl + << std::endl + << "Exception is being re-thrown, program will like abort/terminate." << std::endl; + throw; + } + + public: + std::unexpected_handler old; + UnknownExceptionHandler(std::unexpected_handler nh = handler) + { + old = std::set_unexpected(nh); + } + + ~UnknownExceptionHandler() + { + std::set_unexpected(old); + } +#endif + }; + + + /* Type mismatch in the return value from a Ruby method call */ + class DirectorTypeMismatchException : public Swig::DirectorException { + public: + DirectorTypeMismatchException(VALUE error, const char *msg="") + : Swig::DirectorException(error, "Swig director type mismatch", msg) + { + } + + DirectorTypeMismatchException(const char *msg="") + : Swig::DirectorException(rb_eTypeError, "Swig director type mismatch", msg) + { + } + + static void raise(VALUE error, const char *msg) { + throw DirectorTypeMismatchException(error, msg); + } + + static void raise(const char *msg) { + throw DirectorTypeMismatchException(msg); + } + }; + + /* Any Ruby exception that occurs during a director method call */ + class DirectorMethodException : public Swig::DirectorException { + public: + DirectorMethodException(VALUE error) + : Swig::DirectorException(error) { + } + + DirectorMethodException(const char* msg = "") + : Swig::DirectorException(rb_eRuntimeError, "Swig director method error.", msg) { + } + + static void raise(VALUE error) + { + throw DirectorMethodException(error); + } + }; + + /* Attempted to call a pure virtual method via a director method */ + class DirectorPureVirtualException : public Swig::DirectorException + { + public: + DirectorPureVirtualException(const char* msg = "") + : DirectorException(rb_eRuntimeError, "Swig director pure virtual method called", msg) + { + } + + static void raise(const char *msg) + { + throw DirectorPureVirtualException(msg); + } + }; + + /* Simple thread abstraction for pthreads on win32 */ +#ifdef __THREAD__ +# define __PTHREAD__ +# if defined(_WIN32) || defined(__WIN32__) +# define pthread_mutex_lock EnterCriticalSection +# define pthread_mutex_unlock LeaveCriticalSection +# define pthread_mutex_t CRITICAL_SECTION +# define SWIG_MUTEX_INIT(var) var +# else +# include +# define SWIG_MUTEX_INIT(var) var = PTHREAD_MUTEX_INITIALIZER +# endif +#endif + +#ifdef __PTHREAD__ + struct Guard + { + pthread_mutex_t *_mutex; + + Guard(pthread_mutex_t &mutex) : _mutex(&mutex) + { + pthread_mutex_lock(_mutex); + } + + ~Guard() + { + pthread_mutex_unlock(_mutex); + } + }; +# define SWIG_GUARD(mutex) Guard _guard(mutex) +#else +# define SWIG_GUARD(mutex) +#endif + + /* director base class */ + class Director { + private: + /* pointer to the wrapped Ruby object */ + VALUE swig_self; + /* flag indicating whether the object is owned by Ruby or c++ */ + mutable bool swig_disown_flag; + + public: + /* wrap a Ruby object, optionally taking ownership */ + Director(VALUE self) : swig_self(self), swig_disown_flag(false) { + } + + /* discard our reference at destruction */ + virtual ~Director() { + } + + /* return a pointer to the wrapped Ruby object */ + VALUE swig_get_self() const { + return swig_self; + } + + /* acquire ownership of the wrapped Ruby object (the sense of "disown" + * is from Ruby) */ + void swig_disown() const { + if (!swig_disown_flag) { + swig_disown_flag = true; + } + } + + /* ownership management */ + private: + typedef std::map ownership_map; + mutable ownership_map owner; +#ifdef __PTHREAD__ + static pthread_mutex_t swig_mutex_own; +#endif + + public: + template + void swig_acquire_ownership_array(Type *vptr) const + { + if (vptr) { + SWIG_GUARD(swig_mutex_own); + owner[vptr] = new GCArray_T(vptr); + } + } + + template + void swig_acquire_ownership(Type *vptr) const + { + if (vptr) { + SWIG_GUARD(swig_mutex_own); + owner[vptr] = new GCItem_T(vptr); + } + } + + void swig_acquire_ownership_obj(void *vptr, ruby_owntype own) const + { + if (vptr && own) { + SWIG_GUARD(swig_mutex_own); + owner[vptr] = new GCItem_Object(own); + } + } + + ruby_owntype swig_release_ownership(void *vptr) const + { + ruby_owntype own = 0; + if (vptr) { + SWIG_GUARD(swig_mutex_own); + ownership_map::iterator iter = owner.find(vptr); + if (iter != owner.end()) { + own = iter->second->get_own(); + owner.erase(iter); + } + } + return own; + } + }; +} + +#endif /* __cplusplus */ + + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_RegistrationEvent swig_types[0] +#define SWIGTYPE_p_RegistrationSession swig_types[1] +#define SWIGTYPE_p_SafeObject swig_types[2] +#define SWIGTYPE_p_SipCallback swig_types[3] +#define SWIGTYPE_p_SipEvent swig_types[4] +#define SWIGTYPE_p_SipSession swig_types[5] +#define SWIGTYPE_p_SipStack swig_types[6] +#define SWIGTYPE_p_char swig_types[7] +#define SWIGTYPE_p_tsip_event_type_e swig_types[8] +#define SWIGTYPE_p_tsip_register_event_type_e swig_types[9] +static swig_type_info *swig_types[11]; +static swig_module_info swig_module = {swig_types, 10, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#define SWIG_init Init_tinyWRAP +#define SWIG_name "TinyWRAP" + +static VALUE mTinyWRAP; + +#define SWIG_RUBY_THREAD_BEGIN_BLOCK +#define SWIG_RUBY_THREAD_END_BLOCK + + +#define SWIGVERSION 0x010340 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include + + +#include "SipEvent.h" +#include "SipSession.h" +#include "RegistrationEvent.h" +#include "RegistrationSession.h" +#include "SubscriptionEvent.h" +#include "SubscriptionSession.h" +#include "SipCallback.h" +#include "SafeObject.h" +#include "SipStack.h" + + +#include +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN VALUE +SWIG_ruby_failed(void) +{ + return Qnil; +} + + +/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\ruby\\rubyprimtypes.swg,23,%ruby_aux_method@*/ +SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) +{ + VALUE obj = args[0]; + VALUE type = TYPE(obj); + long *res = (long *)(args[1]); + *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj); + return obj; +} +/*@SWIG@*/ + +SWIGINTERN int +SWIG_AsVal_long (VALUE obj, long* val) +{ + VALUE type = TYPE(obj); + if ((type == T_FIXNUM) || (type == T_BIGNUM)) { + long v; + VALUE a[2]; + a[0] = obj; + a[1] = (VALUE)(&v); + if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { + if (val) *val = v; + return SWIG_OK; + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_int (VALUE obj, int *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < INT_MIN || v > INT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< int >(v); + } + } + return res; +} + + +SWIGINTERN int +SWIG_AsVal_short (VALUE obj, short *val) +{ + long v; + int res = SWIG_AsVal_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < SHRT_MIN || v > SHRT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< short >(v); + } + } + return res; +} + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) +{ + if (TYPE(obj) == T_STRING) { + #if defined(StringValuePtr) + char *cstr = StringValuePtr(obj); + #else + char *cstr = STR2CSTR(obj); + #endif + size_t size = RSTRING_LEN(obj) + 1; + if (cptr) { + if (alloc) { + if (*alloc == SWIG_NEWOBJ) { + *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } + } + if (psize) *psize = size; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *)vptr; + if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + + #define SWIG_From_long LONG2NUM + + +SWIGINTERNINLINE VALUE +SWIG_From_short (short value) +{ + return SWIG_From_long (value); +} + + +SWIGINTERNINLINE VALUE +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > LONG_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil; + } else { + return rb_str_new(carray, static_cast< long >(size)); + } + } else { + return Qnil; + } +} + + +SWIGINTERNINLINE VALUE +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +SWIGINTERNINLINE VALUE +SWIG_From_bool (bool value) +{ + return value ? Qtrue : Qfalse; +} + + +/*@SWIG:C:/msys/1.0/local/share/swig/1.3.40\\ruby\\rubyprimtypes.swg,23,%ruby_aux_method@*/ +SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) +{ + VALUE obj = args[0]; + VALUE type = TYPE(obj); + unsigned long *res = (unsigned long *)(args[1]); + *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); + return obj; +} +/*@SWIG@*/ + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) +{ + VALUE type = TYPE(obj); + if ((type == T_FIXNUM) || (type == T_BIGNUM)) { + unsigned long v; + VALUE a[2]; + a[0] = obj; + a[1] = (VALUE)(&v); + if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { + if (val) *val = v; + return SWIG_OK; + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE VALUE +SWIG_From_int (int value) +{ + return SWIG_From_long (value); +} + +/* --------------------------------------------------- + * C++ director class helpers + * --------------------------------------------------- */ + + + +/* --------------------------------------------------- + * C++ director class methods + * --------------------------------------------------- */ + +#include "Ruby/tinyWRAP_wrap.h" + +SwigDirector_SipCallback::SwigDirector_SipCallback(VALUE self): SipCallback(), Swig::Director(self) { + +} + + + +SwigDirector_SipCallback::~SwigDirector_SipCallback() { +} + +int SwigDirector_SipCallback::OnRegistrationChanged(RegistrationEvent const *e) { + int c_result ; + VALUE obj0 = Qnil ; + VALUE result; + + obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(e), SWIGTYPE_p_RegistrationEvent, 0 ); + result = rb_funcall(swig_get_self(), rb_intern("OnRegistrationChanged"), 1,obj0); + int swig_val; + int swig_res = SWIG_AsVal_int(result, &swig_val); + if (!SWIG_IsOK(swig_res)) { + Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""int""'"); + } + c_result = static_cast< int >(swig_val); + return (int) c_result; +} + + +swig_class SwigClassSipEvent; + +SWIGINTERN VALUE +_wrap_new_SipEvent__SWIG_0(int argc, VALUE *argv, VALUE self) { + const char *classname SWIGUNUSED = "TinyWRAP::SipEvent"; + SipEvent *result = 0 ; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + result = (SipEvent *)new SipEvent(); + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_SipEvent_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_SipEvent_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_SipEvent); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_SipEvent__SWIG_1(int argc, VALUE *argv, VALUE self) { + tsip_event_type_t arg1 ; + short arg2 ; + char *arg3 = (char *) 0 ; + int val1 ; + int ecode1 = 0 ; + short val2 ; + int ecode2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + const char *classname SWIGUNUSED = "TinyWRAP::SipEvent"; + SipEvent *result = 0 ; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + ecode1 = SWIG_AsVal_int(argv[0], &val1); + if (!SWIG_IsOK(ecode1)) { + SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "tsip_event_type_t","SipEvent", 1, argv[0] )); + } + arg1 = static_cast< tsip_event_type_t >(val1); + ecode2 = SWIG_AsVal_short(argv[1], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "short","SipEvent", 2, argv[1] )); + } + arg2 = static_cast< short >(val2); + res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SipEvent", 3, argv[2] )); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (SipEvent *)new SipEvent(arg1,arg2,(char const *)arg3); + DATA_PTR(self) = result; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return self; +fail: + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return Qnil; +} + + +SWIGINTERN VALUE _wrap_new_SipEvent(int nargs, VALUE *args, VALUE self) { + int argc; + VALUE argv[3]; + int ii; + + argc = nargs; + if (argc > 3) SWIG_fail; + for (ii = 0; (ii < argc); ++ii) { + argv[ii] = args[ii]; + } + if (argc == 0) { + return _wrap_new_SipEvent__SWIG_0(nargs, args, self); + } + if (argc == 3) { + int _v; + { + int res = SWIG_AsVal_int(argv[0], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_short(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_new_SipEvent__SWIG_1(nargs, args, self); + } + } + } + } + +fail: + Ruby_Format_OverloadedError( argc, 3, "SipEvent.new", + " SipEvent.new()\n" + " SipEvent.new(tsip_event_type_t type, short code, char const *phrase)\n"); + + return Qnil; +} + + +SWIGINTERN void +free_SipEvent(SipEvent *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_SipEvent_getCode(int argc, VALUE *argv, VALUE self) { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + short result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipEvent const *","getCode", 1, self )); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (short)((SipEvent const *)arg1)->getCode(); + vresult = SWIG_From_short(static_cast< short >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipEvent_getPhrase(int argc, VALUE *argv, VALUE self) { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipEvent const *","getPhrase", 1, self )); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (char *)((SipEvent const *)arg1)->getPhrase(); + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipEvent_getBaseSession(int argc, VALUE *argv, VALUE self) { + SipEvent *arg1 = (SipEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + SipSession *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipEvent const *","getBaseSession", 1, self )); + } + arg1 = reinterpret_cast< SipEvent * >(argp1); + result = (SipSession *)((SipEvent const *)arg1)->getBaseSession(); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SipSession, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +swig_class SwigClassSipSession; + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_SipSession_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_SipSession_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_SipSession); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_SipSession(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + const char *classname SWIGUNUSED = "TinyWRAP::SipSession"; + SipSession *result = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","SipSession", 1, argv[0] )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (SipSession *)new SipSession(arg1); + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +SWIGINTERN void +free_SipSession(SipSession *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_SipSession_addHeader(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","addHeader", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","addHeader", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","addHeader", 3, argv[1] )); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_removeHeader(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","removeHeader", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","removeHeader", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_addCaps__SWIG_0(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","addCaps", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","addCaps", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","addCaps", 3, argv[1] )); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addCaps((char const *)arg2,(char const *)arg3); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_addCaps__SWIG_1(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","addCaps", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","addCaps", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->addCaps((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE _wrap_SipSession_addCaps(int nargs, VALUE *args, VALUE self) { + int argc; + VALUE argv[4]; + int ii; + + argc = nargs + 1; + argv[0] = self; + if (argc > 4) SWIG_fail; + for (ii = 1; (ii < argc); ++ii) { + argv[ii] = args[ii-1]; + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_addCaps__SWIG_1(nargs, args, self); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_SipSession, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_SipSession_addCaps__SWIG_0(nargs, args, self); + } + } + } + } + +fail: + Ruby_Format_OverloadedError( argc, 4, "SipSession.addCaps", + " bool SipSession.addCaps(char const *name, char const *value)\n" + " bool SipSession.addCaps(char const *name)\n"); + + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_removeCaps(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","removeCaps", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","removeCaps", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeCaps((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_setExpires(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","setExpires", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","setExpires", 2, argv[0] )); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setExpires(arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_setFromUri(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","setFromUri", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setFromUri", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setFromUri((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipSession_setToUri(int argc, VALUE *argv, VALUE self) { + SipSession *arg1 = (SipSession *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipSession *","setToUri", 1, self )); + } + arg1 = reinterpret_cast< SipSession * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setToUri", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setToUri((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +swig_class SwigClassRegistrationEvent; + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_RegistrationEvent_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_RegistrationEvent_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_RegistrationEvent); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_RegistrationEvent(int argc, VALUE *argv, VALUE self) { + const char *classname SWIGUNUSED = "TinyWRAP::RegistrationEvent"; + RegistrationEvent *result = 0 ; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + result = (RegistrationEvent *)new RegistrationEvent(); + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +SWIGINTERN void +free_RegistrationEvent(RegistrationEvent *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_RegistrationEvent_getType(int argc, VALUE *argv, VALUE self) { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + tsip_register_event_type_t result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "RegistrationEvent const *","getType", 1, self )); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (tsip_register_event_type_t)((RegistrationEvent const *)arg1)->getType(); + vresult = SWIG_From_int(static_cast< int >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_RegistrationEvent_getSession(int argc, VALUE *argv, VALUE self) { + RegistrationEvent *arg1 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + RegistrationSession *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "RegistrationEvent const *","getSession", 1, self )); + } + arg1 = reinterpret_cast< RegistrationEvent * >(argp1); + result = (RegistrationSession *)((RegistrationEvent const *)arg1)->getSession(); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RegistrationSession, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +swig_class SwigClassRegistrationSession; + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_RegistrationSession_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_RegistrationSession_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_RegistrationSession); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_RegistrationSession(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + const char *classname SWIGUNUSED = "TinyWRAP::RegistrationSession"; + RegistrationSession *result = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","RegistrationSession", 1, argv[0] )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (RegistrationSession *)new RegistrationSession(arg1); + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +SWIGINTERN void +free_RegistrationSession(RegistrationSession *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_RegistrationSession_Register(int argc, VALUE *argv, VALUE self) { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "RegistrationSession *","Register", 1, self )); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","Register", 2, argv[0] )); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->Register(arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_RegistrationSession_UnRegister(int argc, VALUE *argv, VALUE self) { + RegistrationSession *arg1 = (RegistrationSession *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_RegistrationSession, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "RegistrationSession *","UnRegister", 1, self )); + } + arg1 = reinterpret_cast< RegistrationSession * >(argp1); + result = (bool)(arg1)->UnRegister(); + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +swig_class SwigClassSipCallback; + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_SipCallback_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_SipCallback_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_SipCallback); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_SipCallback(int argc, VALUE *argv, VALUE self) { + VALUE arg1 = (VALUE) 0 ; + const char *classname SWIGUNUSED = "TinyWRAP::SipCallback"; + SipCallback *result = 0 ; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + arg1 = self; + if ( strcmp(rb_obj_classname(self), classname) != 0 ) { + /* subclassed */ + result = (SipCallback *)new SwigDirector_SipCallback(arg1); + } else { + result = (SipCallback *)new SipCallback(); + } + + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +SWIGINTERN void +free_SipCallback(SipCallback *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_SipCallback_OnRegistrationChanged(int argc, VALUE *argv, VALUE self) { + SipCallback *arg1 = (SipCallback *) 0 ; + RegistrationEvent *arg2 = (RegistrationEvent *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + Swig::Director *director = 0; + bool upcall = false; + int result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipCallback *","OnRegistrationChanged", 1, self )); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_RegistrationEvent, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "RegistrationEvent const *","OnRegistrationChanged", 2, argv[0] )); + } + arg2 = reinterpret_cast< RegistrationEvent * >(argp2); + director = dynamic_cast(arg1); + upcall = (director && (director->swig_get_self() == self)); + try { + if (upcall) { + result = (int)(arg1)->SipCallback::OnRegistrationChanged((RegistrationEvent const *)arg2); + } else { + result = (int)(arg1)->OnRegistrationChanged((RegistrationEvent const *)arg2); + } + } catch (Swig::DirectorException& e) { + rb_exc_raise(e.getError()); + SWIG_fail; + } + vresult = SWIG_From_int(static_cast< int >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_disown_SipCallback(int argc, VALUE *argv, VALUE self) { + SipCallback *arg1 = (SipCallback *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipCallback *","disown_SipCallback", 1, argv[0] )); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + { + Swig::Director *director = dynamic_cast(arg1); + if (director) director->swig_disown(); + } + + return Qnil; +fail: + return Qnil; +} + + +swig_class SwigClassSafeObject; + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_SafeObject_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_SafeObject_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_SafeObject); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_SafeObject(int argc, VALUE *argv, VALUE self) { + const char *classname SWIGUNUSED = "TinyWRAP::SafeObject"; + SafeObject *result = 0 ; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + result = (SafeObject *)new SafeObject(); + DATA_PTR(self) = result; + return self; +fail: + return Qnil; +} + + +SWIGINTERN void +free_SafeObject(SafeObject *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_SafeObject_Lock(int argc, VALUE *argv, VALUE self) { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SafeObject *","Lock", 1, self )); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)(arg1)->Lock(); + vresult = SWIG_From_int(static_cast< int >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SafeObject_UnLock(int argc, VALUE *argv, VALUE self) { + SafeObject *arg1 = (SafeObject *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SafeObject, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SafeObject *","UnLock", 1, self )); + } + arg1 = reinterpret_cast< SafeObject * >(argp1); + result = (int)(arg1)->UnLock(); + vresult = SWIG_From_int(static_cast< int >(result)); + return vresult; +fail: + return Qnil; +} + + +swig_class SwigClassSipStack; + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_SipStack_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_SipStack_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_SipStack); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_SipStack(int argc, VALUE *argv, VALUE self) { + SipCallback *arg1 = (SipCallback *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + char *arg4 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + const char *classname SWIGUNUSED = "TinyWRAP::SipStack"; + SipStack *result = 0 ; + + if ((argc < 4) || (argc > 4)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_SipCallback, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipCallback *","SipStack", 1, argv[0] )); + } + arg1 = reinterpret_cast< SipCallback * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","SipStack", 2, argv[1] )); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","SipStack", 3, argv[2] )); + } + arg3 = reinterpret_cast< char * >(buf3); + res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","SipStack", 4, argv[3] )); + } + arg4 = reinterpret_cast< char * >(buf4); + result = (SipStack *)new SipStack(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); + DATA_PTR(self) = result; + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return self; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + return Qnil; +} + + +SWIGINTERN void +free_SipStack(SipStack *arg1) { + delete arg1; +} + +SWIGINTERN VALUE +_wrap_SipStack_Start(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","Start", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->Start(); + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_setPassword(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","setPassword", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setPassword", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setPassword((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_setProxyCSCF(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *arg5 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + unsigned int val3 ; + int ecode3 = 0 ; + int res4 ; + char *buf4 = 0 ; + int alloc4 = 0 ; + int res5 ; + char *buf5 = 0 ; + int alloc5 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 4) || (argc > 4)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","setProxyCSCF", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setProxyCSCF", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","setProxyCSCF", 3, argv[1] )); + } + arg3 = static_cast< unsigned int >(val3); + res4 = SWIG_AsCharPtrAndSize(argv[2], &buf4, NULL, &alloc4); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","setProxyCSCF", 4, argv[2] )); + } + arg4 = reinterpret_cast< char * >(buf4); + res5 = SWIG_AsCharPtrAndSize(argv[3], &buf5, NULL, &alloc5); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","setProxyCSCF", 5, argv[3] )); + } + arg5 = reinterpret_cast< char * >(buf5); + result = (bool)(arg1)->setProxyCSCF((char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc4 == SWIG_NEWOBJ) delete[] buf4; + if (alloc5 == SWIG_NEWOBJ) delete[] buf5; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_setLocalIP(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","setLocalIP", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setLocalIP", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->setLocalIP((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_setLocalPort(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","setLocalPort", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","setLocalPort", 2, argv[0] )); + } + arg2 = static_cast< unsigned int >(val2); + result = (bool)(arg1)->setLocalPort(arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_addHeader(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + char *arg3 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int res3 ; + char *buf3 = 0 ; + int alloc3 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","addHeader", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","addHeader", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","addHeader", 3, argv[1] )); + } + arg3 = reinterpret_cast< char * >(buf3); + result = (bool)(arg1)->addHeader((char const *)arg2,(char const *)arg3); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + if (alloc3 == SWIG_NEWOBJ) delete[] buf3; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_removeHeader(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","removeHeader", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","removeHeader", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + result = (bool)(arg1)->removeHeader((char const *)arg2); + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_SipStack_Stop(int argc, VALUE *argv, VALUE self) { + SipStack *arg1 = (SipStack *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SipStack, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "SipStack *","Stop", 1, self )); + } + arg1 = reinterpret_cast< SipStack * >(argp1); + result = (bool)(arg1)->Stop(); + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static void *_p_RegistrationEventTo_p_SipEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipEvent *) ((RegistrationEvent *) x)); +} +static void *_p_SipStackTo_p_SafeObject(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SafeObject *) ((SipStack *) x)); +} +static void *_p_RegistrationSessionTo_p_SipSession(void *x, int *SWIGUNUSEDPARM(newmemory)) { + return (void *)((SipSession *) ((RegistrationSession *) x)); +} +static swig_type_info _swigt__p_RegistrationEvent = {"_p_RegistrationEvent", "RegistrationEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_RegistrationSession = {"_p_RegistrationSession", "RegistrationSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SafeObject = {"_p_SafeObject", "SafeObject *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipCallback = {"_p_SipCallback", "SipCallback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipEvent = {"_p_SipEvent", "SipEvent *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipSession = {"_p_SipSession", "SipSession *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_SipStack = {"_p_SipStack", "SipStack *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_event_type_e = {"_p_tsip_event_type_e", "enum tsip_event_type_e *|tsip_event_type_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tsip_register_event_type_e = {"_p_tsip_register_event_type_e", "enum tsip_register_event_type_e *|tsip_register_event_type_t *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_RegistrationEvent, + &_swigt__p_RegistrationSession, + &_swigt__p_SafeObject, + &_swigt__p_SipCallback, + &_swigt__p_SipEvent, + &_swigt__p_SipSession, + &_swigt__p_SipStack, + &_swigt__p_char, + &_swigt__p_tsip_event_type_e, + &_swigt__p_tsip_register_event_type_e, +}; + +static swig_cast_info _swigc__p_RegistrationEvent[] = { {&_swigt__p_RegistrationEvent, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_RegistrationSession[] = { {&_swigt__p_RegistrationSession, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SafeObject[] = { {&_swigt__p_SipStack, _p_SipStackTo_p_SafeObject, 0, 0}, {&_swigt__p_SafeObject, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipCallback[] = { {&_swigt__p_SipCallback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipEvent[] = { {&_swigt__p_SipEvent, 0, 0, 0}, {&_swigt__p_RegistrationEvent, _p_RegistrationEventTo_p_SipEvent, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipSession[] = { {&_swigt__p_SipSession, 0, 0, 0}, {&_swigt__p_RegistrationSession, _p_RegistrationSessionTo_p_SipSession, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_SipStack[] = { {&_swigt__p_SipStack, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_event_type_e[] = { {&_swigt__p_tsip_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tsip_register_event_type_e[] = { {&_swigt__p_tsip_register_event_type_e, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_RegistrationEvent, + _swigc__p_RegistrationSession, + _swigc__p_SafeObject, + _swigc__p_SipCallback, + _swigc__p_SipEvent, + _swigc__p_SipSession, + _swigc__p_SipStack, + _swigc__p_char, + _swigc__p_tsip_event_type_e, + _swigc__p_tsip_register_event_type_e, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ /* c-mode */ +#endif +} +#endif + +/* + +*/ +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void Init_tinyWRAP(void) { + size_t i; + + SWIG_InitRuntime(); + mTinyWRAP = rb_define_module("TinyWRAP"); + + SWIG_InitializeModule(0); + for (i = 0; i < swig_module.size; i++) { + SWIG_define_class(swig_module.types[i]); + } + + SWIG_RubyInitializeTrackings(); + + SwigClassSipEvent.klass = rb_define_class_under(mTinyWRAP, "SipEvent", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_SipEvent, (void *) &SwigClassSipEvent); + rb_define_alloc_func(SwigClassSipEvent.klass, _wrap_SipEvent_allocate); + rb_define_method(SwigClassSipEvent.klass, "initialize", VALUEFUNC(_wrap_new_SipEvent), -1); + rb_define_method(SwigClassSipEvent.klass, "getCode", VALUEFUNC(_wrap_SipEvent_getCode), -1); + rb_define_method(SwigClassSipEvent.klass, "getPhrase", VALUEFUNC(_wrap_SipEvent_getPhrase), -1); + rb_define_method(SwigClassSipEvent.klass, "getBaseSession", VALUEFUNC(_wrap_SipEvent_getBaseSession), -1); + SwigClassSipEvent.mark = 0; + SwigClassSipEvent.destroy = (void (*)(void *)) free_SipEvent; + SwigClassSipEvent.trackObjects = 0; + + SwigClassSipSession.klass = rb_define_class_under(mTinyWRAP, "SipSession", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_SipSession, (void *) &SwigClassSipSession); + rb_define_alloc_func(SwigClassSipSession.klass, _wrap_SipSession_allocate); + rb_define_method(SwigClassSipSession.klass, "initialize", VALUEFUNC(_wrap_new_SipSession), -1); + rb_define_method(SwigClassSipSession.klass, "addHeader", VALUEFUNC(_wrap_SipSession_addHeader), -1); + rb_define_method(SwigClassSipSession.klass, "removeHeader", VALUEFUNC(_wrap_SipSession_removeHeader), -1); + rb_define_method(SwigClassSipSession.klass, "addCaps", VALUEFUNC(_wrap_SipSession_addCaps), -1); + rb_define_method(SwigClassSipSession.klass, "removeCaps", VALUEFUNC(_wrap_SipSession_removeCaps), -1); + rb_define_method(SwigClassSipSession.klass, "setExpires", VALUEFUNC(_wrap_SipSession_setExpires), -1); + rb_define_method(SwigClassSipSession.klass, "setFromUri", VALUEFUNC(_wrap_SipSession_setFromUri), -1); + rb_define_method(SwigClassSipSession.klass, "setToUri", VALUEFUNC(_wrap_SipSession_setToUri), -1); + SwigClassSipSession.mark = 0; + SwigClassSipSession.destroy = (void (*)(void *)) free_SipSession; + SwigClassSipSession.trackObjects = 0; + + SwigClassRegistrationEvent.klass = rb_define_class_under(mTinyWRAP, "RegistrationEvent", ((swig_class *) SWIGTYPE_p_SipEvent->clientdata)->klass); + SWIG_TypeClientData(SWIGTYPE_p_RegistrationEvent, (void *) &SwigClassRegistrationEvent); + rb_define_alloc_func(SwigClassRegistrationEvent.klass, _wrap_RegistrationEvent_allocate); + rb_define_method(SwigClassRegistrationEvent.klass, "initialize", VALUEFUNC(_wrap_new_RegistrationEvent), -1); + rb_define_method(SwigClassRegistrationEvent.klass, "getType", VALUEFUNC(_wrap_RegistrationEvent_getType), -1); + rb_define_method(SwigClassRegistrationEvent.klass, "getSession", VALUEFUNC(_wrap_RegistrationEvent_getSession), -1); + SwigClassRegistrationEvent.mark = 0; + SwigClassRegistrationEvent.destroy = (void (*)(void *)) free_RegistrationEvent; + SwigClassRegistrationEvent.trackObjects = 0; + + SwigClassRegistrationSession.klass = rb_define_class_under(mTinyWRAP, "RegistrationSession", ((swig_class *) SWIGTYPE_p_SipSession->clientdata)->klass); + SWIG_TypeClientData(SWIGTYPE_p_RegistrationSession, (void *) &SwigClassRegistrationSession); + rb_define_alloc_func(SwigClassRegistrationSession.klass, _wrap_RegistrationSession_allocate); + rb_define_method(SwigClassRegistrationSession.klass, "initialize", VALUEFUNC(_wrap_new_RegistrationSession), -1); + rb_define_method(SwigClassRegistrationSession.klass, "Register", VALUEFUNC(_wrap_RegistrationSession_Register), -1); + rb_define_method(SwigClassRegistrationSession.klass, "UnRegister", VALUEFUNC(_wrap_RegistrationSession_UnRegister), -1); + SwigClassRegistrationSession.mark = 0; + SwigClassRegistrationSession.destroy = (void (*)(void *)) free_RegistrationSession; + SwigClassRegistrationSession.trackObjects = 0; + rb_define_module_function(mTinyWRAP, "disown_SipCallback", VALUEFUNC(_wrap_disown_SipCallback), -1); + + SwigClassSipCallback.klass = rb_define_class_under(mTinyWRAP, "SipCallback", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_SipCallback, (void *) &SwigClassSipCallback); + rb_define_alloc_func(SwigClassSipCallback.klass, _wrap_SipCallback_allocate); + rb_define_method(SwigClassSipCallback.klass, "initialize", VALUEFUNC(_wrap_new_SipCallback), -1); + rb_define_method(SwigClassSipCallback.klass, "OnRegistrationChanged", VALUEFUNC(_wrap_SipCallback_OnRegistrationChanged), -1); + SwigClassSipCallback.mark = 0; + SwigClassSipCallback.destroy = (void (*)(void *)) free_SipCallback; + SwigClassSipCallback.trackObjects = 0; + + SwigClassSafeObject.klass = rb_define_class_under(mTinyWRAP, "SafeObject", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_SafeObject, (void *) &SwigClassSafeObject); + rb_define_alloc_func(SwigClassSafeObject.klass, _wrap_SafeObject_allocate); + rb_define_method(SwigClassSafeObject.klass, "initialize", VALUEFUNC(_wrap_new_SafeObject), -1); + rb_define_method(SwigClassSafeObject.klass, "Lock", VALUEFUNC(_wrap_SafeObject_Lock), -1); + rb_define_method(SwigClassSafeObject.klass, "UnLock", VALUEFUNC(_wrap_SafeObject_UnLock), -1); + SwigClassSafeObject.mark = 0; + SwigClassSafeObject.destroy = (void (*)(void *)) free_SafeObject; + SwigClassSafeObject.trackObjects = 0; + + SwigClassSipStack.klass = rb_define_class_under(mTinyWRAP, "SipStack", ((swig_class *) SWIGTYPE_p_SafeObject->clientdata)->klass); + SWIG_TypeClientData(SWIGTYPE_p_SipStack, (void *) &SwigClassSipStack); + rb_define_alloc_func(SwigClassSipStack.klass, _wrap_SipStack_allocate); + rb_define_method(SwigClassSipStack.klass, "initialize", VALUEFUNC(_wrap_new_SipStack), -1); + rb_define_method(SwigClassSipStack.klass, "Start", VALUEFUNC(_wrap_SipStack_Start), -1); + rb_define_method(SwigClassSipStack.klass, "setPassword", VALUEFUNC(_wrap_SipStack_setPassword), -1); + rb_define_method(SwigClassSipStack.klass, "setProxyCSCF", VALUEFUNC(_wrap_SipStack_setProxyCSCF), -1); + rb_define_method(SwigClassSipStack.klass, "setLocalIP", VALUEFUNC(_wrap_SipStack_setLocalIP), -1); + rb_define_method(SwigClassSipStack.klass, "setLocalPort", VALUEFUNC(_wrap_SipStack_setLocalPort), -1); + rb_define_method(SwigClassSipStack.klass, "addHeader", VALUEFUNC(_wrap_SipStack_addHeader), -1); + rb_define_method(SwigClassSipStack.klass, "removeHeader", VALUEFUNC(_wrap_SipStack_removeHeader), -1); + rb_define_method(SwigClassSipStack.klass, "Stop", VALUEFUNC(_wrap_SipStack_Stop), -1); + SwigClassSipStack.mark = 0; + SwigClassSipStack.destroy = (void (*)(void *)) free_SipStack; + SwigClassSipStack.trackObjects = 0; + rb_define_const(mTinyWRAP, "Tsip_event_invite", SWIG_From_int(static_cast< int >(tsip_event_invite))); + rb_define_const(mTinyWRAP, "Tsip_event_message", SWIG_From_int(static_cast< int >(tsip_event_message))); + rb_define_const(mTinyWRAP, "Tsip_event_options", SWIG_From_int(static_cast< int >(tsip_event_options))); + rb_define_const(mTinyWRAP, "Tsip_event_publish", SWIG_From_int(static_cast< int >(tsip_event_publish))); + rb_define_const(mTinyWRAP, "Tsip_event_register", SWIG_From_int(static_cast< int >(tsip_event_register))); + rb_define_const(mTinyWRAP, "Tsip_event_subscribe", SWIG_From_int(static_cast< int >(tsip_event_subscribe))); + rb_define_const(mTinyWRAP, "Tsip_event_dialog", SWIG_From_int(static_cast< int >(tsip_event_dialog))); + rb_define_const(mTinyWRAP, "Tsip_i_register", SWIG_From_int(static_cast< int >(tsip_i_register))); + rb_define_const(mTinyWRAP, "Tsip_ai_register", SWIG_From_int(static_cast< int >(tsip_ai_register))); + rb_define_const(mTinyWRAP, "Tsip_o_register", SWIG_From_int(static_cast< int >(tsip_o_register))); + rb_define_const(mTinyWRAP, "Tsip_ao_register", SWIG_From_int(static_cast< int >(tsip_ao_register))); + rb_define_const(mTinyWRAP, "Tsip_i_unregister", SWIG_From_int(static_cast< int >(tsip_i_unregister))); + rb_define_const(mTinyWRAP, "Tsip_ai_unregister", SWIG_From_int(static_cast< int >(tsip_ai_unregister))); + rb_define_const(mTinyWRAP, "Tsip_o_unregister", SWIG_From_int(static_cast< int >(tsip_o_unregister))); + rb_define_const(mTinyWRAP, "Tsip_ao_unregister", SWIG_From_int(static_cast< int >(tsip_ao_unregister))); +} + diff --git a/bindings/ruby/tinyWRAP_wrap.h b/bindings/ruby/tinyWRAP_wrap.h new file mode 100644 index 0000000..5320a3f4 --- /dev/null +++ b/bindings/ruby/tinyWRAP_wrap.h @@ -0,0 +1,28 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * 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 + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_TinyWRAP_WRAP_H_ +#define SWIG_TinyWRAP_WRAP_H_ + +namespace Swig { + class Director; +} + + +class SwigDirector_SipCallback : public SipCallback, public Swig::Director { + +public: + SwigDirector_SipCallback(VALUE self); + virtual ~SwigDirector_SipCallback(); + virtual int OnRegistrationChanged(RegistrationEvent const *e); +}; + + +#endif diff --git a/bindings/tinyWRAP.pc.in b/bindings/tinyWRAP.pc.in new file mode 100644 index 0000000..20c3399 --- /dev/null +++ b/bindings/tinyWRAP.pc.in @@ -0,0 +1,15 @@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ +libdir = @libdir@ +includedir = @includedir@ + +Name : libtinyWRAP +Description : Doubango Telecom tinyWRAP (Wrapper) library +Version : @PACKAGE_VERSION@ +Requires: +Requires.private: tinySAK = @PACKAGE_VERSION@ tinyNET = @PACKAGE_VERSION@ tinySDP = @PACKAGE_VERSION@ tinyRTP = @PACKAGE_VERSION@ tinyMEDIA = @PACKAGE_VERSION@ tinyMSRP = @PACKAGE_VERSION@ tinyDAV = @PACKAGE_VERSION@ +Conflicts: +Cflags : -I${includedir}/tinywrap +Libs : -L${libdir} -ltinyWRAP +Libs.private: @LIBFFMPEG_LIBADD@ @LIBX264_LIBADD@ @LIBOPENH264_LIBADD@ @LIBVPX_LIBADD@ @LIBOPUS_LIBADD@ @LIBAMR_LIBADD@ @LIBSPEEX_LIBADD@ @LIBSPEEXDSP_LIBADD@ @LIBGSM_LIBADD@ @LIBG729_LIBADD@ @LIBILBC_LIBADD@ + diff --git a/bindings/version.rc b/bindings/version.rc new file mode 100644 index 0000000..6e463d7 --- /dev/null +++ b/bindings/version.rc @@ -0,0 +1,102 @@ +// Microsoft Visual C++ generated resource script. +// +// #include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "afxres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (U.S.) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""afxres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 2.0.0.1156 + PRODUCTVERSION 2.0.0.1156 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "Doubango telecom" + VALUE "FileDescription", "Doubango IMS Framework" + VALUE "FileVersion", "2.0.0.1156" + VALUE "InternalName", "tinywrap.dll" + VALUE "LegalCopyright", "(c) 2010-2013 Doubango Telecom. All rights reserved." + VALUE "OriginalFilename", "tinywrap.dll" + VALUE "ProductName", "Doubango IMS Framework" + VALUE "ProductVersion", "2.0.0.1156" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // English (U.S.) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/bindings/vs_2005/csharp/test/Form1.Designer.cs b/bindings/vs_2005/csharp/test/Form1.Designer.cs new file mode 100644 index 0000000..c983829 --- /dev/null +++ b/bindings/vs_2005/csharp/test/Form1.Designer.cs @@ -0,0 +1,137 @@ +namespace test +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.buttonRegister = new System.Windows.Forms.Button(); + this.buttonUnRegister = new System.Windows.Forms.Button(); + this.textBoxDebug = new System.Windows.Forms.TextBox(); + this.buttonPublish = new System.Windows.Forms.Button(); + this.buttonUnPublish = new System.Windows.Forms.Button(); + this.buttonUnSub = new System.Windows.Forms.Button(); + this.buttonSub = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // buttonRegister + // + this.buttonRegister.Location = new System.Drawing.Point(12, 263); + this.buttonRegister.Name = "buttonRegister"; + this.buttonRegister.Size = new System.Drawing.Size(75, 23); + this.buttonRegister.TabIndex = 0; + this.buttonRegister.Text = "Register"; + this.buttonRegister.UseVisualStyleBackColor = true; + this.buttonRegister.Click += new System.EventHandler(this.buttonRegister_Click); + // + // buttonUnRegister + // + this.buttonUnRegister.Location = new System.Drawing.Point(199, 263); + this.buttonUnRegister.Name = "buttonUnRegister"; + this.buttonUnRegister.Size = new System.Drawing.Size(75, 23); + this.buttonUnRegister.TabIndex = 1; + this.buttonUnRegister.Text = "UnRegister"; + this.buttonUnRegister.UseVisualStyleBackColor = true; + this.buttonUnRegister.Click += new System.EventHandler(this.buttonUnRegister_Click); + // + // textBoxDebug + // + this.textBoxDebug.Location = new System.Drawing.Point(12, 292); + this.textBoxDebug.Multiline = true; + this.textBoxDebug.Name = "textBoxDebug"; + this.textBoxDebug.Size = new System.Drawing.Size(262, 70); + this.textBoxDebug.TabIndex = 2; + // + // buttonPublish + // + this.buttonPublish.Location = new System.Drawing.Point(12, 234); + this.buttonPublish.Name = "buttonPublish"; + this.buttonPublish.Size = new System.Drawing.Size(75, 23); + this.buttonPublish.TabIndex = 3; + this.buttonPublish.Text = "Publish"; + this.buttonPublish.UseVisualStyleBackColor = true; + this.buttonPublish.Click += new System.EventHandler(this.buttonPublish_Click); + // + // buttonUnPublish + // + this.buttonUnPublish.Location = new System.Drawing.Point(199, 235); + this.buttonUnPublish.Name = "buttonUnPublish"; + this.buttonUnPublish.Size = new System.Drawing.Size(75, 23); + this.buttonUnPublish.TabIndex = 4; + this.buttonUnPublish.Text = "UnPublish"; + this.buttonUnPublish.UseVisualStyleBackColor = true; + this.buttonUnPublish.Click += new System.EventHandler(this.buttonUnPublish_Click); + // + // buttonUnSub + // + this.buttonUnSub.Location = new System.Drawing.Point(199, 206); + this.buttonUnSub.Name = "buttonUnSub"; + this.buttonUnSub.Size = new System.Drawing.Size(75, 23); + this.buttonUnSub.TabIndex = 6; + this.buttonUnSub.Text = "UnSubscribe"; + this.buttonUnSub.UseVisualStyleBackColor = true; + // + // buttonSub + // + this.buttonSub.Location = new System.Drawing.Point(12, 205); + this.buttonSub.Name = "buttonSub"; + this.buttonSub.Size = new System.Drawing.Size(75, 23); + this.buttonSub.TabIndex = 5; + this.buttonSub.Text = "Subscribe"; + this.buttonSub.UseVisualStyleBackColor = true; + this.buttonSub.Click += new System.EventHandler(this.buttonSub_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(286, 374); + this.Controls.Add(this.buttonUnSub); + this.Controls.Add(this.buttonSub); + this.Controls.Add(this.buttonUnPublish); + this.Controls.Add(this.buttonPublish); + this.Controls.Add(this.textBoxDebug); + this.Controls.Add(this.buttonUnRegister); + this.Controls.Add(this.buttonRegister); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonRegister; + private System.Windows.Forms.Button buttonUnRegister; + private System.Windows.Forms.TextBox textBoxDebug; + private System.Windows.Forms.Button buttonPublish; + private System.Windows.Forms.Button buttonUnPublish; + private System.Windows.Forms.Button buttonUnSub; + private System.Windows.Forms.Button buttonSub; + } +} + diff --git a/bindings/vs_2005/csharp/test/Form1.cs b/bindings/vs_2005/csharp/test/Form1.cs new file mode 100644 index 0000000..5ed8a79 --- /dev/null +++ b/bindings/vs_2005/csharp/test/Form1.cs @@ -0,0 +1,245 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace test +{ + public partial class Form1 : Form + { + /*const String REALM = "ims.inexbee.com"; + const String USER = "mamadou"; + const String PASSWORD = "mamadou"; + const String PROXY_CSCF_IP = "192.168.16.225"; + const uint PROXY_CSCF_PORT = 4060;*/ + + const String REALM = "micromethod.com"; + const String USER = "mamadou"; + const String PASSWORD = "mamadou"; + const String PROXY_CSCF_IP = "192.168.16.104"; + const uint PROXY_CSCF_PORT = 5060; + + RegistrationSession regSession = null; + PublicationSession pubSession = null; + SubscriptionSession subSession = null; + MyCallback callback = null; + SipStack stack = null; + + public delegate void PrintDebug(String text); + public PrintDebug mydel; + + const String PUBLISH_PAYLOAD = "" + +"" + + "" + + "" + + "open" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "http://doubango.org" + + "Come share with me RCS Experience" + + "" + + "" + + "" + + "open" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "" + + "urn:uuid:3ca50bcb-7a67-44f1-afd0-994a55f930f4" + + "" + +""; + + public Form1() + { + InitializeComponent(); + + bool success; + + mydel = new PrintDebug(PrintDebugMethod); + + /* Create call back */ + callback = new MyCallback(this); + /* Create and configure the IMS/LTE stack */ + // stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM)); + stack = new SipStack(callback, String.Format("sip:{0}", REALM), String.Format("{0}@{1}", USER, REALM), String.Format("sip:{0}@{1}", USER, REALM)); + + if (!stack.isValid()) + { + this.textBoxDebug.Text = "Invalid stack"; + return; + } + + stack.addHeader("Allow", "INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER"); + stack.addHeader("Privacy", "header; id"); + stack.addHeader("P-Access-Network-Info", "ADSL;utran-cell-id-3gpp=00000000"); + stack.addHeader("User-Agent", "IM-client/OMA1.0 doubango/v1.0.0"); + + /* set password */ + success = stack.setPassword(PASSWORD); + /* Sets Proxy-CSCF */ + success = stack.setProxyCSCF(PROXY_CSCF_IP, PROXY_CSCF_PORT, "udp", "ipv4"); + /* Starts the stack */ + success = stack.start(); + } + + private void buttonRegister_Click(object sender, EventArgs e) + { + if (this.regSession == null) + { + this.regSession = new RegistrationSession(stack); + this.regSession.addCaps("+g.oma.sip-im"); + this.regSession.addCaps("+g.3gpp.smsip"); + this.regSession.addCaps("language", "\"en,fr\""); + this.regSession.setExpires(30); + } + this.regSession.Register(); + } + + private void buttonUnRegister_Click(object sender, EventArgs e) + { + if (this.regSession != null) + { + this.regSession.UnRegister(); + } + } + + private void buttonPublish_Click(object sender, EventArgs e) + { + if (this.pubSession == null) + { + this.pubSession = new PublicationSession(stack); + this.pubSession.addHeader("Content-Type", "application/pidf+xml"); + this.pubSession.addHeader("Event", "presence"); + this.pubSession.setExpires(30); + + byte[] payload = Encoding.UTF8.GetBytes(PUBLISH_PAYLOAD); + this.pubSession.Publish(payload, (uint)payload.Length); + } + } + + private void buttonUnPublish_Click(object sender, EventArgs e) + { + if (this.pubSession != null) + { + this.pubSession.UnPublish(); + } + } + + void PrintDebugMethod(String text) + { + this.textBoxDebug.Text = text; + } + + private void buttonSub_Click(object sender, EventArgs e) + { + if (this.subSession == null) + { + this.subSession = new SubscriptionSession(stack); + this.subSession.addHeader("Accept", "application/reginfo+xml"); + this.subSession.addHeader("Event", "reg"); + this.subSession.setExpires(30); + + this.subSession.Subscribe(); + } + } + } + + + + + + public class MyCallback : SipCallback + { + Form1 form; + + public MyCallback(Form1 form) + : base() + { + this.form = form; + } + + public override int OnRegistrationEvent(RegistrationEvent e) + { + short code = e.getCode(); + tsip_register_event_type_t type = e.getType(); + String text; + + RegistrationSession session = e.getSession(); + + switch (type) + { + case tsip_register_event_type_t.tsip_i_register: + case tsip_register_event_type_t.tsip_ao_register: + case tsip_register_event_type_t.tsip_i_unregister: + case tsip_register_event_type_t.tsip_ao_unregister: + break; + } + + text = String.Format("OnRegistrationChanged() ==> {0}:{1}", code, e.getPhrase()); + + if (this.form.InvokeRequired) + { + this.form.Invoke(this.form.mydel, new object[] { text }); + } + + return 0; + } + + public override int OnSubscriptionEvent(SubscriptionEvent e) + { + switch (e.getType()) + { + case tsip_subscribe_event_type_t.tsip_i_notify: + String ev = e.getSipMessage().getSipHeaderValue("Event"); + Console.WriteLine("Event=%s", ev); + break; + default: + break; + } + return base.OnSubscriptionEvent(e); + } + + public override int OnPublicationEvent(PublicationEvent e) + { + short code = e.getCode(); + tsip_publish_event_type_t type = e.getType(); + String text; + + PublicationSession session = e.getSession(); + + switch (type){ + default: + break; + } + + text = String.Format("OnPublicationChanged() ==> {0}:{1}", code, e.getPhrase()); + + if (this.form.InvokeRequired) + { + this.form.Invoke(this.form.mydel, new object[] { text }); + } + + return 0; + } + } + + + +} \ No newline at end of file diff --git a/bindings/vs_2005/csharp/test/Form1.resx b/bindings/vs_2005/csharp/test/Form1.resx new file mode 100644 index 0000000..19dc0dd --- /dev/null +++ b/bindings/vs_2005/csharp/test/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/bindings/vs_2005/csharp/test/Program.cs b/bindings/vs_2005/csharp/test/Program.cs new file mode 100644 index 0000000..30a444f --- /dev/null +++ b/bindings/vs_2005/csharp/test/Program.cs @@ -0,0 +1,42 @@ +/* +* Copyright (C) 2009 Mamadou Diop. +* +* Contact: Mamadou Diop +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +* +*/ + +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace test +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs b/bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f363096 --- /dev/null +++ b/bindings/vs_2005/csharp/test/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Inexbee")] +[assembly: AssemblyProduct("test")] +[assembly: AssemblyCopyright("Copyright © Inexbee 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a92d8157-6c95-44ef-a64a-0c4dd0c40345")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs b/bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs new file mode 100644 index 0000000..371c66b --- /dev/null +++ b/bindings/vs_2005/csharp/test/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.3603 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace test.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("test.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/bindings/vs_2005/csharp/test/Properties/Resources.resx b/bindings/vs_2005/csharp/test/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/bindings/vs_2005/csharp/test/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs b/bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs new file mode 100644 index 0000000..54d5bfa --- /dev/null +++ b/bindings/vs_2005/csharp/test/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.3603 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace test.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/bindings/vs_2005/csharp/test/Properties/Settings.settings b/bindings/vs_2005/csharp/test/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/bindings/vs_2005/csharp/test/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/bindings/vs_2005/csharp/test/test.csproj b/bindings/vs_2005/csharp/test/test.csproj new file mode 100644 index 0000000..1780ff6 --- /dev/null +++ b/bindings/vs_2005/csharp/test/test.csproj @@ -0,0 +1,189 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {F7834906-DC12-4FA4-9722-2F110F815266} + WinExe + Properties + test + test + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + CallEvent.cs + + + CallSession.cs + + + DDebugCallback.cs + + + DialogEvent.cs + + + MessagingEvent.cs + + + MessagingSession.cs + + + OptionsEvent.cs + + + OptionsSession.cs + + + ProxyAudioConsumer.cs + + + ProxyAudioProducer.cs + + + ProxyVideoConsumer.cs + + + ProxyVideoFrame.cs + + + ProxyVideoProducer.cs + + + PublicationEvent.cs + + + PublicationSession.cs + + + RegistrationEvent.cs + + + RegistrationSession.cs + + + SafeObject.cs + + + SipCallback.cs + + + SipEvent.cs + + + SipMessage.cs + + + SipSession.cs + + + SipStack.cs + + + SipUri.cs + + + StackEvent.cs + + + SubscriptionEvent.cs + + + SubscriptionSession.cs + + + tinyWRAP.cs + + + tinyWRAPPINVOKE.cs + + + tmedia_chroma_t.cs + + + tsip_event_type_t.cs + + + tsip_invite_event_type_t.cs + + + tsip_message_event_type_t.cs + + + tsip_options_event_type_t.cs + + + tsip_publish_event_type_t.cs + + + tsip_register_event_type_t.cs + + + tsip_subscribe_event_type_t.cs + + + Form + + + Form1.cs + + + + + Designer + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/bindings/vs_2005/csharp/tinyWRAP.sln b/bindings/vs_2005/csharp/tinyWRAP.sln new file mode 100644 index 0000000..4fd860c --- /dev/null +++ b/bindings/vs_2005/csharp/tinyWRAP.sln @@ -0,0 +1,246 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyWRAP", "tinyWRAP.vcproj", "{6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySAK", "..\..\..\vs_2005\tinySAK\tinySAK.vcproj", "{6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyNET", "..\..\..\vs_2005\tinyNET\tinyNET.vcproj", "{7522A458-92F4-4259-B906-E84C2A65D9F1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIP", "..\..\..\vs_2005\tinySIP\tinySIP.vcproj", "{4CE20732-9978-4A88-B586-CFEFCB63E82D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyHTTP", "..\..\..\vs_2005\tinyHTTP\tinyHTTP.vcproj", "{B3E45009-C7C3-4090-837C-2D30C9058443}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyIPSec", "..\..\..\vs_2005\tinyIPSec\tinyIPSec.vcproj", "{002FF064-588F-402E-A096-C8D033F49F40}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySDP", "..\..\..\vs_2005\tinySDP\tinySDP.vcproj", "{E45DB518-6562-4033-80E8-60030F0B169F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMEDIA", "..\..\..\vs_2005\tinyMEDIA\tinyMEDIA.vcproj", "{52814B0D-7DCA-45B8-9A16-8B147040D619}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test", "test\test.csproj", "{F7834906-DC12-4FA4-9722-2F110F815266}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDAV", "..\..\..\vs_2005\tinyDAV\tinyDAV.vcproj", "{8E2F0B2E-2596-4010-BF4A-2F688975B5C1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIGCOMP", "..\..\..\vs_2005\tinySIGCOMP\tinySIGCOMP.vcproj", "{76261DC8-25B3-43F4-9FB5-112C4AC0880E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyRTP", "..\..\..\vs_2005\tinyRTP\tinyRTP.vcproj", "{99B7D02F-8C70-4B45-AF3C-92313C3CEE15}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDSHOW", "..\..\..\vs_2005\tinyDSHOW\tinyDSHOW.vcproj", "{0CCC02F1-4233-424F-AD5E-A021456E6E8D}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySMS", "..\..\..\vs_2005\tinySMS\tinySMS.vcproj", "{9A3A5AF3-2333-4477-B880-7F901F9D8972}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Win32.ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Win32.Build.0 = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Any CPU.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Mixed Platforms.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Win32.ActiveCfg = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Win32.Build.0 = Release|Win32 + {6B60DF14-D5D7-4654-B8F9-1CBC8892CFC8}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.ActiveCfg = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Win32.Build.0 = Debug|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.ActiveCfg = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Win32.Build.0 = Release|Win32 + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {6BC9B796-10C6-4CF7-A6E4-E2DACCDA84DA}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.ActiveCfg = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Win32.Build.0 = Debug|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.ActiveCfg = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Win32.Build.0 = Release|Win32 + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {7522A458-92F4-4259-B906-E84C2A65D9F1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Win32.ActiveCfg = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Win32.Build.0 = Debug|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Win32.ActiveCfg = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Win32.Build.0 = Release|Win32 + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {4CE20732-9978-4A88-B586-CFEFCB63E82D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Mixed Platforms.Deploy.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.ActiveCfg = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Win32.Build.0 = Debug|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.ActiveCfg = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Win32.Build.0 = Release|Win32 + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {B3E45009-C7C3-4090-837C-2D30C9058443}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Win32.ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Win32.Build.0 = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Any CPU.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Mixed Platforms.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Win32.ActiveCfg = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Win32.Build.0 = Release|Win32 + {002FF064-588F-402E-A096-C8D033F49F40}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Win32.ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Win32.Build.0 = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Any CPU.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Mixed Platforms.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Win32.ActiveCfg = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Win32.Build.0 = Release|Win32 + {E45DB518-6562-4033-80E8-60030F0B169F}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Win32.ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Win32.Build.0 = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Any CPU.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Mixed Platforms.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Win32.ActiveCfg = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Win32.Build.0 = Release|Win32 + {52814B0D-7DCA-45B8-9A16-8B147040D619}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {F7834906-DC12-4FA4-9722-2F110F815266}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Debug|Win32.ActiveCfg = Debug|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Release|Any CPU.Build.0 = Release|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Release|Win32.ActiveCfg = Release|Any CPU + {F7834906-DC12-4FA4-9722-2F110F815266}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Any CPU + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Win32.ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Win32.Build.0 = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Any CPU.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Mixed Platforms.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Win32.ActiveCfg = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Win32.Build.0 = Release|Win32 + {8E2F0B2E-2596-4010-BF4A-2F688975B5C1}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Any CPU.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Mixed Platforms.Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Win32.ActiveCfg = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Win32.Build.0 = Debug|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Any CPU.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Mixed Platforms.Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Win32.ActiveCfg = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Win32.Build.0 = Release|Win32 + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {76261DC8-25B3-43F4-9FB5-112C4AC0880E}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Win32.ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Win32.Build.0 = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Any CPU.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Mixed Platforms.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Win32.ActiveCfg = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Win32.Build.0 = Release|Win32 + {99B7D02F-8C70-4B45-AF3C-92313C3CEE15}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Win32.ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Win32.Build.0 = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Any CPU.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Mixed Platforms.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Win32.ActiveCfg = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Win32.Build.0 = Release|Win32 + {0CCC02F1-4233-424F-AD5E-A021456E6E8D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Win32.Build.0 = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Any CPU.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Mixed Platforms.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.ActiveCfg = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Win32.Build.0 = Release|Win32 + {9A3A5AF3-2333-4477-B880-7F901F9D8972}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/bindings/vs_2005/csharp/tinyWRAP.vcproj b/bindings/vs_2005/csharp/tinyWRAP.vcproj new file mode 100644 index 0000000..4176f80 --- /dev/null +++ b/bindings/vs_2005/csharp/tinyWRAP.vcproj @@ -0,0 +1,329 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bindings/winrt/HandleRef.cs b/bindings/winrt/HandleRef.cs new file mode 100644 index 0000000..649f125 --- /dev/null +++ b/bindings/winrt/HandleRef.cs @@ -0,0 +1,55 @@ +// ==++== +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// ==--== +namespace System.Runtime.InteropServices +{ + + using System; + + [System.Runtime.InteropServices.ComVisible(true)] + public struct HandleRef + { + + // ! Do not add or rearrange fields as the EE depends on this layout. + //------------------------------------------------------------------ + internal Object m_wrapper; + internal IntPtr m_handle; + //----------------------------------------------------------------- + + + public HandleRef(Object wrapper, IntPtr handle) + { + m_wrapper = wrapper; + m_handle = handle; + } + + public Object Wrapper + { + get + { + return m_wrapper; + } + } + + public IntPtr Handle + { + get + { + return m_handle; + } + } + + + public static explicit operator IntPtr(HandleRef value) + { + return value.m_handle; + } + + public static IntPtr ToIntPtr(HandleRef value) + { + return value.m_handle; + } + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/doubango_rt.vcxproj b/bindings/winrt/doubango_rt/doubango_rt.vcxproj new file mode 100644 index 0000000..41b23c5 --- /dev/null +++ b/bindings/winrt/doubango_rt/doubango_rt.vcxproj @@ -0,0 +1,232 @@ + + + + + Debug + Win32 + + + Debug + ARM + + + Release + Win32 + + + Release + ARM + + + + {9ef0fc75-baab-4f71-ac0c-dbd185463ff8} + doubango_rt + en-US + 11.0 + true + + + + DynamicLibrary + true + v110_wp80 + + + DynamicLibrary + true + v110_wp80 + + + DynamicLibrary + false + true + v110_wp80 + + + DynamicLibrary + false + true + v110_wp80 + + + + + + + + false + + + $(SolutionDir)$(Configuration)\$(MSBuildProjectName)\ + + + $(SolutionDir)$(Configuration)\$(MSBuildProjectName)\ + + + $(Platform)\$(Configuration)\ + + + $(Platform)\$(Configuration)\ + + + + _WINRT_DLL;%(PreprocessorDefinitions) + NotUsing + + + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + true + include;..\..\_common;..\..\.;..\..\..\thirdparties\winrt\include;..\..\..\tinySAK\src;..\..\..\tinyNET\src;..\..\..\tinyHTTP\include;..\..\..\tinySIP\include;..\..\..\tinyDAV\include;..\..\..\tinySDP\include;..\..\..\tinyMEDIA\include;..\..\..\tinyXCAP\include;..\..\..\tinySMS\include;..\..\..\tinyMSRP\include + + + Console + false + ole32.lib;%(IgnoreSpecificDefaultLibraries) + true + %(AdditionalDependencies) + + + + + _WINRT_DLL;NDEBUG;%(PreprocessorDefinitions) + NotUsing + + + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + true + include;..\..\_common;..\..\.;..\..\..\thirdparties\winrt\include;..\..\..\tinySAK\src;..\..\..\tinyNET\src;..\..\..\tinyHTTP\include;..\..\..\tinySIP\include;..\..\..\tinyDAV\include;..\..\..\tinySDP\include;..\..\..\tinyMEDIA\include;..\..\..\tinyXCAP\include;..\..\..\tinySMS\include;..\..\..\tinyMSRP\include + + + Console + false + ole32.lib;%(IgnoreSpecificDefaultLibraries) + true + %(AdditionalDependencies) + + + + + _WINRT_DLL;%(PreprocessorDefinitions) + NotUsing + + + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + true + include;..\..\_common;..\..\.;..\..\..\thirdparties\winrt\include;..\..\..\tinySAK\src;..\..\..\tinyNET\src;..\..\..\tinyHTTP\include;..\..\..\tinySIP\include;..\..\..\tinyDAV\include;..\..\..\tinySDP\include;..\..\..\tinyMEDIA\include;..\..\..\tinyXCAP\include;..\..\..\tinySMS\include;..\..\..\tinyMSRP\include + + + Console + false + ole32.lib;%(IgnoreSpecificDefaultLibraries) + true + %(AdditionalDependencies) + + + + + _WINRT_DLL;NDEBUG;%(PreprocessorDefinitions) + NotUsing + + + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + true + include;..\..\_common;..\..\.;..\..\..\thirdparties\winrt\include;..\..\..\tinySAK\src;..\..\..\tinyNET\src;..\..\..\tinyHTTP\include;..\..\..\tinySIP\include;..\..\..\tinyDAV\include;..\..\..\tinySDP\include;..\..\..\tinyMEDIA\include;..\..\..\tinyXCAP\include;..\..\..\tinySMS\include;..\..\..\tinyMSRP\include + + + Console + false + ole32.lib;%(IgnoreSpecificDefaultLibraries) + true + %(AdditionalDependencies) + + + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {0f2c458a-1edb-4e09-9a22-c2209731cff2} + + + {1a27423c-6535-4a49-96ec-5d209fe125f2} + + + {0875a083-5118-40cc-941e-722b00295a5b} + + + {52e43eeb-a549-4159-b254-dca225d7638b} + + + {be41d117-1d61-4c12-ad9d-b20d02c79687} + + + {06e58f9d-28a1-4dd4-af11-2f5239222ccc} + + + {77a24977-079c-4e02-9717-8b2f684baa21} + + + {19279f5b-cdaf-4187-9f09-2a896a828b05} + + + {982d737a-0649-4c32-a00e-08992a0b7673} + + + {f623cbdb-707a-4fdc-ace0-3d616e239f16} + + + {1137a808-dac8-4af7-b8bb-aee8abff2f67} + + + {65cdf0ff-3b84-45f3-9bb6-468c79b8e0bc} + + + {49843b78-0ceb-445d-bacc-c5c5c2f6c26f} + + + {5004ba7e-950d-4d60-a030-29acd38dca08} + + + + + + + \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/doubango_rt.vcxproj.filters b/bindings/winrt/doubango_rt/doubango_rt.vcxproj.filters new file mode 100644 index 0000000..774b55d --- /dev/null +++ b/bindings/winrt/doubango_rt/doubango_rt.vcxproj.filters @@ -0,0 +1,112 @@ + + + + + 5fd0e509-b6ae-4f29-bd2a-4d2cc10f3aa0 + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {98c8b78c-011e-40c4-91a2-a9fcf6d9fa24} + + + {a8badfe7-5114-4a27-bb07-76772da8a9d1} + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_ActionConfig.h b/bindings/winrt/doubango_rt/include/rt_ActionConfig.h new file mode 100644 index 0000000..abafc37 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_ActionConfig.h @@ -0,0 +1,53 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Enums.h" + +class ActionConfig; + +namespace doubango_rt +{ + namespace BackEnd + { + public ref class rtActionConfig sealed + { + public: + rtActionConfig(); + virtual ~rtActionConfig(); + + bool addHeader(Platform::String^ name, Platform::String^ value); +#if COM_VISIBLE + bool addPayload(Platform::String^ payload); +#else + bool addPayload(Platform::IntPtr payload, unsigned len); +#endif + bool setActiveMedia(rt_twrap_media_type_t type); + + rtActionConfig^ setResponseLine(short code, Platform::String^ phrase); + rtActionConfig^ setMediaString(rt_twrap_media_type_t type, Platform::String^ key, Platform::String^ value); + rtActionConfig^ setMediaInt(rt_twrap_media_type_t type, Platform::String^ key, int value); + + internal: + ActionConfig* getWrappedActionConfig(){ return m_pActionConfig; } + + private: + ActionConfig* m_pActionConfig; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_Config.h b/bindings/winrt/doubango_rt/include/rt_Config.h new file mode 100644 index 0000000..e8d7dde --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_Config.h @@ -0,0 +1,31 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#define rtSafeDelete(ptr) if((ptr)) delete (ptr), (ptr) = nullptr; + +#if COM_VISIBLE +# define OVERRIDE_FUNC(fun) +# define VISIBLE_VOID_PTR Platform::String^ +# define VISIBLE_VOID_PTR_2_VOID_PTR(ptr) rtString::toUtf8((ptr)).data() +#else +# define OVERRIDE_FUNC(fun) fun +# define VISIBLE_VOID_PTR Platform::IntPtr +# define VISIBLE_VOID_PTR_2_VOID_PTR(ptr) (void*)((ptr)) +#endif + \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_DDebug.h b/bindings/winrt/doubango_rt/include/rt_DDebug.h new file mode 100644 index 0000000..e4300b5 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_DDebug.h @@ -0,0 +1,53 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Config.h" + +class DDebugCallback; +class DDebugCallbackProxy; + +namespace doubango_rt +{ + namespace BackEnd + { + public interface class rtIDDebugCallback + { + virtual int OnDebugInfo(Platform::String^ message); + virtual int OnDebugWarn(Platform::String^ message); + virtual int OnDebugError(Platform::String^ message); + virtual int OnDebugFatal(Platform::String^ message); + }; + + public ref class rtDDebugCallback sealed + { + internal: + rtDDebugCallback(rtIDDebugCallback^ pI); + public: + virtual ~rtDDebugCallback(); + friend class DDebugCallbackProxy; + + internal: + const DDebugCallback* getWrappedCallback(); + + private: + rtIDDebugCallback^ m_pI; + DDebugCallbackProxy* m_pCallback; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_Enums.h b/bindings/winrt/doubango_rt/include/rt_Enums.h new file mode 100644 index 0000000..78e97bf --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_Enums.h @@ -0,0 +1,333 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_config.h" + +#include "tinysip.h" +#include "tinymsrp.h" +#include "tinymedia.h" + +#include "Common.h" + +namespace doubango_rt +{ + namespace BackEnd + { + public enum class rtConstants + { + rt_tsip_event_code_dialog_transport_error = tsip_event_code_dialog_transport_error, + rt_tsip_event_code_dialog_global_error = tsip_event_code_dialog_global_error, + rt_tsip_event_code_dialog_message_error = tsip_event_code_dialog_message_error, + + // 8xx ==> success + rt_tsip_event_code_dialog_request_incoming = tsip_event_code_dialog_request_incoming, + rt_tsip_event_code_dialog_request_outgoing = tsip_event_code_dialog_request_outgoing, + rt_tsip_event_code_dialog_request_cancelled = tsip_event_code_dialog_request_cancelled, + rt_tsip_event_code_dialog_request_sent = tsip_event_code_dialog_request_sent, + + // 9xx ==> Informational + rt_tsip_event_code_dialog_connecting = tsip_event_code_dialog_connecting, + rt_tsip_event_code_dialog_connected = tsip_event_code_dialog_connected, + rt_tsip_event_code_dialog_terminating = tsip_event_code_dialog_terminating, + rt_tsip_event_code_dialog_terminated = tsip_event_code_dialog_terminated, + rt_tsip_event_code_stack_starting = tsip_event_code_stack_starting, + rt_tsip_event_code_stack_started = tsip_event_code_stack_started, + rt_tsip_event_code_stack_stopping = tsip_event_code_stack_stopping, + rt_tsip_event_code_stack_stopped = tsip_event_code_stack_stopped, + rt_tsip_event_code_stack_failed_to_start = tsip_event_code_stack_failed_to_start, + rt_tsip_event_code_stack_failed_to_stop = tsip_event_code_stack_failed_to_stop + }; + + public enum class rt_twrap_media_type_t + { + twrap_media_none = twrap_media_none, + + twrap_media_audio = twrap_media_audio, + twrap_media_video = twrap_media_video, + twrap_media_msrp = twrap_media_msrp, + twrap_media_t140 = twrap_media_t140, + twrap_media_bfcp = twrap_media_bfcp, + twrap_media_bfcp_audio = twrap_media_bfcp_audio, + twrap_media_bfcp_video = twrap_media_bfcp_video, + + twrap_media_audiovideo = twrap_media_audiovideo, /* @deprecated */ + twrap_media_audio_video = twrap_media_audio_video, + }; + + public enum class rt_tmedia_bandwidth_level_t + { + tmedia_bl_low = tmedia_bl_low, + tmedia_bl_medium = tmedia_bl_medium, + tmedia_bl_hight = tmedia_bl_hight, + tmedia_bl_unrestricted = tmedia_bl_unrestricted + }; + + public enum class rt_tmedia_pref_video_size_t + {/* must be sorted like this */ + tmedia_pref_video_size_sqcif = tmedia_pref_video_size_sqcif, // 128 x 98 + tmedia_pref_video_size_qcif = tmedia_pref_video_size_qcif, // 176 x 144 + tmedia_pref_video_size_qvga = tmedia_pref_video_size_qvga, // 320 x 240 + tmedia_pref_video_size_cif = tmedia_pref_video_size_cif, // 352 x 288 + tmedia_pref_video_size_hvga = tmedia_pref_video_size_hvga, // 480 x 320 + tmedia_pref_video_size_vga = tmedia_pref_video_size_vga, // 640 x 480 + tmedia_pref_video_size_4cif = tmedia_pref_video_size_4cif, // 704 x 576 + tmedia_pref_video_size_wvga = tmedia_pref_video_size_wvga, // 800 x 480 + tmedia_pref_video_size_svga = tmedia_pref_video_size_svga, // 800 x 600 + tmedia_pref_video_size_480p = tmedia_pref_video_size_480p, // 852 x 480 + tmedia_pref_video_size_xga = tmedia_pref_video_size_xga, // 1024 x 768 + tmedia_pref_video_size_720p = tmedia_pref_video_size_720p, // 1280 x 720 + tmedia_pref_video_size_16cif = tmedia_pref_video_size_16cif, // 1408 x 1152 + tmedia_pref_video_size_1080p = tmedia_pref_video_size_1080p, // 1920 x 1080 + }; + + public enum class rt_tmedia_profile_t + { + tmedia_profile_default = tmedia_profile_default, + tmedia_profile_rtcweb = tmedia_profile_rtcweb + }; + + public enum class rt_tmedia_qos_strength_t + { + tmedia_qos_strength_none = tmedia_qos_strength_none, + tmedia_qos_strength_failure = tmedia_qos_strength_failure, + tmedia_qos_strength_unknown = tmedia_qos_strength_unknown, + tmedia_qos_strength_optional = tmedia_qos_strength_optional, + tmedia_qos_strength_mandatory = tmedia_qos_strength_mandatory + }; + + public enum class rt_tmedia_qos_stype_t + { + tmedia_qos_stype_none = tmedia_qos_stype_none, + + tmedia_qos_stype_segmented = tmedia_qos_stype_segmented, + tmedia_qos_stype_e2e = tmedia_qos_stype_e2e, + }; + + public enum class rt_tmedia_srtp_mode_t + { + tmedia_srtp_mode_none = tmedia_srtp_mode_none, + tmedia_srtp_mode_optional = tmedia_srtp_mode_optional, + tmedia_srtp_mode_mandatory = tmedia_srtp_mode_mandatory + }; + + public enum class rt_tmedia_srtp_type_t + { + tmedia_srtp_type_none = tmedia_srtp_type_none, + tmedia_srtp_type_sdes = tmedia_srtp_type_sdes, + tmedia_srtp_type_dtls = tmedia_srtp_type_dtls, + tmedia_srtp_type_sdes_dtls = tmedia_srtp_type_sdes_dtls + }; + + public enum class rt_tmedia_t140_data_type_t + { + tmedia_t140_data_type_utf8 = tmedia_t140_data_type_utf8, + tmedia_t140_data_type_zero_width_no_break_space = tmedia_t140_data_type_zero_width_no_break_space, + tmedia_t140_data_type_backspace = tmedia_t140_data_type_backspace, + tmedia_t140_data_type_esc = tmedia_t140_data_type_esc, + tmedia_t140_data_type_cr = tmedia_t140_data_type_cr, + tmedia_t140_data_type_lf = tmedia_t140_data_type_lf, + tmedia_t140_data_type_cr_lf = tmedia_t140_data_type_cr_lf, + tmedia_t140_data_type_bell = tmedia_t140_data_type_bell, + tmedia_t140_data_type_sos = tmedia_t140_data_type_sos, + tmedia_t140_data_type_string_term = tmedia_t140_data_type_string_term, + tmedia_t140_data_type_graphic_start = tmedia_t140_data_type_graphic_start, + tmedia_t140_data_type_graphic_end = tmedia_t140_data_type_graphic_end, + tmedia_t140_data_type_loss_char_char = tmedia_t140_data_type_loss_char_char, + tmedia_t140_data_type_loss_utf8 = tmedia_t140_data_type_loss_utf8, + }; + + public enum class rt_tmedia_type_t + { + tmedia_none = tmedia_none, + tmedia_ghost = tmedia_ghost, + + tmedia_audio = tmedia_audio, + tmedia_video = tmedia_video, + tmedia_chat = tmedia_chat, + tmedia_file = tmedia_file, + tmedia_t38 = tmedia_t38, + tmedia_t140 = tmedia_t140, + + tmedia_msrp = tmedia_msrp, + tmedia_audiovideo = tmedia_audiovideo, + + tmedia_all = tmedia_all + }; + + public enum class rt_tmsrp_event_type_t + { + tmsrp_event_type_none = tmsrp_event_type_none, + tmsrp_event_type_connected = tmsrp_event_type_connected, + tmsrp_event_type_disconnected = tmsrp_event_type_disconnected, + tmsrp_event_type_message = tmsrp_event_type_message, + }; + + public enum class rt_tmsrp_request_type_t + { + tmsrp_NONE = tmsrp_NONE, + + tmsrp_SEND = tmsrp_SEND, + tmsrp_REPORT = tmsrp_REPORT, + tmsrp_AUTH = tmsrp_AUTH + }; + + public enum class rt_tsip_info_event_type_t + { + tsip_i_info = tsip_i_info, + tsip_ao_info = tsip_ao_info, + }; + + public enum class rt_tsip_invite_event_type_t + { + tsip_i_newcall = tsip_i_newcall, + + tsip_i_request = tsip_i_request, + tsip_ao_request = tsip_ao_request, + + tsip_o_ect_trying = tsip_o_ect_trying, + tsip_o_ect_accepted = tsip_o_ect_accepted, + tsip_o_ect_completed = tsip_o_ect_completed, + tsip_o_ect_failed = tsip_o_ect_failed, + tsip_o_ect_notify = tsip_o_ect_notify, + tsip_i_ect_requested = tsip_i_ect_requested, + tsip_i_ect_newcall = tsip_i_ect_newcall, + tsip_i_ect_completed = tsip_i_ect_completed, + tsip_i_ect_failed = tsip_i_ect_failed, + tsip_i_ect_notify = tsip_i_ect_notify, + + tsip_m_early_media = tsip_m_early_media, + tsip_m_updating = tsip_m_updating, + tsip_m_updated = tsip_m_updated, + + tsip_m_local_hold_ok = tsip_m_local_hold_ok, + tsip_m_local_hold_nok = tsip_m_local_hold_nok, + tsip_m_local_resume_ok = tsip_m_local_resume_ok, + tsip_m_local_resume_nok = tsip_m_local_resume_nok, + tsip_m_remote_hold = tsip_m_remote_hold, + tsip_m_remote_resume = tsip_m_remote_resume, + }; + + public enum class rt_tsip_message_event_type_t + { + tsip_i_message = tsip_i_message, + tsip_ao_message = tsip_ao_message, + }; + + public enum class rt_tsip_options_event_type_t + { + tsip_i_options = tsip_i_options, + tsip_ao_options = tsip_ao_options, + }; + + public enum class rt_tsip_publish_event_type_t + { + tsip_i_publish = tsip_i_publish, + tsip_ao_publish = tsip_ao_publish, + + tsip_i_unpublish = tsip_i_unpublish, + tsip_ao_unpublish = tsip_ao_unpublish + }; + + public enum class rt_tsip_register_event_type_t + { + tsip_i_newreg = tsip_i_newreg, + + tsip_i_register = tsip_i_register, + tsip_ao_register = tsip_ao_register, + + tsip_i_unregister = tsip_i_unregister, + tsip_ao_unregister = tsip_ao_unregister, + }; + + public enum class rt_tsip_request_type_t + { + tsip_NONE = tsip_NONE, + + tsip_ACK = tsip_ACK, + tsip_BYE = tsip_BYE, + tsip_CANCEL = tsip_CANCEL, + tsip_INVITE = tsip_INVITE, + tsip_OPTIONS = tsip_OPTIONS, + tsip_REGISTER = tsip_REGISTER, + tsip_SUBSCRIBE = tsip_SUBSCRIBE, + tsip_NOTIFY = tsip_NOTIFY, + tsip_REFER = tsip_REFER, + tsip_INFO = tsip_INFO, + tsip_UPDATE = tsip_UPDATE, + tsip_MESSAGE = tsip_MESSAGE, + tsip_PUBLISH = tsip_PUBLISH, + tsip_PRACK = tsip_PRACK + }; + + public enum class rt_tsip_subscribe_event_type_t + { + tsip_i_subscribe = tsip_i_subscribe, + tsip_ao_subscribe = tsip_ao_subscribe, + + tsip_i_unsubscribe = tsip_i_unsubscribe, + tsip_ao_unsubscribe = tsip_ao_unsubscribe, + + tsip_i_notify = tsip_i_notify, + tsip_ao_notify = tsip_ao_notify + }; + + public enum class rt_tdav_codec_id_t + { + tdav_codec_id_none = tmedia_codec_id_none, + + tdav_codec_id_amr_nb_oa = tmedia_codec_id_amr_nb_oa, + tdav_codec_id_amr_nb_be = tmedia_codec_id_amr_nb_be, + tdav_codec_id_amr_wb_oa = tmedia_codec_id_amr_wb_oa, + tdav_codec_id_amr_wb_be = tmedia_codec_id_amr_wb_be, + tdav_codec_id_gsm = tmedia_codec_id_gsm, + tdav_codec_id_pcma = tmedia_codec_id_pcma, + tdav_codec_id_pcmu = tmedia_codec_id_pcmu, + tdav_codec_id_ilbc = tmedia_codec_id_ilbc, + tdav_codec_id_speex_nb = tmedia_codec_id_speex_nb, + tdav_codec_id_speex_wb = tmedia_codec_id_speex_wb, + tdav_codec_id_speex_uwb = tmedia_codec_id_speex_uwb, + tdav_codec_id_bv16 = tmedia_codec_id_bv16, + tdav_codec_id_bv32 = tmedia_codec_id_bv32, + tdav_codec_id_opus = tmedia_codec_id_opus, + tdav_codec_id_g729ab = tmedia_codec_id_g729ab, + tdav_codec_id_g722 = tmedia_codec_id_g722, + + tdav_codec_id_h261 = tmedia_codec_id_h261, + tdav_codec_id_h263 = tmedia_codec_id_h263, + tdav_codec_id_h263p = tmedia_codec_id_h263p, + tdav_codec_id_h263pp = tmedia_codec_id_h263pp, + tdav_codec_id_h264_bp = tmedia_codec_id_h264_bp, + tdav_codec_id_h264_mp = tmedia_codec_id_h264_mp, + tdav_codec_id_h264_hp = tmedia_codec_id_h264_hp, + tdav_codec_id_h264_bp10 = tmedia_codec_id_h264_bp, // @deprecated + tdav_codec_id_h264_bp20 = tmedia_codec_id_h264_bp, // @deprecated + tdav_codec_id_h264_bp30 = tmedia_codec_id_h264_bp, // @deprecated + tdav_codec_id_h264_svc = tmedia_codec_id_h264_svc, + tdav_codec_id_theora = tmedia_codec_id_theora, + tdav_codec_id_mp4ves_es = tmedia_codec_id_mp4ves_es, + tdav_codec_id_vp8 = tmedia_codec_id_vp8, + + tdav_codec_id_t140 = tmedia_codec_id_t140, +#if !COM_VISIBLE + tdav_codec_id_red = tmedia_codec_id_red, +#endif + tdav_codec_id_all = tmedia_codec_id_all, + }; + } +} diff --git a/bindings/winrt/doubango_rt/include/rt_MediaContent.h b/bindings/winrt/doubango_rt/include/rt_MediaContent.h new file mode 100644 index 0000000..9385aed --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_MediaContent.h @@ -0,0 +1,18 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_MediaSessionMgr.h b/bindings/winrt/doubango_rt/include/rt_MediaSessionMgr.h new file mode 100644 index 0000000..3878667 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_MediaSessionMgr.h @@ -0,0 +1,130 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +class MediaSessionMgr; +class Codec; + +struct tmedia_codec_s; +struct tmedia_session_mgr_s; + +namespace doubango_rt +{ + namespace BackEnd + { + enum class rt_twrap_media_type_t; + enum class rt_tmedia_profile_t; + enum class rt_tmedia_srtp_mode_t; + enum class rt_tmedia_srtp_type_t; + enum class rt_tmedia_profile_t; + enum class rt_tmedia_pref_video_size_t; + + public ref class rtCodec sealed + { + internal: + rtCodec(struct tmedia_codec_s* pCodec); + public: + virtual ~rtCodec(); + enum class rt_twrap_media_type_t getMediaType(); + Platform::String^ getName(); + Platform::String^ getDescription(); + Platform::String^ getNegFormat(); + int getAudioSamplingRate(); + int getAudioChannels(); + int getAudioPTime(); + + private: + Codec* m_pCodec; + }; + + public ref class rtMediaSessionMgr sealed + { + internal: + rtMediaSessionMgr(struct tmedia_session_mgr_s* pWrappedMgr); + + public: + virtual ~rtMediaSessionMgr(); + bool sessionSetInt32(rt_twrap_media_type_t media, Platform::String^ key, int32 value); + int32 sessionGetInt32(rt_twrap_media_type_t media, Platform::String^ key); + + bool consumerSetInt32(rt_twrap_media_type_t media, Platform::String^ key, int32 value); + bool consumerSetInt64(rt_twrap_media_type_t media, Platform::String^ key, int64 value); + + bool producerSetInt32(rt_twrap_media_type_t media, Platform::String^ key, int32 value); + bool producerSetInt64(rt_twrap_media_type_t media, Platform::String^ key, int64 value); + rtCodec^ producerGetCodec(rt_twrap_media_type_t media); + + static unsigned int registerAudioPluginFromFile(Platform::String^ path); + + uint64 getSessionId(rt_twrap_media_type_t media); + + internal: // Must be from SIP service to share same global memory space + static bool defaultsSetProfile(rt_tmedia_profile_t profile); + static rt_tmedia_profile_t defaultsGetProfile(); + static bool defaultsSetPrefVideoSize(enum class rt_tmedia_pref_video_size_t pref_video_size); + static bool defaultsSetJbMargin(uint32 jb_margin_ms); + static bool defaultsSetJbMaxLateRate(uint32 jb_late_rate_percent); + static bool defaultsSetEchoTail(uint32 echo_tail); + static uint32 defaultsGetEchoTail(); + static bool defaultsSetEchoSkew(uint32 echo_skew); + static bool defaultsSetEchoSuppEnabled(bool echo_supp_enabled); + static bool defaultsGetEchoSuppEnabled(); + static bool defaultsSetAgcEnabled(bool agc_enabled); + static bool defaultsGetAgcEnabled(); + static bool defaultsSetAgcLevel(float agc_level); + static float defaultsGetAgcLevel(); + static bool defaultsSetVadEnabled(bool vad_enabled); + static bool defaultsGetGetVadEnabled(); + static bool defaultsSetNoiseSuppEnabled(bool noise_supp_enabled); + static bool defaultsGetNoiseSuppEnabled(); + static bool defaultsSetNoiseSuppLevel(int32 noise_supp_level); + static int32 defaultsGetNoiseSuppLevel(); + static bool defaultsSet100relEnabled(bool _100rel_enabled); + static bool defaultsGet100relEnabled(); + static bool defaultsSetScreenSize(int32 sx, int32 sy); + static bool defaultsSetAudioGain(int32 producer_gain, int32 consumer_gain); + static bool defaultsSetRtpPortRange(uint16 range_start, uint16 range_stop); + static bool defaultsSetRtpSymetricEnabled(bool enabled); + static bool defaultsSetMediaType(enum class rt_twrap_media_type_t media_type); + static bool defaultsSetVolume(int32 volume); + static int32 defaultsGetVolume(); + static bool defaultsSetInviteSessionTimers(int32 timeout, Platform::String^ refresher); + static bool defaultsSetSRtpMode(enum class rt_tmedia_srtp_mode_t mode); + static enum class rt_tmedia_srtp_mode_t defaultsGetSRtpMode(); + static bool defaultsSetSRtpType(enum class rt_tmedia_srtp_type_t srtp_type); + static enum class rt_tmedia_srtp_type_t defaultsGetSRtpType(); + static bool defaultsSetRtcpEnabled(bool enabled); + static bool defaultsGetRtcpEnabled(); + static bool defaultsSetRtcpMuxEnabled(bool enabled); + static bool defaultsGetRtcpMuxEnabled(); + static bool defaultsSetIceEnabled(bool ice_enabled); + static bool defaultsSetByPassEncoding(bool enabled); + static bool defaultsGetByPassEncoding(); + static bool defaultsSetByPassDecoding(bool enabled); + static bool defaultsGetByPassDecoding(); + static bool defaultsSetVideoJbEnabled(bool enabled); + static bool defaultsGetVideoJbEnabled(); + static bool defaultsSetRtpBuffSize(unsigned buffSize); + static unsigned defaultsGetRtpBuffSize(); + static bool defaultsSetAvpfTail(unsigned tail_min, unsigned tail_max); + + private: + MediaSessionMgr* m_pMediaSessionMgr; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_Msrp.h b/bindings/winrt/doubango_rt/include/rt_Msrp.h new file mode 100644 index 0000000..b0fbe26 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_Msrp.h @@ -0,0 +1,109 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Enums.h" + +class MsrpCallback; +class MsrpMessage; +class MsrpEvent; + +namespace doubango_rt +{ + namespace BackEnd + { + ref class rtMsrpSession; + + public ref class rtMsrpByteRange sealed + { + internal: + rtMsrpByteRange(int64 start, int64 end, int64 total):_start(start),_end(end),_total(total){} + public: + property int64 Start{ int64 get() { return _start; }; } + property int64 End{ int64 get() { return _end; }; } + property int64 Total{ int64 get() { return _total; }; } + private: + int64 _start, _end, _total; + }; + + public ref class rtMsrpMessage sealed + { + public: + virtual ~rtMsrpMessage(); + internal: + rtMsrpMessage(struct tmsrp_message_s *message); + + public: + bool isRequest(); + short getCode(); + Platform::String^ getPhrase(); + rt_tmsrp_request_type_t getRequestType(); +#if COM_VISIBLE + rtMsrpByteRange^ getByteRange(); +#else + void getByteRange(Platform::IntPtr start, Platform::IntPtr end, Platform::IntPtr total); +#endif + bool isLastChunck(); + bool isFirstChunck(); + bool isSuccessReport(); + Platform::String^ getMsrpHeaderValue(Platform::String^ name); + Platform::String^ getMsrpHeaderParamValue(Platform::String^ name, Platform::String^ param); + unsigned getMsrpContentLength(); +#if COM_VISIBLE + Platform::String^ getMsrpContent(unsigned maxsize); +#else + unsigned getMsrpContent(Platform::IntPtr output, unsigned maxsize); +#endif + + private: + MsrpMessage* m_pMsrpMessage; + }; + + public ref class rtMsrpEvent sealed + { + internal: + rtMsrpEvent(const struct tmsrp_event_s *event); + public: + virtual ~rtMsrpEvent(); + + rt_tmsrp_event_type_t getType(); + rtMsrpSession^ getSipSession(); + rtMsrpMessage^ getMessage(); + + private: + MsrpEvent* m_pMsrpEvent; + }; + + public interface class rtIMsrpCallback + { + virtual int OnEvent(rtMsrpEvent^ pEvent); + }; + public ref class rtMsrpCallback sealed + { + internal: + rtMsrpCallback(rtIMsrpCallback^ pI); + const MsrpCallback* getWrappedCallback(){ return m_pCallback; } + public: + virtual ~rtMsrpCallback(); + + private: + MsrpCallback* m_pCallback; + rtIMsrpCallback^ m_pI; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_SMSEncoder.h b/bindings/winrt/doubango_rt/include/rt_SMSEncoder.h new file mode 100644 index 0000000..9385aed --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SMSEncoder.h @@ -0,0 +1,18 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_SipCallback.h b/bindings/winrt/doubango_rt/include/rt_SipCallback.h new file mode 100644 index 0000000..1f0a9e0 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SipCallback.h @@ -0,0 +1,70 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +class SipCallback; +class SipCallbackProxy; + +namespace doubango_rt +{ + namespace BackEnd + { + ref class rtDialogEvent; + ref class rtStackEvent; + + ref class rtInviteEvent; + ref class rtMessagingEvent; + ref class rtInfoEvent; + ref class rtOptionsEvent; + ref class rtPublicationEvent; + ref class rtRegistrationEvent; + ref class rtSubscriptionEvent; + + public interface class rtISipCallback + { + virtual int OnDialogEvent(rtDialogEvent^ e); + virtual int OnStackEvent(rtStackEvent^ e); + + virtual int OnInviteEvent(rtInviteEvent^ e); + virtual int OnMessagingEvent(rtMessagingEvent^ e); + virtual int OnInfoEvent(rtInfoEvent^ e); + virtual int OnOptionsEvent(rtOptionsEvent^ e); + virtual int OnPublicationEvent(rtPublicationEvent^ e); + virtual int OnRegistrationEvent(rtRegistrationEvent^ e); + virtual int OnSubscriptionEvent(rtSubscriptionEvent^ e); + }; + + public ref class rtSipCallback sealed + { + internal: + rtSipCallback(rtISipCallback^ pI); + public: + virtual ~rtSipCallback(); + friend class SipCallbackProxy; + + internal: + const SipCallback* getWrappedCallback(); + + private: + rtISipCallback^ m_pI; + SipCallbackProxy* m_pCallback; + }; + } +} + + diff --git a/bindings/winrt/doubango_rt/include/rt_SipEvent.h b/bindings/winrt/doubango_rt/include/rt_SipEvent.h new file mode 100644 index 0000000..e615bde --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SipEvent.h @@ -0,0 +1,244 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Config.h" +#include "rt_Enums.h" + +struct tsip_event_s; + +class SipEvent; +class DialogEvent; +class StackEvent; +class InviteEvent; +class MessagingEvent; +class InfoEvent; +class OptionsEvent; +class PublicationEvent; +class RegistrationEvent; +class SubscriptionEvent; + + +#define rtISipEvent_Declare() \ + virtual short getCode(); \ + virtual Platform::String^ getPhrase(); \ + virtual rtISipSession^ getBaseSession(); \ + virtual rtSipMessage^ getSipMessage(); \ + +#define rtISipEvent_Implement(cls) \ +short cls##::getCode(){ \ + return m_pEvent->getCode(); \ +} \ +Platform::String^ cls##::getPhrase(){ \ + return rtString::toString(m_pEvent->getPhrase()); \ +} \ +rtISipSession^ cls##::getBaseSession(){ \ + return ref new rtSipSession(const_cast(m_pEvent->getStack()), const_cast(m_pEvent->getWrappedEvent()->ss)); \ +} \ +rtSipMessage^ cls##::getSipMessage(){ \ + return ref new rtSipMessage(const_cast(const_cast(m_pEvent->getSipMessage())->getWrappedSipMessage())); \ +} \ + + +namespace doubango_rt +{ + namespace BackEnd + { + interface class rtISipSession; + ref class rtSipMessage; + ref class rtInviteSession; + ref class rtMsrpSession; + ref class rtCallSession; + ref class rtMessagingSession; + ref class rtInfoSession; + ref class rtOptionsSession; + ref class rtPublicationSession; + ref class rtRegistrationSession; + ref class rtSubscriptionSession; + + + /* ======================== rtISipEvent ========================*/ + public interface class rtISipEvent + { + short getCode(); + Platform::String^ getPhrase(); + rtISipSession^ getBaseSession(); + rtSipMessage^ getSipMessage(); + }; + + + /* ======================== rtDialogEvent ========================*/ + public ref class rtDialogEvent sealed : rtISipEvent + { + internal: + rtDialogEvent(const struct tsip_event_s *e); + + public: + virtual ~rtDialogEvent(); + rtISipEvent_Declare(); + + private: + DialogEvent* m_pEvent; + }; + + /* ======================== rtStackEvent ========================*/ + public ref class rtStackEvent sealed : rtISipEvent + { + internal: + rtStackEvent(const struct tsip_event_s *e); + + public: + virtual ~rtStackEvent(); + rtISipEvent_Declare(); + + private: + StackEvent* m_pEvent; + }; + + + /* ======================== rtInviteEvent ========================*/ + public ref class rtInviteEvent sealed : rtISipEvent + { + internal: + rtInviteEvent(const struct tsip_event_s *e); + + public: + virtual ~rtInviteEvent(); + rtISipEvent_Declare(); + + rt_tsip_invite_event_type_t getType(); + rt_twrap_media_type_t getMediaType(); + rtInviteSession^ getSession(); + rtCallSession^ takeCallSessionOwnership(); + rtMsrpSession^ takeMsrpSessionOwnership(); + + private: + InviteEvent* m_pEvent; + }; + + /* ======================== rtMessagingEvent ========================*/ + public ref class rtMessagingEvent sealed : rtISipEvent + { + internal: + rtMessagingEvent(const struct tsip_event_s *e); + + public: + virtual ~rtMessagingEvent(); + rtISipEvent_Declare(); + + rt_tsip_message_event_type_t getType(); + rtMessagingSession^ getSession(); + rtMessagingSession^ takeSessionOwnership(); + + private: + MessagingEvent* m_pEvent; + }; + + + /* ======================== rtInfoEvent ========================*/ + public ref class rtInfoEvent sealed : rtISipEvent + { + internal: + rtInfoEvent(const struct tsip_event_s *e); + + public: + virtual ~rtInfoEvent(); + rtISipEvent_Declare(); + + rt_tsip_info_event_type_t getType(); + rtInfoSession^ getSession(); + rtInfoSession^ takeSessionOwnership(); + + private: + InfoEvent* m_pEvent; + }; + + + /* ======================== rtOptionsEvent ========================*/ + public ref class rtOptionsEvent sealed : rtISipEvent + { + internal: + rtOptionsEvent(const struct tsip_event_s *e); + + public: + virtual ~rtOptionsEvent(); + rtISipEvent_Declare(); + + rt_tsip_options_event_type_t getType(); + rtOptionsSession^ getSession(); + rtOptionsSession^ takeSessionOwnership(); + + private: + OptionsEvent* m_pEvent; + }; + + /* ======================== rtPublicationEvent ========================*/ + public ref class rtPublicationEvent sealed : rtISipEvent + { + internal: + rtPublicationEvent(const struct tsip_event_s *e); + + public: + virtual ~rtPublicationEvent(); + rtISipEvent_Declare(); + + rt_tsip_publish_event_type_t getType(); + rtPublicationSession^ getSession(); + rtPublicationSession^ takeSessionOwnership(); + + private: + PublicationEvent* m_pEvent; + }; + + /* ======================== rtRegistrationEvent ========================*/ + public ref class rtRegistrationEvent sealed : rtISipEvent + { + internal: + rtRegistrationEvent(const struct tsip_event_s *e); + + public: + virtual ~rtRegistrationEvent(); + rtISipEvent_Declare(); + + rt_tsip_register_event_type_t getType(); + rtRegistrationSession^ getSession(); + rtRegistrationSession^ takeSessionOwnership(); + + private: + RegistrationEvent* m_pEvent; + }; + + /* ======================== rtSubscriptionEvent ========================*/ + public ref class rtSubscriptionEvent sealed : rtISipEvent + { + internal: + rtSubscriptionEvent(const struct tsip_event_s *e); + + public: + virtual ~rtSubscriptionEvent(); + rtISipEvent_Declare(); + + rt_tsip_subscribe_event_type_t getType(); + rtSubscriptionSession^ getSession(); + rtSubscriptionSession^ takeSessionOwnership(); + + private: + SubscriptionEvent* m_pEvent; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_SipMessage.h b/bindings/winrt/doubango_rt/include/rt_SipMessage.h new file mode 100644 index 0000000..a61c1c3 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SipMessage.h @@ -0,0 +1,78 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Enums.h" + +class SdpMessage; +class SipMessage; + +struct tsdp_message_s; +struct tsip_message_s; + +namespace doubango_rt +{ + namespace BackEnd + { + public ref class rtSdpMessage sealed + { + internal: + rtSdpMessage(); + rtSdpMessage(struct tsdp_message_s *message); + public: + virtual ~rtSdpMessage(); + + public: + Platform::String^ getSdpHeaderValue(Platform::String^ media, Platform::String^ name, unsigned index); + Platform::String^ getSdpHeaderValue(Platform::String^ media, Platform::String^ name); + Platform::String^ getSdpHeaderAValue(Platform::String^ media, Platform::String^ attributeName); + + private: + SdpMessage* m_pSdpMessage; + }; + + public ref class rtSipMessage sealed + { + internal: + rtSipMessage(); + rtSipMessage(struct tsip_message_s* message); + public: + virtual ~rtSipMessage(); + + public: + bool isResponse(); + rt_tsip_request_type_t getRequestType(); + short getResponseCode(); + Platform::String^ getResponsePhrase(); + Platform::String^ getSipHeaderValue(Platform::String^ name, unsigned index); + Platform::String^ getSipHeaderValue(Platform::String^ name); + Platform::String^ getSipHeaderParamValue(Platform::String^ name, Platform::String^ param, unsigned index); + Platform::String^ getSipHeaderParamValue(Platform::String^ name, Platform::String^ param); + unsigned getSipContentLength(); +#if COM_VISIBLE + Platform::String^ getSipContent(); +#else + unsigned getSipContent(Platform::IntPtr output, unsigned maxsize); +#endif + rtSdpMessage^ getSdpMessage(); + + private: + SipMessage* m_pSipMessage; + }; + } +} diff --git a/bindings/winrt/doubango_rt/include/rt_SipSession.h b/bindings/winrt/doubango_rt/include/rt_SipSession.h new file mode 100644 index 0000000..bf52ba5 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SipSession.h @@ -0,0 +1,510 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Config.h" +#include "rt_SipStack.h" +#include "rt_SipUri.h" +#include "rt_String.h" +#include "rt_ActionConfig.h" +#include "rt_MediaSessionMgr.h" + +#include "tinysip.h" + +class SipSession; +class InviteSession; +class CallSession; +class MsrpSession; +class MessagingSession; +class InfoSession; +class OptionsSession; +class PublicationSession; +class RegistrationSession; +class SubscriptionSession; +class SipStack; + +class T140CallbackData; +class T140Callback; + +// error C4585: 'doubango_rt::rtSipSession' : A WinRT 'public ref class' must either be sealed or derive from an existing unsealed class +#define rtISession_Declare() \ + virtual unsigned getId(); \ + virtual bool haveOwnership(); \ + virtual bool addHeader(Platform::String^ name, Platform::String^ value); \ + virtual bool removeHeader(Platform::String^ name); \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool addCaps(Platform::String^ name, Platform::String^ value); \ + OVERRIDE_FUNC(virtual bool addCaps(Platform::String^ name);) \ + virtual bool removeCaps(Platform::String^ name); \ + virtual bool setExpires(unsigned expires); \ + OVERRIDE_FUNC(virtual bool setFromUri(Platform::String^ fromUriString);) \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool setFromUri(rtSipUri^ fromUri); \ + OVERRIDE_FUNC(virtual bool setToUri(Platform::String^ toUriString);) \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool setToUri(rtSipUri^ toUri); \ + virtual bool setSilentHangup(bool silent); \ + virtual bool addSigCompCompartment(Platform::String^ compId); \ + virtual bool removeSigCompCompartment(); \ + +#define rtISession_Implement(cls) \ + unsigned cls##::getId(){ \ + return m_pSipSession->getId(); \ +} \ + bool cls##::haveOwnership(){ \ + return m_pSipSession->haveOwnership(); \ +} \ + bool cls##::addHeader(Platform::String^ name, Platform::String^ value){ \ + return m_pSipSession->addHeader(rtString::toUtf8(name).data(), rtString::toUtf8(value).data()); \ +} \ + bool cls##::removeHeader(Platform::String^ name){ \ + return m_pSipSession->removeHeader(rtString::toUtf8(name).data()); \ +} \ + bool cls##::addCaps(Platform::String^ name, Platform::String^ value){ \ + return m_pSipSession->addCaps(rtString::toUtf8(name).data(), rtString::toUtf8(value).data()); \ +} \ +OVERRIDE_FUNC(bool cls##::addCaps(Platform::String^ name){ \ + return addCaps(name, nullptr); \ +}) \ + bool cls##::removeCaps(Platform::String^ name){ \ + return m_pSipSession->removeCaps(rtString::toUtf8(name).data()); \ +} \ + bool cls##::setExpires(unsigned expires){ \ + return m_pSipSession->setExpires(expires); \ +} \ +OVERRIDE_FUNC(bool cls##::setFromUri(Platform::String^ fromUriString){ \ + return m_pSipSession->setFromUri(rtString::toUtf8(fromUriString).data()); \ +}) \ + bool cls##::setFromUri(rtSipUri^ fromUri){ \ + return m_pSipSession->setFromUri(fromUri->getWrappedUri()); \ +} \ +OVERRIDE_FUNC(bool cls##::setToUri(Platform::String^ toUriString){ \ + return m_pSipSession->setToUri(rtString::toUtf8(toUriString).data()); \ +}) \ + bool cls##::setToUri(rtSipUri^ toUri){ \ + return m_pSipSession->setToUri(toUri->getWrappedUri()); \ +} \ + bool cls##::setSilentHangup(bool silent){ \ + return m_pSipSession->setSilentHangup(silent); \ +} \ + bool cls##::addSigCompCompartment(Platform::String^ compId){ \ + return m_pSipSession->addSigCompCompartment(rtString::toUtf8(compId).data()); \ +} \ + bool cls##::removeSigCompCompartment(){ \ + return m_pSipSession->removeSigCompCompartment(); \ +}\ + + +#define rtIInviteSession_Declare() \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool accept(rtActionConfig^ config); \ + OVERRIDE_FUNC(virtual bool accept();) \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool hangup(rtActionConfig^ config); \ + OVERRIDE_FUNC(virtual bool hangup();) \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool reject(rtActionConfig^ config); \ + OVERRIDE_FUNC(virtual bool reject();) \ + [Windows::Foundation::Metadata::DefaultOverload] \ + virtual bool sendInfo(VISIBLE_VOID_PTR payload, unsigned len, rtActionConfig^ config); \ + OVERRIDE_FUNC(virtual bool sendInfo(VISIBLE_VOID_PTR payload, unsigned len);) \ + virtual rtMediaSessionMgr^ getMediaMgr(); \ + +#define rtIInviteSession_Implement(cls) \ +bool cls##::accept(rtActionConfig^ config){ \ + return m_pSipSession->accept(config ? config->getWrappedActionConfig() : tsk_null); \ +} \ +OVERRIDE_FUNC(bool cls##::accept(){ \ + return accept(nullptr); \ +}) \ +bool cls##::hangup(rtActionConfig^ config){ \ + return m_pSipSession->hangup(config ? config->getWrappedActionConfig() : tsk_null); \ +} \ +OVERRIDE_FUNC(bool cls##::hangup(){ \ + return hangup(nullptr); \ +}) \ +bool cls##::reject(rtActionConfig^ config){ \ + return m_pSipSession->reject(config ? config->getWrappedActionConfig() : tsk_null); \ +} \ +OVERRIDE_FUNC(bool cls##::reject(){ \ + return reject(nullptr); \ +}) \ +bool cls##::sendInfo(VISIBLE_VOID_PTR payload, unsigned len, rtActionConfig^ config){ \ + return m_pSipSession->sendInfo(VISIBLE_VOID_PTR_2_VOID_PTR(payload), len, config ? config->getWrappedActionConfig() : tsk_null); \ +} \ +OVERRIDE_FUNC(bool cls##::sendInfo(VISIBLE_VOID_PTR payload, unsigned len){ \ + return sendInfo(payload, len, nullptr); \ +}) \ +rtMediaSessionMgr^ cls##::getMediaMgr(){ \ + if(m_pSipSession->getMediaMgr()){ \ + return ref new rtMediaSessionMgr(const_cast(m_pSipSession->getMediaMgr()->getWrappedMgr())); \ + } \ + return nullptr; \ +} \ + +namespace doubango_rt +{ + namespace BackEnd + { + ref class rtMsrpCallback; + interface class rtIMsrpCallback; + + + /* ======================== rtT140CallbackData ========================*/ + public ref class rtT140CallbackData sealed + { + internal: + rtT140CallbackData(enum tmedia_t140_data_type_e data_type, const void* data_ptr, unsigned data_size); + public: + virtual ~rtT140CallbackData(); + + private: + T140CallbackData* m_pData; + }; + + /* ======================== rtT140Callback ========================*/ + public interface class rtIT140Callback + { + virtual int ondata(rtT140CallbackData^ pData); + }; + public ref class rtT140Callback sealed + { + internal: + rtT140Callback(); + const T140Callback* getWrappedCallback(){ return m_pCallback; } + + public: + rtT140Callback(rtIT140Callback^ pI) + { + m_pI = pI; + } + virtual ~rtT140Callback(); + + protected: + virtual int ondata(rtT140CallbackData^ pData){ + if(m_pI) + { + return m_pI->ondata(pData); + } + return 0; + } + + private: + T140Callback* m_pCallback; + rtIT140Callback^ m_pI; + }; + + + /* ======================== rtISipSession ========================*/ + public interface class rtISipSession + { + rtISession_Declare(); + }; + + + /* ======================== rtIInviteSession ========================*/ + public interface class rtIInviteSession : rtISipSession + { + rtIInviteSession_Declare(); + }; + + /* ======================== rtSipSession ========================*/ + public ref class rtSipSession sealed: rtISipSession + { + public: + rtSipSession(rtSipStack^ pStack); + virtual ~rtSipSession(); + internal: + rtSipSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + SipSession* getWrappedSession(){ return m_pSipSession; } + + public: + rtISession_Declare(); + + private: + SipSession* m_pSipSession; + }; + + /* ======================== rtInviteSession ========================*/ + public ref class rtInviteSession sealed: rtIInviteSession + { + public: + rtInviteSession(rtSipStack^ pStack); + virtual ~rtInviteSession(); + internal: + rtInviteSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + InviteSession* getWrappedSession(){ return m_pSipSession; } + + public: + rtISession_Declare(); + rtIInviteSession_Declare(); + + private: + InviteSession* m_pSipSession; + }; + + /* ======================== CallSession ========================*/ + public ref class rtCallSession sealed : rtIInviteSession + { + public: + rtCallSession(rtSipStack^ pStack); + virtual ~rtCallSession(); + internal: + rtCallSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + CallSession* getWrappedSession(){ return m_pSipSession; } + + public: + rtISession_Declare(); + rtIInviteSession_Declare(); + + [Windows::Foundation::Metadata::DefaultOverload] + bool call(Platform::String^ remoteUriString, rt_twrap_media_type_t media, rtActionConfig^ config); + [Windows::Foundation::Metadata::DefaultOverload] + bool call(Platform::String^ remoteUriString, rt_twrap_media_type_t media); + bool call(rtSipUri^ remoteUri, rt_twrap_media_type_t media, rtActionConfig^ config); + bool call(rtSipUri^ remoteUri, rt_twrap_media_type_t media); + + bool setSessionTimer(unsigned timeout, Platform::String^ refresher); + bool set100rel(bool enabled); + bool setRtcp(bool enabled); + bool setRtcpMux(bool enabled); + bool setICE(bool enabled); + bool setQoS(rt_tmedia_qos_stype_t type, rt_tmedia_qos_strength_t strength); + bool setVideoFps(int32_t fps); + bool setVideoBandwidthUploadMax(int32_t max); + bool setVideoBandwidthDownloadMax(int32_t max); + bool setVideoPrefSize(rt_tmedia_pref_video_size_t pref_video_size); + bool hold(rtActionConfig^ config); + bool hold(); + bool resume(rtActionConfig^ config); + bool resume(); + bool transfer(Platform::String^ referToUriString, rtActionConfig^ config); + bool transfer(Platform::String^ referToUriString); + bool acceptTransfer(rtActionConfig^ config); + bool acceptTransfer(); + bool rejectTransfer(rtActionConfig^ config); + bool rejectTransfer(); + bool sendDTMF(int number); + unsigned getSessionTransferId(); +#if COM_VISIBLE + bool sendT140Data(rt_tmedia_t140_data_type_t data_type, Platform::String^ data); +#else + bool sendT140Data(rt_tmedia_t140_data_type_t data_type, Platform::IntPtr data_ptr, unsigned data_size); +#endif + bool sendT140Data(rt_tmedia_t140_data_type_t data_type); + bool setT140Callback(rtT140Callback^ pT140Callback); + + private: + CallSession* m_pSipSession; + }; + + + /* ======================== rtMsrpSession ========================*/ + public ref class rtMsrpSession sealed : rtIInviteSession + { + public: + rtMsrpSession(rtSipStack^ pStack, rtIMsrpCallback^ pCallback); + virtual ~rtMsrpSession(); + + internal: + rtMsrpSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + MsrpSession* getWrappedSession(){ return m_pSipSession; } + + public: + rtISession_Declare(); + rtIInviteSession_Declare(); + + bool setCallback(rtIMsrpCallback^ pCallback); + [Windows::Foundation::Metadata::DefaultOverload] + bool callMsrp(Platform::String^ remoteUriString, rtActionConfig^ config); + [Windows::Foundation::Metadata::DefaultOverload] + bool callMsrp(Platform::String^ remoteUriString); + bool callMsrp(rtSipUri^ remoteUri, rtActionConfig^ config); + bool callMsrp(rtSipUri^ remoteUri); +#if COM_VISIBLE + bool sendMessage(Platform::String^ payload, rtActionConfig^ config); + bool sendMessage(Platform::String^ payload); +#else + bool sendMessage(Platform::IntPtr payload, unsigned len, rtActionConfig^ config); + bool sendMessage(Platform::IntPtr payload, unsigned len); +#endif + + private: + MsrpSession* m_pSipSession; + rtMsrpCallback^ m_pCallback; + }; + + /* ======================== rtMessagingSession ========================*/ + public ref class rtMessagingSession sealed : rtISipSession + { + internal: + rtMessagingSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + public: + rtMessagingSession(rtSipStack^ pStack); + virtual ~rtMessagingSession(); + + rtISession_Declare(); + +#if COM_VISIBLE + bool send(Platform::String^ payload, rtActionConfig^ config); + bool send(Platform::String^ payload); +#else + [Windows::Foundation::Metadata::DefaultOverload] + bool send(Platform::IntPtr payload, unsigned len, rtActionConfig^ config); + bool send(Platform::IntPtr payload, unsigned len); +#endif + [Windows::Foundation::Metadata::DefaultOverload] + bool accept(rtActionConfig^ config); + bool accept(); + [Windows::Foundation::Metadata::DefaultOverload] + bool reject(rtActionConfig^ config); + bool reject(); + + private: + MessagingSession* m_pSipSession; + }; + + + /* ======================== rtInfoSession ========================*/ + public ref class rtInfoSession sealed : rtISipSession + { + internal: + rtInfoSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + public: + rtInfoSession(rtSipStack^ pStack); + virtual ~rtInfoSession(); + + rtISession_Declare(); + +#if COM_VISIBLE + bool send(Platform::String^ payload, rtActionConfig^ config); + bool send(Platform::String^ payload); +#else + [Windows::Foundation::Metadata::DefaultOverload] + bool send(Platform::IntPtr payload, unsigned len, rtActionConfig^ config); + bool send(Platform::IntPtr payload, unsigned len); +#endif + [Windows::Foundation::Metadata::DefaultOverload] + bool accept(rtActionConfig^ config); + bool accept(); + [Windows::Foundation::Metadata::DefaultOverload] + bool reject(rtActionConfig^ config); + bool reject(); + + private: + InfoSession* m_pSipSession; + }; + + + /* ======================== rtOptionsSession ========================*/ + public ref class rtOptionsSession sealed : rtISipSession + { + internal: + rtOptionsSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + public: + rtOptionsSession(rtSipStack^ pStack); + virtual ~rtOptionsSession(); + + rtISession_Declare(); + + [Windows::Foundation::Metadata::DefaultOverload] + bool send(rtActionConfig^ config); + bool send(); + [Windows::Foundation::Metadata::DefaultOverload] + bool accept(rtActionConfig^ config); + bool accept(); + [Windows::Foundation::Metadata::DefaultOverload] + bool reject(rtActionConfig^ config); + bool reject(); + + private: + OptionsSession* m_pSipSession; + }; + + + /* ======================== rtPublicationSession ========================*/ + public ref class rtPublicationSession sealed : rtISipSession + { + internal: + rtPublicationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + public: + rtPublicationSession(rtSipStack^ pStack); + virtual ~rtPublicationSession(); + + rtISession_Declare(); + +#if COM_VISIBLE + bool publish(Platform::String^ payload, rtActionConfig^ config); + bool publish(Platform::String^ payload); +#else + [Windows::Foundation::Metadata::DefaultOverload] + bool publish(Platform::IntPtr payload, unsigned len, rtActionConfig^ config); + bool publish(Platform::IntPtr payload, unsigned len); +#endif + [Windows::Foundation::Metadata::DefaultOverload] + bool unPublish(rtActionConfig^ config); + bool unPublish(); + + private: + PublicationSession* m_pSipSession; + }; + + + /* ======================== rtRegistrationSession ========================*/ + public ref class rtRegistrationSession sealed : rtISipSession + { + internal: + rtRegistrationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + public: + rtRegistrationSession(rtSipStack^ pStack); + virtual ~rtRegistrationSession(); + + rtISession_Declare(); + + bool register_(rtActionConfig^ config); + bool register_(); + bool unRegister(rtActionConfig^ config); + bool unRegister(); + bool accept(rtActionConfig^ config); + bool accept(); + bool reject(rtActionConfig^ config); + bool reject(); + + private: + RegistrationSession* m_pSipSession; + }; + + /* ======================== rtSubscriptionSession ========================*/ + public ref class rtSubscriptionSession sealed : rtISipSession + { + internal: + rtSubscriptionSession(SipStack* pStack, tsip_ssession_handle_t* pHandle); + public: + rtSubscriptionSession(rtSipStack^ pStack); + virtual ~rtSubscriptionSession(); + + rtISession_Declare(); + + bool subscribe(); + bool unSubscribe(); + + private: + SubscriptionSession* m_pSipSession; + }; + } +} diff --git a/bindings/winrt/doubango_rt/include/rt_SipStack.h b/bindings/winrt/doubango_rt/include/rt_SipStack.h new file mode 100644 index 0000000..b55c5ae --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SipStack.h @@ -0,0 +1,120 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include + +class SipStack; + +namespace doubango_rt +{ + namespace BackEnd + { + ref class rtSipCallback; + interface class rtISipCallback; + ref class rtDDebugCallback; + interface class rtIDDebugCallback; + + enum class rt_tdav_codec_id_t; + + public ref class rtDnsResult sealed + { + internal: + rtDnsResult(uint16 port, Platform::String^ address):_port(port), _address(address){} + public: + property uint16 Port{ uint16 get() { return _port; }; } + property Platform::String^ Address{ Platform::String^ get() { return _address; }; } + private: + uint16 _port; + Platform::String^ _address; + }; + + public ref class rtSipStack sealed + { + public: + virtual ~rtSipStack(); + + internal: + rtSipStack(rtISipCallback^ callback, Platform::String^ realmUri, Platform::String^ impiString, Platform::String^ impuUri); + const SipStack* getWrappedStack() { return m_pSipStack; } + + public: + bool start(); + bool setDebugCallback(rtIDDebugCallback^ pCallback); + bool setDisplayName(Platform::String^ display_name); + bool setRealm(Platform::String^ realm_uri); + bool setIMPI(Platform::String^ impi); + bool setIMPU(Platform::String^ impu_uri); + bool setPassword(Platform::String^ password); + bool setAMF(Platform::String^ amf); + bool setOperatorId(Platform::String^ opid); + bool setProxyCSCF(Platform::String^ fqdn, unsigned short port, Platform::String^ transport, Platform::String^ ipversion); + bool setLocalIP(Platform::String^ ip, Platform::String^ transport); + bool setLocalIP(Platform::String^ ip); + bool setLocalPort(unsigned short port, Platform::String^ transport); + bool setLocalPort(unsigned short port); + bool setEarlyIMS(bool enabled); + bool addHeader(Platform::String^ name, Platform::String^ value); + bool removeHeader(Platform::String^ name); + bool addDnsServer(Platform::String^ ip); + bool setDnsDiscovery(bool enabled); + bool setAoR(Platform::String^ ip, int port); + bool setSigCompParams(unsigned dms, unsigned sms, unsigned cpb, bool enablePresDict); + bool addSigCompCompartment(Platform::String^ compId); + bool removeSigCompCompartment(Platform::String^ compId); + + bool setSTUNServer(Platform::String^ ip, unsigned short port); + bool setSTUNCred(Platform::String^ login, Platform::String^ password); + + bool setTLSSecAgree(bool enabled); + bool setSSLCertificates(Platform::String^ privKey, Platform::String^ pubKey, Platform::String^ caKey, bool verify); + bool setSSLCertificates(Platform::String^ privKey, Platform::String^ pubKey, Platform::String^ caKey); + bool setIPSecSecAgree(bool enabled); + bool setIPSecParameters(Platform::String^ algo, Platform::String^ ealgo, Platform::String^ mode, Platform::String^ proto); + + Platform::String^ dnsENUM(Platform::String^ service, Platform::String^ e164num, Platform::String^ domain); +#if COM_VISIBLE + rtDnsResult^ dnsNaptrSrv(Platform::String^ domain, Platform::String^ service); + rtDnsResult^ dnsSrv(Platform::String^ service); + Platform::String^ getLocalIP(Platform::String^ protocol); + uint16 getLocalPort(Platform::String^ protocol); +#else + Platform::String^ dnsNaptrSrv(Platform::String^ domain, Platform::String^ service, Platform::IntPtr port); + Platform::String^ dnsSrv(Platform::String^ service, Platform::IntPtr port); + Platform::String^ getLocalIPnPort(Platform::String^ protocol, Platform::IntPtr port); +#endif + + Platform::String^ getPreferredIdentity(); + + bool isValid(); + bool stop(); + + static bool initialize(); + static bool deInitialize(); + static void setCodecs(enum class rt_tdav_codec_id_t codecs); + static bool setCodecPriority(enum class rt_tdav_codec_id_t codec_id, int priority); + static bool isCodecSupported(enum class rt_tdav_codec_id_t codec_id); + + private: + SipStack* m_pSipStack; + rtSipCallback^ m_pSipCallback; + rtDDebugCallback^ m_pDebugCallback; + std::recursive_mutex mLock; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_SipUri.h b/bindings/winrt/doubango_rt/include/rt_SipUri.h new file mode 100644 index 0000000..3917f87 --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_SipUri.h @@ -0,0 +1,60 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include "rt_Config.h" + +class SipUri; + +namespace doubango_rt +{ + namespace BackEnd + { + public ref class rtSipUri sealed + { + public: + virtual ~rtSipUri(); + rtSipUri(Platform::String^ uriString, Platform::String^ displayName); + rtSipUri(Platform::String^ uriString); + + + public: + static bool isValid(Platform::String^ uri); + +#if COM_VISIBLE + bool isValid_(); +#else + bool isValid(); +#endif + Platform::String^ getScheme(); + Platform::String^ getHost(); + unsigned short getPort(); + Platform::String^ getUserName(); + Platform::String^ getPassword(); + Platform::String^ getDisplayName(); + Platform::String^ getParamValue(Platform::String^ name); + void setDisplayName(Platform::String^ displayName); + + internal: + const SipUri* getWrappedUri(){ return m_pSipUri; } + + private: + SipUri* m_pSipUri; + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_String.h b/bindings/winrt/doubango_rt/include/rt_String.h new file mode 100644 index 0000000..5562b5d --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_String.h @@ -0,0 +1,33 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once + +#include + +namespace doubango_rt +{ + namespace BackEnd + { + ref class rtString sealed + { + internal: + static std::vector toUtf8(Platform::String^ str); + static Platform::String^ toString(char const* str); + }; + } +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/include/rt_Xcap.h b/bindings/winrt/doubango_rt/include/rt_Xcap.h new file mode 100644 index 0000000..9385aed --- /dev/null +++ b/bindings/winrt/doubango_rt/include/rt_Xcap.h @@ -0,0 +1,18 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#pragma once \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_ActionConfig.cxx b/bindings/winrt/doubango_rt/src/rt_ActionConfig.cxx new file mode 100644 index 0000000..02f713e --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_ActionConfig.cxx @@ -0,0 +1,76 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_ActionConfig.h" +#include "rt_String.h" + +#include "ActionConfig.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +rtActionConfig::rtActionConfig() +{ + m_pActionConfig = new ActionConfig(); +} + +rtActionConfig::~rtActionConfig() +{ + rtSafeDelete(m_pActionConfig); +} + +bool rtActionConfig::addHeader(String^ name, String^ value) +{ + return m_pActionConfig->addHeader(rtString::toUtf8(name).data(), rtString::toUtf8(value).data()); +} + +bool rtActionConfig::setActiveMedia(rt_twrap_media_type_t type) +{ + return m_pActionConfig->setActiveMedia((twrap_media_type_t)type); +} + +#if COM_VISIBLE +bool rtActionConfig::addPayload(Platform::String^ payload) +{ + static std::vector _payload = rtString::toUtf8(payload); + return m_pActionConfig->addPayload(_payload.data(), _payload.size()); +} +#else +bool rtActionConfig::addPayload(IntPtr payload, unsigned len) +{ + return m_pActionConfig->addPayload((const void*)payload, len); +} +#endif /* COM_VISIBLE */ + +rtActionConfig^ rtActionConfig::setResponseLine(short code, String^ phrase) +{ + m_pActionConfig->setResponseLine(code, rtString::toUtf8(phrase).data()); + return this; +} + +rtActionConfig^ rtActionConfig::setMediaString(rt_twrap_media_type_t type, String^ key, String^ value) +{ + m_pActionConfig->setMediaString((twrap_media_type_t)type, rtString::toUtf8(key).data(), rtString::toUtf8(value).data()); + return this; +} + +rtActionConfig^ rtActionConfig::setMediaInt(rt_twrap_media_type_t type, String^ key, int value) +{ + m_pActionConfig->setMediaInt((twrap_media_type_t)type, rtString::toUtf8(key).data(), value); + return this; +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_DDebug.cxx b/bindings/winrt/doubango_rt/src/rt_DDebug.cxx new file mode 100644 index 0000000..a03300c --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_DDebug.cxx @@ -0,0 +1,78 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_DDebug.h" +#include "rt_String.h" + +#include "DDebug.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +class DDebugCallbackProxy : public DDebugCallback +{ +public: + DDebugCallbackProxy(rtDDebugCallback^ pCallback) + { + m_pCallback = pCallback; + } + + ~DDebugCallbackProxy() + { + + } + + virtual int OnDebugInfo(const char* message) + { + return m_pCallback->m_pI->OnDebugInfo(rtString::toString(message)); + } + + virtual int OnDebugWarn(const char* message) + { + return m_pCallback->m_pI->OnDebugWarn(rtString::toString(message)); + } + + virtual int OnDebugError(const char* message) + { + return m_pCallback->m_pI->OnDebugError(rtString::toString(message)); + } + + virtual int OnDebugFatal(const char* message) + { + return m_pCallback->m_pI->OnDebugFatal(rtString::toString(message)); + } + +private: + rtDDebugCallback^ m_pCallback; +}; + +rtDDebugCallback::rtDDebugCallback(rtIDDebugCallback^ pI) +{ + m_pI = pI; + m_pCallback = new DDebugCallbackProxy(this); +} + +rtDDebugCallback::~rtDDebugCallback() +{ + rtSafeDelete(m_pCallback); +} + +const DDebugCallback* rtDDebugCallback::getWrappedCallback() +{ + return dynamic_cast(m_pCallback); +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_Enums.cxx b/bindings/winrt/doubango_rt/src/rt_Enums.cxx new file mode 100644 index 0000000..fa2645c --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_Enums.cxx @@ -0,0 +1,17 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/#include "rt_enums.h" \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_MediaContent.cxx b/bindings/winrt/doubango_rt/src/rt_MediaContent.cxx new file mode 100644 index 0000000..623cb1f --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_MediaContent.cxx @@ -0,0 +1,17 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_MediaSessionMgr.cxx b/bindings/winrt/doubango_rt/src/rt_MediaSessionMgr.cxx new file mode 100644 index 0000000..7d2c6f0 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_MediaSessionMgr.cxx @@ -0,0 +1,374 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_MediaSessionMgr.h" +#include "rt_Enums.h" +#include "rt_String.h" + +#include "MediaSessionMgr.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +rtCodec::rtCodec(struct tmedia_codec_s* pCodec) +{ + m_pCodec = new Codec(pCodec); +} + +rtCodec::~rtCodec() +{ + rtSafeDelete(m_pCodec); +} + +enum class rt_twrap_media_type_t rtCodec::getMediaType() +{ + return (rt_twrap_media_type_t)m_pCodec->getMediaType(); +} + +Platform::String^ rtCodec::getName() +{ + return rtString::toString(m_pCodec->getName()); +} + +Platform::String^ rtCodec::getDescription() +{ + return rtString::toString(m_pCodec->getDescription()); +} + +Platform::String^ rtCodec::getNegFormat() +{ + return rtString::toString(m_pCodec->getNegFormat()); +} + +int rtCodec::getAudioSamplingRate() +{ + return m_pCodec->getAudioSamplingRate(); +} + +int rtCodec::getAudioChannels() +{ + return m_pCodec->getAudioChannels(); +} + +int rtCodec::getAudioPTime() +{ + return m_pCodec->getAudioPTime(); +} + + +rtMediaSessionMgr::rtMediaSessionMgr(struct tmedia_session_mgr_s* pWrappedMgr) +{ + m_pMediaSessionMgr = new MediaSessionMgr(pWrappedMgr); +} + +rtMediaSessionMgr::~rtMediaSessionMgr() +{ + rtSafeDelete(m_pMediaSessionMgr); +} + +bool rtMediaSessionMgr::sessionSetInt32(rt_twrap_media_type_t media, Platform::String^ key, int32 value) +{ + return m_pMediaSessionMgr->sessionSetInt32((twrap_media_type_t)media, rtString::toUtf8(key).data(), value); +} + +int32 rtMediaSessionMgr::sessionGetInt32(rt_twrap_media_type_t media, Platform::String^ key) +{ + return m_pMediaSessionMgr->sessionGetInt32((twrap_media_type_t)media, rtString::toUtf8(key).data()); +} + +bool rtMediaSessionMgr::consumerSetInt32(rt_twrap_media_type_t media, Platform::String^ key, int32 value) +{ + return m_pMediaSessionMgr->consumerSetInt32((twrap_media_type_t)media, rtString::toUtf8(key).data(), value); +} + +bool rtMediaSessionMgr::consumerSetInt64(rt_twrap_media_type_t media, Platform::String^ key, int64 value) +{ + return m_pMediaSessionMgr->consumerSetInt64((twrap_media_type_t)media, rtString::toUtf8(key).data(), value); +} + +bool rtMediaSessionMgr::producerSetInt32(rt_twrap_media_type_t media, Platform::String^ key, int32 value) +{ + return m_pMediaSessionMgr->producerSetInt32((twrap_media_type_t)media, rtString::toUtf8(key).data(), value); +} + +bool rtMediaSessionMgr::producerSetInt64(rt_twrap_media_type_t media, Platform::String^ key, int64 value) +{ + return m_pMediaSessionMgr->producerSetInt64((twrap_media_type_t)media, rtString::toUtf8(key).data(), value); +} + +rtCodec^ rtMediaSessionMgr::producerGetCodec(rt_twrap_media_type_t media) +{ + Codec* c = m_pMediaSessionMgr->producerGetCodec((twrap_media_type_t)media); + if(c) + { + rtCodec^ codec = ref new rtCodec(const_cast(c->getWrappedCodec())); + rtSafeDelete(c); + return codec; + } + return nullptr; +} + +unsigned int rtMediaSessionMgr::registerAudioPluginFromFile(Platform::String^ path) +{ + return MediaSessionMgr::registerAudioPluginFromFile(rtString::toUtf8(path).data()); +} + +uint64 rtMediaSessionMgr::getSessionId(rt_twrap_media_type_t media) +{ + return m_pMediaSessionMgr->getSessionId((twrap_media_type_t)media); +} + +bool rtMediaSessionMgr::defaultsSetProfile(rt_tmedia_profile_t profile) +{ + return MediaSessionMgr::defaultsSetProfile((tmedia_profile_t) profile); +} + +rt_tmedia_profile_t rtMediaSessionMgr::defaultsGetProfile() +{ + return (rt_tmedia_profile_t)MediaSessionMgr::defaultsGetProfile(); +} + +bool rtMediaSessionMgr::defaultsSetPrefVideoSize(enum class rt_tmedia_pref_video_size_t pref_video_size) +{ + return MediaSessionMgr::defaultsSetPrefVideoSize((tmedia_pref_video_size_t) pref_video_size); +} + +bool rtMediaSessionMgr::defaultsSetJbMargin(uint32 jb_margin_ms) +{ + return MediaSessionMgr::defaultsSetJbMargin(jb_margin_ms); +} + +bool rtMediaSessionMgr::defaultsSetJbMaxLateRate(uint32 jb_late_rate_percent) +{ + return MediaSessionMgr::defaultsSetJbMaxLateRate(jb_late_rate_percent); +} + +bool rtMediaSessionMgr::defaultsSetEchoTail(uint32 echo_tail) +{ + return MediaSessionMgr::defaultsSetEchoTail(echo_tail); +} + +uint32 rtMediaSessionMgr::defaultsGetEchoTail() +{ + return MediaSessionMgr::defaultsGetEchoTail(); +} + +bool rtMediaSessionMgr::defaultsSetEchoSkew(uint32 echo_skew) +{ + return MediaSessionMgr::defaultsSetEchoSkew(echo_skew); +} + +bool rtMediaSessionMgr::defaultsSetEchoSuppEnabled(bool echo_supp_enabled) +{ + return MediaSessionMgr::defaultsSetEchoSuppEnabled(echo_supp_enabled); +} + +bool rtMediaSessionMgr::defaultsGetEchoSuppEnabled() +{ + return MediaSessionMgr::defaultsGetEchoSuppEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetAgcEnabled(bool agc_enabled) +{ + return MediaSessionMgr::defaultsSetAgcEnabled(agc_enabled); +} + +bool rtMediaSessionMgr::defaultsGetAgcEnabled() +{ + return MediaSessionMgr::defaultsGetAgcEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetAgcLevel(float agc_level) +{ + return MediaSessionMgr::defaultsSetAgcLevel(agc_level); +} + +float rtMediaSessionMgr::defaultsGetAgcLevel() +{ + return MediaSessionMgr::defaultsGetAgcLevel(); +} + +bool rtMediaSessionMgr::defaultsSetVadEnabled(bool vad_enabled) +{ + return MediaSessionMgr::defaultsSetVadEnabled(vad_enabled); +} + +bool rtMediaSessionMgr::defaultsGetGetVadEnabled() +{ + return MediaSessionMgr::defaultsGetGetVadEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetNoiseSuppEnabled(bool noise_supp_enabled) +{ + return MediaSessionMgr::defaultsSetNoiseSuppEnabled(noise_supp_enabled); +} + +bool rtMediaSessionMgr::defaultsGetNoiseSuppEnabled() +{ + return MediaSessionMgr::defaultsGetNoiseSuppEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetNoiseSuppLevel(int32 noise_supp_level) +{ + return MediaSessionMgr::defaultsSetNoiseSuppLevel(noise_supp_level); +} + +int32 rtMediaSessionMgr::defaultsGetNoiseSuppLevel() +{ + return MediaSessionMgr::defaultsGetNoiseSuppLevel(); +} + +bool rtMediaSessionMgr::defaultsSet100relEnabled(bool _100rel_enabled) +{ + return MediaSessionMgr::defaultsSet100relEnabled(_100rel_enabled); +} + +bool rtMediaSessionMgr::defaultsGet100relEnabled() +{ + return MediaSessionMgr::defaultsGet100relEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetScreenSize(int32 sx, int32 sy) +{ + return MediaSessionMgr::defaultsSetScreenSize(sx, sy); +} + +bool rtMediaSessionMgr::defaultsSetAudioGain(int32 producer_gain, int32 consumer_gain) +{ + return MediaSessionMgr::defaultsSetAudioGain(producer_gain, consumer_gain); +} + +bool rtMediaSessionMgr::defaultsSetRtpPortRange(uint16 range_start, uint16 range_stop) +{ + return MediaSessionMgr::defaultsSetRtpPortRange(range_start, range_stop); +} + +bool rtMediaSessionMgr::defaultsSetRtpSymetricEnabled(bool enabled) +{ + return MediaSessionMgr::defaultsSetRtpSymetricEnabled(enabled); +} + +bool rtMediaSessionMgr::defaultsSetMediaType(enum class rt_twrap_media_type_t media_type) +{ + return MediaSessionMgr::defaultsSetMediaType((twrap_media_type_t) media_type); +} + +bool rtMediaSessionMgr::defaultsSetVolume(int32 volume) +{ + return MediaSessionMgr::defaultsSetVolume(volume); +} + +int32 rtMediaSessionMgr::defaultsGetVolume() +{ + return MediaSessionMgr::defaultsGetVolume(); +} + +bool rtMediaSessionMgr::defaultsSetInviteSessionTimers(int32 timeout, Platform::String^ refresher) +{ + return MediaSessionMgr::defaultsSetInviteSessionTimers(timeout, rtString::toUtf8(refresher).data()); +} + +bool rtMediaSessionMgr::defaultsSetSRtpMode(enum class rt_tmedia_srtp_mode_t mode) +{ + return MediaSessionMgr::defaultsSetSRtpMode((tmedia_srtp_mode_t) mode); +} + +enum class rt_tmedia_srtp_mode_t rtMediaSessionMgr::defaultsGetSRtpMode() +{ + return (rt_tmedia_srtp_mode_t)MediaSessionMgr::defaultsGetSRtpMode(); +} + +bool rtMediaSessionMgr::defaultsSetSRtpType(enum class rt_tmedia_srtp_type_t srtp_type) +{ + return MediaSessionMgr::defaultsSetSRtpType((tmedia_srtp_type_t) srtp_type); +} + +enum class rt_tmedia_srtp_type_t rtMediaSessionMgr::defaultsGetSRtpType() +{ + return (rt_tmedia_srtp_type_t)MediaSessionMgr::defaultsGetSRtpType(); +} + +bool rtMediaSessionMgr::defaultsSetRtcpEnabled(bool enabled) +{ + return MediaSessionMgr::defaultsSetRtcpEnabled(enabled); +} + +bool rtMediaSessionMgr::defaultsGetRtcpEnabled() +{ + return MediaSessionMgr::defaultsGetRtcpEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetRtcpMuxEnabled(bool enabled) +{ + return MediaSessionMgr::defaultsSetRtcpMuxEnabled(enabled); +} + +bool rtMediaSessionMgr::defaultsGetRtcpMuxEnabled() +{ + return MediaSessionMgr::defaultsGetRtcpMuxEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetIceEnabled(bool ice_enabled) +{ + return MediaSessionMgr::defaultsSetIceEnabled(ice_enabled); +} + +bool rtMediaSessionMgr::defaultsSetByPassEncoding(bool enabled) +{ + return MediaSessionMgr::defaultsSetByPassEncoding(enabled); +} + +bool rtMediaSessionMgr::defaultsGetByPassEncoding() +{ + return MediaSessionMgr::defaultsGetByPassEncoding(); +} + +bool rtMediaSessionMgr::defaultsSetByPassDecoding(bool enabled) +{ + return MediaSessionMgr::defaultsSetByPassDecoding(enabled); +} + +bool rtMediaSessionMgr::defaultsGetByPassDecoding() +{ + return MediaSessionMgr::defaultsGetByPassDecoding(); +} + +bool rtMediaSessionMgr::defaultsSetVideoJbEnabled(bool enabled) +{ + return MediaSessionMgr::defaultsSetVideoJbEnabled(enabled); +} + +bool rtMediaSessionMgr::defaultsGetVideoJbEnabled() +{ + return MediaSessionMgr::defaultsGetVideoJbEnabled(); +} + +bool rtMediaSessionMgr::defaultsSetRtpBuffSize(unsigned buffSize) +{ + return MediaSessionMgr::defaultsSetRtpBuffSize(buffSize); +} + +unsigned rtMediaSessionMgr::defaultsGetRtpBuffSize() +{ + return MediaSessionMgr::defaultsGetRtpBuffSize(); +} + +bool rtMediaSessionMgr::defaultsSetAvpfTail(unsigned tail_min, unsigned tail_max) +{ + return MediaSessionMgr::defaultsSetAvpfTail(tail_min, tail_max); +} diff --git a/bindings/winrt/doubango_rt/src/rt_Msrp.cxx b/bindings/winrt/doubango_rt/src/rt_Msrp.cxx new file mode 100644 index 0000000..1d09f06 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_Msrp.cxx @@ -0,0 +1,194 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_Msrp.h" +#include "rt_String.h" +#include "rt_SipSession.h" + +#include "SipSession.h" +#include "Msrp.h" + +#include + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + + +// +// rtMsrpMessage +// + +rtMsrpMessage::rtMsrpMessage(struct tmsrp_message_s *message) +{ + m_pMsrpMessage= new MsrpMessage(message); +} + +rtMsrpMessage::~rtMsrpMessage() +{ + rtSafeDelete(m_pMsrpMessage); +} + +bool rtMsrpMessage::isRequest() +{ + return m_pMsrpMessage->isRequest(); +} + +short rtMsrpMessage::getCode() +{ + return m_pMsrpMessage->getCode(); +} + +String^ rtMsrpMessage::getPhrase() +{ + return rtString::toString(m_pMsrpMessage->getPhrase()); +} + +rt_tmsrp_request_type_t rtMsrpMessage::getRequestType() +{ + return (rt_tmsrp_request_type_t)m_pMsrpMessage->getRequestType(); +} + +#if COM_VISIBLE +rtMsrpByteRange^ rtMsrpMessage::getByteRange() +{ + int64_t _start = -1, _end = -1, _total = -1; + m_pMsrpMessage->getByteRange(&_start, &_end, &_total); + return ref new rtMsrpByteRange(_start, _end, _total); +} +#else +void rtMsrpMessage::getByteRange(IntPtr start, IntPtr end, IntPtr total) +{ + int64_t _start = -1, _end = -1, _total = -1; + m_pMsrpMessage->getByteRange(&_start, &_end, &_total); + // IntPtr is 32bit or 64bit -> 32 to be sure not memory errors will raise + *((int32_t*)(void*)start) = (int32_t)_start; + *((int32_t*)(void*)end) = (int32_t)_end; + *((int32_t*)(void*)total) = (int32_t)_total; +} +#endif /* COM_VISIBLE */ + +bool rtMsrpMessage::isLastChunck() +{ + return m_pMsrpMessage->isLastChunck(); +} + +bool rtMsrpMessage::isFirstChunck() +{ + return m_pMsrpMessage->isFirstChunck(); +} + +bool rtMsrpMessage::isSuccessReport() +{ + return m_pMsrpMessage->isSuccessReport(); +} + +String^ rtMsrpMessage::getMsrpHeaderValue(String^ name) +{ + return rtString::toString(m_pMsrpMessage->getMsrpHeaderValue(rtString::toUtf8(name).data())); +} + +String^ rtMsrpMessage::getMsrpHeaderParamValue(String^ name, String^ param) +{ + return rtString::toString(m_pMsrpMessage->getMsrpHeaderParamValue(rtString::toUtf8(name).data(), rtString::toUtf8(param).data())); +} + +unsigned rtMsrpMessage::getMsrpContentLength() +{ + return m_pMsrpMessage->getMsrpContentLength(); +} + +#if COM_VISIBLE +String^ rtMsrpMessage::getMsrpContent(unsigned maxsize) +{ + if(maxsize) + { + void* _s = calloc(maxsize + 1, 1); + if(_s) + { + unsigned len = m_pMsrpMessage->getMsrpContent(_s, maxsize); + String^ s = rtString::toString((const char*)_s); + free(_s); + return s; + } + } + return nullptr; +} +#else +unsigned rtMsrpMessage::getMsrpContent(IntPtr output, unsigned maxsize) +{ + return m_pMsrpMessage->getMsrpContent((void*)output, maxsize); +} +#endif /* COM_VISIBLE */ + + +// +// rtMsrpEvent +// + +rtMsrpEvent::rtMsrpEvent(const struct tmsrp_event_s *event) +{ + m_pMsrpEvent = new MsrpEvent(event); +} + +rtMsrpEvent::~rtMsrpEvent() +{ + rtSafeDelete(m_pMsrpEvent); +} + +rt_tmsrp_event_type_t rtMsrpEvent::getType() +{ + return (rt_tmsrp_event_type_t)m_pMsrpEvent->getType(); +} + +rtMsrpSession^ rtMsrpEvent::getSipSession() +{ + if(m_pMsrpEvent->getSipSession()) + { + assert(0); // FIXME: Not implemented + return nullptr; + // return ref new rtMsrpSession(m_pMsrpEvent->getSipSession()->getWrappedSession()); + } + return nullptr; +} + +rtMsrpMessage^ rtMsrpEvent::getMessage() +{ + if(m_pMsrpEvent->getMessage()) + { + return ref new rtMsrpMessage(const_cast(const_cast(m_pMsrpEvent->getMessage())->getWrappedMsrpMessage())); + } + return nullptr; +} + +// +// rtMsrpCallback +// + +rtMsrpCallback::rtMsrpCallback(rtIMsrpCallback^ pI) +{ + m_pI = pI; + m_pCallback = new MsrpCallback(); +} + +rtMsrpCallback::~rtMsrpCallback() +{ + rtSafeDelete(m_pCallback); +} + + + \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_SMSEncoder.cxx b/bindings/winrt/doubango_rt/src/rt_SMSEncoder.cxx new file mode 100644 index 0000000..623cb1f --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SMSEncoder.cxx @@ -0,0 +1,17 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_SipCallback.cxx b/bindings/winrt/doubango_rt/src/rt_SipCallback.cxx new file mode 100644 index 0000000..68c6299 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SipCallback.cxx @@ -0,0 +1,135 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_SipCallback.h" +#include "rt_SipEvent.h" + +#include "SipEvent.h" +#include "SipCallback.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +class SipCallbackProxy : public SipCallback +{ +public: + SipCallbackProxy(rtSipCallback^ rtCallback) + { + m_pCallback = rtCallback; + } + + virtual int OnDialogEvent(const DialogEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnDialogEvent(ref new rtDialogEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnStackEvent(const StackEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnStackEvent(ref new rtStackEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnInviteEvent(const InviteEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnInviteEvent(ref new rtInviteEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnMessagingEvent(const MessagingEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnMessagingEvent(ref new rtMessagingEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnInfoEvent(const InfoEvent* e) override + { + if(m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnInfoEvent(ref new rtInfoEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnOptionsEvent(const OptionsEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnOptionsEvent(ref new rtOptionsEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnPublicationEvent(const PublicationEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnPublicationEvent(ref new rtPublicationEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnRegistrationEvent(const RegistrationEvent* e) override + { + if(m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnRegistrationEvent(ref new rtRegistrationEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + + virtual int OnSubscriptionEvent(const SubscriptionEvent* e) override + { + if(e && m_pCallback && m_pCallback->m_pI) + { + return m_pCallback->m_pI->OnSubscriptionEvent(ref new rtSubscriptionEvent(const_cast(const_cast(e)->getWrappedEvent()))); + } + return 0; + } + +private: + rtSipCallback^ m_pCallback; +}; + +rtSipCallback::rtSipCallback(rtISipCallback^ pI) +{ + m_pI = pI; + m_pCallback = new SipCallbackProxy(this); +} + +rtSipCallback::~rtSipCallback() +{ + rtSafeDelete(m_pCallback); +} + +const SipCallback* rtSipCallback::getWrappedCallback() +{ + return dynamic_cast(m_pCallback); +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_SipEvent.cxx b/bindings/winrt/doubango_rt/src/rt_SipEvent.cxx new file mode 100644 index 0000000..1bd414e --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SipEvent.cxx @@ -0,0 +1,239 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_SipEvent.h" +#include "rt_String.h" +#include "rt_SipMessage.h" +#include "rt_SipSession.h" + +#include "tinysip/tsip_event.h" + +#include "SipMessage.h" +#include "SipSession.h" +#include "SipEvent.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +#define rt_getSession_Implement(cls) \ +rt##cls##Session^ rt##cls##Event::getSession(){ \ + const cls##Session* s = m_pEvent->getSession(); \ + if(s){ \ + return ref new rt##cls##Session(const_cast(const_cast<##cls##Session*>(s)->getStack()), const_cast(const_cast<##cls##Session*>(s)->getWrappedSession())); \ + } \ + return nullptr; \ +} \ + +#define rt_takeOwnership_Implement(cls, name, session) \ +rt##name##Session^ rt##cls##Event::take##session##Ownership(){ \ + name##Session* s = m_pEvent->take##session##Ownership(); \ + if(s){ \ + rt##name##Session^ _s = ref new rt##name##Session(const_cast(s->getStack()), const_cast(s->getWrappedSession())); \ + rtSafeDelete(s); \ + return _s; \ + } \ + return nullptr; \ +} \ + +/* ======================== rtDialogEvent ========================*/ +rtISipEvent_Implement(rtDialogEvent); + +rtDialogEvent::rtDialogEvent(const struct tsip_event_s *e) +{ + m_pEvent = new DialogEvent(e); +} + +rtDialogEvent::~rtDialogEvent() +{ + rtSafeDelete(m_pEvent); +} + + +/* ======================== rtStackEvent ========================*/ +rtISipEvent_Implement(rtStackEvent); + +rtStackEvent::rtStackEvent(const struct tsip_event_s *e) +{ + m_pEvent = new StackEvent(e); +} + +rtStackEvent::~rtStackEvent() +{ + rtSafeDelete(m_pEvent); +} + + + /* ======================== rtInviteEvent ========================*/ +rtISipEvent_Implement(rtInviteEvent); + +rtInviteEvent::rtInviteEvent(const struct tsip_event_s *e) +{ + m_pEvent = new InviteEvent(e); +} + +rtInviteEvent::~rtInviteEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_invite_event_type_t rtInviteEvent::getType() +{ + return (rt_tsip_invite_event_type_t)m_pEvent->getType(); +} + +rt_twrap_media_type_t rtInviteEvent::getMediaType() +{ + return (rt_twrap_media_type_t)m_pEvent->getMediaType(); +} + +rt_getSession_Implement(Invite); +rt_takeOwnership_Implement(Invite, Call, CallSession); +rt_takeOwnership_Implement(Invite, Msrp, MsrpSession); + +/* ======================== rtMessagingEvent ========================*/ +rtISipEvent_Implement(rtMessagingEvent); + +rtMessagingEvent::rtMessagingEvent(const struct tsip_event_s *e) +{ + m_pEvent = new MessagingEvent(e); +} + + +rtMessagingEvent::~rtMessagingEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_message_event_type_t rtMessagingEvent::getType() +{ + return (rt_tsip_message_event_type_t)m_pEvent->getType(); +} + +rt_getSession_Implement(Messaging); +rt_takeOwnership_Implement(Messaging, Messaging, Session); + + +/* ======================== rtInfoEvent ========================*/ +rtISipEvent_Implement(rtInfoEvent); + +rtInfoEvent::rtInfoEvent(const struct tsip_event_s *e) +{ + m_pEvent = new InfoEvent(e); +} + +rtInfoEvent::~rtInfoEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_info_event_type_t rtInfoEvent::getType() +{ + return (rt_tsip_info_event_type_t)m_pEvent->getType(); +} + +rt_getSession_Implement(Info); +rt_takeOwnership_Implement(Info, Info, Session); + + +/* ======================== rtOptionsEvent ========================*/ +rtISipEvent_Implement(rtOptionsEvent); + +rtOptionsEvent::rtOptionsEvent(const struct tsip_event_s *e) +{ + m_pEvent = new OptionsEvent(e); +} + +rtOptionsEvent::~rtOptionsEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_options_event_type_t rtOptionsEvent::getType() +{ + return (rt_tsip_options_event_type_t)m_pEvent->getType(); +} + +rt_getSession_Implement(Options); +rt_takeOwnership_Implement(Options, Options, Session); + + +/* ======================== rtPublicationEvent ========================*/ +rtISipEvent_Implement(rtPublicationEvent); + +rtPublicationEvent::rtPublicationEvent(const struct tsip_event_s *e) +{ + m_pEvent = new PublicationEvent(e); +} + +rtPublicationEvent::~rtPublicationEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_publish_event_type_t rtPublicationEvent::getType() +{ + return (rt_tsip_publish_event_type_t)m_pEvent->getType(); +} + +rt_getSession_Implement(Publication); +rt_takeOwnership_Implement(Publication, Publication, Session); + + + +/* ======================== rtRegistrationEvent ========================*/ +rtISipEvent_Implement(rtRegistrationEvent); + +rtRegistrationEvent::rtRegistrationEvent(const struct tsip_event_s *e) +{ + m_pEvent = new RegistrationEvent(e); +} + +rtRegistrationEvent::~rtRegistrationEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_register_event_type_t rtRegistrationEvent::getType() +{ + return (rt_tsip_register_event_type_t)m_pEvent->getType(); +} + +rt_getSession_Implement(Registration); +rt_takeOwnership_Implement(Registration, Registration, Session); + + +/* ======================== rtSubscriptionEvent ========================*/ +rtISipEvent_Implement(rtSubscriptionEvent); + +rtSubscriptionEvent::rtSubscriptionEvent(const struct tsip_event_s *e) +{ + m_pEvent = new SubscriptionEvent(e); +} + +rtSubscriptionEvent::~rtSubscriptionEvent() +{ + rtSafeDelete(m_pEvent); +} + +rt_tsip_subscribe_event_type_t rtSubscriptionEvent::getType() +{ + return (rt_tsip_subscribe_event_type_t)m_pEvent->getType(); +} + +rt_getSession_Implement(Subscription); +rt_takeOwnership_Implement(Subscription, Subscription, Session); \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_SipMessage.cxx b/bindings/winrt/doubango_rt/src/rt_SipMessage.cxx new file mode 100644 index 0000000..55e05d9 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SipMessage.cxx @@ -0,0 +1,171 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_SipMessage.h" +#include "rt_String.h" + +#include "SipMessage.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +// +// rtSdpMessage +// + +rtSdpMessage::rtSdpMessage() + :m_pSdpMessage(NULL) +{ +} + +rtSdpMessage::rtSdpMessage(struct tsdp_message_s *message) +{ + m_pSdpMessage = new SdpMessage(message); +} + +rtSdpMessage::~rtSdpMessage() +{ + rtSafeDelete(m_pSdpMessage); +} + +String^ rtSdpMessage::getSdpHeaderValue(String^ media, String^ name, unsigned index) +{ + if(m_pSdpMessage) + { + char * _str = m_pSdpMessage->getSdpHeaderValue + (rtString::toUtf8(media).data(), + rtString::toUtf8(media).data()[0], + index); + String^ str = rtString::toString(_str); + TSK_FREE(str); + return str; + } + return nullptr; +} + +String^ rtSdpMessage::getSdpHeaderValue(String^ media, String^ name) +{ + return getSdpHeaderValue(media, name, 0); +} + +String^ rtSdpMessage::getSdpHeaderAValue(String^ media, String^ attributeName) +{ + if(m_pSdpMessage) + { + char * _str = m_pSdpMessage->getSdpHeaderAValue + (rtString::toUtf8(media).data(), + rtString::toUtf8(attributeName).data()); + String^ str = rtString::toString(_str); + TSK_FREE(str); + return str; + } + return nullptr; +} + +// +// rtSipMessage +// + +rtSipMessage::rtSipMessage() + :m_pSipMessage(NULL) +{ +} + +rtSipMessage::rtSipMessage(struct tsip_message_s* message) +{ + m_pSipMessage = new SipMessage(message); +} + +rtSipMessage::~rtSipMessage() +{ + rtSafeDelete(m_pSipMessage); +} + +bool rtSipMessage::isResponse() +{ + return m_pSipMessage ? m_pSipMessage->isResponse() : false; +} + +rt_tsip_request_type_t rtSipMessage::getRequestType() +{ + return (rt_tsip_request_type_t)(m_pSipMessage ? m_pSipMessage->getRequestType() : 0); +} + +short rtSipMessage::getResponseCode() +{ + return m_pSipMessage ? m_pSipMessage->getResponseCode() : 0; +} + +String^ rtSipMessage::getResponsePhrase() +{ + return m_pSipMessage ? rtString::toString(m_pSipMessage->getResponsePhrase()) : nullptr; +} + +String^ rtSipMessage::getSipHeaderValue(String^ name, unsigned index) +{ + return m_pSipMessage ? rtString::toString(m_pSipMessage->getSipHeaderValue(rtString::toUtf8(name).data(), index)) : nullptr; +} + +String^ rtSipMessage::getSipHeaderValue(String^ name) +{ + return getSipHeaderValue(name, 0); +} + +String^ rtSipMessage::getSipHeaderParamValue(String^ name, String^ param, unsigned index) +{ + return m_pSipMessage ? rtString::toString(m_pSipMessage->getSipHeaderParamValue(rtString::toUtf8(name).data(), rtString::toUtf8(param).data(), index)) : nullptr; +} + +String^ rtSipMessage::getSipHeaderParamValue(String^ name, String^ param) +{ + return getSipHeaderParamValue(name, param, 0); +} + +unsigned rtSipMessage::getSipContentLength() +{ + return m_pSipMessage ? m_pSipMessage->getSipContentLength() : 0; +} + +#if COM_VISIBLE +String^ rtSipMessage::getSipContent() +{ + unsigned len = getSipContentLength(); + if(len > 0) + { + void* data_ptr = calloc(len, 1); + if(data_ptr) + { + m_pSipMessage->getSipContent(data_ptr, len); + String^ s = rtString::toString((const char*)data_ptr); + free(data_ptr); + return s; + } + } + return nullptr; +} +#else +unsigned rtSipMessage::getSipContent(IntPtr output, unsigned maxsize) +{ + return m_pSipMessage ? m_pSipMessage->getSipContent((void*)output, maxsize) : 0; +} +#endif + +rtSdpMessage^ rtSipMessage::getSdpMessage() +{ + return m_pSipMessage ? ref new rtSdpMessage(const_cast(const_cast(m_pSipMessage->getSdpMessage())->getWrappedSdpMessage())) : nullptr; +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_SipSession.cxx b/bindings/winrt/doubango_rt/src/rt_SipSession.cxx new file mode 100644 index 0000000..872a2e2 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SipSession.cxx @@ -0,0 +1,662 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_SipSession.h" +#include "rt_String.h" +#include "rt_SipStack.h" +#include "rt_SipUri.h" +#include "rt_Msrp.h" + +#include "SipSession.h" +#include "MediaSessionMgr.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +/* ======================== T140Callback ========================*/ +rtT140CallbackData::rtT140CallbackData(enum tmedia_t140_data_type_e data_type, const void* data_ptr, unsigned data_size) +{ + m_pData = new T140CallbackData(data_type, data_ptr, data_size); +} + +rtT140CallbackData::~rtT140CallbackData() +{ + rtSafeDelete(m_pData); +} + +/* ======================== rtT140Callback ========================*/ + +rtT140Callback::rtT140Callback() +{ + m_pCallback = new T140Callback(); +} + +rtT140Callback::~rtT140Callback() +{ + rtSafeDelete(m_pCallback); +} + +/* ======================== rtSipSession ========================*/ +rtISession_Implement(rtSipSession); + +rtSipSession::rtSipSession(rtSipStack^ pStack) +{ + m_pSipSession = new SipSession(const_cast(pStack->getWrappedStack())); +} + +rtSipSession::rtSipSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new SipSession(pStack, pHandle); +} + +rtSipSession::~rtSipSession() +{ + rtSafeDelete(m_pSipSession); +} + + +/* ======================== rtInviteSession ========================*/ +rtISession_Implement(rtInviteSession); +rtIInviteSession_Implement(rtInviteSession); + +rtInviteSession::rtInviteSession(rtSipStack^ pStack) +{ + m_pSipSession = new InviteSession(const_cast(pStack->getWrappedStack())); +} + +rtInviteSession::rtInviteSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new InviteSession(pStack, pHandle); +} + +rtInviteSession::~rtInviteSession() +{ + rtSafeDelete(m_pSipSession); +} + + +/* ======================== rtCallSession ========================*/ +rtISession_Implement(rtCallSession); +rtIInviteSession_Implement(rtCallSession); + +rtCallSession::rtCallSession(rtSipStack^ pStack) +{ + m_pSipSession = new CallSession(const_cast(pStack->getWrappedStack())); +} + +rtCallSession::rtCallSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new CallSession(pStack, pHandle); +} + +rtCallSession::~rtCallSession() +{ + rtSafeDelete(m_pSipSession); +} + + +bool rtCallSession::call(String^ remoteUriString, rt_twrap_media_type_t media, rtActionConfig^ config) +{ + return m_pSipSession->call(rtString::toUtf8(remoteUriString).data(), (twrap_media_type_t)media, config ? config->getWrappedActionConfig() : tsk_null); + +} + +bool rtCallSession::call(String^ remoteUriString, rt_twrap_media_type_t media) +{ + return call(remoteUriString, media, nullptr); +} + +bool rtCallSession::call(rtSipUri^ remoteUri, rt_twrap_media_type_t media, rtActionConfig^ config) +{ + return m_pSipSession->call(remoteUri->getWrappedUri(), (twrap_media_type_t)media, config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtCallSession::call(rtSipUri^ remoteUri, rt_twrap_media_type_t media) +{ + return call(remoteUri, media, nullptr); +} + +bool rtCallSession::setSessionTimer(unsigned timeout, String^ refresher) +{ + return m_pSipSession->setSessionTimer(timeout, rtString::toUtf8(refresher).data()); +} + +bool rtCallSession::set100rel(bool enabled) +{ + return m_pSipSession->set100rel(enabled); +} + +bool rtCallSession::setRtcp(bool enabled) +{ + return m_pSipSession->setRtcp(enabled); +} + +bool rtCallSession::setRtcpMux(bool enabled) +{ + return m_pSipSession->setRtcpMux(enabled); +} + +bool rtCallSession::setICE(bool enabled) +{ + return m_pSipSession->setICE(enabled); +} + +bool rtCallSession::setQoS(rt_tmedia_qos_stype_t type, rt_tmedia_qos_strength_t strength) +{ + return m_pSipSession->setQoS((tmedia_qos_stype_t) type, (tmedia_qos_strength_t) strength); +} + +bool rtCallSession::setVideoFps(int32_t fps) +{ + return m_pSipSession->setVideoFps(fps); +} + +bool rtCallSession::setVideoBandwidthUploadMax(int32_t max) +{ + return m_pSipSession->setVideoBandwidthUploadMax(max); +} + +bool rtCallSession::setVideoBandwidthDownloadMax(int32_t max) +{ + return m_pSipSession->setVideoBandwidthDownloadMax(max); +} + +bool rtCallSession::setVideoPrefSize(rt_tmedia_pref_video_size_t pref_video_size) +{ + return m_pSipSession->setVideoPrefSize((tmedia_pref_video_size_t)pref_video_size); +} + +bool rtCallSession::hold(rtActionConfig^ config) +{ + return m_pSipSession->hold(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtCallSession::hold() +{ + return hold(nullptr); +} + +bool rtCallSession::resume(rtActionConfig^ config) +{ + return m_pSipSession->resume(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtCallSession::resume() +{ + return resume(nullptr); +} + +bool rtCallSession::transfer(String^ referToUriString, rtActionConfig^ config) +{ + return m_pSipSession->transfer(rtString::toUtf8(referToUriString).data(), config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtCallSession::transfer(String^ referToUriString) +{ + return transfer(referToUriString, nullptr); +} + +bool rtCallSession::acceptTransfer(rtActionConfig^ config) +{ + return m_pSipSession->acceptTransfer(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtCallSession::acceptTransfer() +{ + return acceptTransfer(nullptr); +} + +bool rtCallSession::rejectTransfer(rtActionConfig^ config) +{ + return m_pSipSession->rejectTransfer(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtCallSession::rejectTransfer() +{ + return rejectTransfer(nullptr); +} + +bool rtCallSession::sendDTMF(int number) +{ + return m_pSipSession->sendDTMF(number); +} + +unsigned rtCallSession::getSessionTransferId() +{ + return m_pSipSession->getSessionTransferId(); +} + +#if COM_VISIBLE +bool rtCallSession::sendT140Data(rt_tmedia_t140_data_type_t data_type, String^ data) +{ + std::vector _data = rtString::toUtf8(data); + return m_pSipSession->sendT140Data((tmedia_t140_data_type_t) data_type, (const void*)_data.data(), _data.size()); +} +#else +bool rtCallSession::sendT140Data(rt_tmedia_t140_data_type_t data_type, IntPtr data_ptr, unsigned data_size) +{ + return m_pSipSession->sendT140Data((tmedia_t140_data_type_t) data_type, (const void*)data_ptr, data_size); +} + +#endif + +bool rtCallSession::sendT140Data(rt_tmedia_t140_data_type_t data_type) +{ + return sendT140Data(data_type, nullptr +#if !COM_VISIBLE + , 0 +#endif + ); +} + +bool rtCallSession::setT140Callback(rtT140Callback^ pT140Callback) +{ + return m_pSipSession->setT140Callback(const_cast(pT140Callback->getWrappedCallback())); +} + + +/* ======================== rtMsrpSession ========================*/ +rtISession_Implement(rtMsrpSession); +rtIInviteSession_Implement(rtMsrpSession); + +rtMsrpSession::rtMsrpSession(rtSipStack^ pStack, rtIMsrpCallback^ pCallback) +{ + m_pCallback = ref new rtMsrpCallback(pCallback); + m_pSipSession = new MsrpSession(const_cast(pStack->getWrappedStack()), const_cast(m_pCallback->getWrappedCallback())); +} + +rtMsrpSession::rtMsrpSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new MsrpSession(pStack, pHandle); +} + +rtMsrpSession::~rtMsrpSession() +{ + rtSafeDelete(m_pSipSession); + rtSafeDelete(m_pCallback); +} + +bool rtMsrpSession::setCallback(rtIMsrpCallback^ pCallback) +{ + rtSafeDelete(m_pCallback); + if(!pCallback) + { + return m_pSipSession->setCallback(tsk_null); + return true; + } + m_pCallback = ref new rtMsrpCallback(pCallback); + return m_pSipSession->setCallback(const_cast(m_pCallback->getWrappedCallback())); +} + +bool rtMsrpSession::callMsrp(Platform::String^ remoteUriString, rtActionConfig^ config) +{ + return m_pSipSession->callMsrp(rtString::toUtf8(remoteUriString).data(), config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMsrpSession::callMsrp(Platform::String^ remoteUriString) +{ + return callMsrp(remoteUriString, nullptr); +} + +bool rtMsrpSession::callMsrp(rtSipUri^ remoteUri, rtActionConfig^ config) +{ + return m_pSipSession->callMsrp(remoteUri->getWrappedUri(), config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMsrpSession::callMsrp(rtSipUri^ remoteUri) +{ + return callMsrp(remoteUri, nullptr); +} + +#if COM_VISIBLE +bool rtMsrpSession::sendMessage(String^ payload, rtActionConfig^ config) +{ + std::vector _payload = rtString::toUtf8(payload); + return m_pSipSession->sendMessage((const void*)_payload.data(), _payload.size(), config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMsrpSession::sendMessage(Platform::String^ payload) +{ + return sendMessage(payload, nullptr); +} + +#else +bool rtMsrpSession::sendMessage(Platform::IntPtr payload, unsigned len, rtActionConfig^ config) +{ + return m_pSipSession->sendMessage((const void*)payload, len, config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMsrpSession::sendMessage(Platform::IntPtr payload, unsigned len) +{ + return sendMessage(payload, len, nullptr); +} +#endif /* COM_VISIBLE */ + + +/* ======================== rtMessagingSession ========================*/ +rtISession_Implement(rtMessagingSession); + +rtMessagingSession::rtMessagingSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new MessagingSession(pStack, pHandle); +} + +rtMessagingSession::rtMessagingSession(rtSipStack^ pStack) +{ + m_pSipSession = new MessagingSession(const_cast(pStack->getWrappedStack())); +} + +rtMessagingSession::~rtMessagingSession() +{ + rtSafeDelete(m_pSipSession); +} + +#if COM_VISIBLE +bool rtMessagingSession::send(String^ payload, rtActionConfig^ config) +{ + std::vector_payload = rtString::toUtf8(payload); + return m_pSipSession->send((const void*)_payload.data(), _payload.size(), config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMessagingSession::send(Platform::String^ payload) +{ + return send(payload, nullptr); +} + +#else +bool rtMessagingSession::send(IntPtr payload, unsigned len, rtActionConfig^ config) +{ + return m_pSipSession->send((const void*)payload, len, config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMessagingSession::send(IntPtr payload, unsigned len) +{ + return send(payload, len, nullptr); +} +#endif + +bool rtMessagingSession::accept(rtActionConfig^ config) +{ + return m_pSipSession->accept(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMessagingSession::accept() +{ + return accept(nullptr); +} + +bool rtMessagingSession::reject(rtActionConfig^ config) +{ + return m_pSipSession->reject(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtMessagingSession::reject() +{ + return reject(nullptr); +} + +/* ======================== rtInfoSession ========================*/ +rtISession_Implement(rtInfoSession); + +rtInfoSession::rtInfoSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new InfoSession(pStack, pHandle); +} + +rtInfoSession::rtInfoSession(rtSipStack^ pStack) +{ + m_pSipSession = new InfoSession(const_cast(pStack->getWrappedStack())); +} + +rtInfoSession::~rtInfoSession() +{ + rtSafeDelete(m_pSipSession); +} + +#if COM_VISIBLE +bool rtInfoSession::send(Platform::String^ payload, rtActionConfig^ config) +{ + std::vector_payload = rtString::toUtf8(payload); + return m_pSipSession->send((const void*)_payload.data(), _payload.size(), config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtInfoSession::send(Platform::String^ payload) +{ + return send(payload, nullptr); +} +#else +bool rtInfoSession::send(IntPtr payload, unsigned len, rtActionConfig^ config) +{ + return m_pSipSession->send((const void*)payload, len, config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtInfoSession::send(IntPtr payload, unsigned len) +{ + return send(payload, len, nullptr); +} +#endif + +bool rtInfoSession::accept(rtActionConfig^ config) +{ + return m_pSipSession->accept(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtInfoSession::accept() +{ + return accept(nullptr); +} + +bool rtInfoSession::reject(rtActionConfig^ config) +{ + return m_pSipSession->reject(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtInfoSession::reject() +{ + return reject(nullptr); +} + + + +/* ======================== rtOptionsSession ========================*/ +rtISession_Implement(rtOptionsSession); + +rtOptionsSession::rtOptionsSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new OptionsSession(pStack, pHandle); +} + +rtOptionsSession::rtOptionsSession(rtSipStack^ pStack) +{ + m_pSipSession = new OptionsSession(const_cast(pStack->getWrappedStack())); +} + +rtOptionsSession::~rtOptionsSession() +{ + rtSafeDelete(m_pSipSession); +} + +bool rtOptionsSession::send(rtActionConfig^ config) +{ + return m_pSipSession->send(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtOptionsSession::send() +{ + return send(nullptr); +} + +bool rtOptionsSession::accept(rtActionConfig^ config) +{ + return m_pSipSession->accept(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtOptionsSession::accept() +{ + return accept(nullptr); +} + +bool rtOptionsSession::reject(rtActionConfig^ config) +{ + return m_pSipSession->reject(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtOptionsSession::reject() +{ + return reject(nullptr); +} + + + +/* ======================== rtPublicationSession ========================*/ +rtISession_Implement(rtPublicationSession); + +rtPublicationSession::rtPublicationSession(rtSipStack^ pStack) +{ + m_pSipSession = new PublicationSession(const_cast(pStack->getWrappedStack())); +} + +rtPublicationSession::rtPublicationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new PublicationSession(pStack, pHandle); +} + +rtPublicationSession::~rtPublicationSession() +{ + rtSafeDelete(m_pSipSession); +} + +#if COM_VISIBLE +bool rtPublicationSession::publish(String^ payload, rtActionConfig^ config) +{ + std::vector_payload = rtString::toUtf8(payload); + return m_pSipSession->publish((const void*)_payload.data(), _payload.size(), config ? config->getWrappedActionConfig() : tsk_null); +} +bool rtPublicationSession::publish(Platform::String^ payload) +{ + return publish(payload, nullptr); +} +#else +bool rtPublicationSession::publish(Platform::IntPtr payload, unsigned len, rtActionConfig^ config) +{ + return m_pSipSession->publish((const void*)payload, len, config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtPublicationSession::publish(Platform::IntPtr payload, unsigned len) +{ + return publish(payload, len, nullptr); +} +#endif + +bool rtPublicationSession::unPublish(rtActionConfig^ config) +{ + return m_pSipSession->unPublish(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtPublicationSession::unPublish() +{ + return unPublish(nullptr); +} + + +/* ======================== rtRegistrationSession ========================*/ +rtISession_Implement(rtRegistrationSession); + +rtRegistrationSession::rtRegistrationSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new RegistrationSession(pStack, pHandle); +} + +rtRegistrationSession::rtRegistrationSession(rtSipStack^ pStack) +{ + m_pSipSession = new RegistrationSession(const_cast(pStack->getWrappedStack())); +} + +rtRegistrationSession::~rtRegistrationSession() +{ + rtSafeDelete(m_pSipSession); +} + +bool rtRegistrationSession::register_(rtActionConfig^ config) +{ + return m_pSipSession->register_(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtRegistrationSession::register_() +{ + return register_(nullptr); +} + +bool rtRegistrationSession::unRegister(rtActionConfig^ config) +{ + return m_pSipSession->unRegister(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtRegistrationSession::unRegister() +{ + return unRegister(nullptr); +} + +bool rtRegistrationSession::accept(rtActionConfig^ config) +{ + return m_pSipSession->accept(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtRegistrationSession::accept() +{ + return accept(nullptr); +} + +bool rtRegistrationSession::reject(rtActionConfig^ config) +{ + return m_pSipSession->reject(config ? config->getWrappedActionConfig() : tsk_null); +} + +bool rtRegistrationSession::reject() +{ + return reject(nullptr); +} + + +/* ======================== rtSubscriptionSession ========================*/ +rtISession_Implement(rtSubscriptionSession); + +rtSubscriptionSession::rtSubscriptionSession(rtSipStack^ pStack) +{ + m_pSipSession = new SubscriptionSession(const_cast(pStack->getWrappedStack())); +} + +rtSubscriptionSession::rtSubscriptionSession(SipStack* pStack, tsip_ssession_handle_t* pHandle) +{ + m_pSipSession = new SubscriptionSession(pStack, pHandle); +} + +rtSubscriptionSession::~rtSubscriptionSession() +{ + rtSafeDelete(m_pSipSession); +} + +bool rtSubscriptionSession::subscribe() +{ + return m_pSipSession->subscribe(); +} + +bool rtSubscriptionSession::unSubscribe() +{ + return m_pSipSession->unSubscribe(); +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_SipStack.cxx b/bindings/winrt/doubango_rt/src/rt_SipStack.cxx new file mode 100644 index 0000000..753a881 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SipStack.cxx @@ -0,0 +1,390 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_SipStack.h" +#include "rt_SipCallback.h" +#include "rt_DDebug.h" +#include "rt_String.h" +#include "rt_Enums.h" + +#include "SipStack.h" + + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +rtSipStack::rtSipStack(rtISipCallback^ callback, Platform::String^ realmUri, Platform::String^ impiString, Platform::String^ impuUri) +{ + m_pSipCallback = ref new rtSipCallback(callback); + m_pSipStack = new SipStack( + const_cast(m_pSipCallback->getWrappedCallback()), + rtString::toUtf8(realmUri).data(), + rtString::toUtf8(impiString).data(), + rtString::toUtf8(impuUri).data() + ); +} + +rtSipStack::~rtSipStack() +{ + std::lock_guard lock(mLock); + + rtSafeDelete(m_pSipStack); + rtSafeDelete(m_pSipCallback); + rtSafeDelete(m_pDebugCallback); +} + +bool rtSipStack::start() +{ + std::lock_guard lock(mLock); + + return m_pSipStack->start(); +} + +bool rtSipStack::setDebugCallback(rtIDDebugCallback^ pCallback) +{ + std::lock_guard lock(mLock); + + m_pSipStack->setDebugCallback(tsk_null); + rtSafeDelete(m_pDebugCallback); + if(!pCallback) + { + return true; + } + + m_pDebugCallback = ref new rtDDebugCallback(pCallback); + return m_pSipStack->setDebugCallback(const_cast(m_pDebugCallback->getWrappedCallback())); +} + +bool rtSipStack::setDisplayName(Platform::String^ display_name) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setDisplayName(rtString::toUtf8(display_name).data()); +} + +bool rtSipStack::setRealm(Platform::String^ realm_uri) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setRealm(rtString::toUtf8(realm_uri).data()); +} + +bool rtSipStack::setIMPI(Platform::String^ impi) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setIMPI(rtString::toUtf8(impi).data()); +} + +bool rtSipStack::setIMPU(Platform::String^ impu_uri) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setIMPU(rtString::toUtf8(impu_uri).data()); +} + +bool rtSipStack::setPassword(Platform::String^ password) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setPassword(rtString::toUtf8(password).data()); +} + +bool rtSipStack::setAMF(Platform::String^ amf) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setAMF(rtString::toUtf8(amf).data()); +} + +bool rtSipStack::setOperatorId(Platform::String^ opid) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setOperatorId(rtString::toUtf8(opid).data()); +} + + +bool rtSipStack::setProxyCSCF(Platform::String^ fqdn, unsigned short port, Platform::String^ transport, Platform::String^ ipversion) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setProxyCSCF( + rtString::toUtf8(fqdn).data(), + port, + rtString::toUtf8(transport).data(), + rtString::toUtf8(ipversion).data() + ); +} +bool rtSipStack::setLocalIP(Platform::String^ ip, Platform::String^ transport) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setLocalIP(rtString::toUtf8(ip).data(), rtString::toUtf8(transport).data()); +} + +bool rtSipStack::setLocalIP(Platform::String^ ip) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setLocalIP(rtString::toUtf8(ip).data()); +} + +bool rtSipStack::setLocalPort(unsigned short port, Platform::String^ transport) +{ + return m_pSipStack->setLocalPort(port, rtString::toUtf8(transport).data()); +} + +bool rtSipStack::setLocalPort(unsigned short port) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setLocalPort(port); +} + +bool rtSipStack::setEarlyIMS(bool enabled) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setEarlyIMS(enabled); +} + +bool rtSipStack::addHeader(Platform::String^ name, Platform::String^ value) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->addHeader(rtString::toUtf8(name).data(), rtString::toUtf8(value).data()); +} + +bool rtSipStack::removeHeader(Platform::String^ name) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->removeHeader(rtString::toUtf8(name).data()); +} + +bool rtSipStack::addDnsServer(Platform::String^ ip) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->removeHeader(rtString::toUtf8(ip).data()); +} + +bool rtSipStack::setDnsDiscovery(bool enabled) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setDnsDiscovery(enabled); +} + +bool rtSipStack::setAoR(Platform::String^ ip, int port) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setAoR(rtString::toUtf8(ip).data(), port); +} + +bool rtSipStack::setSigCompParams(unsigned dms, unsigned sms, unsigned cpb, bool enablePresDict) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setSigCompParams(dms, sms, cpb, enablePresDict); +} + +bool rtSipStack::addSigCompCompartment(Platform::String^ compId) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->addSigCompCompartment(rtString::toUtf8(compId).data()); +} + +bool rtSipStack::removeSigCompCompartment(Platform::String^ compId) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->removeSigCompCompartment(rtString::toUtf8(compId).data()); +} + +bool rtSipStack::setSTUNServer(Platform::String^ ip, unsigned short port) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setSTUNServer(rtString::toUtf8(ip).data(), port); +} + +bool rtSipStack::setSTUNCred(Platform::String^ login, Platform::String^ password) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setSTUNCred(rtString::toUtf8(login).data(), rtString::toUtf8(password).data()); +} + +bool rtSipStack::setTLSSecAgree(bool enabled) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setTLSSecAgree(enabled); +} + +bool rtSipStack::setSSLCertificates(Platform::String^ privKey, Platform::String^ pubKey, Platform::String^ caKey, bool verify) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setSSLCertificates(rtString::toUtf8(privKey).data(), rtString::toUtf8(pubKey).data(), rtString::toUtf8(caKey).data(), verify); +} + +bool rtSipStack::setSSLCertificates(Platform::String^ privKey, Platform::String^ pubKey, Platform::String^ caKey) +{ + std::lock_guard lock(mLock); + + return setSSLCertificates(privKey, pubKey, caKey, false); +} + +bool rtSipStack::setIPSecSecAgree(bool enabled) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setIPSecSecAgree(enabled); +} + +bool rtSipStack::setIPSecParameters(Platform::String^ algo, Platform::String^ ealgo, Platform::String^ mode, Platform::String^ proto) +{ + std::lock_guard lock(mLock); + + return m_pSipStack->setIPSecParameters(rtString::toUtf8(algo).data(), rtString::toUtf8(ealgo).data(), rtString::toUtf8(mode).data(), rtString::toUtf8(proto).data()); +} + +Platform::String^ rtSipStack::dnsENUM(Platform::String^ service, Platform::String^ e164num, Platform::String^ domain) +{ + std::lock_guard lock(mLock); + + return rtString::toString(m_pSipStack->dnsENUM(rtString::toUtf8(service).data(), rtString::toUtf8(e164num).data(), rtString::toUtf8(domain).data())); +} + +#if COM_VISIBLE +rtDnsResult^ rtSipStack::dnsNaptrSrv(String^ domain, String^ service) +{ + std::lock_guard lock(mLock); + + unsigned short _port = 0; + String^ address = rtString::toString(m_pSipStack->dnsNaptrSrv(rtString::toUtf8(domain).data(), rtString::toUtf8(service).data(), &_port)); + return ref new rtDnsResult(_port, address); +} + +rtDnsResult^ rtSipStack::dnsSrv(String^ service) +{ + std::lock_guard lock(mLock); + + unsigned short _port = 0; + String^ address = rtString::toString(m_pSipStack->dnsSrv(rtString::toUtf8(service).data(), &_port)); + return ref new rtDnsResult(_port, address); +} + +String^ rtSipStack::getLocalIP(String^ protocol) +{ + std::lock_guard lock(mLock); + + char* _ip = m_pSipStack->getLocalIPnPort(rtString::toUtf8(protocol).data(), tsk_null); + String^ ip = rtString::toString(_ip); + TSK_FREE(_ip); + return ip; +} + +uint16 rtSipStack::getLocalPort(String^ protocol) +{ + std::lock_guard lock(mLock); + + uint16 port = 0; + char* _ip = m_pSipStack->getLocalIPnPort(rtString::toUtf8(protocol).data(), &port); + TSK_FREE(_ip); + return port; +} +#else +String^ rtSipStack::dnsNaptrSrv(String^ domain, String^ service, IntPtr port) +{ + std::lock_guard lock(mLock); + + return rtString::toString(m_pSipStack->dnsNaptrSrv(rtString::toUtf8(domain).data(), rtString::toUtf8(service).data(), ((unsigned short*)(void*)port))); +} + +String^ rtSipStack::dnsSrv(String^ service, IntPtr port) +{ + std::lock_guard lock(mLock); + + return rtString::toString(m_pSipStack->dnsSrv(rtString::toUtf8(service).data(), ((unsigned short*)(void*)port))); +} + +Platform::String^ rtSipStack::getLocalIPnPort(String^ protocol, IntPtr port) +{ + std::lock_guard lock(mLock); + + char* _ip = m_pSipStack->getLocalIPnPort(rtString::toUtf8(protocol).data(), ((unsigned short*)(void*)port)); + String^ ip = rtString::toString(); + TSK_FREE(_ip); + return ip; +} +#endif /* COM_VISIBLE */ + +Platform::String^ rtSipStack::getPreferredIdentity() +{ + std::lock_guard lock(mLock); + + return rtString::toString(m_pSipStack->getPreferredIdentity()); +} + +bool rtSipStack::isValid() +{ + std::lock_guard lock(mLock); + + return m_pSipStack->isValid(); +} + +bool rtSipStack::stop() +{ + std::lock_guard lock(mLock); + + return m_pSipStack->stop(); +} + +bool rtSipStack::initialize() +{ + return SipStack::initialize(); +} + +bool rtSipStack::deInitialize() +{ + return SipStack::deInitialize(); +} + +void rtSipStack::setCodecs(enum class rt_tdav_codec_id_t codecs) +{ + return SipStack::setCodecs((tdav_codec_id_t) codecs); +} + +bool rtSipStack::setCodecPriority(enum class rt_tdav_codec_id_t codec_id, int priority) +{ + return SipStack::setCodecPriority((tdav_codec_id_t)codec_id, priority); +} + +bool rtSipStack::isCodecSupported(enum class rt_tdav_codec_id_t codec_id) +{ + return SipStack::isCodecSupported((tdav_codec_id_t) codec_id); +} + + + diff --git a/bindings/winrt/doubango_rt/src/rt_SipUri.cxx b/bindings/winrt/doubango_rt/src/rt_SipUri.cxx new file mode 100644 index 0000000..1398325 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_SipUri.cxx @@ -0,0 +1,103 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_SipUri.h" +#include "rt_String.h" + +#include "SipUri.h" + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + + +rtSipUri::rtSipUri(Platform::String^ uriString, Platform::String^ displayName) +{ + m_pSipUri = new SipUri( + rtString::toUtf8(uriString).data(), + rtString::toUtf8(displayName).data()); +} + +rtSipUri::rtSipUri(Platform::String^ uriString) +{ + m_pSipUri = new SipUri(rtString::toUtf8(uriString).data()); +} + +rtSipUri::~rtSipUri() +{ + rtSafeDelete(m_pSipUri); +} + +bool rtSipUri::isValid(Platform::String^ uri) +{ + return SipUri::isValid(rtString::toUtf8(uri).data()); +} + +// MIDL4069: Static members and instance members cannot have the same name on a runtime class. isValid + +#if COM_VISIBLE +bool rtSipUri::isValid_() +#else +bool rtSipUri::isValid() +#endif +{ + return (m_pSipUri && m_pSipUri->isValid()); +} + +Platform::String^ rtSipUri::getScheme() +{ + return m_pSipUri ? rtString::toString(m_pSipUri->getScheme()) : nullptr; +} + +Platform::String^ rtSipUri::getHost() +{ + return m_pSipUri ? rtString::toString(m_pSipUri->getHost()) : nullptr; +} + +unsigned short rtSipUri::getPort() +{ + return m_pSipUri ? m_pSipUri->getPort() : 0; +} + +Platform::String^ rtSipUri::getUserName() +{ + return m_pSipUri ? rtString::toString(m_pSipUri->getUserName()) : nullptr; +} + +Platform::String^ rtSipUri::getPassword() +{ + return m_pSipUri ? rtString::toString(m_pSipUri->getPassword()) : nullptr; +} + +Platform::String^ rtSipUri::getDisplayName() +{ + return m_pSipUri ? rtString::toString(m_pSipUri->getDisplayName()) : nullptr; +} + +Platform::String^ rtSipUri::getParamValue(Platform::String^ name) +{ + return m_pSipUri ? rtString::toString(m_pSipUri->getParamValue(rtString::toUtf8(name).data())) : nullptr; +} + +void rtSipUri::setDisplayName(Platform::String^ displayName) +{ + if(m_pSipUri) + { + m_pSipUri->setDisplayName(rtString::toUtf8(displayName).data()); + } +} + diff --git a/bindings/winrt/doubango_rt/src/rt_String.cxx b/bindings/winrt/doubango_rt/src/rt_String.cxx new file mode 100644 index 0000000..7d17f03 --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_String.cxx @@ -0,0 +1,58 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ +#include "rt_String.h" + +#include + +using namespace doubango_rt::BackEnd; +using namespace Platform; +using namespace std; + +vector rtString::toUtf8(String^ str) +{ + if(str != nullptr && !str->IsEmpty()) + { + int len = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, str->Data(), str->Length(), nullptr, 0, nullptr, nullptr); + if (len > 0) + { + vector vec(len + 1); + if (WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, str->Data(), str->Length(), vec.data(), len, nullptr, nullptr) == len) + { + return std::move(vec); + } + } + } + return std::move(vector(0)); +} + +String^ rtString::toString(char const* str) +{ + if(str) + { + int len = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, nullptr, 0); + if (len > 0) + { + vector vec(len); + if (MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, str, -1, vec.data(), len) == len) + { + return ref new String(vec.data()); + } + } + } + return nullptr; +} \ No newline at end of file diff --git a/bindings/winrt/doubango_rt/src/rt_Xcap.cxx b/bindings/winrt/doubango_rt/src/rt_Xcap.cxx new file mode 100644 index 0000000..623cb1f --- /dev/null +++ b/bindings/winrt/doubango_rt/src/rt_Xcap.cxx @@ -0,0 +1,17 @@ +/*Copyright (C) 2013 Doubango Telecom +* +* This file is part of Open Source Doubango Framework. +* +* DOUBANGO is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* DOUBANGO is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with DOUBANGO. +*/ \ No newline at end of file diff --git a/bindings/winrt/tinyWRAP.sln b/bindings/winrt/tinyWRAP.sln new file mode 100644 index 0000000..26d35ab --- /dev/null +++ b/bindings/winrt/tinyWRAP.sln @@ -0,0 +1,229 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Express 2012 for Windows Phone +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyWRAP", "tinyWRAP.vcxproj", "{5004BA7E-950D-4D60-A030-29ACD38DCA08}" + ProjectSection(ProjectDependencies) = postProject + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67} = {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67} + {BE41D117-1D61-4C12-AD9D-B20D02C79687} = {BE41D117-1D61-4C12-AD9D-B20D02C79687} + {1A27423C-6535-4A49-96EC-5D209FE125F2} = {1A27423C-6535-4A49-96EC-5D209FE125F2} + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {77A24977-079C-4E02-9717-8B2F684BAA21} = {77A24977-079C-4E02-9717-8B2F684BAA21} + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F} = {49843B78-0CEB-445D-BACC-C5C5C2F6C26F} + {982D737A-0649-4C32-A00E-08992A0B7673} = {982D737A-0649-4C32-A00E-08992A0B7673} + {0875A083-5118-40CC-941E-722B00295A5B} = {0875A083-5118-40CC-941E-722B00295A5B} + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2} = {0F2C458A-1EDB-4E09-9A22-C2209731CFF2} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + {F623CBDB-707A-4FDC-ACE0-3D616E239F16} = {F623CBDB-707A-4FDC-ACE0-3D616E239F16} + {52E43EEB-A549-4159-B254-DCA225D7638B} = {52E43EEB-A549-4159-B254-DCA225D7638B} + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC} = {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyDAV", "..\..\tinyDAV\winrt\tinyDAV.vcxproj", "{0F2C458A-1EDB-4E09-9A22-C2209731CFF2}" + ProjectSection(ProjectDependencies) = postProject + {BE41D117-1D61-4C12-AD9D-B20D02C79687} = {BE41D117-1D61-4C12-AD9D-B20D02C79687} + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {77A24977-079C-4E02-9717-8B2F684BAA21} = {77A24977-079C-4E02-9717-8B2F684BAA21} + {982D737A-0649-4C32-A00E-08992A0B7673} = {982D737A-0649-4C32-A00E-08992A0B7673} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + {52E43EEB-A549-4159-B254-DCA225D7638B} = {52E43EEB-A549-4159-B254-DCA225D7638B} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyHTTP", "..\..\tinyHTTP\winrt\tinyHTTP.vcxproj", "{1A27423C-6535-4A49-96EC-5D209FE125F2}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyIPSec", "..\..\tinyIPSec\winrt\tinyIPSec.vcxproj", "{0875A083-5118-40CC-941E-722B00295A5B}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMEDIA", "..\..\tinyMEDIA\winrt\tinyMEDIA.vcxproj", "{52E43EEB-A549-4159-B254-DCA225D7638B}" + ProjectSection(ProjectDependencies) = postProject + {BE41D117-1D61-4C12-AD9D-B20D02C79687} = {BE41D117-1D61-4C12-AD9D-B20D02C79687} + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {982D737A-0649-4C32-A00E-08992A0B7673} = {982D737A-0649-4C32-A00E-08992A0B7673} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyMSRP", "..\..\tinyMSRP\winrt\tinyMSRP.vcxproj", "{BE41D117-1D61-4C12-AD9D-B20D02C79687}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyNET", "..\..\tinyNET\winrt\tinyNET.vcxproj", "{06E58F9D-28A1-4DD4-AF11-2F5239222CCC}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyRTP", "..\..\tinyRTP\winrt\tinyRTP.vcxproj", "{77A24977-079C-4E02-9717-8B2F684BAA21}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + {52E43EEB-A549-4159-B254-DCA225D7638B} = {52E43EEB-A549-4159-B254-DCA225D7638B} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySAK", "..\..\tinySAK\winrt\tinySAK.vcxproj", "{19279F5B-CDAF-4187-9F09-2A896A828B05}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySDP", "..\..\tinySDP\winrt\tinySDP.vcxproj", "{982D737A-0649-4C32-A00E-08992A0B7673}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIGCOMP", "..\..\tinySIGCOMP\winrt\tinySIGCOMP.vcxproj", "{F623CBDB-707A-4FDC-ACE0-3D616E239F16}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySIP", "..\..\tinySIP\winrt\tinySIP.vcxproj", "{1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}" + ProjectSection(ProjectDependencies) = postProject + {BE41D117-1D61-4C12-AD9D-B20D02C79687} = {BE41D117-1D61-4C12-AD9D-B20D02C79687} + {1A27423C-6535-4A49-96EC-5D209FE125F2} = {1A27423C-6535-4A49-96EC-5D209FE125F2} + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {982D737A-0649-4C32-A00E-08992A0B7673} = {982D737A-0649-4C32-A00E-08992A0B7673} + {0875A083-5118-40CC-941E-722B00295A5B} = {0875A083-5118-40CC-941E-722B00295A5B} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + {F623CBDB-707A-4FDC-ACE0-3D616E239F16} = {F623CBDB-707A-4FDC-ACE0-3D616E239F16} + {52E43EEB-A549-4159-B254-DCA225D7638B} = {52E43EEB-A549-4159-B254-DCA225D7638B} + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC} = {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinySMS", "..\..\tinySMS\winrt\tinySMS.vcxproj", "{65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}" + ProjectSection(ProjectDependencies) = postProject + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tinyXCAP", "..\..\tinyXCAP\winrt\tinyXCAP.vcxproj", "{49843B78-0CEB-445D-BACC-C5C5C2F6C26F}" + ProjectSection(ProjectDependencies) = postProject + {1A27423C-6535-4A49-96EC-5D209FE125F2} = {1A27423C-6535-4A49-96EC-5D209FE125F2} + {19279F5B-CDAF-4187-9F09-2A896A828B05} = {19279F5B-CDAF-4187-9F09-2A896A828B05} + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} = {06E58F9D-28A1-4DD4-AF11-2F5239222CCC} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM = Debug|ARM + Debug|Win32 = Debug|Win32 + Release|ARM = Release|ARM + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Debug|ARM.ActiveCfg = Debug|ARM + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Debug|ARM.Build.0 = Debug|ARM + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Debug|Win32.ActiveCfg = Debug|Win32 + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Debug|Win32.Build.0 = Debug|Win32 + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Release|ARM.ActiveCfg = Release|ARM + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Release|ARM.Build.0 = Release|ARM + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Release|Win32.ActiveCfg = Release|Win32 + {5004BA7E-950D-4D60-A030-29ACD38DCA08}.Release|Win32.Build.0 = Release|Win32 + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Debug|ARM.ActiveCfg = Debug|ARM + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Debug|ARM.Build.0 = Debug|ARM + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Debug|Win32.ActiveCfg = Debug|Win32 + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Debug|Win32.Build.0 = Debug|Win32 + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Release|ARM.ActiveCfg = Release|ARM + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Release|ARM.Build.0 = Release|ARM + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Release|Win32.ActiveCfg = Release|Win32 + {0F2C458A-1EDB-4E09-9A22-C2209731CFF2}.Release|Win32.Build.0 = Release|Win32 + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Debug|ARM.ActiveCfg = Debug|ARM + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Debug|ARM.Build.0 = Debug|ARM + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Debug|Win32.ActiveCfg = Debug|Win32 + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Debug|Win32.Build.0 = Debug|Win32 + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Release|ARM.ActiveCfg = Release|ARM + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Release|ARM.Build.0 = Release|ARM + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Release|Win32.ActiveCfg = Release|Win32 + {1A27423C-6535-4A49-96EC-5D209FE125F2}.Release|Win32.Build.0 = Release|Win32 + {0875A083-5118-40CC-941E-722B00295A5B}.Debug|ARM.ActiveCfg = Debug|ARM + {0875A083-5118-40CC-941E-722B00295A5B}.Debug|ARM.Build.0 = Debug|ARM + {0875A083-5118-40CC-941E-722B00295A5B}.Debug|Win32.ActiveCfg = Debug|Win32 + {0875A083-5118-40CC-941E-722B00295A5B}.Debug|Win32.Build.0 = Debug|Win32 + {0875A083-5118-40CC-941E-722B00295A5B}.Release|ARM.ActiveCfg = Release|ARM + {0875A083-5118-40CC-941E-722B00295A5B}.Release|ARM.Build.0 = Release|ARM + {0875A083-5118-40CC-941E-722B00295A5B}.Release|Win32.ActiveCfg = Release|Win32 + {0875A083-5118-40CC-941E-722B00295A5B}.Release|Win32.Build.0 = Release|Win32 + {52E43EEB-A549-4159-B254-DCA225D7638B}.Debug|ARM.ActiveCfg = Debug|ARM + {52E43EEB-A549-4159-B254-DCA225D7638B}.Debug|ARM.Build.0 = Debug|ARM + {52E43EEB-A549-4159-B254-DCA225D7638B}.Debug|Win32.ActiveCfg = Debug|Win32 + {52E43EEB-A549-4159-B254-DCA225D7638B}.Debug|Win32.Build.0 = Debug|Win32 + {52E43EEB-A549-4159-B254-DCA225D7638B}.Release|ARM.ActiveCfg = Release|ARM + {52E43EEB-A549-4159-B254-DCA225D7638B}.Release|ARM.Build.0 = Release|ARM + {52E43EEB-A549-4159-B254-DCA225D7638B}.Release|Win32.ActiveCfg = Release|Win32 + {52E43EEB-A549-4159-B254-DCA225D7638B}.Release|Win32.Build.0 = Release|Win32 + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Debug|ARM.ActiveCfg = Debug|ARM + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Debug|ARM.Build.0 = Debug|ARM + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Debug|Win32.ActiveCfg = Debug|Win32 + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Debug|Win32.Build.0 = Debug|Win32 + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Release|ARM.ActiveCfg = Release|ARM + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Release|ARM.Build.0 = Release|ARM + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Release|Win32.ActiveCfg = Release|Win32 + {BE41D117-1D61-4C12-AD9D-B20D02C79687}.Release|Win32.Build.0 = Release|Win32 + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Debug|ARM.ActiveCfg = Debug|ARM + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Debug|ARM.Build.0 = Debug|ARM + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Debug|Win32.ActiveCfg = Debug|Win32 + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Debug|Win32.Build.0 = Debug|Win32 + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Release|ARM.ActiveCfg = Release|ARM + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Release|ARM.Build.0 = Release|ARM + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Release|Win32.ActiveCfg = Release|Win32 + {06E58F9D-28A1-4DD4-AF11-2F5239222CCC}.Release|Win32.Build.0 = Release|Win32 + {77A24977-079C-4E02-9717-8B2F684BAA21}.Debug|ARM.ActiveCfg = Debug|ARM + {77A24977-079C-4E02-9717-8B2F684BAA21}.Debug|ARM.Build.0 = Debug|ARM + {77A24977-079C-4E02-9717-8B2F684BAA21}.Debug|Win32.ActiveCfg = Debug|Win32 + {77A24977-079C-4E02-9717-8B2F684BAA21}.Debug|Win32.Build.0 = Debug|Win32 + {77A24977-079C-4E02-9717-8B2F684BAA21}.Release|ARM.ActiveCfg = Release|ARM + {77A24977-079C-4E02-9717-8B2F684BAA21}.Release|ARM.Build.0 = Release|ARM + {77A24977-079C-4E02-9717-8B2F684BAA21}.Release|Win32.ActiveCfg = Release|Win32 + {77A24977-079C-4E02-9717-8B2F684BAA21}.Release|Win32.Build.0 = Release|Win32 + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|ARM.ActiveCfg = Debug|ARM + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|ARM.Build.0 = Debug|ARM + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|Win32.ActiveCfg = Debug|Win32 + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Debug|Win32.Build.0 = Debug|Win32 + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|ARM.ActiveCfg = Release|ARM + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|ARM.Build.0 = Release|ARM + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|Win32.ActiveCfg = Release|Win32 + {19279F5B-CDAF-4187-9F09-2A896A828B05}.Release|Win32.Build.0 = Release|Win32 + {982D737A-0649-4C32-A00E-08992A0B7673}.Debug|ARM.ActiveCfg = Debug|ARM + {982D737A-0649-4C32-A00E-08992A0B7673}.Debug|ARM.Build.0 = Debug|ARM + {982D737A-0649-4C32-A00E-08992A0B7673}.Debug|Win32.ActiveCfg = Debug|Win32 + {982D737A-0649-4C32-A00E-08992A0B7673}.Debug|Win32.Build.0 = Debug|Win32 + {982D737A-0649-4C32-A00E-08992A0B7673}.Release|ARM.ActiveCfg = Release|ARM + {982D737A-0649-4C32-A00E-08992A0B7673}.Release|ARM.Build.0 = Release|ARM + {982D737A-0649-4C32-A00E-08992A0B7673}.Release|Win32.ActiveCfg = Release|Win32 + {982D737A-0649-4C32-A00E-08992A0B7673}.Release|Win32.Build.0 = Release|Win32 + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Debug|ARM.ActiveCfg = Debug|ARM + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Debug|ARM.Build.0 = Debug|ARM + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Debug|Win32.ActiveCfg = Debug|Win32 + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Debug|Win32.Build.0 = Debug|Win32 + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Release|ARM.ActiveCfg = Release|ARM + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Release|ARM.Build.0 = Release|ARM + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Release|Win32.ActiveCfg = Release|Win32 + {F623CBDB-707A-4FDC-ACE0-3D616E239F16}.Release|Win32.Build.0 = Release|Win32 + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Debug|ARM.ActiveCfg = Debug|ARM + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Debug|ARM.Build.0 = Debug|ARM + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Debug|Win32.ActiveCfg = Debug|Win32 + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Debug|Win32.Build.0 = Debug|Win32 + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Release|ARM.ActiveCfg = Release|ARM + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Release|ARM.Build.0 = Release|ARM + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Release|Win32.ActiveCfg = Release|Win32 + {1137A808-DAC8-4AF7-B8BB-AEE8ABFF2F67}.Release|Win32.Build.0 = Release|Win32 + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|ARM.ActiveCfg = Debug|ARM + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|ARM.Build.0 = Debug|ARM + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|Win32.ActiveCfg = Debug|Win32 + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Debug|Win32.Build.0 = Debug|Win32 + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|ARM.ActiveCfg = Release|ARM + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|ARM.Build.0 = Release|ARM + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|Win32.ActiveCfg = Release|Win32 + {65CDF0FF-3B84-45F3-9BB6-468C79B8E0BC}.Release|Win32.Build.0 = Release|Win32 + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Debug|ARM.ActiveCfg = Debug|ARM + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Debug|ARM.Build.0 = Debug|ARM + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Debug|Win32.ActiveCfg = Debug|Win32 + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Debug|Win32.Build.0 = Debug|Win32 + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Release|ARM.ActiveCfg = Release|ARM + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Release|ARM.Build.0 = Release|ARM + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Release|Win32.ActiveCfg = Release|Win32 + {49843B78-0CEB-445D-BACC-C5C5C2F6C26F}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/bindings/winrt/tinyWRAP.vcxproj b/bindings/winrt/tinyWRAP.vcxproj new file mode 100644 index 0000000..161f6ac --- /dev/null +++ b/bindings/winrt/tinyWRAP.vcxproj @@ -0,0 +1,204 @@ + + + + + Debug + Win32 + + + Debug + ARM + + + Release + Win32 + + + Release + ARM + + + + {5004ba7e-950d-4d60-a030-29acd38dca08} + tinyWRAP + en-US + 11.0 + + + + DynamicLibrary + true + v110_wp80 + false + + + DynamicLibrary + true + v110_wp80 + false + + + DynamicLibrary + false + true + v110_wp80 + false + + + DynamicLibrary + false + true + v110_wp80 + false + + + + + + + + false + + + $(SolutionDir)$(Configuration)\$(MSBuildProjectName)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)$(Configuration)\$(MSBuildProjectName)\ + $(Platform)\$(Configuration)\ + + + $(SolutionDir)$(Configuration)\$(MSBuildProjectName)\ + + + $(SolutionDir)$(Configuration)\$(MSBuildProjectName)\ + + + + _USRDLL;TINYWRAP_EXPORTS;%(PreprocessorDefinitions) + NotUsing + + + false + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + ..\_common;..\.;..\..\thirdparties\winrt\include;..\..\tinySAK\src;..\..\tinyNET\src;..\..\tinyHTTP\include;..\..\tinySIP\include;..\..\tinyDAV\include;..\..\tinySDP\include;..\..\tinyMEDIA\include;..\..\tinyXCAP\include;..\..\tinySMS\include;..\..\tinyMSRP\include + + + Console + false + false + true + "$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";"$(SolutionDir)$(Configuration)\tinySIP\tinySIP.lib";"$(SolutionDir)$(Configuration)\tinyNET\tinyNET.lib";"$(SolutionDir)$(Configuration)\tinyDAV\tinyDAV.lib";"$(SolutionDir)$(Configuration)\tinyMEDIA\tinyMEDIA.lib";"$(SolutionDir)$(Configuration)\tinyHTTP\tinyHTTP.lib";"$(SolutionDir)$(Configuration)\tinyXCAP\tinyXCAP.lib";"$(SolutionDir)$(Configuration)\tinySMS\tinySMS.lib";"$(SolutionDir)$(Configuration)\tinyMSRP\tinyMSRP.lib";"$(SolutionDir)$(Configuration)\tinySDP\tinySDP.lib" + + + + + _USRDLL;TINYWRAP_EXPORTS;%(PreprocessorDefinitions) + NotUsing + + + false + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + ..\_common;..\.;..\..\thirdparties\winrt\include;..\..\tinySAK\src;..\..\tinyNET\src;..\..\tinyHTTP\include;..\..\tinySIP\include;..\..\tinyDAV\include;..\..\tinySDP\include;..\..\tinyMEDIA\include;..\..\tinyXCAP\include;..\..\tinySMS\include;..\..\tinyMSRP\include + + + Console + false + false + true + "$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";"$(SolutionDir)$(Configuration)\tinySIP\tinySIP.lib";"$(SolutionDir)$(Configuration)\tinyNET\tinyNET.lib";"$(SolutionDir)$(Configuration)\tinyDAV\tinyDAV.lib";"$(SolutionDir)$(Configuration)\tinyMEDIA\tinyMEDIA.lib";"$(SolutionDir)$(Configuration)\tinyHTTP\tinyHTTP.lib";"$(SolutionDir)$(Configuration)\tinyXCAP\tinyXCAP.lib";"$(SolutionDir)$(Configuration)\tinySMS\tinySMS.lib";"$(SolutionDir)$(Configuration)\tinyMSRP\tinyMSRP.lib";"$(SolutionDir)$(Configuration)\tinySDP\tinySDP.lib" + + + + + _USRDLL;TINYWRAP_EXPORTS;%(PreprocessorDefinitions) + NotUsing + + + false + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + ..\_common;..\.;..\..\thirdparties\winrt\include;..\..\tinySAK\src;..\..\tinyNET\src;..\..\tinyHTTP\include;..\..\tinySIP\include;..\..\tinyDAV\include;..\..\tinySDP\include;..\..\tinyMEDIA\include;..\..\tinyXCAP\include;..\..\tinySMS\include;..\..\tinyMSRP\include + + + Console + false + false + true + "$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";"$(SolutionDir)$(Configuration)\tinySIP\tinySIP.lib";"$(SolutionDir)$(Configuration)\tinyNET\tinyNET.lib";"$(SolutionDir)$(Configuration)\tinyDAV\tinyDAV.lib";"$(SolutionDir)$(Configuration)\tinyMEDIA\tinyMEDIA.lib";"$(SolutionDir)$(Configuration)\tinyHTTP\tinyHTTP.lib";"$(SolutionDir)$(Configuration)\tinyXCAP\tinyXCAP.lib";"$(SolutionDir)$(Configuration)\tinySMS\tinySMS.lib";"$(SolutionDir)$(Configuration)\tinyMSRP\tinyMSRP.lib";"$(SolutionDir)$(Configuration)\tinySDP\tinySDP.lib" + + + + + _USRDLL;TINYWRAP_EXPORTS;%(PreprocessorDefinitions) + NotUsing + pch.h + false + $(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories) + ..\_common;..\.;..\..\thirdparties\winrt\include;..\..\tinySAK\src;..\..\tinyNET\src;..\..\tinyHTTP\include;..\..\tinySIP\include;..\..\tinyDAV\include;..\..\tinySDP\include;..\..\tinyMEDIA\include;..\..\tinyXCAP\include;..\..\tinySMS\include;..\..\tinyMSRP\include + + + Console + false + false + true + "$(SolutionDir)$(Configuration)\tinySAK\tinySAK.lib";"$(SolutionDir)$(Configuration)\tinySIP\tinySIP.lib";"$(SolutionDir)$(Configuration)\tinyNET\tinyNET.lib";"$(SolutionDir)$(Configuration)\tinyDAV\tinyDAV.lib";"$(SolutionDir)$(Configuration)\tinyMEDIA\tinyMEDIA.lib";"$(SolutionDir)$(Configuration)\tinyHTTP\tinyHTTP.lib";"$(SolutionDir)$(Configuration)\tinyXCAP\tinyXCAP.lib";"$(SolutionDir)$(Configuration)\tinySMS\tinySMS.lib";"$(SolutionDir)$(Configuration)\tinyMSRP\tinyMSRP.lib";"$(SolutionDir)$(Configuration)\tinySDP\tinySDP.lib" + + + + + true + + + true + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/bindings/winrt/tinyWRAP.vcxproj.filters b/bindings/winrt/tinyWRAP.vcxproj.filters new file mode 100644 index 0000000..a3be7bb --- /dev/null +++ b/bindings/winrt/tinyWRAP.vcxproj.filters @@ -0,0 +1,139 @@ + + + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {a58a2275-bd4d-4d21-98b1-e3729f6e71ef} + + + {1c6acf3c-a6a2-4eea-9828-1b02bf401bb7} + + + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + include + + + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + src + + + \ No newline at end of file -- cgit v1.1