rhodes 1.5.5 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/Manifest.txt +214 -32
- data/Rakefile +33 -10
- data/bin/upgrade-rhodes-app +0 -1
- data/lib/build/compileERB/bb.rb +2 -2
- data/lib/build/compileERB/default.rb +7 -5
- data/lib/build/jake.rb +1 -1
- data/lib/extensions/digest-md5/ext.yml +1 -1
- data/lib/extensions/digest-md5/ext/Rakefile +35 -36
- data/lib/extensions/digest-md5/ext/build.bat +1 -0
- data/lib/extensions/digest-md5/ext/digest-md5.vcproj +203 -0
- data/lib/extensions/digest-sha1/ext.yml +1 -1
- data/lib/extensions/digest/ext.yml +1 -1
- data/lib/extensions/digest/ext/Rakefile +35 -39
- data/lib/extensions/digest/ext/build.bat +1 -2
- data/lib/extensions/digest/ext/digest.vcproj +203 -0
- data/lib/framework/rho/render.rb +79 -22
- data/lib/framework/rho/rho.rb +294 -56
- data/lib/framework/rho/rhoapplication.rb +10 -0
- data/lib/framework/rho/rhofsconnector.rb +2 -6
- data/lib/framework/rho/rhoutils.rb +56 -14
- data/lib/framework/rho/rhoviewhelpers.rb +2 -0
- data/lib/framework/rhodes.rb +2 -2
- data/lib/framework/rhom/rhom.rb +42 -15
- data/lib/framework/rhom/rhom_db_adapter.rb +165 -159
- data/lib/framework/rhom/rhom_object.rb +0 -1
- data/lib/framework/rhom/rhom_object_factory.rb +343 -166
- data/lib/framework/rhom/rhom_source.rb +28 -15
- data/lib/framework/version.rb +2 -2
- data/lib/rhodes.rb +2 -2
- data/platform/android/Rhodes/AndroidManifest.xml +2 -2
- data/platform/android/Rhodes/gen/com/rhomobile/rhodes/R.java +39 -44
- data/platform/android/Rhodes/jni/include/JNIRhodes.h +1 -1
- data/platform/android/Rhodes/jni/include/details/rhojava.inc +23 -20
- data/platform/android/Rhodes/jni/include/jni/com_rhomobile_rhodes_RhoMenu.h +61 -0
- data/platform/android/Rhodes/jni/include/jni/com_rhomobile_rhodes_Rhodes.h +16 -0
- data/platform/android/Rhodes/jni/include/jni/com_rhomobile_rhodes_alert_Alert.h +21 -0
- data/platform/android/Rhodes/jni/include/sslimpl.h +1 -1
- data/platform/android/Rhodes/jni/src/alert.cpp +32 -5
- data/platform/android/Rhodes/jni/src/callbacks.cpp +51 -21
- data/platform/android/Rhodes/jni/src/mapview.cpp +3 -8
- data/platform/android/Rhodes/jni/src/menu.cpp +70 -0
- data/platform/android/Rhodes/jni/src/navbar.cpp +16 -0
- data/platform/android/Rhodes/jni/src/rhodes.cpp +37 -0
- data/platform/android/Rhodes/jni/src/sslimpl.cpp +3 -3
- data/platform/android/Rhodes/jni/src/webview.cpp +21 -7
- data/platform/android/Rhodes/res/drawable/alert_alert.png +0 -0
- data/platform/android/Rhodes/res/drawable/alert_info.png +0 -0
- data/platform/android/Rhodes/res/drawable/alert_question.png +0 -0
- data/platform/android/Rhodes/res/drawable/camera.png +0 -0
- data/platform/android/Rhodes/res/layout/camera.xml +18 -3
- data/platform/android/Rhodes/res/menu/options.xml +0 -10
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/AndroidR.java +5 -10
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +12 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMenu.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Rhodes.java +157 -122
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/SplashScreen.java +7 -58
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +16 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/Alert.java +220 -17
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java +22 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +44 -25
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +10 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +3 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +10 -21
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +15 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Phonebook.java +44 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +47 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +13 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/TelUriHandler.java +11 -5
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/UriHandler.java +1 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/VideoUriHandler.java +61 -0
- data/platform/android/build/RhodesSRC_build.files +3 -0
- data/platform/android/build/android.rake +173 -60
- data/platform/android/build/androidcommon.rb +1 -2
- data/platform/android/build/librhocommon_build.files +5 -0
- data/platform/android/build/librhodes_build.files +2 -0
- data/platform/android/build/libruby_build.files +2 -1
- data/platform/bb/Hsqldb/Hsqldb.jdp +0 -3
- data/platform/bb/Hsqldb/src/com/rho/db/FileUtilBB.java +1 -1
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java +16 -1
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBRowResult.java +5 -0
- data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +25 -4
- data/platform/bb/Hsqldb/src/com/rho/db/Journal.java +1 -1
- data/platform/bb/Hsqldb/src/com/rho/file/FileAccessBB.java +0 -1
- data/platform/bb/Hsqldb/src/j2me/math/Number.java +6 -3
- data/platform/bb/Hsqldb/src/org/hsqldb/CompiledStatementExecutor.java +2 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/Expression.java +1 -0
- data/platform/bb/Hsqldb/src/org/hsqldb/Parser.java +1 -0
- data/platform/bb/Hsqldb/src/org/hsqldb/Result.java +2 -0
- data/platform/bb/Hsqldb/src/org/hsqldb/Select.java +12 -6
- data/platform/bb/Hsqldb/src/org/hsqldb/Session.java +19 -12
- data/platform/bb/Hsqldb/src/org/hsqldb/Table.java +10 -4
- data/platform/bb/Hsqldb/src/org/hsqldb/Token.java +10 -2
- data/platform/bb/Hsqldb/src/org/hsqldb/Tokenizer.java +3 -3
- data/platform/bb/Hsqldb/src/org/hsqldb/lib/java/JavaSystem.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/persist/HsqlProperties.java +2 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/persist/ScaledRAFile.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/scriptio/ScriptReaderText.java +1 -1
- data/platform/bb/Hsqldb/src/org/hsqldb/scriptio/ScriptWriterBase.java +1 -1
- data/platform/bb/RubyVM/RubyVM.jdp +9 -10
- data/platform/bb/build/RubyVM_build.files +9 -7
- data/platform/bb/build/bb.rake +13 -3
- data/platform/bb/build/hsqldb_build.files +0 -2
- data/platform/bb/build/rhodes_build.files +5 -2
- data/platform/bb/rhodes/platform/4.7/com/rho/RhoMainScreen.java +8 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/BrowserAdapter5.java +154 -0
- data/platform/bb/rhodes/platform/5.0/com/rho/RhoMainScreen.java +8 -0
- data/platform/bb/rhodes/platform/common/com/rho/BrowserAdapter5.java +28 -0
- data/platform/bb/rhodes/rhodes.jdp +12 -7
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +331 -0
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter5.java +28 -0
- data/platform/bb/rhodes/src/com/rho/IBrowserAdapter.java +10 -0
- data/platform/bb/rhodes/src/com/rho/RhoMainScreen.java +4 -0
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +2 -4
- data/platform/bb/rhodes/src/com/rho/{Jsr75File.java → file/Jsr75File.java} +83 -36
- data/platform/bb/{Hsqldb → rhodes}/src/com/rho/file/Jsr75RAFileImpl.java +0 -1
- data/platform/bb/{Hsqldb → rhodes}/src/com/rho/file/PersistRAFileImpl.java +0 -2
- data/platform/bb/rhodes/src/com/rho/net/NetworkAccess.java +8 -10
- data/platform/bb/rhodes/src/com/rho/rubyext/Alert.java +1 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/GeoLocation.java +39 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +63 -2
- data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +100 -0
- data/platform/bb/rhodes/src/rhomobile/LogScreen.java +1 -1
- data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +13 -1
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +138 -492
- data/platform/bb/rhodes/src/rhomobile/SecondaryResourceFetchThread.java +11 -2
- data/platform/bb/rhodes/src/rhomobile/Utilities.java +14 -10
- data/platform/bb/rhodes/src/rhomobile/camera/CameraScreen.java +5 -14
- data/platform/bb/rhodes/src/rhomobile/camera/ImageBrowserScreen.java +1 -1
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapField.java +2 -2
- data/platform/iphone/Classes/AppManager/AppManager.m +37 -14
- data/platform/iphone/Classes/Camera/PickImageDelegate.h +15 -4
- data/platform/iphone/Classes/Camera/PickImageDelegate.m +53 -50
- data/platform/iphone/Classes/DateTimePicker.h +17 -0
- data/platform/iphone/Classes/DateTimePicker.m +35 -0
- data/platform/iphone/Classes/GeoLocation/LocationController.m +2 -3
- data/platform/iphone/Classes/LogOptionsController.m +3 -2
- data/platform/iphone/Classes/LogViewController.m +4 -2
- data/platform/iphone/Classes/MapView/GoogleGeocoder.m +12 -20
- data/platform/iphone/Classes/MapView/MapAnnotation.h +9 -13
- data/platform/iphone/Classes/MapView/MapAnnotation.m +17 -65
- data/platform/iphone/Classes/MapView/MapViewController.h +1 -7
- data/platform/iphone/Classes/MapView/MapViewController.m +51 -25
- data/platform/iphone/Classes/NativeBar.h +0 -12
- data/platform/iphone/Classes/NativeBar.m +121 -2
- data/platform/iphone/Classes/NavBar.h +16 -0
- data/platform/iphone/Classes/NavBar.m +115 -0
- data/platform/iphone/Classes/RhoAlert.h +19 -0
- data/platform/iphone/Classes/RhoAlert.m +258 -0
- data/platform/iphone/Classes/RhoDelegate.m +1 -0
- data/platform/iphone/Classes/RhoMainView.h +33 -0
- data/platform/iphone/Classes/Rhodes.h +56 -0
- data/platform/iphone/Classes/Rhodes.m +533 -0
- data/platform/iphone/Classes/RingtoneManager.h +17 -0
- data/platform/iphone/Classes/RingtoneManager.m +73 -0
- data/platform/iphone/Classes/SimpleMainView.h +30 -0
- data/platform/iphone/Classes/SimpleMainView.m +380 -0
- data/platform/iphone/Classes/TabbedMainView.h +24 -0
- data/platform/iphone/Classes/TabbedMainView.m +202 -0
- data/platform/iphone/Classes/WebView.m +123 -0
- data/platform/iphone/Classes/rho/net/NetRequestImpl.m +2 -2
- data/platform/iphone/Classes/rho/net/sslimpl.cpp +13 -1
- data/platform/iphone/Classes/rho/net/sslimpl.h +1 -1
- data/platform/iphone/Info.plist +1 -1
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +44 -0
- data/platform/iphone/main.m +1 -2
- data/platform/iphone/rbuild/iphone.rake +8 -16
- data/platform/iphone/rhoextlib/dosyscall.c +1 -1
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +6 -4
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +12 -0
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +97 -62
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +12 -0
- data/platform/osx/Rhodes Launcher/launch.rb +14 -21
- data/platform/shared/common/AppMenu.cpp +122 -0
- data/platform/shared/common/AppMenu.h +46 -0
- data/platform/shared/common/PosixThreadImpl.cpp +1 -1
- data/platform/shared/common/RhoConf.cpp +27 -2
- data/platform/shared/common/RhoConf.h +5 -0
- data/platform/shared/common/RhoFilePath.h +21 -0
- data/platform/shared/common/RhoStd.h +44 -5
- data/platform/shared/common/RhoTime.h +20 -7
- data/platform/shared/common/RhodesApp.cpp +236 -177
- data/platform/shared/common/RhodesApp.h +36 -13
- data/platform/shared/common/SplashScreen.cpp +2 -2
- data/platform/shared/common/StringConverter.h +10 -11
- data/platform/shared/common/rhoparams.c +0 -6
- data/platform/shared/curl/lib/rhossl.c +3 -2
- data/platform/shared/curl/lib/url.c +0 -5
- data/platform/shared/db/DBAdapter.cpp +304 -81
- data/platform/shared/db/DBAdapter.h +24 -7
- data/platform/shared/db/DBAttrManager.cpp +83 -30
- data/platform/shared/db/DBAttrManager.h +6 -0
- data/platform/shared/db/DBResult.h +15 -4
- data/platform/shared/json/JSONIterator.cpp +100 -3
- data/platform/shared/json/JSONIterator.h +28 -3
- data/platform/shared/net/AsyncHttp.cpp +25 -22
- data/platform/shared/net/AsyncHttp.h +10 -6
- data/platform/shared/net/CURLNetRequest.cpp +115 -36
- data/platform/shared/net/CURLNetRequest.h +6 -0
- data/platform/shared/net/HttpServer.cpp +6 -4
- data/platform/shared/net/HttpServer.h +0 -1
- data/platform/shared/net/INetRequest.h +19 -3
- data/platform/shared/net/URI.cpp +2 -2
- data/platform/shared/net/ssl.cpp +2 -2
- data/platform/shared/net/ssl.h +2 -2
- data/platform/shared/ruby/ext/alert/alert.i +14 -2
- data/platform/shared/ruby/ext/alert/alert_wrap.c +40 -20
- data/platform/shared/ruby/ext/asynchttp/asynchttp.i +8 -8
- data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +112 -16
- data/platform/shared/ruby/ext/geolocation/geolocation.i +16 -12
- data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +481 -125
- data/platform/shared/ruby/ext/navbar/navbar.i +20 -0
- data/platform/shared/ruby/ext/navbar/navbar_wrap.c +1859 -0
- data/platform/shared/ruby/ext/rho/extensions.c +1 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +32 -2
- data/platform/shared/ruby/ext/rho/rhoruby.h +7 -2
- data/platform/shared/ruby/ext/rhoconf/rhoconf.i +4 -0
- data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +31 -0
- data/platform/shared/ruby/ext/sqlite3_api/sqlite3_api_wrap.c +188 -3226
- data/platform/shared/ruby/ext/syncengine/syncengine.i +14 -25
- data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +96 -104
- data/platform/shared/ruby/ext/system/system.i +12 -0
- data/platform/shared/ruby/ext/system/system_wrap.c +101 -7
- data/platform/shared/ruby/ext/webview/webview.i +20 -15
- data/platform/shared/ruby/ext/webview/webview_wrap.c +42 -16
- data/platform/shared/ruby/thread_pthread.c +4 -4
- data/platform/shared/ruby/thread_win32.c +4 -4
- data/platform/shared/ruby/wince/io_wce.c +0 -1
- data/platform/shared/rubyJVM/src/com/rho/FilePath.java +18 -2
- data/platform/shared/rubyJVM/src/com/rho/IRhoRubyHelper.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/Properties.java +9 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoClassFactory.java +2 -3
- data/platform/shared/rubyJVM/src/com/rho/RhoConf.java +47 -8
- data/platform/shared/rubyJVM/src/com/rho/RhoLogConf.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoLogFileSink.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoRuby.java +43 -5
- data/platform/shared/rubyJVM/src/com/rho/RhodesApp.java +98 -3
- data/platform/shared/rubyJVM/src/com/rho/db/DBAdapter.java +460 -175
- data/platform/shared/rubyJVM/src/com/rho/db/DBAttrManager.java +81 -33
- data/platform/shared/rubyJVM/src/com/rho/db/IDBCallback.java +3 -5
- data/platform/shared/rubyJVM/src/com/rho/db/IDBResult.java +2 -0
- data/platform/shared/rubyJVM/src/com/rho/db/IDBStorage.java +2 -0
- data/platform/shared/rubyJVM/src/com/rho/{IFile.java → file/IFile.java} +1 -1
- data/platform/shared/rubyJVM/src/com/rho/{IFileAccess.java → file/IFileAccess.java} +1 -1
- data/platform/shared/rubyJVM/src/com/rho/{IRAFile.java → file/IRAFile.java} +1 -1
- data/platform/{bb/Hsqldb/src/com/rho/db → shared/rubyJVM/src/com/rho/file}/RandomAccessFile.java +1 -2
- data/platform/shared/rubyJVM/src/com/rho/{SimpleFile.java → file/SimpleFile.java} +5 -1
- data/platform/shared/rubyJVM/src/com/rho/net/AsyncHttp.java +23 -18
- data/platform/shared/rubyJVM/src/com/rho/net/NetRequest.java +167 -250
- data/platform/shared/rubyJVM/src/com/rho/net/RhoConnection.java +100 -30
- data/platform/shared/rubyJVM/src/com/rho/net/URI.java +0 -1
- data/platform/shared/rubyJVM/src/com/rho/sync/ClientRegister.java +30 -33
- data/platform/shared/rubyJVM/src/com/rho/sync/ISyncProtocol.java +20 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/JSONEntry.java +5 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/JSONStructIterator.java +74 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncEngine.java +486 -257
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncNotify.java +89 -58
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncProtocol_3.java +79 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncSource.java +634 -495
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncThread.java +74 -90
- data/platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubySymbol_Methods.java +1 -0
- data/platform/shared/rubyJVM/src/com/xruby/runtime/builtin/RubyThread.java +6 -0
- data/platform/shared/rubyJVM/src/com/xruby/runtime/lang/RubyRuntime.java +6 -2
- data/platform/shared/rubyJVM/src/com/xruby/runtime/lang/RubySymbol.java +17 -1
- data/platform/shared/rubyJVM/src/com/xruby/runtime/lang/RubyValue.java +1 -0
- data/platform/shared/rubyJVM/src/org/json/me/JSONObject.java +3 -0
- data/platform/shared/rubyext/GeoLocation.cpp +23 -0
- data/platform/shared/rubyext/GeoLocation.h +2 -0
- data/platform/shared/rubyext/RhoRuby.cpp +31 -0
- data/platform/shared/rubyext/RhoRuby.h +32 -0
- data/platform/shared/rubyext/System.cpp +14 -3
- data/platform/shared/rubyext/WebView.h +21 -0
- data/platform/shared/sync/ClientRegister.cpp +23 -28
- data/platform/shared/sync/ClientRegister.h +6 -2
- data/platform/shared/sync/ISyncProtocol.h +29 -0
- data/platform/shared/sync/SyncEngine.cpp +450 -190
- data/platform/shared/sync/SyncEngine.h +28 -38
- data/platform/shared/sync/SyncNotify.cpp +43 -41
- data/platform/shared/sync/SyncNotify.h +7 -7
- data/platform/shared/sync/SyncProtocol_3.h +86 -0
- data/platform/shared/sync/SyncSource.cpp +535 -371
- data/platform/shared/sync/SyncSource.h +48 -55
- data/platform/shared/sync/SyncThread.cpp +59 -103
- data/platform/shared/sync/SyncThread.h +10 -23
- data/platform/shared/unzip/unzip.cpp +3 -2
- data/platform/shared/unzip/unzip.h +5 -1
- data/platform/shared/wtl80/include/atlapp.h +10 -10
- data/platform/wm/RhoLib/RhoLib.vcproj +32 -0
- data/platform/wm/build/build_inf.js +40 -3
- data/platform/wm/build/wm.rake +95 -9
- data/platform/wm/rhodes/Alert.cpp +4 -0
- data/platform/wm/rhodes/DateTimePicker.cpp +183 -0
- data/platform/wm/rhodes/DateTimePicker.h +100 -0
- data/platform/wm/rhodes/MainWindow.cpp +222 -209
- data/platform/wm/rhodes/MainWindow.h +28 -35
- data/platform/wm/rhodes/Rhodes.cpp +20 -60
- data/platform/wm/rhodes/Rhodes.rc +41 -7
- data/platform/wm/rhodes/Utils.cpp +65 -0
- data/platform/wm/rhodes/Utils.h +9 -0
- data/platform/wm/rhodes/camera/Camera.cpp +2 -2
- data/platform/wm/rhodes/menubar.cpp +2 -33
- data/platform/wm/rhodes/menubar.h +0 -14
- data/platform/wm/rhodes/resource.h +13 -11
- data/platform/wm/rhodes/rho/net/NetRequest.cpp +16 -35
- data/platform/wm/rhodes/rho/net/NetRequest.h +8 -2
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +264 -46
- data/platform/wm/rhodes/rho/net/NetRequestImpl.h +14 -4
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.cpp +1 -1
- data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.h +1 -1
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +77 -4
- data/platform/wm/rhodes/rho/rubyext/WebView.cpp +63 -0
- data/platform/wm/rhodes/rhodes.vcproj +20 -66
- data/platform/wm/rhodes/stdafx.h +22 -0
- data/platform/wm/rubylib/rubylib.vcproj +4 -0
- data/platform/wm/syncengine/syncengine.vcproj +8 -0
- data/platform/wm/tools/detool.sln +66 -0
- data/platform/wm/tools/detool/DEMComInterface.tlb +0 -0
- data/platform/wm/tools/detool/ReadMe.txt +33 -0
- data/platform/wm/tools/detool/detool.cpp +559 -0
- data/platform/wm/tools/detool/detool.h +5 -0
- data/platform/wm/tools/detool/detool.vcproj +233 -0
- data/platform/wm/tools/detool/stdafx.cpp +8 -0
- data/platform/wm/tools/detool/stdafx.h +15 -0
- data/platform/wm/tools/detool/targetver.h +24 -0
- data/platform/wm/tools/rhosetup/ReadMe.txt +41 -0
- data/platform/wm/tools/rhosetup/rhosetup.cpp +52 -0
- data/platform/wm/tools/rhosetup/rhosetup.vcproj +641 -0
- data/platform/wm/tools/rhosetup/stdafx.cpp +8 -0
- data/platform/wm/tools/rhosetup/stdafx.h +59 -0
- data/rakefile.rb +33 -10
- data/res/build-tools/db/syncdb.schema +25 -23
- data/res/build-tools/db/syncdb.triggers +1 -1
- data/res/build-tools/detool.exe +0 -0
- data/res/build-tools/rhosetup.dll +0 -0
- data/res/generators/rhogen.rb +27 -22
- data/res/generators/templates/application/app/Settings/controller.rb +3 -1
- data/res/generators/templates/application/app/Settings/home.bb.erb +17 -0
- data/res/generators/templates/application/app/Settings/home.erb +21 -12
- data/res/generators/templates/application/app/Settings/index.bb.erb +32 -0
- data/res/generators/templates/application/app/Settings/index.erb +44 -15
- data/res/generators/templates/application/app/Settings/login.bb.erb +35 -0
- data/res/generators/templates/application/app/Settings/login.erb +29 -30
- data/res/generators/templates/application/app/Settings/reset.bb.erb +15 -0
- data/res/generators/templates/application/app/Settings/reset.erb +16 -13
- data/res/generators/templates/application/app/Settings/wait.bb.erb +3 -0
- data/res/generators/templates/application/app/Settings/wait.erb +4 -4
- data/res/generators/templates/application/app/application.rb +8 -0
- data/res/generators/templates/application/app/helpers/browser_helper.rb +13 -0
- data/res/generators/templates/application/app/index.bb.erb +26 -0
- data/res/generators/templates/application/app/index.erb +21 -12
- data/res/generators/templates/application/app/layout.erb +9 -11
- data/res/generators/templates/application/public/css/android.css +285 -0
- data/res/generators/templates/application/public/css/blackberry.css +85 -78
- data/res/generators/templates/application/public/css/iphone.css +286 -296
- data/res/generators/templates/application/public/css/webkit.css +34 -0
- data/res/generators/templates/application/public/css/windows_mobile.css +208 -0
- data/res/generators/templates/application/public/icons/Read me first - license.txt +14 -0
- data/res/generators/templates/application/public/icons/about.png +0 -0
- data/res/generators/templates/application/public/icons/airplane.png +0 -0
- data/res/generators/templates/application/public/icons/baby.png +0 -0
- data/res/generators/templates/application/public/icons/badge.png +0 -0
- data/res/generators/templates/application/public/icons/bandaid.png +0 -0
- data/res/generators/templates/application/public/icons/bar-chart.png +0 -0
- data/res/generators/templates/application/public/icons/battery.png +0 -0
- data/res/generators/templates/application/public/icons/beaker.png +0 -0
- data/res/generators/templates/application/public/icons/beaker2.png +0 -0
- data/res/generators/templates/application/public/icons/beermug.png +0 -0
- data/res/generators/templates/application/public/icons/bird.png +0 -0
- data/res/generators/templates/application/public/icons/book.png +0 -0
- data/res/generators/templates/application/public/icons/bookmark.png +0 -0
- data/res/generators/templates/application/public/icons/brightness.png +0 -0
- data/res/generators/templates/application/public/icons/bug.png +0 -0
- data/res/generators/templates/application/public/icons/cabinet.png +0 -0
- data/res/generators/templates/application/public/icons/calendar.png +0 -0
- data/res/generators/templates/application/public/icons/camera.png +0 -0
- data/res/generators/templates/application/public/icons/changeName.rb +22 -0
- data/res/generators/templates/application/public/icons/chat2.png +0 -0
- data/res/generators/templates/application/public/icons/chicken.png +0 -0
- data/res/generators/templates/application/public/icons/clock.png +0 -0
- data/res/generators/templates/application/public/icons/cloud.png +0 -0
- data/res/generators/templates/application/public/icons/coffee.png +0 -0
- data/res/generators/templates/application/public/icons/compass.png +0 -0
- data/res/generators/templates/application/public/icons/contrast.png +0 -0
- data/res/generators/templates/application/public/icons/dashboard.png +0 -0
- data/res/generators/templates/application/public/icons/display.png +0 -0
- data/res/generators/templates/application/public/icons/dogpaw.png +0 -0
- data/res/generators/templates/application/public/icons/download.png +0 -0
- data/res/generators/templates/application/public/icons/dumbbell.png +0 -0
- data/res/generators/templates/application/public/icons/ekg.png +0 -0
- data/res/generators/templates/application/public/icons/envelope.png +0 -0
- data/res/generators/templates/application/public/icons/equalizer.png +0 -0
- data/res/generators/templates/application/public/icons/eye.png +0 -0
- data/res/generators/templates/application/public/icons/film-roll.png +0 -0
- data/res/generators/templates/application/public/icons/flag.png +0 -0
- data/res/generators/templates/application/public/icons/fork-and-knife.png +0 -0
- data/res/generators/templates/application/public/icons/fuel.png +0 -0
- data/res/generators/templates/application/public/icons/gameplan.png +0 -0
- data/res/generators/templates/application/public/icons/gear.png +0 -0
- data/res/generators/templates/application/public/icons/gear2.png +0 -0
- data/res/generators/templates/application/public/icons/gift.png +0 -0
- data/res/generators/templates/application/public/icons/heart.png +0 -0
- data/res/generators/templates/application/public/icons/house.png +0 -0
- data/res/generators/templates/application/public/icons/inbox.png +0 -0
- data/res/generators/templates/application/public/icons/index-cards.png +0 -0
- data/res/generators/templates/application/public/icons/iphone.png +0 -0
- data/res/generators/templates/application/public/icons/ipod.png +0 -0
- data/res/generators/templates/application/public/icons/key.png +0 -0
- data/res/generators/templates/application/public/icons/lifebuoy.png +0 -0
- data/res/generators/templates/application/public/icons/lightbulb.png +0 -0
- data/res/generators/templates/application/public/icons/line-chart.png +0 -0
- data/res/generators/templates/application/public/icons/location.png +0 -0
- data/res/generators/templates/application/public/icons/lock.png +0 -0
- data/res/generators/templates/application/public/icons/loopback.png +0 -0
- data/res/generators/templates/application/public/icons/magnifying-glass.png +0 -0
- data/res/generators/templates/application/public/icons/map-marker.png +0 -0
- data/res/generators/templates/application/public/icons/map.png +0 -0
- data/res/generators/templates/application/public/icons/medical-bag.png +0 -0
- data/res/generators/templates/application/public/icons/medical.png +0 -0
- data/res/generators/templates/application/public/icons/microphone.png +0 -0
- data/res/generators/templates/application/public/icons/movie1.png +0 -0
- data/res/generators/templates/application/public/icons/movie2.png +0 -0
- data/res/generators/templates/application/public/icons/network.png +0 -0
- data/res/generators/templates/application/public/icons/note.png +0 -0
- data/res/generators/templates/application/public/icons/outlet.png +0 -0
- data/res/generators/templates/application/public/icons/palette.png +0 -0
- data/res/generators/templates/application/public/icons/paperclip.png +0 -0
- data/res/generators/templates/application/public/icons/phone.png +0 -0
- data/res/generators/templates/application/public/icons/photos.png +0 -0
- data/res/generators/templates/application/public/icons/piano.png +0 -0
- data/res/generators/templates/application/public/icons/picture-frame.png +0 -0
- data/res/generators/templates/application/public/icons/pill.png +0 -0
- data/res/generators/templates/application/public/icons/pin.png +0 -0
- data/res/generators/templates/application/public/icons/pinetree.png +0 -0
- data/res/generators/templates/application/public/icons/planet.png +0 -0
- data/res/generators/templates/application/public/icons/puzzle.png +0 -0
- data/res/generators/templates/application/public/icons/radar.png +0 -0
- data/res/generators/templates/application/public/icons/redo.png +0 -0
- data/res/generators/templates/application/public/icons/refresh.png +0 -0
- data/res/generators/templates/application/public/icons/runner.png +0 -0
- data/res/generators/templates/application/public/icons/shoebox.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-bag.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-cart.png +0 -0
- data/res/generators/templates/application/public/icons/shuffle.png +0 -0
- data/res/generators/templates/application/public/icons/signpost.png +0 -0
- data/res/generators/templates/application/public/icons/skull-n-crossbones.png +0 -0
- data/res/generators/templates/application/public/icons/skull.png +0 -0
- data/res/generators/templates/application/public/icons/sliders.png +0 -0
- data/res/generators/templates/application/public/icons/spraycan.png +0 -0
- data/res/generators/templates/application/public/icons/squiggle.png +0 -0
- data/res/generators/templates/application/public/icons/star.png +0 -0
- data/res/generators/templates/application/public/icons/stopwatch.png +0 -0
- data/res/generators/templates/application/public/icons/suitcase.png +0 -0
- data/res/generators/templates/application/public/icons/tag.png +0 -0
- data/res/generators/templates/application/public/icons/tags.png +0 -0
- data/res/generators/templates/application/public/icons/target.png +0 -0
- data/res/generators/templates/application/public/icons/testtube.png +0 -0
- data/res/generators/templates/application/public/icons/thermometer.png +0 -0
- data/res/generators/templates/application/public/icons/toolbox.png +0 -0
- data/res/generators/templates/application/public/icons/trophy.png +0 -0
- data/res/generators/templates/application/public/icons/tshirt.png +0 -0
- data/res/generators/templates/application/public/icons/tv.png +0 -0
- data/res/generators/templates/application/public/icons/umbrella.png +0 -0
- data/res/generators/templates/application/public/icons/walk.png +0 -0
- data/res/generators/templates/application/public/icons/weather.png +0 -0
- data/res/generators/templates/application/public/icons/widescreen.png +0 -0
- data/res/generators/templates/application/public/icons/wineglass.png +0 -0
- data/res/generators/templates/application/public/icons/zap.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_check_off.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_check_on.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_radio_off.png +0 -0
- data/res/generators/templates/application/public/images/android/btn_radio_on.png +0 -0
- data/res/generators/templates/application/public/images/android/ic_menu_more.png +0 -0
- data/res/generators/templates/application/public/images/iphone/disclosure.png +0 -0
- data/res/generators/templates/application/public/images/iphone/disclosure_detail.png +0 -0
- data/res/generators/templates/application/public/images/iphone/radiobutton.png +0 -0
- data/res/generators/templates/application/public/images/iphone/select.png +0 -0
- data/res/generators/templates/application/public/images/iphone/switch.png +0 -0
- data/res/generators/templates/application/public/images/listArrow.png +0 -0
- data/res/generators/templates/application/public/images/listArrowDown.png +0 -0
- data/res/generators/templates/model/controller.rb +2 -0
- data/res/generators/templates/model/edit.bb.erb +24 -0
- data/res/generators/templates/model/edit.erb +21 -25
- data/res/generators/templates/model/index.bb.erb +21 -0
- data/res/generators/templates/model/index.erb +28 -14
- data/res/generators/templates/model/new.bb.erb +24 -0
- data/res/generators/templates/model/new.erb +20 -20
- data/res/generators/templates/model/show.bb.erb +21 -0
- data/res/generators/templates/model/show.erb +15 -15
- data/rhobuild.yml +37 -0
- data/rhodes.gemspec +1 -1
- data/spec/framework_spec/app/Account/config.rb +57 -1
- data/spec/framework_spec/app/Case/config.rb +1 -1
- data/spec/framework_spec/app/Customer/config.rb +1 -1
- data/spec/framework_spec/app/Product/config.rb +15 -1
- data/spec/framework_spec/app/spec/fixtures/object_values.txt +90 -90
- data/spec/framework_spec/app/spec/pagination/fixtures/object_values.txt +91 -91
- data/spec/framework_spec/app/spec/rho_spec.rb +1 -1
- data/spec/framework_spec/app/spec/rhom_object_spec.rb +47 -28
- data/spec/framework_spec/app/spec/rhom_spec.rb +8 -8
- data/spec/framework_spec/app/spec/spec_helper.rb +13 -5
- data/spec/framework_spec/app/spec_runner.rb +5 -4
- data/spec/framework_spec/public/css/base.css +0 -1
- data/spec/framework_spec/public/css/iphone.css +0 -1
- data/spec/framework_spec/rhoconfig.txt +3 -1
- metadata +220 -37
- data/platform/bb/rhodes/src/rhomobile/WebView.java +0 -90
- data/platform/iphone/Classes/BarItem.h +0 -27
- data/platform/iphone/Classes/BarItem.m +0 -32
- data/platform/iphone/Classes/JSString.h +0 -12
- data/platform/iphone/Classes/JSString.m +0 -7
- data/platform/iphone/Classes/RhoRunnerAppDelegate.h +0 -48
- data/platform/iphone/Classes/RhoRunnerAppDelegate.m +0 -617
- data/platform/iphone/Classes/Server/ServerHost.h +0 -81
- data/platform/iphone/Classes/Server/ServerHost.m +0 -597
- data/platform/iphone/Classes/Server/WebViewUrl.h +0 -13
- data/platform/iphone/Classes/Server/WebViewUrl.m +0 -8
- data/platform/iphone/Classes/TabBarDelegate.h +0 -39
- data/platform/iphone/Classes/TabBarDelegate.m +0 -151
- data/platform/iphone/Classes/Utils/unzip.cpp +0 -4328
- data/platform/iphone/Classes/Utils/unzip.h +0 -234
- data/platform/iphone/Classes/WebViewController.h +0 -59
- data/platform/iphone/Classes/WebViewController.m +0 -472
- data/platform/wm/rhodes/GetURLDialog.cpp +0 -64
- data/platform/wm/rhodes/GetURLDialog.h +0 -39
- data/res/generators/templates/application/public/css/base.css +0 -39
- data/res/generators/templates/application/public/css/rho.css +0 -3
- data/res/generators/templates/application/public/css/xhtml.css +0 -114
- data/spec/framework_spec/app/Question/config.rb +0 -3
- data/spec/generator_spec/source_generator_spec.rb +0 -27
@@ -7,8 +7,6 @@
|
|
7
7
|
namespace rho {
|
8
8
|
namespace net {
|
9
9
|
|
10
|
-
#define MAX_NETREQUEST_RETRY 1
|
11
|
-
|
12
10
|
struct INetResponse
|
13
11
|
{
|
14
12
|
virtual ~INetResponse(void){;}
|
@@ -25,6 +23,19 @@ struct IRhoSession
|
|
25
23
|
{
|
26
24
|
virtual void logout()=0;
|
27
25
|
virtual const String& getSession()=0;
|
26
|
+
virtual const String& getContentType()=0;
|
27
|
+
};
|
28
|
+
|
29
|
+
struct CMultipartItem
|
30
|
+
{
|
31
|
+
//mutually exclusive
|
32
|
+
String m_strFilePath;
|
33
|
+
String m_strBody;
|
34
|
+
//
|
35
|
+
|
36
|
+
String m_strName, m_strFileName, m_strContentType;
|
37
|
+
|
38
|
+
String m_strDataPrefix;
|
28
39
|
};
|
29
40
|
|
30
41
|
struct INetRequest
|
@@ -33,12 +44,17 @@ struct INetRequest
|
|
33
44
|
|
34
45
|
virtual INetResponse* pullData(const String& strUrl, IRhoSession* oSession ) = 0;
|
35
46
|
virtual INetResponse* pushData(const String& strUrl, const String& strBody, IRhoSession* oSession)=0;
|
36
|
-
virtual INetResponse*
|
47
|
+
virtual INetResponse* pushMultipartData(const String& strUrl, VectorPtr<CMultipartItem*>& arItems, IRhoSession* oSession, Hashtable<String,String>* pHeaders)=0;
|
48
|
+
virtual INetResponse* pushMultipartData(const String& strUrl, CMultipartItem& oItem, IRhoSession* oSession, Hashtable<String,String>* pHeaders)=0;
|
49
|
+
|
37
50
|
virtual INetResponse* pullFile(const String& strUrl, const String& strFileName, IRhoSession* oSession, Hashtable<String,String>* pHeaders)=0;
|
38
51
|
virtual INetResponse* pullCookies(const String& strUrl, const String& strBody, IRhoSession* oSession)=0;
|
39
52
|
|
40
53
|
virtual INetResponse* doRequest( const char* method, const String& strUrl, const String& strBody, IRhoSession* oSession, Hashtable<String,String>* pHeaders )=0;
|
41
54
|
|
55
|
+
virtual boolean sslVerifyPeer() = 0;
|
56
|
+
virtual void sslVerifyPeer(boolean mode) = 0;
|
57
|
+
|
42
58
|
virtual String resolveUrl(const String& strUrl)=0;
|
43
59
|
|
44
60
|
virtual void cancel() = 0;
|
data/platform/shared/net/URI.cpp
CHANGED
@@ -151,7 +151,7 @@ String URI::urlEncode(const String& fullPath)
|
|
151
151
|
while (stringtokenizer.hasMoreTokens())
|
152
152
|
{
|
153
153
|
String tok = stringtokenizer.nextToken();
|
154
|
-
tok =
|
154
|
+
tok = String_trim(tok);
|
155
155
|
if (tok.length() == 0) {
|
156
156
|
continue;
|
157
157
|
}
|
@@ -171,7 +171,7 @@ String URI::urlEncode(const String& fullPath)
|
|
171
171
|
}
|
172
172
|
|
173
173
|
tok = tok.substr(0,nExp) + tok.substr(nEnd+1);
|
174
|
-
tok =
|
174
|
+
tok = String_trim(tok);
|
175
175
|
}
|
176
176
|
|
177
177
|
int nEq = tok.find('=');
|
data/platform/shared/net/ssl.cpp
CHANGED
@@ -15,9 +15,9 @@ void rho_ssl_free_storage(void *ptr)
|
|
15
15
|
return GETSSL->freeStorage(ptr);
|
16
16
|
}
|
17
17
|
|
18
|
-
CURLcode rho_ssl_connect(int sockfd, int nonblocking, int *done, void *storage)
|
18
|
+
CURLcode rho_ssl_connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage)
|
19
19
|
{
|
20
|
-
return GETSSL->connect(sockfd, nonblocking, done, storage);
|
20
|
+
return GETSSL->connect(sockfd, nonblocking, done, ssl_verify_peer, storage);
|
21
21
|
}
|
22
22
|
|
23
23
|
void rho_ssl_shutdown(void *storage)
|
data/platform/shared/net/ssl.h
CHANGED
@@ -14,7 +14,7 @@ struct ISSL
|
|
14
14
|
virtual void* createStorage() = 0;
|
15
15
|
virtual void freeStorage(void *ptr) = 0;
|
16
16
|
|
17
|
-
virtual CURLcode connect(int sockfd, int nonblocking, int *done, void *storage) = 0;
|
17
|
+
virtual CURLcode connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage) = 0;
|
18
18
|
virtual void shutdown(void *storage) = 0;
|
19
19
|
virtual ssize_t send(const void *mem, size_t len, void *storage) = 0;
|
20
20
|
virtual ssize_t recv(char *buf, size_t size, int *wouldblock, void *storage) = 0;
|
@@ -26,7 +26,7 @@ struct ISSL
|
|
26
26
|
extern "C" {
|
27
27
|
void *rho_ssl_create_storage();
|
28
28
|
void rho_ssl_free_storage(void *);
|
29
|
-
CURLcode rho_ssl_connect(int sockfd, int nonblocking, int *done, void *storage);
|
29
|
+
CURLcode rho_ssl_connect(int sockfd, int nonblocking, int *done, int ssl_verify_peer, void *storage);
|
30
30
|
void rho_ssl_shutdown(void *storage);
|
31
31
|
ssize_t rho_ssl_send(const void *mem, size_t len, void *storage);
|
32
32
|
ssize_t rho_ssl_recv(char *buf, size_t size, int *wouldblock, void *storage);
|
@@ -1,14 +1,26 @@
|
|
1
1
|
/* alert.i */
|
2
2
|
%module Alert
|
3
3
|
%{
|
4
|
-
|
4
|
+
#include "ext/rho/rhoruby.h"
|
5
|
+
extern void alert_show_popup(rho_param *p);
|
5
6
|
#define show_popup alert_show_popup
|
7
|
+
extern void alert_hide_popup();
|
8
|
+
#define hide_popup alert_hide_popup
|
6
9
|
extern void alert_vibrate(void*);
|
7
10
|
#define vibrate alert_vibrate
|
8
11
|
extern void alert_play_file(char* file_name, ...);
|
9
12
|
#define play_file alert_play_file
|
10
13
|
%}
|
11
14
|
|
12
|
-
|
15
|
+
%typemap(in) (rho_param *p) {
|
16
|
+
$1 = valueToRhoParam($input);
|
17
|
+
}
|
18
|
+
|
19
|
+
%typemap(freearg) (rho_param *p) {
|
20
|
+
rho_param_free($1);
|
21
|
+
}
|
22
|
+
|
23
|
+
extern void show_popup(rho_param *p);
|
24
|
+
extern void hide_popup();
|
13
25
|
extern void vibrate(...);
|
14
26
|
extern void play_file(char* file_name, ...);
|
@@ -998,10 +998,10 @@ extern "C" {
|
|
998
998
|
/* Global Ruby hash table to store Trackings from C/C++
|
999
999
|
structs to Ruby Objects. */
|
1000
1000
|
static VALUE swig_ruby_trackings;
|
1001
|
-
|
1002
|
-
/* Global variable that stores a reference to the ruby
|
1003
|
-
hash table delete function. */
|
1004
|
-
static ID swig_ruby_hash_delete = 0;
|
1001
|
+
|
1002
|
+
/* Global variable that stores a reference to the ruby
|
1003
|
+
hash table delete function. */
|
1004
|
+
static ID swig_ruby_hash_delete = 0;
|
1005
1005
|
|
1006
1006
|
/* Setup a Ruby hash table to store Trackings */
|
1007
1007
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
@@ -1011,9 +1011,9 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
1011
1011
|
swig_ruby_trackings = rb_hash_new();
|
1012
1012
|
rb_gc_register_address(&swig_ruby_trackings);
|
1013
1013
|
|
1014
|
-
/* Now store a reference to the hash table delete function
|
1015
|
-
so that we only have to look it up once.*/
|
1016
|
-
swig_ruby_hash_delete = rb_intern("delete");
|
1014
|
+
/* Now store a reference to the hash table delete function
|
1015
|
+
so that we only have to look it up once.*/
|
1016
|
+
swig_ruby_hash_delete = rb_intern("delete");
|
1017
1017
|
}
|
1018
1018
|
|
1019
1019
|
/* Get a Ruby number to reference a pointer */
|
@@ -1525,8 +1525,9 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
1525
1525
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
1526
1526
|
|
1527
1527
|
#define SWIGTYPE_p_char swig_types[0]
|
1528
|
-
|
1529
|
-
static
|
1528
|
+
#define SWIGTYPE_p_rho_param swig_types[1]
|
1529
|
+
static swig_type_info *swig_types[3];
|
1530
|
+
static swig_module_info swig_module = {swig_types, 2, 0, 0, 0, 0};
|
1530
1531
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1531
1532
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1532
1533
|
|
@@ -1545,8 +1546,11 @@ static VALUE mAlert;
|
|
1545
1546
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1546
1547
|
|
1547
1548
|
|
1548
|
-
|
1549
|
+
#include "ext/rho/rhoruby.h"
|
1550
|
+
extern void alert_show_popup(rho_param *p);
|
1549
1551
|
#define show_popup alert_show_popup
|
1552
|
+
extern void alert_hide_popup();
|
1553
|
+
#define hide_popup alert_hide_popup
|
1550
1554
|
extern void alert_vibrate(void*);
|
1551
1555
|
#define vibrate alert_vibrate
|
1552
1556
|
extern void alert_play_file(char* file_name, ...);
|
@@ -1608,24 +1612,35 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1608
1612
|
|
1609
1613
|
SWIGINTERN VALUE
|
1610
1614
|
_wrap_show_popup(int argc, VALUE *argv, VALUE self) {
|
1611
|
-
|
1612
|
-
int res1 ;
|
1613
|
-
char *buf1 = 0 ;
|
1614
|
-
int alloc1 = 0 ;
|
1615
|
+
rho_param *arg1 = (rho_param *) 0 ;
|
1615
1616
|
|
1616
1617
|
if ((argc < 1) || (argc > 1)) {
|
1617
1618
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
1618
1619
|
}
|
1619
|
-
|
1620
|
-
|
1621
|
-
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "show_popup" "', argument " "1"" of type '" "char *""'");
|
1620
|
+
{
|
1621
|
+
arg1 = valueToRhoParam(argv[0]);
|
1622
1622
|
}
|
1623
|
-
arg1 = (char *)(buf1);
|
1624
1623
|
show_popup(arg1);
|
1625
|
-
|
1624
|
+
{
|
1625
|
+
rho_param_free(arg1);
|
1626
|
+
}
|
1627
|
+
return Qnil;
|
1628
|
+
fail:
|
1629
|
+
{
|
1630
|
+
rho_param_free(arg1);
|
1631
|
+
}
|
1632
|
+
return Qnil;
|
1633
|
+
}
|
1634
|
+
|
1635
|
+
|
1636
|
+
SWIGINTERN VALUE
|
1637
|
+
_wrap_hide_popup(int argc, VALUE *argv, VALUE self) {
|
1638
|
+
if ((argc < 0) || (argc > 0)) {
|
1639
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
1640
|
+
}
|
1641
|
+
hide_popup();
|
1626
1642
|
return Qnil;
|
1627
1643
|
fail:
|
1628
|
-
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1629
1644
|
return Qnil;
|
1630
1645
|
}
|
1631
1646
|
|
@@ -1673,15 +1688,19 @@ fail:
|
|
1673
1688
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
1674
1689
|
|
1675
1690
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
1691
|
+
static swig_type_info _swigt__p_rho_param = {"_p_rho_param", "rho_param *", 0, 0, (void*)0, 0};
|
1676
1692
|
|
1677
1693
|
static swig_type_info *swig_type_initial[] = {
|
1678
1694
|
&_swigt__p_char,
|
1695
|
+
&_swigt__p_rho_param,
|
1679
1696
|
};
|
1680
1697
|
|
1681
1698
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
1699
|
+
static swig_cast_info _swigc__p_rho_param[] = { {&_swigt__p_rho_param, 0, 0, 0},{0, 0, 0, 0}};
|
1682
1700
|
|
1683
1701
|
static swig_cast_info *swig_cast_initial[] = {
|
1684
1702
|
_swigc__p_char,
|
1703
|
+
_swigc__p_rho_param,
|
1685
1704
|
};
|
1686
1705
|
|
1687
1706
|
|
@@ -1932,6 +1951,7 @@ SWIGEXPORT void Init_Alert(void) {
|
|
1932
1951
|
|
1933
1952
|
SWIG_RubyInitializeTrackings();
|
1934
1953
|
rb_define_module_function(mAlert, "show_popup", _wrap_show_popup, -1);
|
1954
|
+
rb_define_module_function(mAlert, "hide_popup", _wrap_hide_popup, -1);
|
1935
1955
|
rb_define_module_function(mAlert, "vibrate", _wrap_vibrate, -1);
|
1936
1956
|
rb_define_module_function(mAlert, "play_file", _wrap_play_file, -1);
|
1937
1957
|
}
|
@@ -2,16 +2,16 @@
|
|
2
2
|
%module "Rho::AsyncHttp"
|
3
3
|
%{
|
4
4
|
/* Put header files here or function declarations like below */
|
5
|
-
extern VALUE rho_asynchttp_get(const char* url, VALUE headers, const char* callback, const char* callback_params);
|
5
|
+
extern VALUE rho_asynchttp_get(const char* url, VALUE headers, const char* callback, const char* callback_params, int ssl_verify_peer);
|
6
6
|
#define do_get rho_asynchttp_get
|
7
7
|
|
8
|
-
extern VALUE rho_asynchttp_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params);
|
8
|
+
extern VALUE rho_asynchttp_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params, int ssl_verify_peer);
|
9
9
|
#define do_post rho_asynchttp_post
|
10
10
|
|
11
|
-
extern VALUE rho_asynchttp_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params);
|
11
|
+
extern VALUE rho_asynchttp_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
|
12
12
|
#define do_downloadfile rho_asynchttp_downloadfile
|
13
13
|
|
14
|
-
extern VALUE rho_asynchttp_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params);
|
14
|
+
extern VALUE rho_asynchttp_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
|
15
15
|
#define do_uploadfile rho_asynchttp_uploadfile
|
16
16
|
|
17
17
|
extern void rho_asynchttp_cancel(const char* cancel_callback);
|
@@ -23,8 +23,8 @@
|
|
23
23
|
$1 = "*";
|
24
24
|
}
|
25
25
|
|
26
|
-
extern VALUE do_get(const char* url, VALUE headers, const char* callback, const char* callback_params);
|
27
|
-
extern VALUE do_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params);
|
28
|
-
extern VALUE do_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params);
|
29
|
-
extern VALUE do_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params);
|
26
|
+
extern VALUE do_get(const char* url, VALUE headers, const char* callback, const char* callback_params, int ssl_verify_peer);
|
27
|
+
extern VALUE do_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params, int ssl_verify_peer);
|
28
|
+
extern VALUE do_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
|
29
|
+
extern VALUE do_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
|
30
30
|
extern void cancel(const char* cancel_callback);
|
@@ -1546,16 +1546,16 @@ static VALUE mAsyncHttp;
|
|
1546
1546
|
|
1547
1547
|
|
1548
1548
|
/* Put header files here or function declarations like below */
|
1549
|
-
extern VALUE rho_asynchttp_get(const char* url, VALUE headers, const char* callback, const char* callback_params);
|
1549
|
+
extern VALUE rho_asynchttp_get(const char* url, VALUE headers, const char* callback, const char* callback_params, int ssl_verify_peer);
|
1550
1550
|
#define do_get rho_asynchttp_get
|
1551
1551
|
|
1552
|
-
extern VALUE rho_asynchttp_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params);
|
1552
|
+
extern VALUE rho_asynchttp_post(const char* url, VALUE headers, const char* body, const char* callback, const char* callback_params, int ssl_verify_peer);
|
1553
1553
|
#define do_post rho_asynchttp_post
|
1554
1554
|
|
1555
|
-
extern VALUE rho_asynchttp_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params);
|
1555
|
+
extern VALUE rho_asynchttp_downloadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
|
1556
1556
|
#define do_downloadfile rho_asynchttp_downloadfile
|
1557
1557
|
|
1558
|
-
extern VALUE rho_asynchttp_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params);
|
1558
|
+
extern VALUE rho_asynchttp_uploadfile(const char* url, VALUE headers, const char* filename, const char* callback, const char* callback_params, int ssl_verify_peer);
|
1559
1559
|
#define do_uploadfile rho_asynchttp_uploadfile
|
1560
1560
|
|
1561
1561
|
extern void rho_asynchttp_cancel(const char* cancel_callback);
|
@@ -1616,12 +1616,77 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1616
1616
|
|
1617
1617
|
|
1618
1618
|
|
1619
|
+
|
1620
|
+
#include <limits.h>
|
1621
|
+
#ifndef LLONG_MIN
|
1622
|
+
# define LLONG_MIN LONG_LONG_MIN
|
1623
|
+
#endif
|
1624
|
+
#ifndef LLONG_MAX
|
1625
|
+
# define LLONG_MAX LONG_LONG_MAX
|
1626
|
+
#endif
|
1627
|
+
#ifndef ULLONG_MAX
|
1628
|
+
# define ULLONG_MAX ULONG_LONG_MAX
|
1629
|
+
#endif
|
1630
|
+
|
1631
|
+
|
1632
|
+
SWIGINTERN VALUE
|
1633
|
+
SWIG_ruby_failed(void)
|
1634
|
+
{
|
1635
|
+
return Qnil;
|
1636
|
+
}
|
1637
|
+
|
1638
|
+
|
1639
|
+
/*@SWIG:%ruby_aux_method@*/
|
1640
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
1641
|
+
{
|
1642
|
+
VALUE obj = args[0];
|
1643
|
+
VALUE type = TYPE(obj);
|
1644
|
+
long *res = (long *)(args[1]);
|
1645
|
+
*res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
|
1646
|
+
return obj;
|
1647
|
+
}
|
1648
|
+
/*@SWIG@*/
|
1649
|
+
|
1650
|
+
SWIGINTERN int
|
1651
|
+
SWIG_AsVal_long (VALUE obj, long* val)
|
1652
|
+
{
|
1653
|
+
VALUE type = TYPE(obj);
|
1654
|
+
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
1655
|
+
long v;
|
1656
|
+
VALUE a[2];
|
1657
|
+
a[0] = obj;
|
1658
|
+
a[1] = (VALUE)(&v);
|
1659
|
+
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
1660
|
+
if (val) *val = v;
|
1661
|
+
return SWIG_OK;
|
1662
|
+
}
|
1663
|
+
}
|
1664
|
+
return SWIG_TypeError;
|
1665
|
+
}
|
1666
|
+
|
1667
|
+
|
1668
|
+
SWIGINTERN int
|
1669
|
+
SWIG_AsVal_int (VALUE obj, int *val)
|
1670
|
+
{
|
1671
|
+
long v;
|
1672
|
+
int res = SWIG_AsVal_long (obj, &v);
|
1673
|
+
if (SWIG_IsOK(res)) {
|
1674
|
+
if ((v < INT_MIN || v > INT_MAX)) {
|
1675
|
+
return SWIG_OverflowError;
|
1676
|
+
} else {
|
1677
|
+
if (val) *val = (int)(v);
|
1678
|
+
}
|
1679
|
+
}
|
1680
|
+
return res;
|
1681
|
+
}
|
1682
|
+
|
1619
1683
|
SWIGINTERN VALUE
|
1620
1684
|
_wrap_do_get(int argc, VALUE *argv, VALUE self) {
|
1621
1685
|
char *arg1 = (char *) 0 ;
|
1622
1686
|
VALUE arg2 = (VALUE) 0 ;
|
1623
1687
|
char *arg3 = (char *) 0 ;
|
1624
1688
|
char *arg4 = (char *) 0 ;
|
1689
|
+
int arg5 ;
|
1625
1690
|
VALUE result;
|
1626
1691
|
int res1 ;
|
1627
1692
|
char *buf1 = 0 ;
|
@@ -1632,10 +1697,12 @@ _wrap_do_get(int argc, VALUE *argv, VALUE self) {
|
|
1632
1697
|
int res4 ;
|
1633
1698
|
char *buf4 = 0 ;
|
1634
1699
|
int alloc4 = 0 ;
|
1700
|
+
int val5 ;
|
1701
|
+
int ecode5 = 0 ;
|
1635
1702
|
VALUE vresult = Qnil;
|
1636
1703
|
|
1637
|
-
if ((argc <
|
1638
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
1704
|
+
if ((argc < 5) || (argc > 5)) {
|
1705
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
1639
1706
|
}
|
1640
1707
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1641
1708
|
if (!SWIG_IsOK(res1)) {
|
@@ -1653,7 +1720,12 @@ _wrap_do_get(int argc, VALUE *argv, VALUE self) {
|
|
1653
1720
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "do_get" "', argument " "4"" of type '" "char const *""'");
|
1654
1721
|
}
|
1655
1722
|
arg4 = (char *)(buf4);
|
1656
|
-
|
1723
|
+
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
1724
|
+
if (!SWIG_IsOK(ecode5)) {
|
1725
|
+
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "do_get" "', argument " "5"" of type '" "int""'");
|
1726
|
+
}
|
1727
|
+
arg5 = (int)(val5);
|
1728
|
+
result = (VALUE)do_get((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4,arg5);
|
1657
1729
|
vresult = result;
|
1658
1730
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1659
1731
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
@@ -1674,6 +1746,7 @@ _wrap_do_post(int argc, VALUE *argv, VALUE self) {
|
|
1674
1746
|
char *arg3 = (char *) 0 ;
|
1675
1747
|
char *arg4 = (char *) 0 ;
|
1676
1748
|
char *arg5 = (char *) 0 ;
|
1749
|
+
int arg6 ;
|
1677
1750
|
VALUE result;
|
1678
1751
|
int res1 ;
|
1679
1752
|
char *buf1 = 0 ;
|
@@ -1687,10 +1760,12 @@ _wrap_do_post(int argc, VALUE *argv, VALUE self) {
|
|
1687
1760
|
int res5 ;
|
1688
1761
|
char *buf5 = 0 ;
|
1689
1762
|
int alloc5 = 0 ;
|
1763
|
+
int val6 ;
|
1764
|
+
int ecode6 = 0 ;
|
1690
1765
|
VALUE vresult = Qnil;
|
1691
1766
|
|
1692
|
-
if ((argc <
|
1693
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
1767
|
+
if ((argc < 6) || (argc > 6)) {
|
1768
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
1694
1769
|
}
|
1695
1770
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1696
1771
|
if (!SWIG_IsOK(res1)) {
|
@@ -1713,7 +1788,12 @@ _wrap_do_post(int argc, VALUE *argv, VALUE self) {
|
|
1713
1788
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "do_post" "', argument " "5"" of type '" "char const *""'");
|
1714
1789
|
}
|
1715
1790
|
arg5 = (char *)(buf5);
|
1716
|
-
|
1791
|
+
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
1792
|
+
if (!SWIG_IsOK(ecode6)) {
|
1793
|
+
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "do_post" "', argument " "6"" of type '" "int""'");
|
1794
|
+
}
|
1795
|
+
arg6 = (int)(val6);
|
1796
|
+
result = (VALUE)do_post((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
|
1717
1797
|
vresult = result;
|
1718
1798
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1719
1799
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
@@ -1736,6 +1816,7 @@ _wrap_do_downloadfile(int argc, VALUE *argv, VALUE self) {
|
|
1736
1816
|
char *arg3 = (char *) 0 ;
|
1737
1817
|
char *arg4 = (char *) 0 ;
|
1738
1818
|
char *arg5 = (char *) 0 ;
|
1819
|
+
int arg6 ;
|
1739
1820
|
VALUE result;
|
1740
1821
|
int res1 ;
|
1741
1822
|
char *buf1 = 0 ;
|
@@ -1749,10 +1830,12 @@ _wrap_do_downloadfile(int argc, VALUE *argv, VALUE self) {
|
|
1749
1830
|
int res5 ;
|
1750
1831
|
char *buf5 = 0 ;
|
1751
1832
|
int alloc5 = 0 ;
|
1833
|
+
int val6 ;
|
1834
|
+
int ecode6 = 0 ;
|
1752
1835
|
VALUE vresult = Qnil;
|
1753
1836
|
|
1754
|
-
if ((argc <
|
1755
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
1837
|
+
if ((argc < 6) || (argc > 6)) {
|
1838
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
1756
1839
|
}
|
1757
1840
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1758
1841
|
if (!SWIG_IsOK(res1)) {
|
@@ -1775,7 +1858,12 @@ _wrap_do_downloadfile(int argc, VALUE *argv, VALUE self) {
|
|
1775
1858
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "do_downloadfile" "', argument " "5"" of type '" "char const *""'");
|
1776
1859
|
}
|
1777
1860
|
arg5 = (char *)(buf5);
|
1778
|
-
|
1861
|
+
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
1862
|
+
if (!SWIG_IsOK(ecode6)) {
|
1863
|
+
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "do_downloadfile" "', argument " "6"" of type '" "int""'");
|
1864
|
+
}
|
1865
|
+
arg6 = (int)(val6);
|
1866
|
+
result = (VALUE)do_downloadfile((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
|
1779
1867
|
vresult = result;
|
1780
1868
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1781
1869
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
@@ -1798,6 +1886,7 @@ _wrap_do_uploadfile(int argc, VALUE *argv, VALUE self) {
|
|
1798
1886
|
char *arg3 = (char *) 0 ;
|
1799
1887
|
char *arg4 = (char *) 0 ;
|
1800
1888
|
char *arg5 = (char *) 0 ;
|
1889
|
+
int arg6 ;
|
1801
1890
|
VALUE result;
|
1802
1891
|
int res1 ;
|
1803
1892
|
char *buf1 = 0 ;
|
@@ -1811,10 +1900,12 @@ _wrap_do_uploadfile(int argc, VALUE *argv, VALUE self) {
|
|
1811
1900
|
int res5 ;
|
1812
1901
|
char *buf5 = 0 ;
|
1813
1902
|
int alloc5 = 0 ;
|
1903
|
+
int val6 ;
|
1904
|
+
int ecode6 = 0 ;
|
1814
1905
|
VALUE vresult = Qnil;
|
1815
1906
|
|
1816
|
-
if ((argc <
|
1817
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
1907
|
+
if ((argc < 6) || (argc > 6)) {
|
1908
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
1818
1909
|
}
|
1819
1910
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
1820
1911
|
if (!SWIG_IsOK(res1)) {
|
@@ -1837,7 +1928,12 @@ _wrap_do_uploadfile(int argc, VALUE *argv, VALUE self) {
|
|
1837
1928
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "do_uploadfile" "', argument " "5"" of type '" "char const *""'");
|
1838
1929
|
}
|
1839
1930
|
arg5 = (char *)(buf5);
|
1840
|
-
|
1931
|
+
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
1932
|
+
if (!SWIG_IsOK(ecode6)) {
|
1933
|
+
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "do_uploadfile" "', argument " "6"" of type '" "int""'");
|
1934
|
+
}
|
1935
|
+
arg6 = (int)(val6);
|
1936
|
+
result = (VALUE)do_uploadfile((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
|
1841
1937
|
vresult = result;
|
1842
1938
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
1843
1939
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|