rhodes 3.0.2 → 3.1.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1393) hide show
  1. data/CHANGELOG +13 -2
  2. data/Rakefile +200 -18
  3. data/bin/get-rhodes-info +1 -1
  4. data/doc/build.txt +174 -98
  5. data/doc/configuration.txt +13 -2
  6. data/doc/device-caps.txt +184 -24
  7. data/doc/extensions.txt +19 -1
  8. data/doc/generator.txt +18 -18
  9. data/doc/install.txt +15 -4
  10. data/doc/introduction.txt +19 -20
  11. data/doc/nfc.txt +1617 -513
  12. data/doc/release.txt +85 -41
  13. data/doc/rhom.txt +11 -1
  14. data/doc/simulator.txt +15 -5
  15. data/doc/synchronization.txt +21 -7
  16. data/doc/ui.txt +4 -0
  17. data/installer/rhostudio.nsi +464 -0
  18. data/lib/build/compileERB/bb.rb +26 -0
  19. data/lib/build/compileERB/default.rb +26 -0
  20. data/lib/build/compileRB/compileRB.rb +26 -0
  21. data/lib/build/jake.rb +27 -2
  22. data/lib/build/rhodes-build.rb +26 -0
  23. data/lib/extensions/barcode/ext.yml +3 -0
  24. data/lib/extensions/barcode/ext/barcode/platform/android/AndroidManifest.xml +27 -0
  25. data/lib/extensions/barcode/ext/barcode/platform/android/Rakefile +13 -13
  26. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable-hdpi/cancel_icon.png +0 -0
  27. data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_on.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable-hdpi/ok_icon.png} +0 -0
  28. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable-hdpi/retake_icon.png +0 -0
  29. data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_on.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable/cancel_icon.png} +0 -0
  30. data/{platform/wp7/WPApplication/rho/apps/public/images/android/disclosure.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable/ok_icon.png} +0 -0
  31. data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_radio_off.png → lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/drawable/retake_icon.png} +0 -0
  32. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/layout/capture.xml +122 -0
  33. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/raw/beep.ogg +0 -0
  34. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/values/attrs.xml +20 -0
  35. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/values/colors.xml +42 -0
  36. data/lib/extensions/barcode/ext/barcode/platform/android/additional_files/res/values/ids.xml +31 -0
  37. data/lib/extensions/barcode/ext/barcode/platform/android/ext_build.files +15 -0
  38. data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +16 -0
  39. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivity.java +778 -0
  40. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivityHandler.java +136 -0
  41. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeHandler.java +99 -0
  42. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeThread.java +121 -0
  43. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/FinishListener.java +48 -0
  44. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/InactivityTimer.java +71 -0
  45. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/LocaleManager.java +97 -0
  46. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/PlanarYUVLuminanceSource.java +133 -0
  47. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/ViewfinderResultPointCallback.java +34 -0
  48. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/ViewfinderView.java +157 -0
  49. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/AutoFocusCallback.java +51 -0
  50. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java +280 -0
  51. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/CameraManager.java +318 -0
  52. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/FlashlightManager.java +148 -0
  53. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/camera/PreviewCallback.java +59 -0
  54. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +44 -1
  55. data/lib/extensions/barcode/ext/barcode/platform/bb/Rakefile +1 -1
  56. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +4 -0
  57. data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +5 -0
  58. data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +138 -389
  59. data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +5 -0
  60. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/README.TXT +5 -0
  61. data/lib/extensions/debugger/CHANGELOG +10 -0
  62. data/lib/extensions/debugger/LICENSE +21 -0
  63. data/lib/extensions/debugger/README.md +8 -0
  64. data/lib/extensions/debugger/debugger.rb +57 -9
  65. data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +24 -7
  66. data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.m +18 -17
  67. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/Nfc.java +9 -4
  68. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcActivity.java +1 -1
  69. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcMessage.java +0 -1
  70. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcMessagePack.java +0 -1
  71. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcRecord.java +1 -1
  72. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/NfcTechActivity.java +0 -1
  73. data/lib/extensions/nfc/nfc.rb +9 -3
  74. data/lib/extensions/rholang/rholang/lang_cs.rb +3 -3
  75. data/lib/extensions/rholang/rholang/lang_da.rb +3 -3
  76. data/lib/extensions/rholang/rholang/lang_de.rb +3 -3
  77. data/lib/extensions/rholang/rholang/lang_es.rb +3 -3
  78. data/lib/extensions/rholang/rholang/lang_es_ar.rb +3 -3
  79. data/lib/extensions/rholang/rholang/lang_ko.rb +3 -3
  80. data/lib/extensions/rholang/rholang/lang_nl.rb +3 -3
  81. data/lib/extensions/rholang/rholang/lang_no.rb +3 -3
  82. data/lib/extensions/rholang/rholang/lang_pt_br.rb +4 -4
  83. data/lib/extensions/rholang/rholang/lang_se.rb +3 -3
  84. data/lib/extensions/rholang/rholang/lang_sr.rb +3 -3
  85. data/lib/framework/builtinME.rb +31 -2
  86. data/lib/framework/dateME.rb +26 -0
  87. data/lib/framework/res/back_btn.sym.png +0 -0
  88. data/lib/framework/res/blue_pushpin_small.sym.png +0 -0
  89. data/lib/framework/res/callout.sym.png +0 -0
  90. data/lib/framework/res/callout_link.sym.png +0 -0
  91. data/lib/framework/res/esri.sym.png +0 -0
  92. data/lib/framework/res/forward_btn.sym.png +0 -0
  93. data/lib/framework/res/home_btn.sym.png +0 -0
  94. data/{platform/wp7/WPApplication/rho/apps/public/images/android/btn_check_off.png → lib/framework/res/options_btn.sym.png} +0 -0
  95. data/lib/framework/res/refresh_btn.sym.png +0 -0
  96. data/lib/framework/rho/mapview.rb +26 -0
  97. data/lib/framework/rho/render.rb +34 -2
  98. data/lib/framework/rho/rho.rb +28 -2
  99. data/lib/framework/rho/rhoapplication.rb +26 -0
  100. data/lib/framework/rho/rhobluetooth.rb +70 -0
  101. data/lib/framework/rho/rhocontact.rb +26 -0
  102. data/lib/framework/rho/rhocontroller.rb +26 -0
  103. data/lib/framework/rho/rhoerror.rb +26 -0
  104. data/lib/framework/rho/rhoevent.rb +26 -0
  105. data/lib/framework/rho/rhoevent_bb.rb +26 -0
  106. data/lib/framework/rho/rhoevent_c.rb +26 -0
  107. data/lib/framework/rho/rhofsconnector.rb +25 -0
  108. data/lib/framework/rho/rhomsg.rb +26 -0
  109. data/lib/framework/rho/rhonativeviewmanager.rb +25 -0
  110. data/lib/framework/rho/rhosupport.rb +32 -1
  111. data/lib/framework/rho/rhotabbar.rb +27 -1
  112. data/lib/framework/rho/rhotoolbar.rb +26 -1
  113. data/lib/framework/rho/rhoutils.rb +26 -0
  114. data/lib/framework/rho/rhoviewhelpers.rb +26 -0
  115. data/lib/framework/rhoappmanifest.rb +26 -0
  116. data/lib/framework/rhodes.rb +1 -1
  117. data/lib/framework/rhoframework.rb +77 -0
  118. data/lib/framework/rhom/rhom.rb +30 -19
  119. data/lib/framework/rhom/rhom_db_adapter.rb +26 -19
  120. data/lib/framework/rhom/rhom_model.rb +25 -0
  121. data/lib/framework/rhom/rhom_object.rb +26 -19
  122. data/lib/framework/rhom/rhom_object_factory.rb +73 -55
  123. data/lib/framework/rhom/rhom_source.rb +26 -0
  124. data/lib/framework/rhosystem.rb +47 -16
  125. data/lib/framework/version.rb +1 -1
  126. data/lib/rhodes.rb +1 -1
  127. data/platform/android/Rhodes/AndroidManifest.xml +5 -4
  128. data/platform/android/Rhodes/default.properties +1 -1
  129. data/platform/android/Rhodes/jni/Android.mk +365 -0
  130. data/platform/android/Rhodes/jni/Application.mk +3 -0
  131. data/platform/android/Rhodes/jni/genconfig.h +17 -0
  132. data/platform/android/Rhodes/jni/include/rhodes.h +26 -0
  133. data/platform/android/Rhodes/jni/include/rhodes/JNIRhoRuby.h +71 -0
  134. data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +47 -33
  135. data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +46 -1
  136. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhoLogConf.h +11 -11
  137. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhodesService.h +1 -9
  138. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_camera_Camera.h +2 -2
  139. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +8 -0
  140. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_mainview_SplashScreen.h +39 -0
  141. data/platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h +26 -0
  142. data/platform/android/Rhodes/jni/include/rhodes/sslimpl.h +26 -0
  143. data/platform/android/Rhodes/jni/rhocaps.inc +12 -0
  144. data/platform/android/Rhodes/jni/src/JNIRhoRuby.cpp +204 -0
  145. data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +32 -5
  146. data/platform/android/Rhodes/jni/src/alert.cpp +29 -5
  147. data/platform/android/Rhodes/jni/src/bluetooth.cpp +68 -3
  148. data/platform/android/Rhodes/jni/src/callbacks.cpp +40 -15
  149. data/platform/android/Rhodes/jni/src/camera.cpp +84 -7
  150. data/platform/android/Rhodes/jni/src/datetimepicker.cpp +26 -0
  151. data/platform/android/Rhodes/jni/src/event.cpp +27 -0
  152. data/platform/android/Rhodes/jni/src/fileapi.cpp +66 -2
  153. data/platform/android/Rhodes/jni/src/geolocation.cpp +26 -0
  154. data/platform/android/Rhodes/jni/src/logconf.cpp +44 -29
  155. data/platform/android/Rhodes/jni/src/logger.cpp +26 -0
  156. data/platform/android/Rhodes/jni/src/mapview.cpp +30 -0
  157. data/platform/android/Rhodes/jni/src/menu.cpp +26 -0
  158. data/platform/android/Rhodes/jni/src/nativebar.cpp +27 -8
  159. data/platform/android/Rhodes/jni/src/nativeview.cpp +26 -0
  160. data/platform/android/Rhodes/jni/src/navbar.cpp +27 -0
  161. data/platform/android/Rhodes/jni/src/phonebook.cpp +27 -0
  162. data/platform/android/Rhodes/jni/src/rhoconf.cpp +26 -0
  163. data/platform/android/Rhodes/jni/src/rhocryptimpl.cpp +26 -0
  164. data/platform/android/Rhodes/jni/src/rhodes.cpp +40 -593
  165. data/platform/android/Rhodes/jni/src/rhodesapp.cpp +326 -0
  166. data/platform/android/Rhodes/jni/src/rhodessystem.cpp +186 -0
  167. data/platform/android/Rhodes/jni/src/ringtones.cpp +27 -0
  168. data/platform/android/Rhodes/jni/src/signature.cpp +26 -0
  169. data/platform/android/Rhodes/jni/src/socketimpl.cpp +26 -0
  170. data/platform/android/Rhodes/jni/src/splashscreen.cpp +30 -4
  171. data/platform/android/Rhodes/jni/src/sslimpl.cpp +27 -0
  172. data/platform/android/Rhodes/jni/src/webview.cpp +27 -0
  173. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +26 -0
  174. data/platform/android/Rhodes/src/com/rhomobile/rhodes/HttpLog.java +25 -19
  175. data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +26 -0
  176. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java +25 -19
  177. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +25 -19
  178. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeLibraries.java +26 -0
  179. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NavBar.java +26 -0
  180. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Push.java +27 -0
  181. data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushReceiver.java +26 -0
  182. data/platform/android/Rhodes/src/com/rhomobile/rhodes/PushService.java +26 -0
  183. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoConf.java +26 -0
  184. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoCryptImpl.java +29 -2
  185. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoLogConf.java +36 -30
  186. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMenu.java +26 -0
  187. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +81 -73
  188. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityListener.java +26 -0
  189. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityStartupListeners.java +1 -0
  190. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesAppOptions.java +26 -0
  191. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +26 -0
  192. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +83 -38
  193. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RingtoneManager.java +25 -19
  194. data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +25 -19
  195. data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/Alert.java +25 -19
  196. data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/PopupActivity.java +26 -0
  197. data/platform/android/Rhodes/src/com/rhomobile/rhodes/alert/StatusNotification.java +26 -0
  198. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/IRhoBluetoothManager.java +33 -0
  199. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothDeviceListActivity.java +35 -2
  200. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManager.java +52 -3
  201. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerNew.java +182 -56
  202. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothManagerOld.java +41 -2
  203. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/RhoBluetoothSession.java +60 -23
  204. data/platform/android/Rhodes/src/com/rhomobile/rhodes/bluetooth/UUIDHelper.java +26 -0
  205. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/Camera.java +162 -27
  206. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +152 -0
  207. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraOldService.java +49 -0
  208. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +140 -0
  209. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraService.java +49 -0
  210. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSettings.java +147 -0
  211. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/FileList.java +27 -21
  212. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java +124 -53
  213. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCaptureCallback.java +39 -25
  214. data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePicker.java +25 -19
  215. data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java +25 -19
  216. data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/Event.java +26 -0
  217. data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/EventStore.java +26 -0
  218. data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +75 -9
  219. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +25 -20
  220. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +25 -20
  221. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +25 -19
  222. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +28 -22
  223. data/platform/android/Rhodes/src/com/rhomobile/rhodes/{SplashScreen.java → mainview/SplashScreen.java} +73 -22
  224. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +27 -21
  225. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Annotation.java +26 -0
  226. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/AnnotationsOverlay.java +26 -0
  227. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/ExtrasHolder.java +51 -0
  228. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/GoogleMapView.java +41 -3
  229. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapTouch.java +26 -0
  230. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +26 -0
  231. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MultiTouchHandler.java +26 -0
  232. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/OneTouchHandler.java +26 -0
  233. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/TouchHandler.java +26 -0
  234. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +26 -0
  235. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Contact.java +25 -19
  236. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessor.java +26 -0
  237. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorNew.java +26 -0
  238. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactAccessorOld.java +26 -0
  239. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/ContactField.java +25 -19
  240. data/platform/android/Rhodes/src/com/rhomobile/rhodes/phonebook/Phonebook.java +25 -19
  241. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/ImageCapture.java +26 -20
  242. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +25 -19
  243. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +25 -19
  244. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSockAddr.java +26 -0
  245. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSocket.java +26 -0
  246. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/RhoSocketImpl.java +28 -0
  247. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +85 -30
  248. data/platform/android/Rhodes/src/com/rhomobile/rhodes/ui/AboutDialog.java +25 -20
  249. data/platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogOptionsDialog.java +32 -30
  250. data/platform/android/Rhodes/src/com/rhomobile/rhodes/ui/LogViewDialog.java +29 -28
  251. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/ExternalHttpHandler.java +26 -0
  252. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +26 -0
  253. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/MailUriHandler.java +25 -20
  254. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/SmsUriHandler.java +25 -20
  255. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/TelUriHandler.java +25 -20
  256. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/UriHandler.java +25 -20
  257. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/VideoUriHandler.java +25 -20
  258. data/platform/android/Rhodes/src/com/rhomobile/rhodes/util/ContextFactory.java +38 -0
  259. data/platform/android/Rhodes/src/com/rhomobile/rhodes/util/PerformOnUiThread.java +26 -0
  260. data/platform/android/Rhodes/src/com/rhomobile/rhodes/util/PhoneId.java +137 -0
  261. data/platform/android/Rhodes/src/com/rhomobile/rhodes/{Utils.java → util/Utils.java} +27 -17
  262. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientNew.java +26 -0
  263. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +26 -0
  264. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettings.java +26 -0
  265. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java +27 -0
  266. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +26 -0
  267. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +107 -0
  268. data/platform/android/build/RhodesSRC_build.files +11 -4
  269. data/platform/android/build/android.rake +79 -116
  270. data/platform/android/build/android_tools.rb +117 -0
  271. data/platform/android/build/androidcommon.rb +30 -4
  272. data/platform/android/build/libjson_build.files +1 -1
  273. data/platform/android/build/librhodes_build.files +3 -0
  274. data/platform/bb/Hsqldb/src/com/rho/db/FileUtilBB.java +26 -0
  275. data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBResult.java +26 -0
  276. data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBRowResult.java +26 -0
  277. data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +26 -0
  278. data/platform/bb/Hsqldb/src/com/rho/db/Journal.java +26 -0
  279. data/platform/bb/Hsqldb/src/j2me/math/BigDecimal.java +26 -0
  280. data/platform/bb/Hsqldb/src/j2me/math/BigInteger.java +26 -0
  281. data/platform/bb/Hsqldb/src/j2me/sql/Date.java +26 -0
  282. data/platform/bb/Hsqldb/src/j2me/sql/Time.java +26 -0
  283. data/platform/bb/Hsqldb/src/j2me/sql/Timestamp.java +26 -0
  284. data/platform/bb/RubyVM/src/com/rho/DateTimeTokenizer.java +26 -0
  285. data/platform/bb/RubyVM/src/com/rho/FilePath.java +26 -0
  286. data/platform/bb/RubyVM/src/com/rho/IRhoLogSink.java +26 -0
  287. data/platform/bb/RubyVM/src/com/rho/IRhoRubyHelper.java +27 -0
  288. data/platform/bb/RubyVM/src/com/rho/Mutex.java +26 -0
  289. data/platform/bb/RubyVM/src/com/rho/Properties.java +26 -0
  290. data/platform/bb/RubyVM/src/com/rho/RhoAppAdapter.java +26 -0
  291. data/platform/bb/RubyVM/src/com/rho/RhoClassFactory.java +26 -0
  292. data/platform/bb/RubyVM/src/com/rho/RhoConf.java +26 -0
  293. data/platform/bb/RubyVM/src/com/rho/RhoCrypto.java +26 -0
  294. data/platform/bb/RubyVM/src/com/rho/RhoEmptyLogger.java +26 -0
  295. data/platform/bb/RubyVM/src/com/rho/RhoEmptyProfiler.java +26 -0
  296. data/platform/bb/RubyVM/src/com/rho/RhoLogConf.java +52 -1
  297. data/platform/bb/RubyVM/src/com/rho/RhoLogFileSink.java +26 -0
  298. data/platform/bb/RubyVM/src/com/rho/RhoLogOutputSink.java +26 -0
  299. data/platform/bb/RubyVM/src/com/rho/RhoLogger.java +111 -2
  300. data/platform/bb/RubyVM/src/com/rho/RhoParamArray.java +26 -0
  301. data/platform/bb/RubyVM/src/com/rho/RhoParams.java +26 -0
  302. data/platform/bb/RubyVM/src/com/rho/RhoProfiler.java +26 -0
  303. data/platform/bb/RubyVM/src/com/rho/RhoRuby.java +26 -0
  304. data/platform/bb/RubyVM/src/com/rho/RhoThread.java +26 -0
  305. data/platform/bb/RubyVM/src/com/rho/RhoTimer.java +26 -0
  306. data/platform/bb/RubyVM/src/com/rho/RhodesApp.java +32 -3
  307. data/platform/bb/RubyVM/src/com/rho/SplashScreen.java +26 -0
  308. data/platform/bb/RubyVM/src/com/rho/Sprintf.java +26 -0
  309. data/platform/bb/RubyVM/src/com/rho/StringScanner.java +26 -0
  310. data/platform/bb/RubyVM/src/com/rho/TestProfiler.java +26 -0
  311. data/platform/bb/RubyVM/src/com/rho/TestRhoLog.java +26 -0
  312. data/platform/bb/RubyVM/src/com/rho/ThreadQueue.java +26 -0
  313. data/platform/bb/RubyVM/src/com/rho/TimeInterval.java +26 -0
  314. data/platform/bb/RubyVM/src/com/rho/Tokenizer.java +26 -0
  315. data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +32 -0
  316. data/platform/bb/RubyVM/src/com/rho/db/DBAttrManager.java +26 -0
  317. data/platform/bb/RubyVM/src/com/rho/db/DBException.java +26 -0
  318. data/platform/bb/RubyVM/src/com/rho/db/IDBCallback.java +26 -0
  319. data/platform/bb/RubyVM/src/com/rho/db/IDBResult.java +26 -0
  320. data/platform/bb/RubyVM/src/com/rho/db/IDBStorage.java +26 -0
  321. data/platform/bb/RubyVM/src/com/rho/file/FileAccessBB.java +26 -0
  322. data/platform/bb/RubyVM/src/com/rho/file/IFile.java +26 -0
  323. data/platform/bb/RubyVM/src/com/rho/file/IFileAccess.java +26 -0
  324. data/platform/bb/RubyVM/src/com/rho/file/IRAFile.java +26 -0
  325. data/platform/bb/RubyVM/src/com/rho/file/RandomAccessFile.java +26 -0
  326. data/platform/bb/RubyVM/src/com/rho/file/RhoFile.java +26 -0
  327. data/platform/bb/RubyVM/src/com/rho/file/SimpleFile.java +26 -0
  328. data/platform/bb/RubyVM/src/com/rho/net/AsyncHttp.java +26 -0
  329. data/platform/bb/RubyVM/src/com/rho/net/IHttpConnection.java +26 -0
  330. data/platform/bb/RubyVM/src/com/rho/net/NetRequest.java +295 -230
  331. data/platform/bb/RubyVM/src/com/rho/net/RhoConnection.java +29 -16
  332. data/platform/bb/RubyVM/src/com/rho/rjson/RJSONTokener.java +26 -0
  333. data/platform/bb/RubyVM/src/com/rho/sync/ISyncProtocol.java +26 -0
  334. data/platform/bb/RubyVM/src/com/rho/sync/ISyncStatusListener.java +26 -0
  335. data/platform/bb/RubyVM/src/com/rho/sync/JSONArrayIterator.java +26 -0
  336. data/platform/bb/RubyVM/src/com/rho/sync/JSONEntry.java +26 -0
  337. data/platform/bb/RubyVM/src/com/rho/sync/JSONStructIterator.java +26 -0
  338. data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +26 -19
  339. data/platform/bb/RubyVM/src/com/rho/sync/SyncNotify.java +26 -0
  340. data/platform/bb/RubyVM/src/com/rho/sync/SyncProtocol_3.java +31 -5
  341. data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +49 -37
  342. data/platform/bb/RubyVM/src/com/rho/sync/SyncThread.java +40 -18
  343. data/platform/bb/RubyVM/src/com/xruby/runtime/builtin/RubyDir.java +2 -1
  344. data/platform/bb/RubyVM/src/com/xruby/runtime/builtin/RubyIOFileExecutor.java +7 -2
  345. data/platform/bb/RubyVM/src/com/xruby/runtime/builtin/RubyTime.java +43 -13
  346. data/platform/bb/RubyVM/src/j2me/lang/ArrayMe.java +26 -0
  347. data/platform/bb/RubyVM/src/j2me/lang/AssertMe.java +26 -0
  348. data/platform/bb/RubyVM/src/j2me/lang/CalendarMe.java +28 -1
  349. data/platform/bb/RubyVM/src/j2me/lang/CharacterDataLatin1.java +26 -0
  350. data/platform/bb/RubyVM/src/j2me/lang/CharacterMe.java +26 -0
  351. data/platform/bb/RubyVM/src/j2me/lang/Convert.java +26 -0
  352. data/platform/bb/RubyVM/src/j2me/lang/MathEx.java +26 -0
  353. data/platform/bb/RubyVM/src/j2me/lang/PrintStreamMe.java +26 -0
  354. data/platform/bb/RubyVM/src/j2me/lang/StringBufferMe.java +26 -0
  355. data/platform/bb/RubyVM/src/j2me/lang/StringMe.java +26 -0
  356. data/platform/bb/RubyVM/src/j2me/lang/SystemMe.java +26 -0
  357. data/platform/bb/RubyVM/src/j2me/lang/TimeZoneMe.java +26 -0
  358. data/platform/bb/RubyVM/src/j2me/math/HugeDigit.java +26 -0
  359. data/platform/bb/RubyVM/src/j2me/math/HugeInt.java +26 -0
  360. data/platform/bb/RubyVM/src/j2me/math/HugeIntHelper.java +26 -0
  361. data/platform/bb/RubyVM/src/j2me/math/Number.java +26 -0
  362. data/platform/bb/RubyVM/src/j2me/nio/channels/FileChannel.java +26 -0
  363. data/platform/bb/RubyVM/src/j2me/nio/channels/Pipe.java +26 -0
  364. data/platform/bb/RubyVM/src/j2me/util/WeakHashMap.java +26 -0
  365. data/platform/bb/RubyVM/src/j2me/util/concurrent/ConcurrentHashMap.java +26 -0
  366. data/platform/bb/RubyVM/src/j2me/util/concurrent/locks/ReentrantLock.java +26 -0
  367. data/platform/bb/build/bb.rake +45 -6
  368. data/platform/bb/rhodes/platform/4.2.0/com/rho/BBVersionSpecific.java +26 -0
  369. data/platform/bb/rhodes/platform/4.2.1/com/rho/BBVersionSpecific.java +26 -0
  370. data/platform/bb/rhodes/platform/4.2.2/com/rho/BBVersionSpecific.java +26 -0
  371. data/platform/bb/rhodes/platform/4.2/com/rho/BBVersionSpecific.java +26 -0
  372. data/platform/bb/rhodes/platform/4.7/com/rho/RhoMainScreen.java +26 -0
  373. data/platform/bb/rhodes/platform/5.0/com/rho/BrowserAdapter5.java +26 -0
  374. data/platform/bb/rhodes/platform/5.0/com/rho/RhodesApplicationPlatform.java +26 -0
  375. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteCopyResult.java +26 -0
  376. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteResult.java +26 -0
  377. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteStorage.java +26 -0
  378. data/platform/bb/rhodes/platform/common/com/rho/BBVersionSpecific.java +26 -0
  379. data/platform/bb/rhodes/platform/common/com/rho/BrowserAdapter5.java +26 -0
  380. data/platform/bb/rhodes/platform/common/com/rho/RhoMainScreen.java +26 -0
  381. data/platform/bb/rhodes/platform/common/com/rho/RhodesApplicationPlatform.java +26 -0
  382. data/platform/bb/rhodes/platform/common/com/rho/db/SqliteCopyResult.java +26 -0
  383. data/platform/bb/rhodes/platform/common/com/rho/db/SqliteResult.java +26 -0
  384. data/platform/bb/rhodes/platform/common/com/rho/db/SqliteStorage.java +26 -0
  385. data/platform/bb/rhodes/src/com/rho/BBVersionSpecific.java +26 -0
  386. data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +26 -0
  387. data/platform/bb/rhodes/src/com/rho/BrowserAdapter5.java +26 -0
  388. data/platform/bb/rhodes/src/com/rho/IBrowserAdapter.java +26 -0
  389. data/platform/bb/rhodes/src/com/rho/RhoMainScreen.java +26 -0
  390. data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +45 -1
  391. data/platform/bb/rhodes/src/com/rho/RhodesApplicationPlatform.java +26 -0
  392. data/platform/bb/rhodes/src/com/rho/Version.java +26 -0
  393. data/platform/bb/rhodes/src/com/rho/db/SqliteCopyResult.java +26 -0
  394. data/platform/bb/rhodes/src/com/rho/db/SqliteResult.java +26 -0
  395. data/platform/bb/rhodes/src/com/rho/db/SqliteStorage.java +26 -0
  396. data/platform/bb/rhodes/src/com/rho/file/Jsr75File.java +26 -0
  397. data/platform/bb/rhodes/src/com/rho/file/Jsr75RAFileImpl.java +28 -2
  398. data/platform/bb/rhodes/src/com/rho/file/PersistRAFileImpl.java +29 -2
  399. data/platform/bb/rhodes/src/com/rho/net/BaseSocket.java +26 -0
  400. data/platform/bb/rhodes/src/com/rho/net/NetworkAccess.java +26 -0
  401. data/platform/bb/rhodes/src/com/rho/net/SSLSocket.java +26 -0
  402. data/platform/bb/rhodes/src/com/rho/net/TCPSocket.java +26 -0
  403. data/platform/bb/rhodes/src/com/rho/net/bb/BBHttpConnection.java +26 -0
  404. data/platform/bb/rhodes/src/com/rho/net/bb/NativeBBHttpConnection.java +26 -0
  405. data/platform/bb/rhodes/src/com/rho/rubyext/Alert.java +26 -0
  406. data/platform/bb/rhodes/src/com/rho/rubyext/GeoLocation.java +26 -0
  407. data/platform/bb/rhodes/src/com/rho/rubyext/RhoCalendar.java +26 -0
  408. data/platform/bb/rhodes/src/com/rho/rubyext/RhoPhonebook.java +26 -0
  409. data/platform/bb/rhodes/src/com/rho/rubyext/System.java +27 -1
  410. data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +59 -0
  411. data/platform/bb/rhodes/src/com/rho/rubyext/XMLParser.java +26 -0
  412. data/platform/bb/rhodes/src/rhomobile/LogOptionsScreen.java +26 -0
  413. data/platform/bb/rhodes/src/rhomobile/LogScreen.java +26 -0
  414. data/platform/bb/rhodes/src/rhomobile/NativeBar.java +26 -0
  415. data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +27 -1
  416. data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +26 -0
  417. data/platform/bb/rhodes/src/rhomobile/RingtoneManager.java +26 -0
  418. data/platform/bb/rhodes/src/rhomobile/SecondaryResourceFetchThread.java +26 -0
  419. data/platform/bb/rhodes/src/rhomobile/Utilities.java +26 -0
  420. data/platform/bb/rhodes/src/rhomobile/bluetooth/BluetoothManager.java +26 -0
  421. data/platform/bb/rhodes/src/rhomobile/bluetooth/BluetoothPort.java +26 -0
  422. data/platform/bb/rhodes/src/rhomobile/bluetooth/BluetoothScreen.java +26 -0
  423. data/platform/bb/rhodes/src/rhomobile/camera/Camera.java +26 -0
  424. data/platform/bb/rhodes/src/rhomobile/camera/CameraFilesListener.java +26 -0
  425. data/platform/bb/rhodes/src/rhomobile/camera/CameraScreen.java +26 -0
  426. data/platform/bb/rhodes/src/rhomobile/camera/ImageBrowserScreen.java +26 -0
  427. data/platform/bb/rhodes/src/rhomobile/datetime/DateTimePicker.java +26 -0
  428. data/platform/bb/rhodes/src/rhomobile/datetime/DateTimeScreen.java +26 -0
  429. data/platform/bb/rhodes/src/rhomobile/mapview/Annotation.java +26 -0
  430. data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapField.java +736 -695
  431. data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapProvider.java +40 -14
  432. data/platform/bb/rhodes/src/rhomobile/mapview/GeoCoding.java +39 -13
  433. data/platform/bb/rhodes/src/rhomobile/mapview/GoogleGeoCoding.java +216 -174
  434. data/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapField.java +87 -45
  435. data/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapProvider.java +26 -0
  436. data/platform/bb/rhodes/src/rhomobile/mapview/MapProvider.java +26 -0
  437. data/platform/bb/rhodes/src/rhomobile/mapview/MapTools.java +105 -79
  438. data/platform/bb/rhodes/src/rhomobile/mapview/MapView.java +26 -0
  439. data/platform/bb/rhodes/src/rhomobile/mapview/MapViewParent.java +26 -0
  440. data/platform/bb/rhodes/src/rhomobile/mapview/MapViewScreen.java +26 -0
  441. data/platform/bb/rhodes/src/rhomobile/mapview/RhoMapField.java +26 -0
  442. data/platform/iphone/Classes/AppManager/AppLoader.h +25 -7
  443. data/platform/iphone/Classes/AppManager/AppLoader.m +26 -7
  444. data/platform/iphone/Classes/AppManager/AppManager.h +25 -7
  445. data/platform/iphone/Classes/AppManager/AppManager.m +26 -8
  446. data/platform/iphone/Classes/AppManager/AppManagerI.h +25 -8
  447. data/platform/iphone/Classes/Bluetooth/Bluetooth.h +39 -10
  448. data/platform/iphone/Classes/Bluetooth/Bluetooth.m +158 -28
  449. data/platform/iphone/Classes/Camera/PickImageDelegate.h +72 -9
  450. data/platform/iphone/Classes/Camera/PickImageDelegate.m +432 -15
  451. data/platform/iphone/Classes/DateTime.h +25 -7
  452. data/platform/iphone/Classes/DateTime.m +25 -7
  453. data/platform/iphone/Classes/DateTimePicker.m +25 -7
  454. data/platform/iphone/Classes/DateTimePickerDelegate.h +25 -7
  455. data/platform/iphone/Classes/DateTimePickerDelegate.m +25 -7
  456. data/platform/iphone/Classes/Dispatcher/Dispatcher.c +26 -8
  457. data/platform/iphone/Classes/Dispatcher/Dispatcher.h +25 -8
  458. data/platform/iphone/Classes/Event/Event.h +25 -7
  459. data/platform/iphone/Classes/GeoLocation/LocationController.h +25 -7
  460. data/platform/iphone/Classes/LogOptionsController.h +25 -7
  461. data/platform/iphone/Classes/LogOptionsController.m +25 -7
  462. data/platform/iphone/Classes/LogViewController.h +25 -7
  463. data/platform/iphone/Classes/LogViewController.m +27 -9
  464. data/platform/iphone/Classes/MapView/GoogleGeocoder.h +26 -0
  465. data/platform/iphone/Classes/MapView/GoogleGeocoder.m +26 -0
  466. data/platform/iphone/Classes/MapView/MapAnnotation.h +26 -6
  467. data/platform/iphone/Classes/MapView/MapAnnotation.m +25 -6
  468. data/platform/iphone/Classes/MapView/MapViewController.h +27 -8
  469. data/platform/iphone/Classes/MapView/MapViewController.m +26 -6
  470. data/platform/iphone/Classes/MapView/MapViewManager.h +26 -4
  471. data/platform/iphone/Classes/MapView/MapViewManager.m +25 -5
  472. data/platform/iphone/Classes/NativeBar.h +25 -7
  473. data/platform/iphone/Classes/NativeBar.m +54 -39
  474. data/platform/iphone/Classes/NativeView/NVDelegate.h +25 -7
  475. data/platform/iphone/Classes/NativeView/NVDelegate.m +25 -7
  476. data/platform/iphone/Classes/NativeView/NVViewController.h +25 -7
  477. data/platform/iphone/Classes/NativeView/NVViewController.m +25 -7
  478. data/platform/iphone/Classes/NativeView/RhoNativeViewManager.mm +27 -10
  479. data/platform/iphone/Classes/NativeView/RhoNativeViewManagerOC.h +25 -7
  480. data/platform/iphone/Classes/NavBar.h +25 -7
  481. data/platform/iphone/Classes/NavBar.m +25 -7
  482. data/platform/iphone/Classes/Phonebook/phonebook.h +26 -8
  483. data/platform/iphone/Classes/Phonebook/phonebook.m +25 -8
  484. data/platform/iphone/Classes/RhoAlert.h +25 -7
  485. data/platform/iphone/Classes/RhoAlert.m +27 -9
  486. data/platform/iphone/Classes/RhoDelegate.h +25 -7
  487. data/platform/iphone/Classes/RhoDelegate.m +25 -7
  488. data/platform/iphone/Classes/RhoMainView.h +26 -8
  489. data/platform/iphone/Classes/RhoViewController.h +25 -7
  490. data/platform/iphone/Classes/RhoViewController.m +25 -7
  491. data/platform/iphone/Classes/Rhodes.h +25 -8
  492. data/platform/iphone/Classes/Rhodes.m +50 -6
  493. data/platform/iphone/Classes/RingtoneManager.h +25 -7
  494. data/platform/iphone/Classes/RingtoneManager.m +25 -7
  495. data/platform/iphone/Classes/Signature/SignatureDelegate.h +25 -7
  496. data/platform/iphone/Classes/Signature/SignatureDelegate.m +25 -7
  497. data/platform/iphone/Classes/Signature/SignatureView.h +25 -7
  498. data/platform/iphone/Classes/Signature/SignatureView.m +25 -15
  499. data/platform/iphone/Classes/Signature/SignatureViewController.h +25 -7
  500. data/platform/iphone/Classes/Signature/SignatureViewController.m +25 -7
  501. data/platform/iphone/Classes/SimpleMainView.h +25 -7
  502. data/platform/iphone/Classes/SimpleMainView.m +31 -7
  503. data/platform/iphone/Classes/SplashViewController.h +25 -7
  504. data/platform/iphone/Classes/SplashViewController.m +25 -7
  505. data/platform/iphone/Classes/SplitView/LeftViewController.h +25 -7
  506. data/platform/iphone/Classes/SplitView/LeftViewController.m +25 -7
  507. data/platform/iphone/Classes/SplitView/RightViewController.h +25 -7
  508. data/platform/iphone/Classes/SplitView/RightViewController.m +25 -7
  509. data/platform/iphone/Classes/SplitView/SplitViewDelegate.h +25 -7
  510. data/platform/iphone/Classes/SplitView/SplitViewDelegate.m +25 -7
  511. data/platform/iphone/Classes/SplitView/SplittedMainView.h +25 -7
  512. data/platform/iphone/Classes/SplitView/SplittedMainView.m +29 -7
  513. data/platform/iphone/Classes/TabbedMainView.h +25 -7
  514. data/platform/iphone/Classes/TabbedMainView.m +42 -20
  515. data/platform/iphone/Classes/Utils/ParamsWrapper.h +25 -7
  516. data/platform/iphone/Classes/Utils/ParamsWrapper.m +25 -7
  517. data/platform/iphone/Classes/WebView.m +25 -7
  518. data/platform/iphone/Classes/rho/common/SplashScreenImpl.cpp +25 -8
  519. data/platform/iphone/Classes/rho/common/SplashScreenImpl.h +25 -8
  520. data/platform/iphone/Classes/rho/net/NetRequestImpl.m +26 -19
  521. data/platform/iphone/Info.plist +1 -1
  522. data/platform/iphone/Tests/Classes/TestsAppDelegate.h +25 -7
  523. data/platform/iphone/Tests/Classes/TestsAppDelegate.m +25 -7
  524. data/platform/iphone/main.m +25 -7
  525. data/platform/iphone/rbuild/findRhodesGuid.rb +26 -0
  526. data/platform/iphone/rbuild/iphone.rake +42 -6
  527. data/platform/iphone/rhoextlib/dosyscall.c +26 -0
  528. data/platform/iphone/rhoextlib/syscall.c +26 -0
  529. data/platform/iphone/rhoextlib/syscall.h +26 -7
  530. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +2 -0
  531. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +8 -8
  532. data/platform/linux/Rakefile +26 -0
  533. data/platform/linux/tasks/linux.rake +26 -0
  534. data/platform/osx/Rhodes Debugger/DataSource.h +26 -0
  535. data/platform/osx/Rhodes Debugger/DebugConnection.h +25 -4
  536. data/platform/osx/Rhodes Debugger/DebuggerController.h +26 -0
  537. data/platform/osx/Rhodes Debugger/FileSystemItem.h +26 -0
  538. data/platform/osx/Rhodes Debugger/GdbConnection.h +25 -7
  539. data/platform/osx/Rhodes Debugger/LogController.h +25 -3
  540. data/platform/osx/Rhodes Debugger/TcpConnection.h +25 -4
  541. data/platform/osx/Rhodes Launcher/RhodesController.h +25 -7
  542. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore +0 -0
  543. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/classes.nib +59 -0
  544. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/info.nib +18 -0
  545. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/keyedobjects.nib +0 -0
  546. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui +0 -0
  547. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork +0 -0
  548. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit +0 -0
  549. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/phonon.framework/Versions/4/phonon +0 -0
  550. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist +20 -0
  551. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
  552. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PkgInfo +1 -0
  553. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqgif.dylib +0 -0
  554. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqico.dylib +0 -0
  555. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqjpeg.dylib +0 -0
  556. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqmng.dylib +0 -0
  557. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtiff.dylib +0 -0
  558. data/platform/{symbian/build/rhologpath.txt → osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/empty.lproj} +0 -0
  559. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/qt.conf +2 -0
  560. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/rho.icns +0 -0
  561. data/platform/osx/build/osx.rake +88 -0
  562. data/platform/shared/{SyncClient/SyncClient.cpp → RhoConnectClient/RhoConnectClient.cpp} +78 -52
  563. data/platform/shared/RhoConnectClient/RhoConnectClient.h +121 -0
  564. data/platform/shared/RhoConnectClient/RhoError.h +55 -0
  565. data/platform/shared/common/AppMenu.cpp +26 -0
  566. data/platform/shared/common/AppMenu.h +26 -0
  567. data/platform/shared/common/AutoPointer.h +26 -0
  568. data/platform/shared/common/IRhoBrowser.h +26 -0
  569. data/platform/shared/common/IRhoClassFactory.h +26 -0
  570. data/platform/shared/common/IRhoCrypt.h +26 -0
  571. data/platform/shared/common/IRhoThreadImpl.h +26 -0
  572. data/platform/shared/common/InputStream.h +26 -0
  573. data/platform/shared/common/PosixThreadImpl.cpp +31 -0
  574. data/platform/shared/common/PosixThreadImpl.h +26 -0
  575. data/platform/shared/common/RhoAppAdapter.h +26 -0
  576. data/platform/shared/common/RhoConf.cpp +28 -2
  577. data/platform/shared/common/RhoConf.h +32 -1
  578. data/platform/shared/common/RhoDefs.h +32 -0
  579. data/platform/shared/common/RhoFatalError.h +27 -1
  580. data/platform/shared/common/RhoFile.cpp +30 -4
  581. data/platform/shared/common/RhoFile.h +26 -0
  582. data/platform/shared/common/RhoFilePath.h +26 -0
  583. data/platform/shared/common/RhoMath.cpp +26 -0
  584. data/platform/shared/common/RhoMath.h +26 -0
  585. data/platform/shared/common/RhoMutexLock.h +39 -3
  586. data/platform/shared/common/RhoNativeViewManager.h +26 -0
  587. data/platform/shared/common/RhoPort.h +55 -17
  588. data/platform/shared/common/RhoSimConf.cpp +58 -0
  589. data/platform/shared/common/RhoSimConf.h +62 -0
  590. data/platform/shared/common/RhoStd.h +26 -0
  591. data/platform/shared/common/RhoSystem.h +28 -2
  592. data/platform/shared/common/RhoThread.cpp +26 -0
  593. data/platform/shared/common/RhoThread.h +26 -0
  594. data/platform/shared/common/RhoTime.cpp +26 -0
  595. data/platform/shared/common/RhoTime.h +33 -4
  596. data/platform/shared/common/RhodesApp.cpp +170 -68
  597. data/platform/shared/common/RhodesApp.h +34 -6
  598. data/platform/shared/common/RhodesAppBase.cpp +77 -8
  599. data/platform/shared/common/RhodesAppBase.h +31 -4
  600. data/platform/shared/common/SplashScreen.cpp +29 -0
  601. data/platform/shared/common/SplashScreen.h +26 -0
  602. data/platform/shared/common/StringConverter.h +26 -0
  603. data/platform/shared/common/ThreadQueue.cpp +26 -0
  604. data/platform/shared/common/ThreadQueue.h +26 -0
  605. data/platform/shared/common/Tokenizer.cpp +26 -0
  606. data/platform/shared/common/Tokenizer.h +26 -0
  607. data/platform/shared/common/iphone/RhoClassFactory.cpp +26 -0
  608. data/platform/shared/common/iphone/RhoClassfactory.h +44 -4
  609. data/platform/shared/common/iphone/RhoCryptImpl.h +26 -0
  610. data/platform/shared/common/iphone/RhoCryptImpl.mm +26 -0
  611. data/platform/shared/common/iphone/RhoFileImpl.m +26 -7
  612. data/platform/shared/common/iphone/RhoThreadImpl.m +26 -7
  613. data/platform/shared/common/map/ESRIMapEngine.cpp +26 -0
  614. data/platform/shared/common/map/ESRIMapEngine.h +26 -0
  615. data/platform/shared/common/map/GoogleMapEngine.cpp +26 -0
  616. data/platform/shared/common/map/GoogleMapEngine.h +26 -0
  617. data/platform/shared/common/map/MapEngine.cpp +28 -2
  618. data/platform/shared/common/map/MapEngine.h +26 -0
  619. data/platform/shared/common/rhoparams.cpp +26 -0
  620. data/platform/shared/common/rhoparams.h +26 -0
  621. data/platform/shared/common/stat.h +26 -0
  622. data/platform/shared/curl/lib/config-symbian.h +824 -0
  623. data/platform/shared/curl/lib/hostip.c +7 -0
  624. data/platform/shared/curl/lib/http.c +6 -0
  625. data/platform/shared/curl/lib/setup_once.h +4 -0
  626. data/platform/shared/db/DBAdapter.cpp +34 -2
  627. data/platform/shared/db/DBAdapter.h +26 -0
  628. data/platform/shared/db/DBAttrManager.cpp +26 -0
  629. data/platform/shared/db/DBAttrManager.h +26 -0
  630. data/platform/shared/db/DBResult.cpp +26 -0
  631. data/platform/shared/db/DBResult.h +26 -0
  632. data/platform/shared/json/JSONIterator.cpp +26 -0
  633. data/platform/shared/json/JSONIterator.h +26 -0
  634. data/platform/shared/json/RJSONTokener.c +3 -3
  635. data/platform/shared/json/json.h +1 -1
  636. data/platform/shared/json/{debug.c → json_debug.c} +2 -2
  637. data/platform/shared/json/{debug.h → json_debug.h} +1 -1
  638. data/platform/shared/json/json_object.c +1 -1
  639. data/platform/shared/json/json_tokener.c +1 -1
  640. data/platform/shared/json/json_util.c +1 -1
  641. data/platform/shared/json/printbuf.c +1 -1
  642. data/platform/shared/logging/RhoATLTrace.h +26 -0
  643. data/platform/shared/logging/RhoLog.cpp +90 -0
  644. data/platform/shared/logging/RhoLog.h +29 -1
  645. data/platform/shared/logging/RhoLogCat.h +26 -0
  646. data/platform/shared/logging/RhoLogConf.cpp +72 -10
  647. data/platform/shared/logging/RhoLogConf.h +39 -5
  648. data/platform/shared/logging/RhoLogSink.cpp +26 -0
  649. data/platform/shared/logging/RhoLogSink.h +26 -0
  650. data/platform/shared/logging/RhoPlainLog.cpp +36 -8
  651. data/platform/shared/logging/test/TestLog.cpp +26 -0
  652. data/platform/shared/logging/test/TestPlainLog.c +26 -0
  653. data/platform/shared/logging/test/main.cpp +26 -0
  654. data/platform/shared/net/AsyncHttp.cpp +27 -0
  655. data/platform/shared/net/AsyncHttp.h +28 -1
  656. data/platform/shared/net/CURLNetRequest.cpp +81 -11
  657. data/platform/shared/net/CURLNetRequest.h +30 -0
  658. data/platform/shared/net/CompatWince.cpp +26 -0
  659. data/platform/shared/net/CompatWince.h +26 -0
  660. data/platform/shared/net/HttpServer.cpp +82 -23
  661. data/platform/shared/net/HttpServer.h +27 -1
  662. data/platform/shared/net/INetRequest.cpp +26 -0
  663. data/platform/shared/net/INetRequest.h +26 -0
  664. data/platform/shared/net/RawSocket.cpp +38 -12
  665. data/platform/shared/net/RawSocket.h +28 -2
  666. data/platform/shared/net/URI.cpp +26 -6
  667. data/platform/shared/net/URI.h +26 -2
  668. data/platform/shared/net/iphone/sslimpl.cpp +39 -10
  669. data/platform/shared/net/iphone/sslimpl.h +25 -8
  670. data/platform/shared/net/ssl.cpp +26 -0
  671. data/platform/shared/net/ssl.h +26 -0
  672. data/platform/shared/qt/RhoSimulator.pro +7 -0
  673. data/platform/shared/qt/curl/curl.pro +181 -0
  674. data/platform/shared/qt/pbxproj2pro.pl +21 -0
  675. data/platform/shared/qt/pro_vcproj_diff.pl +59 -0
  676. data/platform/shared/qt/rhodes/DateTimeDialog.cpp +91 -0
  677. data/platform/shared/qt/rhodes/DateTimeDialog.h +54 -0
  678. data/platform/shared/qt/rhodes/DateTimeDialog.ui +68 -0
  679. data/platform/shared/qt/rhodes/ExternalWebView.cpp +46 -0
  680. data/platform/shared/qt/rhodes/ExternalWebView.h +49 -0
  681. data/platform/{wm/rhodes/emulator → shared/qt/rhodes}/ExternalWebView.ui +0 -0
  682. data/platform/shared/qt/rhodes/MainWindowCallback.h +51 -0
  683. data/platform/shared/qt/rhodes/QtMainWindow.cpp +819 -0
  684. data/platform/shared/qt/rhodes/QtMainWindow.h +148 -0
  685. data/platform/{wm/rhodes/emulator → shared/qt/rhodes}/QtMainWindow.ui +13 -1
  686. data/platform/shared/qt/rhodes/QtNativeTabBar.cpp +112 -0
  687. data/platform/shared/qt/rhodes/QtNativeTabBar.h +37 -0
  688. data/platform/shared/qt/rhodes/QtWebInspector.cpp +71 -0
  689. data/platform/shared/qt/rhodes/QtWebInspector.h +53 -0
  690. data/platform/shared/qt/rhodes/QtWebInspector.ui +41 -0
  691. data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +153 -0
  692. data/platform/shared/qt/rhodes/impl/AlertImpl.h +65 -0
  693. data/platform/shared/qt/rhodes/impl/BluetoothImpl.cpp +109 -0
  694. data/platform/shared/qt/rhodes/impl/CalendarImpl.cpp +52 -0
  695. data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +54 -0
  696. data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +61 -0
  697. data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.h +70 -0
  698. data/platform/shared/qt/rhodes/impl/GeoLocationImpl.cpp +65 -0
  699. data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +727 -0
  700. data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +160 -0
  701. data/platform/shared/qt/rhodes/impl/MapViewImpl.cpp +60 -0
  702. data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +131 -0
  703. data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +96 -0
  704. data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +124 -0
  705. data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.h +71 -0
  706. data/platform/shared/qt/rhodes/impl/PhonebookImpl.cpp +103 -0
  707. data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.cpp +56 -0
  708. data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +82 -0
  709. data/platform/shared/qt/rhodes/impl/RhoFileImpl.cpp +63 -0
  710. data/platform/shared/qt/rhodes/impl/RhoNativeViewManagerImpl.cpp +86 -0
  711. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +114 -0
  712. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +72 -0
  713. data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +193 -0
  714. data/platform/shared/qt/rhodes/impl/RingtoneManagerImpl.cpp +51 -0
  715. data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +43 -0
  716. data/platform/shared/qt/rhodes/impl/SystemImpl.cpp +229 -0
  717. data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +114 -0
  718. data/platform/shared/qt/rhodes/main.cpp +208 -0
  719. data/platform/shared/qt/rhodes/resources/rho.icns +0 -0
  720. data/platform/shared/qt/rhodes/resources/rho.ico +0 -0
  721. data/platform/shared/qt/rhodes/rhodes.pro +133 -0
  722. data/platform/shared/qt/rholib/rholib.pro +138 -0
  723. data/platform/shared/qt/rubylib/rubylib.pro +183 -0
  724. data/platform/shared/qt/sqlite3/sqlite3.pro +40 -0
  725. data/platform/shared/qt/syncengine/syncengine.pro +82 -0
  726. data/platform/shared/ruby/ext/alert/alert.i +13 -5
  727. data/platform/shared/ruby/ext/alert/alert_wrap.c +100 -11
  728. data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +391 -111
  729. data/platform/shared/ruby/ext/bluetooth/bluetooth.i +28 -14
  730. data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +311 -424
  731. data/platform/shared/ruby/ext/calendar/calendar_wrap.c +2278 -2278
  732. data/platform/shared/ruby/ext/calendar/event_wrap.c +2152 -2151
  733. data/platform/shared/ruby/ext/camera/camera.i +22 -2
  734. data/platform/shared/ruby/ext/camera/camera_wrap.c +448 -115
  735. data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +404 -126
  736. data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +17 -14
  737. data/platform/shared/ruby/ext/mapview/mapview_wrap.c +384 -104
  738. data/platform/shared/ruby/ext/nativebar/nativebar.i +0 -3
  739. data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +0 -35
  740. data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager_wrap.c +5 -5
  741. data/platform/shared/ruby/ext/navbar/navbar_wrap.c +384 -104
  742. data/platform/shared/ruby/ext/phonebook/phonebook.h +26 -0
  743. data/platform/shared/ruby/ext/phonebook/phonebook_wrap.c +422 -144
  744. data/platform/shared/ruby/ext/rho/rhoruby.c +56 -13
  745. data/platform/shared/ruby/ext/rho/rhoruby.h +30 -10
  746. data/platform/shared/ruby/ext/rho/rhosupport.c +106 -33
  747. data/platform/shared/ruby/ext/rhoconf/rhoconf.i +6 -2
  748. data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +24 -8
  749. data/platform/shared/ruby/ext/ringtones/ringtones_wrap.c +389 -109
  750. data/platform/shared/ruby/ext/signature/signature.i +1 -1
  751. data/platform/shared/ruby/ext/signature/signature_wrap.c +5 -5
  752. data/platform/shared/ruby/ext/sqlite3_api/sqlite3_api_wrap.c +26 -0
  753. data/platform/shared/ruby/ext/syncengine/syncengine.i +4 -0
  754. data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +25 -5
  755. data/platform/shared/ruby/ext/system/system_wrap.c +3 -3
  756. data/platform/shared/ruby/ext/webview/webview.i +4 -0
  757. data/platform/shared/ruby/ext/webview/webview_wrap.c +428 -134
  758. data/platform/shared/ruby/gc.c +4 -0
  759. data/platform/shared/ruby/hash.c +3 -0
  760. data/platform/shared/ruby/include/ruby/defines.h +20 -1
  761. data/platform/shared/ruby/include/ruby/intern.h +2 -0
  762. data/platform/shared/ruby/include/ruby/ruby.h +7 -4
  763. data/platform/shared/ruby/io.c +2 -1
  764. data/platform/shared/ruby/iphone/ruby/config.h +2 -0
  765. data/platform/shared/ruby/missing/dup2.c +1 -0
  766. data/platform/shared/ruby/signal.c +5 -5
  767. data/platform/shared/ruby/symbian/assert.h +2 -2
  768. data/platform/shared/ruby/symbian/ruby/config.h +13 -3
  769. data/platform/shared/ruby/symbian/symbian.h +2 -2
  770. data/platform/shared/ruby/thread_pthread.c +1 -1
  771. data/platform/shared/ruby/win32/assert.h +27 -1
  772. data/platform/shared/rubyext/GeoLocation.cpp +26 -0
  773. data/platform/shared/rubyext/GeoLocation.h +26 -0
  774. data/platform/shared/rubyext/NativeToolbarExt.h +35 -0
  775. data/platform/shared/rubyext/RhoAppAdapter.cpp +26 -0
  776. data/platform/shared/rubyext/System.cpp +54 -1
  777. data/platform/shared/rubyext/WebView.h +26 -0
  778. data/platform/shared/sqlite/crypto.c +26 -0
  779. data/platform/shared/sqlite/sqlite3.c +9706 -4596
  780. data/platform/shared/sqlite/sqlite3.h +521 -119
  781. data/platform/shared/statistic/RhoProfiler.cpp +26 -0
  782. data/platform/shared/statistic/RhoProfiler.h +26 -0
  783. data/platform/shared/statistic/test/TestProfiling.cpp +26 -0
  784. data/platform/shared/sync/ClientRegister.cpp +29 -1
  785. data/platform/shared/sync/ClientRegister.h +26 -0
  786. data/platform/shared/sync/ISyncProtocol.h +27 -1
  787. data/platform/shared/sync/SyncEngine.cpp +26 -0
  788. data/platform/shared/sync/SyncEngine.h +27 -1
  789. data/platform/shared/sync/SyncNotify.cpp +28 -1
  790. data/platform/shared/sync/SyncNotify.h +26 -0
  791. data/platform/shared/sync/SyncProtocol_3.h +34 -6
  792. data/platform/shared/sync/SyncSource.cpp +52 -17
  793. data/platform/shared/sync/SyncSource.h +26 -0
  794. data/platform/shared/sync/SyncThread.cpp +41 -0
  795. data/platform/shared/sync/SyncThread.h +27 -2
  796. data/platform/shared/sync/Test/NetDataStub.h +26 -0
  797. data/platform/shared/sync/Test/SyncEngine_test.cpp +26 -0
  798. data/platform/shared/sync/Test/SyncSource_test.cpp +26 -0
  799. data/platform/shared/tcmalloc/rhomem.h +1 -1
  800. data/platform/shared/test/Tests.cpp +28 -2
  801. data/platform/shared/test/test_helper.cpp +26 -0
  802. data/platform/shared/test/test_helper.h +26 -0
  803. data/platform/shared/unzip/unzip.cpp +10 -4
  804. data/platform/shared/unzip/unzip.h +8 -0
  805. data/platform/shared/xruby/src/com/xruby/compiler/parser/RubyParser.java +97 -97
  806. data/platform/symbian/build/symbian.rake +202 -0
  807. data/platform/symbian/curl/curl.pro +179 -0
  808. data/platform/symbian/qtscroller/include/QtScrollEvent +5 -0
  809. data/platform/symbian/qtscroller/include/QtScrollPrepareEvent +5 -0
  810. data/platform/symbian/qtscroller/include/QtScroller +5 -0
  811. data/platform/symbian/qtscroller/include/QtScrollerProperties +5 -0
  812. data/platform/symbian/qtscroller/qtscroller.pri +13 -0
  813. data/platform/symbian/qtscroller/qtscroller.pro +3 -0
  814. data/platform/symbian/qtscroller/src/qtflickgesture.cpp +696 -0
  815. data/platform/symbian/qtscroller/src/qtflickgesture_p.h +107 -0
  816. data/platform/symbian/qtscroller/src/qtscroller.cpp +2081 -0
  817. data/platform/symbian/qtscroller/src/qtscroller.h +138 -0
  818. data/platform/symbian/qtscroller/src/qtscroller_p.h +206 -0
  819. data/platform/symbian/qtscroller/src/qtscrollerfilter.cpp +351 -0
  820. data/platform/symbian/qtscroller/src/qtscrollerfilter_p.h +111 -0
  821. data/platform/symbian/qtscroller/src/qtscrollerproperties.cpp +413 -0
  822. data/platform/symbian/qtscroller/src/qtscrollerproperties.h +135 -0
  823. data/platform/symbian/qtscroller/src/qtscrollerproperties_p.h +91 -0
  824. data/platform/symbian/qtscroller/src/qtscrollevent.cpp +191 -0
  825. data/platform/symbian/qtscroller/src/qtscrollevent.h +100 -0
  826. data/platform/symbian/qtscroller/src/qtscrollevent_p.h +33 -0
  827. data/platform/symbian/qtscroller/src/src.pro +24 -0
  828. data/platform/symbian/rhodes.pro +4 -0
  829. data/platform/symbian/rhodes.sln +72 -0
  830. data/platform/symbian/rhodes/deployment.pri +115 -0
  831. data/platform/symbian/rhodes/rhodes.pro +141 -0
  832. data/platform/symbian/rhodes/rhodes.vcproj +385 -0
  833. data/platform/symbian/rhodes/{inc → src}/ContactsConstants.h +0 -0
  834. data/platform/symbian/rhodes/src/RhoThreadImpl.cpp +19 -0
  835. data/platform/symbian/rhodes/src/phonebook/Phonebook.cpp +19 -19
  836. data/platform/symbian/rhodes/{inc → src}/phonebook/Phonebook.h +1 -1
  837. data/platform/symbian/rhodes/src/qkineticscroller.cpp +1245 -0
  838. data/platform/symbian/rhodes/src/qkineticscroller.h +165 -0
  839. data/platform/symbian/rhodes/src/qkineticscroller_p.h +168 -0
  840. data/platform/symbian/rhodes/src/qwebviewkineticscroller.cpp +347 -0
  841. data/platform/symbian/rhodes/src/qwebviewkineticscroller.h +89 -0
  842. data/platform/symbian/rhodes/src/qwebviewselectionsuppressor.h +113 -0
  843. data/platform/symbian/rhodes_win32.pro +4 -0
  844. data/platform/symbian/rholib/rholib.pro +108 -0
  845. data/platform/symbian/rholib/rholib.vcproj +1466 -0
  846. data/platform/symbian/rubylib/rubylib.pro +163 -0
  847. data/platform/symbian/rubylib/rubylib.vcproj +1166 -0
  848. data/platform/symbian/rubylib/src/symbian_stubs.c +45 -3
  849. data/platform/symbian/sqlite3/sqlite3.pro +38 -0
  850. data/platform/symbian/sqlite3/sqlite3.vcproj +254 -0
  851. data/platform/symbian/{SQLite60 → sqlite3}/src/mutex.cpp +0 -0
  852. data/platform/symbian/{SQLite60 → sqlite3}/src/os_symbian.cpp +0 -0
  853. data/platform/symbian/{SQLite60 → sqlite3}/src/os_symbian.h +0 -0
  854. data/platform/symbian/{SQLite60 → sqlite3}/src/sqlite3.c +1 -0
  855. data/platform/symbian/{SQLite60 → sqlite3}/src/sqlite3.h +0 -0
  856. data/platform/symbian/syncengine/syncengine.pro +64 -0
  857. data/platform/symbian/syncengine/syncengine.vcproj +842 -0
  858. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  859. data/platform/win32/replaceicon/replaceicon.cpp +25 -2
  860. data/platform/win32/replaceicon/stdafx.cpp +25 -3
  861. data/platform/win32/replaceicon/stdafx.h +25 -4
  862. data/platform/win32/updateresstring/stdafx.cpp +25 -3
  863. data/platform/win32/updateresstring/stdafx.h +25 -4
  864. data/platform/win32/updateresstring/updateresstring.cpp +25 -2
  865. data/platform/wm/RhoLib/RhoLib.vcproj +38 -8
  866. data/platform/wm/build/wm.rake +92 -76
  867. data/platform/wm/rhodes.sln +139 -139
  868. data/platform/wm/rhodes/Alert.cpp +31 -5
  869. data/platform/wm/rhodes/Alert.h +27 -1
  870. data/platform/wm/rhodes/AppManager.cpp +26 -0
  871. data/platform/wm/rhodes/AppManager.h +26 -0
  872. data/platform/wm/rhodes/DateTimePicker.cpp +26 -0
  873. data/platform/wm/rhodes/DateTimePicker.h +30 -0
  874. data/platform/wm/rhodes/LogOptionsDlg.cpp +26 -0
  875. data/platform/wm/rhodes/LogOptionsDlg.h +26 -0
  876. data/platform/wm/rhodes/LogView.cpp +26 -2
  877. data/platform/wm/rhodes/LogView.h +25 -1
  878. data/platform/wm/rhodes/Macros.h +25 -1
  879. data/platform/wm/rhodes/MainWindow.cpp +37 -2
  880. data/platform/wm/rhodes/MainWindow.h +29 -2
  881. data/platform/wm/rhodes/MapView/Graphics.cpp +25 -1
  882. data/platform/wm/rhodes/MapView/Graphics.h +26 -0
  883. data/platform/wm/rhodes/MapView/MapViewManager.cpp +26 -0
  884. data/platform/wm/rhodes/MapView/MapViewManager.h +25 -0
  885. data/platform/wm/rhodes/MetaHandler.cpp +26 -0
  886. data/platform/wm/rhodes/MetaHandler.h +26 -0
  887. data/platform/wm/rhodes/OkCancelModalDialog.h +26 -0
  888. data/platform/wm/rhodes/OutlookApp.cpp +26 -0
  889. data/platform/wm/rhodes/OutlookApp.h +26 -0
  890. data/platform/wm/rhodes/RhoNativeViewManager.cpp +26 -0
  891. data/platform/wm/rhodes/RhoNativeViewManagerWM.h +25 -8
  892. data/platform/wm/rhodes/Rhodes.cpp +127 -24
  893. data/platform/wm/rhodes/RingtoneManager.cpp +26 -0
  894. data/platform/wm/rhodes/RingtoneManager.h +26 -0
  895. data/platform/wm/rhodes/SyncStatusDlg.cpp +26 -0
  896. data/platform/wm/rhodes/SyncStatusDlg.h +26 -0
  897. data/platform/wm/rhodes/Utils.cpp +26 -0
  898. data/platform/wm/rhodes/Utils.h +26 -0
  899. data/platform/wm/rhodes/Vibrate.cpp +30 -9
  900. data/platform/wm/rhodes/Vibrate.h +27 -2
  901. data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +63 -4
  902. data/platform/wm/rhodes/bluetooth/Bluetooth.h +32 -1
  903. data/platform/wm/rhodes/camera/Camera.cpp +40 -6
  904. data/platform/wm/rhodes/camera/Camera.h +32 -1
  905. data/platform/wm/rhodes/memory_helper.cpp +26 -0
  906. data/platform/wm/rhodes/menubar.cpp +26 -0
  907. data/platform/wm/rhodes/menubar.h +26 -0
  908. data/platform/wm/rhodes/phonebook/NativeAddressBook.cpp +26 -0
  909. data/platform/wm/rhodes/phonebook/NativeAddressBook.h +26 -0
  910. data/platform/wm/rhodes/phonebook/phonebook.cpp +26 -8
  911. data/platform/wm/rhodes/phonebook/phonebook.h +26 -8
  912. data/platform/wm/rhodes/resource.h +1 -0
  913. data/platform/wm/rhodes/rho/common/RhoClassFactory.cpp +26 -0
  914. data/platform/wm/rhodes/rho/common/RhoClassFactory.h +26 -0
  915. data/platform/wm/rhodes/rho/common/RhoCryptImpl.cpp +26 -0
  916. data/platform/wm/rhodes/rho/common/RhoCryptImpl.h +26 -0
  917. data/platform/wm/rhodes/rho/common/RhoThreadImpl.cpp +26 -0
  918. data/platform/wm/rhodes/rho/common/RhoThreadImpl.h +26 -0
  919. data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +30 -1
  920. data/platform/wm/rhodes/rho/net/NetRequestImpl.h +29 -0
  921. data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.cpp +26 -0
  922. data/platform/wm/rhodes/rho/rubyext/GeoLocationImpl.h +26 -0
  923. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +27 -1
  924. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.h +26 -0
  925. data/platform/wm/rhodes/rho/rubyext/NativeToolbarExt.cpp +71 -7
  926. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +36 -4
  927. data/platform/wm/rhodes/rho/rubyext/WebView.cpp +48 -2
  928. data/platform/wm/rhodes/rho/rubyext/calendar.cpp +26 -0
  929. data/platform/wm/rhodes/rhodes.vcproj +2491 -579
  930. data/platform/wm/rhodes/signature/Signature.cpp +26 -0
  931. data/platform/wm/rhodes/signature/Signature.h +26 -0
  932. data/platform/wm/rhodes/simulator/MainWindowQt.cpp +852 -0
  933. data/platform/wm/rhodes/{emulator → simulator}/MainWindowQt.h +76 -11
  934. data/platform/wm/rhodes/simulator/NativeTabbarQt.cpp +91 -0
  935. data/platform/wm/rhodes/simulator/NativeTabbarQt.h +102 -0
  936. data/platform/wm/rhodes/simulator/NativeToolbarQt.cpp +82 -0
  937. data/platform/wm/rhodes/simulator/NativeToolbarQt.h +78 -0
  938. data/platform/wm/rhodes/stdafx.cpp +25 -16
  939. data/platform/wm/rhodes/stdafx.h +26 -4
  940. data/platform/wm/rubylib/rubylib.vcproj +94 -78
  941. data/platform/wm/sqlite3/sqlite3.vcproj +8 -8
  942. data/platform/wm/syncengine/syncengine.vcproj +33 -11
  943. data/platform/wm/tools/detool/LogServer.cpp +33 -3
  944. data/platform/wm/tools/detool/LogServer.h +29 -1
  945. data/platform/wm/tools/detool/detool.cpp +105 -14
  946. data/platform/wm/tools/detool/detool.h +26 -0
  947. data/platform/wm/tools/detool/detool.vcproj +243 -242
  948. data/platform/wm/tools/detool/stdafx.cpp +25 -3
  949. data/platform/wm/tools/detool/stdafx.h +26 -0
  950. data/platform/wm/tools/detool/targetver.h +26 -0
  951. data/platform/wm/tools/rhosetup/rhosetup.cpp +25 -2
  952. data/platform/wm/tools/rhosetup/stdafx.cpp +25 -3
  953. data/platform/wm/tools/rhosetup/stdafx.h +25 -4
  954. data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.Libraries.dll +0 -0
  955. data/platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.dll +0 -0
  956. data/platform/wp7/RhoAppRunner/Program.cs +27 -1
  957. data/platform/wp7/RhoLogServer/Program.cs +27 -1
  958. data/platform/wp7/RhoLogServer/SocketServer.cs +27 -1
  959. data/platform/wp7/RhoRubyExtGen/RhoAsyncHttp.cs +27 -1
  960. data/platform/wp7/RhoRubyExtGen/RhoConfig.cs +84 -0
  961. data/platform/wp7/RhoRubyExtGen/RhoDatabase.cs +27 -1
  962. data/platform/wp7/RhoRubyExtGen/RhoJSON.cs +26 -0
  963. data/platform/wp7/RhoRubyExtGen/RhoNativeBar.cs +35 -3
  964. data/platform/wp7/RhoRubyExtGen/RhoRubyExtGen.csproj +2 -0
  965. data/platform/wp7/RhoRubyExtGen/RhoSyncEngine.cs +34 -2
  966. data/platform/wp7/RhoRubyExtGen/RhoSystem.cs +144 -0
  967. data/platform/wp7/RhoRubyExtGen/RhoWebView.cs +33 -2
  968. data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +149 -5
  969. data/platform/wp7/RhoRubyLib/RhoAppAdapter.cs +27 -1
  970. data/platform/wp7/RhoRubyLib/RhoRuby.cs +27 -1
  971. data/platform/wp7/RhoRubyLib/RhoRubyLib.csproj +24 -1
  972. data/platform/wp7/RhoRubyLib/WP_PlatformAdaptationLayer.cs +26 -15
  973. data/platform/wp7/RhoRubyLib/common/IInputStream.cs +27 -1
  974. data/platform/wp7/RhoRubyLib/common/Mutex.cs +27 -1
  975. data/platform/wp7/RhoRubyLib/common/RhoConf.cs +27 -1
  976. data/platform/wp7/RhoRubyLib/common/RhoEmptyProfiler.cs +27 -1
  977. data/platform/wp7/RhoRubyLib/common/RhoFile.cs +27 -1
  978. data/platform/wp7/RhoRubyLib/common/RhoFilePath.cs +27 -1
  979. data/platform/wp7/RhoRubyLib/common/RhoParamArray.cs +27 -1
  980. data/platform/wp7/RhoRubyLib/common/RhoParams.cs +27 -1
  981. data/platform/wp7/RhoRubyLib/common/RhoProfiler.cs +27 -1
  982. data/platform/wp7/RhoRubyLib/common/RhoResourceMap.cs +27 -1
  983. data/platform/wp7/RhoRubyLib/common/RhoStd.cs +27 -1
  984. data/platform/wp7/RhoRubyLib/common/RhoThread.cs +27 -1
  985. data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +232 -16
  986. data/platform/wp7/RhoRubyLib/common/ThreadQueue.cs +27 -1
  987. data/platform/wp7/RhoRubyLib/common/TimeInterval.cs +27 -1
  988. data/platform/wp7/RhoRubyLib/common/Tokenizer.cs +27 -1
  989. data/platform/wp7/RhoRubyLib/db/DBAdapter.cs +33 -1
  990. data/platform/wp7/RhoRubyLib/db/DBAttrManager.cs +27 -1
  991. data/platform/wp7/RhoRubyLib/db/DBCommand.cs +428 -0
  992. data/platform/wp7/RhoRubyLib/db/DBException.cs +27 -1
  993. data/platform/wp7/RhoRubyLib/db/IDBCallback.cs +27 -1
  994. data/platform/wp7/RhoRubyLib/db/IDBResult.cs +27 -1
  995. data/platform/wp7/RhoRubyLib/db/IDBStorage.cs +27 -1
  996. data/platform/wp7/RhoRubyLib/db/SqliteCopyResult.cs +27 -1
  997. data/platform/wp7/RhoRubyLib/db/SqliteResult.cs +27 -1
  998. data/platform/wp7/RhoRubyLib/db/SqliteStorage.cs +27 -1
  999. data/platform/wp7/RhoRubyLib/json/JSONArrayIterator.cs +27 -1
  1000. data/platform/wp7/RhoRubyLib/json/JSONEntry.cs +27 -1
  1001. data/platform/wp7/RhoRubyLib/json/JSONStructIterator.cs +27 -1
  1002. data/platform/wp7/RhoRubyLib/json/JsonParser.cs +26 -0
  1003. data/platform/wp7/RhoRubyLib/json/RJSONTokener.cs +26 -0
  1004. data/platform/wp7/RhoRubyLib/logging/IRhoLogSink.cs +27 -1
  1005. data/platform/wp7/RhoRubyLib/logging/RhoEmptyLogger.cs +26 -0
  1006. data/platform/wp7/RhoRubyLib/logging/RhoLogConf.cs +27 -1
  1007. data/platform/wp7/RhoRubyLib/logging/RhoLogFileSink.cs +27 -1
  1008. data/platform/wp7/RhoRubyLib/logging/RhoLogServerSink.cs +27 -1
  1009. data/platform/wp7/RhoRubyLib/logging/RhoLogger.cs +27 -1
  1010. data/platform/wp7/RhoRubyLib/net/AsyncHttp.cs +27 -1
  1011. data/platform/wp7/RhoRubyLib/net/HttpServer.cs +28 -2
  1012. data/platform/wp7/RhoRubyLib/net/NetRequest.cs +28 -2
  1013. data/platform/wp7/RhoRubyLib/net/NetResponse.cs +27 -1
  1014. data/platform/wp7/RhoRubyLib/net/URI.cs +27 -1
  1015. data/platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs +27 -1
  1016. data/platform/wp7/RhoRubyLib/rubyext/RhoConfig.cs +188 -0
  1017. data/platform/wp7/RhoRubyLib/rubyext/RhoDatabase.cs +27 -1
  1018. data/platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs +26 -0
  1019. data/platform/wp7/RhoRubyLib/rubyext/RhoKernelOps.cs +27 -1
  1020. data/platform/wp7/RhoRubyLib/rubyext/RhoNativeBar.cs +130 -6
  1021. data/platform/wp7/RhoRubyLib/rubyext/RhoSyncEngine.cs +42 -2
  1022. data/platform/wp7/RhoRubyLib/rubyext/RhoSystem.cs +153 -0
  1023. data/platform/wp7/RhoRubyLib/rubyext/RhoWebView.cs +49 -4
  1024. data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +17 -17
  1025. data/platform/wp7/RhoRubyLib/views/RhoTabHeader.xaml +18 -0
  1026. data/platform/wp7/RhoRubyLib/views/RhoTabHeader.xaml.cs +56 -0
  1027. data/platform/wp7/RhoRubyLib/views/RhoView.xaml +16 -0
  1028. data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +153 -0
  1029. data/platform/wp7/build/wp.rake +31 -0
  1030. data/platform/wp7/rhodes/App.xaml.cs +28 -2
  1031. data/platform/wp7/rhodes/MainPage.xaml +4 -3
  1032. data/platform/wp7/rhodes/MainPage.xaml.cs +50 -11
  1033. data/platform/wp7/sqlite3/SQLiteClient.cs +27 -1
  1034. data/rakefile.rb +200 -18
  1035. data/res/build-tools/detool.exe +0 -0
  1036. data/res/generators/rhogen.rb +2 -1
  1037. data/res/generators/templates/application/app/Settings/home.bb.erb +14 -13
  1038. data/res/generators/templates/application/app/Settings/home.erb +16 -17
  1039. data/res/generators/templates/application/app/Settings/index.bb.erb +26 -27
  1040. data/res/generators/templates/application/app/Settings/index.erb +28 -27
  1041. data/res/generators/templates/application/app/Settings/login.bb.erb +25 -31
  1042. data/res/generators/templates/application/app/Settings/login.erb +20 -22
  1043. data/res/generators/templates/application/app/Settings/reset.bb.erb +12 -11
  1044. data/res/generators/templates/application/app/Settings/reset.erb +10 -13
  1045. data/res/generators/templates/application/app/Settings/wait.bb.erb +9 -2
  1046. data/res/generators/templates/application/app/Settings/wait.erb +9 -4
  1047. data/res/generators/templates/application/app/index.erb +17 -24
  1048. data/res/generators/templates/application/app/layout.erb +51 -21
  1049. data/res/generators/templates/application/build.yml +3 -1
  1050. data/res/generators/templates/application/icon/icon.svg +5334 -0
  1051. data/res/generators/templates/application/public/css/android.css +6 -1
  1052. data/res/generators/templates/application/public/css/blackberry.css +6 -1
  1053. data/res/generators/templates/application/public/css/iphone.css +4 -0
  1054. data/res/generators/templates/application/public/jqmobile/images/ajax-loader.png +0 -0
  1055. data/res/generators/templates/application/public/jqmobile/images/icon-search-black.png +0 -0
  1056. data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
  1057. data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
  1058. data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
  1059. data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
  1060. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.css +1661 -0
  1061. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.js +5626 -0
  1062. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.min.css +8 -0
  1063. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0b1.min.js +146 -0
  1064. data/res/generators/templates/application/public/{jqtouch/jqtouch-iphone.css → jqmobile/jquery.mobile.iphone.css} +1 -1
  1065. data/res/generators/templates/application/public/jquery/jquery-1.6.2.js +8981 -0
  1066. data/res/generators/templates/application/public/jquery/jquery-1.6.2.min.js +18 -0
  1067. data/res/generators/templates/application/public/js/jqmobile-patch.js +231 -0
  1068. data/res/generators/templates/model/controller.rb +3 -2
  1069. data/res/generators/templates/model/edit.bb.erb +17 -17
  1070. data/res/generators/templates/model/edit.erb +15 -20
  1071. data/res/generators/templates/model/index.bb.erb +19 -19
  1072. data/res/generators/templates/model/index.erb +23 -26
  1073. data/res/generators/templates/model/new.bb.erb +18 -19
  1074. data/res/generators/templates/model/new.erb +17 -19
  1075. data/res/generators/templates/model/show.bb.erb +10 -11
  1076. data/res/generators/templates/model/show.erb +16 -19
  1077. data/rhobuild.yml.example +2 -1
  1078. data/rhodes.gemspec +4 -3
  1079. data/rhomobile-debug.gemspec +22 -0
  1080. data/spec/framework_spec/app/layout.erb +1 -1
  1081. data/spec/perfomance_spec/app/layout.erb +1 -1
  1082. data/spec/phone_spec/app/spec/asynchttp_spec.rb +1 -1
  1083. data/spec/phone_spec/app/spec/mapview_spec.rb +43 -0
  1084. data/spec/phone_spec/app/spec/rho_spec.rb +23 -0
  1085. data/spec/phone_spec/app/spec/syncengine_spec.rb +49 -8
  1086. metadata +244 -344
  1087. data/Manifest.txt +0 -6409
  1088. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/COPYING +0 -27
  1089. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/README +0 -95
  1090. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar.h +0 -1415
  1091. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Decoder.h +0 -201
  1092. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Exception.h +0 -187
  1093. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Image.h +0 -321
  1094. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ImageScanner.h +0 -130
  1095. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Processor.h +0 -223
  1096. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/QZBar.h +0 -169
  1097. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/QZBarImage.h +0 -72
  1098. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Scanner.h +0 -162
  1099. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Symbol.h +0 -529
  1100. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Video.h +0 -170
  1101. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/Window.h +0 -136
  1102. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarCaptureReader.h +0 -99
  1103. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarImage.h +0 -69
  1104. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarImageScanner.h +0 -50
  1105. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarReaderController.h +0 -142
  1106. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarReaderView.h +0 -119
  1107. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarReaderViewController.h +0 -99
  1108. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/ZBarSymbol.h +0 -67
  1109. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/include/zbar/zbargtk.h +0 -205
  1110. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/config.c +0 -157
  1111. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/convert.c +0 -1172
  1112. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/debug.h +0 -87
  1113. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder.c +0 -409
  1114. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder.h +0 -219
  1115. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code128.c +0 -528
  1116. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code128.h +0 -49
  1117. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code39.c +0 -335
  1118. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/code39.h +0 -50
  1119. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/ean.c +0 -660
  1120. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/ean.h +0 -86
  1121. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/i25.c +0 -243
  1122. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/i25.h +0 -50
  1123. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/pdf417.c +0 -223
  1124. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/pdf417.h +0 -49
  1125. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/pdf417_hash.h +0 -545
  1126. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/qr_finder.c +0 -102
  1127. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/decoder/qr_finder.h +0 -23
  1128. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/error.c +0 -183
  1129. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/error.h +0 -240
  1130. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/event.h +0 -62
  1131. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/image.c +0 -358
  1132. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/image.h +0 -142
  1133. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/img_scanner.c +0 -819
  1134. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/img_scanner.h +0 -38
  1135. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/jpeg.c +0 -241
  1136. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/mutex.h +0 -160
  1137. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor.c +0 -700
  1138. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor.h +0 -126
  1139. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/lock.c +0 -227
  1140. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/null.c +0 -62
  1141. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/posix.c +0 -337
  1142. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/posix.h +0 -138
  1143. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/win.c +0 -335
  1144. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/processor/x.c +0 -269
  1145. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode.h +0 -66
  1146. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/bch15_5.c +0 -184
  1147. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/bch15_5.h +0 -20
  1148. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/binarize.c +0 -639
  1149. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/binarize.h +0 -17
  1150. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/isaac.c +0 -139
  1151. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/isaac.h +0 -41
  1152. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/qrdec.c +0 -3957
  1153. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/qrdec.h +0 -168
  1154. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/qrdectxt.c +0 -405
  1155. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/rs.c +0 -799
  1156. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/rs.h +0 -66
  1157. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/util.c +0 -140
  1158. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/qrcode/util.h +0 -48
  1159. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/refcnt.c +0 -48
  1160. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/refcnt.h +0 -96
  1161. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/scanner.c +0 -317
  1162. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/svg.c +0 -184
  1163. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/svg.h +0 -65
  1164. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/symbol.c +0 -325
  1165. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/symbol.h +0 -93
  1166. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/thread.h +0 -127
  1167. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/timer.h +0 -151
  1168. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/unistd.h +0 -1
  1169. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video.c +0 -384
  1170. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video.h +0 -160
  1171. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/null.c +0 -37
  1172. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/v4l1.c +0 -435
  1173. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/v4l2.c +0 -509
  1174. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/video/vfw.c +0 -494
  1175. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window.c +0 -318
  1176. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window.h +0 -144
  1177. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/dib.c +0 -75
  1178. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/null.c +0 -103
  1179. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/vfw.c +0 -104
  1180. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/win.c +0 -334
  1181. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/win.h +0 -46
  1182. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/x.c +0 -356
  1183. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/x.h +0 -74
  1184. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/ximage.c +0 -219
  1185. data/lib/extensions/barcode/ext/barcode/shared/zbar/zbar/zbar/window/xv.c +0 -273
  1186. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_SplashScreen.h +0 -39
  1187. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NetworkConnectivityListener.java +0 -222
  1188. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NetworkStateTracker.java +0 -185
  1189. data/platform/shared/SyncClient/RhoError.h +0 -29
  1190. data/platform/shared/SyncClient/SyncClient.h +0 -95
  1191. data/platform/symbian/RhoLib/group/RhoLib.mmp +0 -41
  1192. data/platform/symbian/RhoLib/group/bld.inf +0 -15
  1193. data/platform/symbian/SQLite60/group/SQLite60.mmp +0 -21
  1194. data/platform/symbian/SQLite60/group/bld.inf +0 -7
  1195. data/platform/symbian/build/build.properties +0 -80
  1196. data/platform/symbian/build/build.xml +0 -649
  1197. data/platform/symbian/build/insertRhoBundle2pkg.rb +0 -26
  1198. data/platform/symbian/build/lib/stlport.zip +0 -0
  1199. data/platform/symbian/build/logfile.template +0 -1
  1200. data/platform/symbian/build/release.properties +0 -7
  1201. data/platform/symbian/lib/pips_nokia_1_3_ss.sis +0 -0
  1202. data/platform/symbian/rhodes/data/loading.html +0 -11
  1203. data/platform/symbian/rhodes/data/rhodes.rls +0 -91
  1204. data/platform/symbian/rhodes/data/rhodes.rss +0 -537
  1205. data/platform/symbian/rhodes/data/rhodes_reg.rss +0 -40
  1206. data/platform/symbian/rhodes/gfx/qgn_menu_rhodes.svg +0 -55
  1207. data/platform/symbian/rhodes/group/Icons_scalable_dc.mk +0 -50
  1208. data/platform/symbian/rhodes/group/bld.inf +0 -10
  1209. data/platform/symbian/rhodes/group/rhodes.mmp +0 -180
  1210. data/platform/symbian/rhodes/help/Custom.xml +0 -18
  1211. data/platform/symbian/rhodes/help/build_help.mk +0 -45
  1212. data/platform/symbian/rhodes/help/rhodes.cshlp +0 -19
  1213. data/platform/symbian/rhodes/help/rhodes.xml +0 -13
  1214. data/platform/symbian/rhodes/inc/AppManager.h +0 -89
  1215. data/platform/symbian/rhodes/inc/AppSoftkeysObserver.h +0 -95
  1216. data/platform/symbian/rhodes/inc/ConnectionManager.h +0 -115
  1217. data/platform/symbian/rhodes/inc/GeoLocationService.h +0 -89
  1218. data/platform/symbian/rhodes/inc/HttpClient.h +0 -161
  1219. data/platform/symbian/rhodes/inc/HttpConstants.h +0 -72
  1220. data/platform/symbian/rhodes/inc/HttpEventHandler.h +0 -130
  1221. data/platform/symbian/rhodes/inc/HttpFileManager.h +0 -116
  1222. data/platform/symbian/rhodes/inc/HttpServer.h +0 -119
  1223. data/platform/symbian/rhodes/inc/LogOptionsDialog.h +0 -59
  1224. data/platform/symbian/rhodes/inc/RhoCamera.h +0 -321
  1225. data/platform/symbian/rhodes/inc/SpecialLoadObserver.h +0 -115
  1226. data/platform/symbian/rhodes/inc/SyncEngineWrap.h +0 -107
  1227. data/platform/symbian/rhodes/inc/geolocation/GeoLocation.h +0 -91
  1228. data/platform/symbian/rhodes/inc/ports_mngt.h +0 -23
  1229. data/platform/symbian/rhodes/inc/posix_http_client.h +0 -37
  1230. data/platform/symbian/rhodes/inc/rhodes.hrh +0 -106
  1231. data/platform/symbian/rhodes/inc/rhodes.pan +0 -42
  1232. data/platform/symbian/rhodes/inc/rhodesAppUi.h +0 -153
  1233. data/platform/symbian/rhodes/inc/rhodesAppView.h +0 -242
  1234. data/platform/symbian/rhodes/inc/rhodesApplication.h +0 -69
  1235. data/platform/symbian/rhodes/inc/rhodesDocument.h +0 -103
  1236. data/platform/symbian/rhodes/sis/backup_registration.xml +0 -5
  1237. data/platform/symbian/rhodes/sis/cert/rhodes_cert.cer +0 -27
  1238. data/platform/symbian/rhodes/sis/cert/rhodes_pid.key +0 -23
  1239. data/platform/symbian/rhodes/sis/rhodes.pkg +0 -42
  1240. data/platform/symbian/rhodes/src/AppManager.cpp +0 -153
  1241. data/platform/symbian/rhodes/src/AppSoftkeysObserver.cpp +0 -88
  1242. data/platform/symbian/rhodes/src/ConnectionManager.cpp +0 -337
  1243. data/platform/symbian/rhodes/src/GeoLocationService.cpp +0 -151
  1244. data/platform/symbian/rhodes/src/HttpClient.cpp +0 -489
  1245. data/platform/symbian/rhodes/src/HttpConstants.cpp +0 -35
  1246. data/platform/symbian/rhodes/src/HttpEventHandler.cpp +0 -587
  1247. data/platform/symbian/rhodes/src/HttpFileManager.cpp +0 -282
  1248. data/platform/symbian/rhodes/src/HttpServer.cpp +0 -275
  1249. data/platform/symbian/rhodes/src/LogOptionsDialog.cpp +0 -179
  1250. data/platform/symbian/rhodes/src/RhoCamera.cpp +0 -675
  1251. data/platform/symbian/rhodes/src/SpecialLoadObserver.cpp +0 -95
  1252. data/platform/symbian/rhodes/src/SyncEngineWrap.cpp +0 -400
  1253. data/platform/symbian/rhodes/src/camera/camera.cpp +0 -23
  1254. data/platform/symbian/rhodes/src/geolocation/GeoLocation.cpp +0 -110
  1255. data/platform/symbian/rhodes/src/geolocation/ruby_geolocation.cpp +0 -38
  1256. data/platform/symbian/rhodes/src/notification.cpp +0 -117
  1257. data/platform/symbian/rhodes/src/ports_mngt.c +0 -103
  1258. data/platform/symbian/rhodes/src/posix_http_client.c +0 -460
  1259. data/platform/symbian/rhodes/src/rhodes.cpp +0 -43
  1260. data/platform/symbian/rhodes/src/rhodesAppUi.cpp +0 -436
  1261. data/platform/symbian/rhodes/src/rhodesAppView.cpp +0 -851
  1262. data/platform/symbian/rhodes/src/rhodesApplication.cpp +0 -51
  1263. data/platform/symbian/rhodes/src/rhodesDocument.cpp +0 -97
  1264. data/platform/symbian/rhodes/src/rsyncengine.c +0 -11
  1265. data/platform/symbian/rhodes/src/webview/webview.cpp +0 -44
  1266. data/platform/symbian/rubylib/group/bld.inf +0 -7
  1267. data/platform/symbian/rubylib/group/rubylib.mmp +0 -143
  1268. data/platform/symbian/shttpd/group/bld.inf +0 -5
  1269. data/platform/symbian/shttpd/group/shttpd.mmp +0 -24
  1270. data/platform/symbian/tcmalloc/group/bld.inf +0 -15
  1271. data/platform/symbian/tcmalloc/group/tcmalloc.mmp +0 -31
  1272. data/platform/wm/rhodes/emulator/ExternalWebView.cpp +0 -20
  1273. data/platform/wm/rhodes/emulator/ExternalWebView.h +0 -23
  1274. data/platform/wm/rhodes/emulator/MainWindowCallback.h +0 -19
  1275. data/platform/wm/rhodes/emulator/MainWindowProxy.cpp +0 -270
  1276. data/platform/wm/rhodes/emulator/MainWindowProxy.h +0 -34
  1277. data/platform/wm/rhodes/emulator/MainWindowQt.cpp +0 -356
  1278. data/platform/wm/rhodes/emulator/NativeToolbarQt.cpp +0 -57
  1279. data/platform/wm/rhodes/emulator/NativeToolbarQt.h +0 -52
  1280. data/platform/wm/rhodes/emulator/QtMainWindow.cpp +0 -252
  1281. data/platform/wm/rhodes/emulator/QtMainWindow.h +0 -62
  1282. data/platform/wm/rhodes/rho/rubyext/NativeToolbarExt.h +0 -6
  1283. data/platform/wp7/WPApplication.sln +0 -50
  1284. data/platform/wp7/WPApplication/App.xaml +0 -19
  1285. data/platform/wp7/WPApplication/App.xaml.cs +0 -211
  1286. data/platform/wp7/WPApplication/ApplicationIcon.png +0 -0
  1287. data/platform/wp7/WPApplication/Background.png +0 -0
  1288. data/platform/wp7/WPApplication/MainPage.xaml +0 -44
  1289. data/platform/wp7/WPApplication/MainPage.xaml.cs +0 -132
  1290. data/platform/wp7/WPApplication/Properties/AppManifest.xml +0 -6
  1291. data/platform/wp7/WPApplication/Properties/AssemblyInfo.cs +0 -35
  1292. data/platform/wp7/WPApplication/Properties/WMAppManifest.xml +0 -32
  1293. data/platform/wp7/WPApplication/SplashScreenImage.jpg +0 -0
  1294. data/platform/wp7/WPApplication/WPApplication.csproj +0 -201
  1295. data/platform/wp7/WPApplication/WP_PlatformAdaptationLayer.cs +0 -88
  1296. data/platform/wp7/WPApplication/app_manifest.txt +0 -1
  1297. data/platform/wp7/WPApplication/readme.htm +0 -40
  1298. data/platform/wp7/WPApplication/readme2.htm +0 -37
  1299. data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.bb.erb +0 -29
  1300. data/platform/wp7/WPApplication/rho/apps/app/Model1/edit.erb +0 -32
  1301. data/platform/wp7/WPApplication/rho/apps/app/Model1/index.bb.erb +0 -21
  1302. data/platform/wp7/WPApplication/rho/apps/app/Model1/index.erb +0 -26
  1303. data/platform/wp7/WPApplication/rho/apps/app/Model1/model1.rb +0 -10
  1304. data/platform/wp7/WPApplication/rho/apps/app/Model1/model1_controller.rb +0 -58
  1305. data/platform/wp7/WPApplication/rho/apps/app/Model1/new.bb.erb +0 -29
  1306. data/platform/wp7/WPApplication/rho/apps/app/Model1/new.erb +0 -31
  1307. data/platform/wp7/WPApplication/rho/apps/app/Model1/show.bb.erb +0 -26
  1308. data/platform/wp7/WPApplication/rho/apps/app/Model1/show.erb +0 -28
  1309. data/platform/wp7/WPApplication/rho/apps/app/Settings/controller.rb +0 -75
  1310. data/platform/wp7/WPApplication/rho/apps/app/Settings/home.bb.erb +0 -17
  1311. data/platform/wp7/WPApplication/rho/apps/app/Settings/home.erb +0 -20
  1312. data/platform/wp7/WPApplication/rho/apps/app/Settings/index.bb.erb +0 -32
  1313. data/platform/wp7/WPApplication/rho/apps/app/Settings/index.erb +0 -30
  1314. data/platform/wp7/WPApplication/rho/apps/app/Settings/login.bb.erb +0 -35
  1315. data/platform/wp7/WPApplication/rho/apps/app/Settings/login.erb +0 -27
  1316. data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.bb.erb +0 -15
  1317. data/platform/wp7/WPApplication/rho/apps/app/Settings/reset.erb +0 -17
  1318. data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.bb.erb +0 -3
  1319. data/platform/wp7/WPApplication/rho/apps/app/Settings/wait.erb +0 -5
  1320. data/platform/wp7/WPApplication/rho/apps/app/application.rb +0 -16
  1321. data/platform/wp7/WPApplication/rho/apps/app/helpers/application_helper.rb +0 -126
  1322. data/platform/wp7/WPApplication/rho/apps/app/helpers/browser_helper.rb +0 -18
  1323. data/platform/wp7/WPApplication/rho/apps/app/index.bb.erb +0 -26
  1324. data/platform/wp7/WPApplication/rho/apps/app/index.erb +0 -26
  1325. data/platform/wp7/WPApplication/rho/apps/app/layout.erb +0 -47
  1326. data/platform/wp7/WPApplication/rho/apps/app/loading.html +0 -11
  1327. data/platform/wp7/WPApplication/rho/apps/app_manifest.txt +0 -1
  1328. data/platform/wp7/WPApplication/rho/apps/public/css/android.css +0 -330
  1329. data/platform/wp7/WPApplication/rho/apps/public/css/blackberry.css +0 -115
  1330. data/platform/wp7/WPApplication/rho/apps/public/css/iphone.css +0 -410
  1331. data/platform/wp7/WPApplication/rho/apps/public/css/windows_mobile.css +0 -222
  1332. data/platform/wp7/WPApplication/rho/apps/public/images/IUI_LICENSE.txt +0 -21
  1333. data/platform/wp7/WPApplication/rho/apps/public/images/android/ic_menu_more.png +0 -0
  1334. data/platform/wp7/WPApplication/rho/apps/public/images/backButton.png +0 -0
  1335. data/platform/wp7/WPApplication/rho/apps/public/images/blueButton.png +0 -0
  1336. data/platform/wp7/WPApplication/rho/apps/public/images/cancel.png +0 -0
  1337. data/platform/wp7/WPApplication/rho/apps/public/images/grayButton.png +0 -0
  1338. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure.png +0 -0
  1339. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/disclosure_detail.png +0 -0
  1340. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/backButton.png +0 -0
  1341. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/blueButton.png +0 -0
  1342. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/cancel.png +0 -0
  1343. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/chevron.png +0 -0
  1344. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/grayButton.png +0 -0
  1345. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listArrowSel.png +0 -0
  1346. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/listGroup.png +0 -0
  1347. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/loading.gif +0 -0
  1348. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/on_off.png +0 -0
  1349. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/pinstripes.png +0 -0
  1350. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/selection.png +0 -0
  1351. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/thumb.png +0 -0
  1352. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggle.png +0 -0
  1353. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toggleOn.png +0 -0
  1354. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolButton.png +0 -0
  1355. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/toolbar.png +0 -0
  1356. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/jqtouch/whiteButton.png +0 -0
  1357. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/radiobutton.png +0 -0
  1358. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/select.png +0 -0
  1359. data/platform/wp7/WPApplication/rho/apps/public/images/iphone/switch.png +0 -0
  1360. data/platform/wp7/WPApplication/rho/apps/public/images/iui-logo-touch-icon.png +0 -0
  1361. data/platform/wp7/WPApplication/rho/apps/public/images/listArrow.png +0 -0
  1362. data/platform/wp7/WPApplication/rho/apps/public/images/listArrowDown.png +0 -0
  1363. data/platform/wp7/WPApplication/rho/apps/public/images/listArrowSel.png +0 -0
  1364. data/platform/wp7/WPApplication/rho/apps/public/images/listGroup.png +0 -0
  1365. data/platform/wp7/WPApplication/rho/apps/public/images/loading.gif +0 -0
  1366. data/platform/wp7/WPApplication/rho/apps/public/images/pinstripes.png +0 -0
  1367. data/platform/wp7/WPApplication/rho/apps/public/images/right_button.png +0 -0
  1368. data/platform/wp7/WPApplication/rho/apps/public/images/selection.png +0 -0
  1369. data/platform/wp7/WPApplication/rho/apps/public/images/thumb.png +0 -0
  1370. data/platform/wp7/WPApplication/rho/apps/public/images/toggle.png +0 -0
  1371. data/platform/wp7/WPApplication/rho/apps/public/images/toggleOn.png +0 -0
  1372. data/platform/wp7/WPApplication/rho/apps/public/images/toolButton.png +0 -0
  1373. data/platform/wp7/WPApplication/rho/apps/public/images/toolButton_new.png +0 -0
  1374. data/platform/wp7/WPApplication/rho/apps/public/images/toolbar.png +0 -0
  1375. data/platform/wp7/WPApplication/rho/apps/public/images/whiteButton.png +0 -0
  1376. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch-iphone.css +0 -9
  1377. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.css +0 -374
  1378. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.js +0 -742
  1379. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jqtouch.transitions.js +0 -60
  1380. data/platform/wp7/WPApplication/rho/apps/public/jqtouch/jquery.1.3.2.min.js +0 -19
  1381. data/platform/wp7/WPApplication/rho/apps/public/js/application.js +0 -1
  1382. data/platform/wp7/WPApplication/rho/apps/public/js/rho.js +0 -4
  1383. data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation-wm.js +0 -59
  1384. data/platform/wp7/WPApplication/rho/apps/public/js/rhogeolocation.js +0 -11
  1385. data/platform/wp7/WPApplication/rho/apps/rhoconfig.txt +0 -32
  1386. data/platform/wp7/WPApplication/rhoconfig.txt +0 -32
  1387. data/platform/wp7/WPApplication/windows_mobile.css +0 -222
  1388. data/res/generators/templates/application/public/jqtouch/changes.txt +0 -20
  1389. data/res/generators/templates/application/public/jqtouch/jqtouch.css +0 -374
  1390. data/res/generators/templates/application/public/jqtouch/jqtouch.js +0 -771
  1391. data/res/generators/templates/application/public/jqtouch/jqtouch.transitions.js +0 -60
  1392. data/res/generators/templates/application/public/jqtouch/jquery.1.3.2.min.js +0 -19
  1393. data/res/generators/templates/application/public/js/wp7.js +0 -7
@@ -1,2278 +1,2278 @@
1
- /* ----------------------------------------------------------------------------
2
- * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.0
4
- *
5
- * This file is not intended to be easily readable and contains a number of
6
- * coding conventions designed to improve portability and efficiency. Do not make
7
- * changes to this file unless you know what you are doing--modify the SWIG
8
- * interface file instead.
9
- * ----------------------------------------------------------------------------- */
10
-
11
- #define SWIGRUBY
12
-
13
- /* -----------------------------------------------------------------------------
14
- * This section contains generic SWIG labels for method/variable
15
- * declarations/attributes, and other compiler dependent labels.
16
- * ----------------------------------------------------------------------------- */
17
-
18
- /* template workaround for compilers that cannot correctly implement the C++ standard */
19
- #ifndef SWIGTEMPLATEDISAMBIGUATOR
20
- # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21
- # define SWIGTEMPLATEDISAMBIGUATOR template
22
- # elif defined(__HP_aCC)
23
- /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24
- /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25
- # define SWIGTEMPLATEDISAMBIGUATOR template
26
- # else
27
- # define SWIGTEMPLATEDISAMBIGUATOR
28
- # endif
29
- #endif
30
-
31
- /* inline attribute */
32
- #ifndef SWIGINLINE
33
- # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34
- # define SWIGINLINE inline
35
- # else
36
- # define SWIGINLINE
37
- # endif
38
- #endif
39
-
40
- /* attribute recognised by some compilers to avoid 'unused' warnings */
41
- #ifndef SWIGUNUSED
42
- # if defined(__GNUC__)
43
- # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44
- # define SWIGUNUSED __attribute__ ((__unused__))
45
- # else
46
- # define SWIGUNUSED
47
- # endif
48
- # elif defined(__ICC)
49
- # define SWIGUNUSED __attribute__ ((__unused__))
50
- # else
51
- # define SWIGUNUSED
52
- # endif
53
- #endif
54
-
55
- #ifndef SWIG_MSC_UNSUPPRESS_4505
56
- # if defined(_MSC_VER)
57
- # pragma warning(disable : 4505) /* unreferenced local function has been removed */
58
- # endif
59
- #endif
60
-
61
- #ifndef SWIGUNUSEDPARM
62
- # ifdef __cplusplus
63
- # define SWIGUNUSEDPARM(p)
64
- # else
65
- # define SWIGUNUSEDPARM(p) p SWIGUNUSED
66
- # endif
67
- #endif
68
-
69
- /* internal SWIG method */
70
- #ifndef SWIGINTERN
71
- # define SWIGINTERN static SWIGUNUSED
72
- #endif
73
-
74
- /* internal inline SWIG method */
75
- #ifndef SWIGINTERNINLINE
76
- # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
77
- #endif
78
-
79
- /* exporting methods */
80
- #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
81
- # ifndef GCC_HASCLASSVISIBILITY
82
- # define GCC_HASCLASSVISIBILITY
83
- # endif
84
- #endif
85
-
86
- #ifndef SWIGEXPORT
87
- # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
88
- # if defined(STATIC_LINKED)
89
- # define SWIGEXPORT
90
- # else
91
- # define SWIGEXPORT __declspec(dllexport)
92
- # endif
93
- # else
94
- # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
95
- # define SWIGEXPORT __attribute__ ((visibility("default")))
96
- # else
97
- # define SWIGEXPORT
98
- # endif
99
- # endif
100
- #endif
101
-
102
- /* calling conventions for Windows */
103
- #ifndef SWIGSTDCALL
104
- # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
105
- # define SWIGSTDCALL __stdcall
106
- # else
107
- # define SWIGSTDCALL
108
- # endif
109
- #endif
110
-
111
- /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
112
- #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
113
- # define _CRT_SECURE_NO_DEPRECATE
114
- #endif
115
-
116
- /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
117
- #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
118
- # define _SCL_SECURE_NO_DEPRECATE
119
- #endif
120
-
121
-
122
- /* -----------------------------------------------------------------------------
123
- * This section contains generic SWIG labels for method/variable
124
- * declarations/attributes, and other compiler dependent labels.
125
- * ----------------------------------------------------------------------------- */
126
-
127
- /* template workaround for compilers that cannot correctly implement the C++ standard */
128
- #ifndef SWIGTEMPLATEDISAMBIGUATOR
129
- # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
130
- # define SWIGTEMPLATEDISAMBIGUATOR template
131
- # elif defined(__HP_aCC)
132
- /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
133
- /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
134
- # define SWIGTEMPLATEDISAMBIGUATOR template
135
- # else
136
- # define SWIGTEMPLATEDISAMBIGUATOR
137
- # endif
138
- #endif
139
-
140
- /* inline attribute */
141
- #ifndef SWIGINLINE
142
- # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
143
- # define SWIGINLINE inline
144
- # else
145
- # define SWIGINLINE
146
- # endif
147
- #endif
148
-
149
- /* attribute recognised by some compilers to avoid 'unused' warnings */
150
- #ifndef SWIGUNUSED
151
- # if defined(__GNUC__)
152
- # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
153
- # define SWIGUNUSED __attribute__ ((__unused__))
154
- # else
155
- # define SWIGUNUSED
156
- # endif
157
- # elif defined(__ICC)
158
- # define SWIGUNUSED __attribute__ ((__unused__))
159
- # else
160
- # define SWIGUNUSED
161
- # endif
162
- #endif
163
-
164
- #ifndef SWIG_MSC_UNSUPPRESS_4505
165
- # if defined(_MSC_VER)
166
- # pragma warning(disable : 4505) /* unreferenced local function has been removed */
167
- # endif
168
- #endif
169
-
170
- #ifndef SWIGUNUSEDPARM
171
- # ifdef __cplusplus
172
- # define SWIGUNUSEDPARM(p)
173
- # else
174
- # define SWIGUNUSEDPARM(p) p SWIGUNUSED
175
- # endif
176
- #endif
177
-
178
- /* internal SWIG method */
179
- #ifndef SWIGINTERN
180
- # define SWIGINTERN static SWIGUNUSED
181
- #endif
182
-
183
- /* internal inline SWIG method */
184
- #ifndef SWIGINTERNINLINE
185
- # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
186
- #endif
187
-
188
- /* exporting methods */
189
- #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
190
- # ifndef GCC_HASCLASSVISIBILITY
191
- # define GCC_HASCLASSVISIBILITY
192
- # endif
193
- #endif
194
-
195
- #ifndef SWIGEXPORT
196
- # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
197
- # if defined(STATIC_LINKED)
198
- # define SWIGEXPORT
199
- # else
200
- # define SWIGEXPORT __declspec(dllexport)
201
- # endif
202
- # else
203
- # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
204
- # define SWIGEXPORT __attribute__ ((visibility("default")))
205
- # else
206
- # define SWIGEXPORT
207
- # endif
208
- # endif
209
- #endif
210
-
211
- /* calling conventions for Windows */
212
- #ifndef SWIGSTDCALL
213
- # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
214
- # define SWIGSTDCALL __stdcall
215
- # else
216
- # define SWIGSTDCALL
217
- # endif
218
- #endif
219
-
220
- /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
221
- #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
222
- # define _CRT_SECURE_NO_DEPRECATE
223
- #endif
224
-
225
- /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
226
- #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
227
- # define _SCL_SECURE_NO_DEPRECATE
228
- #endif
229
-
230
-
231
- /* -----------------------------------------------------------------------------
232
- * swigrun.swg
233
- *
234
- * This file contains generic C API SWIG runtime support for pointer
235
- * type checking.
236
- * ----------------------------------------------------------------------------- */
237
-
238
- /* This should only be incremented when either the layout of swig_type_info changes,
239
- or for whatever reason, the runtime changes incompatibly */
240
- #define SWIG_RUNTIME_VERSION "4"
241
-
242
- /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
243
- #ifdef SWIG_TYPE_TABLE
244
- # define SWIG_QUOTE_STRING(x) #x
245
- # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
246
- # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
247
- #else
248
- # define SWIG_TYPE_TABLE_NAME
249
- #endif
250
-
251
- /*
252
- You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
253
- creating a static or dynamic library from the SWIG runtime code.
254
- In 99.9% of the cases, SWIG just needs to declare them as 'static'.
255
-
256
- But only do this if strictly necessary, ie, if you have problems
257
- with your compiler or suchlike.
258
- */
259
-
260
- #ifndef SWIGRUNTIME
261
- # define SWIGRUNTIME SWIGINTERN
262
- #endif
263
-
264
- #ifndef SWIGRUNTIMEINLINE
265
- # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
266
- #endif
267
-
268
- /* Generic buffer size */
269
- #ifndef SWIG_BUFFER_SIZE
270
- # define SWIG_BUFFER_SIZE 1024
271
- #endif
272
-
273
- /* Flags for pointer conversions */
274
- #define SWIG_POINTER_DISOWN 0x1
275
- #define SWIG_CAST_NEW_MEMORY 0x2
276
-
277
- /* Flags for new pointer objects */
278
- #define SWIG_POINTER_OWN 0x1
279
-
280
-
281
- /*
282
- Flags/methods for returning states.
283
-
284
- The SWIG conversion methods, as ConvertPtr, return and integer
285
- that tells if the conversion was successful or not. And if not,
286
- an error code can be returned (see swigerrors.swg for the codes).
287
-
288
- Use the following macros/flags to set or process the returning
289
- states.
290
-
291
- In old versions of SWIG, code such as the following was usually written:
292
-
293
- if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
294
- // success code
295
- } else {
296
- //fail code
297
- }
298
-
299
- Now you can be more explicit:
300
-
301
- int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
302
- if (SWIG_IsOK(res)) {
303
- // success code
304
- } else {
305
- // fail code
306
- }
307
-
308
- which is the same really, but now you can also do
309
-
310
- Type *ptr;
311
- int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
312
- if (SWIG_IsOK(res)) {
313
- // success code
314
- if (SWIG_IsNewObj(res) {
315
- ...
316
- delete *ptr;
317
- } else {
318
- ...
319
- }
320
- } else {
321
- // fail code
322
- }
323
-
324
- I.e., now SWIG_ConvertPtr can return new objects and you can
325
- identify the case and take care of the deallocation. Of course that
326
- also requires SWIG_ConvertPtr to return new result values, such as
327
-
328
- int SWIG_ConvertPtr(obj, ptr,...) {
329
- if (<obj is ok>) {
330
- if (<need new object>) {
331
- *ptr = <ptr to new allocated object>;
332
- return SWIG_NEWOBJ;
333
- } else {
334
- *ptr = <ptr to old object>;
335
- return SWIG_OLDOBJ;
336
- }
337
- } else {
338
- return SWIG_BADOBJ;
339
- }
340
- }
341
-
342
- Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
343
- more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
344
- SWIG errors code.
345
-
346
- Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
347
- allows to return the 'cast rank', for example, if you have this
348
-
349
- int food(double)
350
- int fooi(int);
351
-
352
- and you call
353
-
354
- food(1) // cast rank '1' (1 -> 1.0)
355
- fooi(1) // cast rank '0'
356
-
357
- just use the SWIG_AddCast()/SWIG_CheckState()
358
- */
359
-
360
- #define SWIG_OK (0)
361
- #define SWIG_ERROR (-1)
362
- #define SWIG_IsOK(r) (r >= 0)
363
- #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
364
-
365
- /* The CastRankLimit says how many bits are used for the cast rank */
366
- #define SWIG_CASTRANKLIMIT (1 << 8)
367
- /* The NewMask denotes the object was created (using new/malloc) */
368
- #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
369
- /* The TmpMask is for in/out typemaps that use temporal objects */
370
- #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
371
- /* Simple returning values */
372
- #define SWIG_BADOBJ (SWIG_ERROR)
373
- #define SWIG_OLDOBJ (SWIG_OK)
374
- #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
375
- #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
376
- /* Check, add and del mask methods */
377
- #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
378
- #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
379
- #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
380
- #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
381
- #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
382
- #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
383
-
384
- /* Cast-Rank Mode */
385
- #if defined(SWIG_CASTRANK_MODE)
386
- # ifndef SWIG_TypeRank
387
- # define SWIG_TypeRank unsigned long
388
- # endif
389
- # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
390
- # define SWIG_MAXCASTRANK (2)
391
- # endif
392
- # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
393
- # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
394
- SWIGINTERNINLINE int SWIG_AddCast(int r) {
395
- return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
396
- }
397
- SWIGINTERNINLINE int SWIG_CheckState(int r) {
398
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
399
- }
400
- #else /* no cast-rank mode */
401
- # define SWIG_AddCast
402
- # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
403
- #endif
404
-
405
-
406
- #include <string.h>
407
-
408
- #ifdef __cplusplus
409
- extern "C" {
410
- #endif
411
-
412
- typedef void *(*swig_converter_func)(void *, int *);
413
- typedef struct swig_type_info *(*swig_dycast_func)(void **);
414
-
415
- /* Structure to store information on one type */
416
- typedef struct swig_type_info {
417
- const char *name; /* mangled name of this type */
418
- const char *str; /* human readable name of this type */
419
- swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
420
- struct swig_cast_info *cast; /* linked list of types that can cast into this type */
421
- void *clientdata; /* language specific type data */
422
- int owndata; /* flag if the structure owns the clientdata */
423
- } swig_type_info;
424
-
425
- /* Structure to store a type and conversion function used for casting */
426
- typedef struct swig_cast_info {
427
- swig_type_info *type; /* pointer to type that is equivalent to this type */
428
- swig_converter_func converter; /* function to cast the void pointers */
429
- struct swig_cast_info *next; /* pointer to next cast in linked list */
430
- struct swig_cast_info *prev; /* pointer to the previous cast */
431
- } swig_cast_info;
432
-
433
- /* Structure used to store module information
434
- * Each module generates one structure like this, and the runtime collects
435
- * all of these structures and stores them in a circularly linked list.*/
436
- typedef struct swig_module_info {
437
- swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
438
- size_t size; /* Number of types in this module */
439
- struct swig_module_info *next; /* Pointer to next element in circularly linked list */
440
- swig_type_info **type_initial; /* Array of initially generated type structures */
441
- swig_cast_info **cast_initial; /* Array of initially generated casting structures */
442
- void *clientdata; /* Language specific module data */
443
- } swig_module_info;
444
-
445
- /*
446
- Compare two type names skipping the space characters, therefore
447
- "char*" == "char *" and "Class<int>" == "Class<int >", etc.
448
-
449
- Return 0 when the two name types are equivalent, as in
450
- strncmp, but skipping ' '.
451
- */
452
- SWIGRUNTIME int
453
- SWIG_TypeNameComp(const char *f1, const char *l1,
454
- const char *f2, const char *l2) {
455
- for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
456
- while ((*f1 == ' ') && (f1 != l1)) ++f1;
457
- while ((*f2 == ' ') && (f2 != l2)) ++f2;
458
- if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
459
- }
460
- return (int)((l1 - f1) - (l2 - f2));
461
- }
462
-
463
- /*
464
- Check type equivalence in a name list like <name1>|<name2>|...
465
- Return 0 if not equal, 1 if equal
466
- */
467
- SWIGRUNTIME int
468
- SWIG_TypeEquiv(const char *nb, const char *tb) {
469
- int equiv = 0;
470
- const char* te = tb + strlen(tb);
471
- const char* ne = nb;
472
- while (!equiv && *ne) {
473
- for (nb = ne; *ne; ++ne) {
474
- if (*ne == '|') break;
475
- }
476
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
477
- if (*ne) ++ne;
478
- }
479
- return equiv;
480
- }
481
-
482
- /*
483
- Check type equivalence in a name list like <name1>|<name2>|...
484
- Return 0 if equal, -1 if nb < tb, 1 if nb > tb
485
- */
486
- SWIGRUNTIME int
487
- SWIG_TypeCompare(const char *nb, const char *tb) {
488
- int equiv = 0;
489
- const char* te = tb + strlen(tb);
490
- const char* ne = nb;
491
- while (!equiv && *ne) {
492
- for (nb = ne; *ne; ++ne) {
493
- if (*ne == '|') break;
494
- }
495
- equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
496
- if (*ne) ++ne;
497
- }
498
- return equiv;
499
- }
500
-
501
-
502
- /*
503
- Check the typename
504
- */
505
- SWIGRUNTIME swig_cast_info *
506
- SWIG_TypeCheck(const char *c, swig_type_info *ty) {
507
- if (ty) {
508
- swig_cast_info *iter = ty->cast;
509
- while (iter) {
510
- if (strcmp(iter->type->name, c) == 0) {
511
- if (iter == ty->cast)
512
- return iter;
513
- /* Move iter to the top of the linked list */
514
- iter->prev->next = iter->next;
515
- if (iter->next)
516
- iter->next->prev = iter->prev;
517
- iter->next = ty->cast;
518
- iter->prev = 0;
519
- if (ty->cast) ty->cast->prev = iter;
520
- ty->cast = iter;
521
- return iter;
522
- }
523
- iter = iter->next;
524
- }
525
- }
526
- return 0;
527
- }
528
-
529
- /*
530
- Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
531
- */
532
- SWIGRUNTIME swig_cast_info *
533
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
534
- if (ty) {
535
- swig_cast_info *iter = ty->cast;
536
- while (iter) {
537
- if (iter->type == from) {
538
- if (iter == ty->cast)
539
- return iter;
540
- /* Move iter to the top of the linked list */
541
- iter->prev->next = iter->next;
542
- if (iter->next)
543
- iter->next->prev = iter->prev;
544
- iter->next = ty->cast;
545
- iter->prev = 0;
546
- if (ty->cast) ty->cast->prev = iter;
547
- ty->cast = iter;
548
- return iter;
549
- }
550
- iter = iter->next;
551
- }
552
- }
553
- return 0;
554
- }
555
-
556
- /*
557
- Cast a pointer up an inheritance hierarchy
558
- */
559
- SWIGRUNTIMEINLINE void *
560
- SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
561
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
562
- }
563
-
564
- /*
565
- Dynamic pointer casting. Down an inheritance hierarchy
566
- */
567
- SWIGRUNTIME swig_type_info *
568
- SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
569
- swig_type_info *lastty = ty;
570
- if (!ty || !ty->dcast) return ty;
571
- while (ty && (ty->dcast)) {
572
- ty = (*ty->dcast)(ptr);
573
- if (ty) lastty = ty;
574
- }
575
- return lastty;
576
- }
577
-
578
- /*
579
- Return the name associated with this type
580
- */
581
- SWIGRUNTIMEINLINE const char *
582
- SWIG_TypeName(const swig_type_info *ty) {
583
- return ty->name;
584
- }
585
-
586
- /*
587
- Return the pretty name associated with this type,
588
- that is an unmangled type name in a form presentable to the user.
589
- */
590
- SWIGRUNTIME const char *
591
- SWIG_TypePrettyName(const swig_type_info *type) {
592
- /* The "str" field contains the equivalent pretty names of the
593
- type, separated by vertical-bar characters. We choose
594
- to print the last name, as it is often (?) the most
595
- specific. */
596
- if (!type) return NULL;
597
- if (type->str != NULL) {
598
- const char *last_name = type->str;
599
- const char *s;
600
- for (s = type->str; *s; s++)
601
- if (*s == '|') last_name = s+1;
602
- return last_name;
603
- }
604
- else
605
- return type->name;
606
- }
607
-
608
- /*
609
- Set the clientdata field for a type
610
- */
611
- SWIGRUNTIME void
612
- SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
613
- swig_cast_info *cast = ti->cast;
614
- /* if (ti->clientdata == clientdata) return; */
615
- ti->clientdata = clientdata;
616
-
617
- while (cast) {
618
- if (!cast->converter) {
619
- swig_type_info *tc = cast->type;
620
- if (!tc->clientdata) {
621
- SWIG_TypeClientData(tc, clientdata);
622
- }
623
- }
624
- cast = cast->next;
625
- }
626
- }
627
- SWIGRUNTIME void
628
- SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
629
- SWIG_TypeClientData(ti, clientdata);
630
- ti->owndata = 1;
631
- }
632
-
633
- /*
634
- Search for a swig_type_info structure only by mangled name
635
- Search is a O(log #types)
636
-
637
- We start searching at module start, and finish searching when start == end.
638
- Note: if start == end at the beginning of the function, we go all the way around
639
- the circular list.
640
- */
641
- SWIGRUNTIME swig_type_info *
642
- SWIG_MangledTypeQueryModule(swig_module_info *start,
643
- swig_module_info *end,
644
- const char *name) {
645
- swig_module_info *iter = start;
646
- do {
647
- if (iter->size) {
648
- register size_t l = 0;
649
- register size_t r = iter->size - 1;
650
- do {
651
- /* since l+r >= 0, we can (>> 1) instead (/ 2) */
652
- register size_t i = (l + r) >> 1;
653
- const char *iname = iter->types[i]->name;
654
- if (iname) {
655
- register int compare = strcmp(name, iname);
656
- if (compare == 0) {
657
- return iter->types[i];
658
- } else if (compare < 0) {
659
- if (i) {
660
- r = i - 1;
661
- } else {
662
- break;
663
- }
664
- } else if (compare > 0) {
665
- l = i + 1;
666
- }
667
- } else {
668
- break; /* should never happen */
669
- }
670
- } while (l <= r);
671
- }
672
- iter = iter->next;
673
- } while (iter != end);
674
- return 0;
675
- }
676
-
677
- /*
678
- Search for a swig_type_info structure for either a mangled name or a human readable name.
679
- It first searches the mangled names of the types, which is a O(log #types)
680
- If a type is not found it then searches the human readable names, which is O(#types).
681
-
682
- We start searching at module start, and finish searching when start == end.
683
- Note: if start == end at the beginning of the function, we go all the way around
684
- the circular list.
685
- */
686
- SWIGRUNTIME swig_type_info *
687
- SWIG_TypeQueryModule(swig_module_info *start,
688
- swig_module_info *end,
689
- const char *name) {
690
- /* STEP 1: Search the name field using binary search */
691
- swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
692
- if (ret) {
693
- return ret;
694
- } else {
695
- /* STEP 2: If the type hasn't been found, do a complete search
696
- of the str field (the human readable name) */
697
- swig_module_info *iter = start;
698
- do {
699
- register size_t i = 0;
700
- for (; i < iter->size; ++i) {
701
- if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
702
- return iter->types[i];
703
- }
704
- iter = iter->next;
705
- } while (iter != end);
706
- }
707
-
708
- /* neither found a match */
709
- return 0;
710
- }
711
-
712
- /*
713
- Pack binary data into a string
714
- */
715
- SWIGRUNTIME char *
716
- SWIG_PackData(char *c, void *ptr, size_t sz) {
717
- static const char hex[17] = "0123456789abcdef";
718
- register const unsigned char *u = (unsigned char *) ptr;
719
- register const unsigned char *eu = u + sz;
720
- for (; u != eu; ++u) {
721
- register unsigned char uu = *u;
722
- *(c++) = hex[(uu & 0xf0) >> 4];
723
- *(c++) = hex[uu & 0xf];
724
- }
725
- return c;
726
- }
727
-
728
- /*
729
- Unpack binary data from a string
730
- */
731
- SWIGRUNTIME const char *
732
- SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
733
- register unsigned char *u = (unsigned char *) ptr;
734
- register const unsigned char *eu = u + sz;
735
- for (; u != eu; ++u) {
736
- register char d = *(c++);
737
- register unsigned char uu;
738
- if ((d >= '0') && (d <= '9'))
739
- uu = ((d - '0') << 4);
740
- else if ((d >= 'a') && (d <= 'f'))
741
- uu = ((d - ('a'-10)) << 4);
742
- else
743
- return (char *) 0;
744
- d = *(c++);
745
- if ((d >= '0') && (d <= '9'))
746
- uu |= (d - '0');
747
- else if ((d >= 'a') && (d <= 'f'))
748
- uu |= (d - ('a'-10));
749
- else
750
- return (char *) 0;
751
- *u = uu;
752
- }
753
- return c;
754
- }
755
-
756
- /*
757
- Pack 'void *' into a string buffer.
758
- */
759
- SWIGRUNTIME char *
760
- SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
761
- char *r = buff;
762
- if ((2*sizeof(void *) + 2) > bsz) return 0;
763
- *(r++) = '_';
764
- r = SWIG_PackData(r,&ptr,sizeof(void *));
765
- if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
766
- strcpy(r,name);
767
- return buff;
768
- }
769
-
770
- SWIGRUNTIME const char *
771
- SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
772
- if (*c != '_') {
773
- if (strcmp(c,"NULL") == 0) {
774
- *ptr = (void *) 0;
775
- return name;
776
- } else {
777
- return 0;
778
- }
779
- }
780
- return SWIG_UnpackData(++c,ptr,sizeof(void *));
781
- }
782
-
783
- SWIGRUNTIME char *
784
- SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
785
- char *r = buff;
786
- size_t lname = (name ? strlen(name) : 0);
787
- if ((2*sz + 2 + lname) > bsz) return 0;
788
- *(r++) = '_';
789
- r = SWIG_PackData(r,ptr,sz);
790
- if (lname) {
791
- strncpy(r,name,lname+1);
792
- } else {
793
- *r = 0;
794
- }
795
- return buff;
796
- }
797
-
798
- SWIGRUNTIME const char *
799
- SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
800
- if (*c != '_') {
801
- if (strcmp(c,"NULL") == 0) {
802
- memset(ptr,0,sz);
803
- return name;
804
- } else {
805
- return 0;
806
- }
807
- }
808
- return SWIG_UnpackData(++c,ptr,sz);
809
- }
810
-
811
- #ifdef __cplusplus
812
- }
813
- #endif
814
-
815
- /* Errors in SWIG */
816
- #define SWIG_UnknownError -1
817
- #define SWIG_IOError -2
818
- #define SWIG_RuntimeError -3
819
- #define SWIG_IndexError -4
820
- #define SWIG_TypeError -5
821
- #define SWIG_DivisionByZero -6
822
- #define SWIG_OverflowError -7
823
- #define SWIG_SyntaxError -8
824
- #define SWIG_ValueError -9
825
- #define SWIG_SystemError -10
826
- #define SWIG_AttributeError -11
827
- #define SWIG_MemoryError -12
828
- #define SWIG_NullReferenceError -13
829
-
830
-
831
-
832
- #include <ruby.h>
833
-
834
- /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
835
- * breaks using rb_intern as an lvalue, as SWIG does. We work around this
836
- * issue for now by disabling this.
837
- * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
838
- */
839
- #ifdef rb_intern
840
- # undef rb_intern
841
- #endif
842
-
843
- /* Remove global macros defined in Ruby's win32.h */
844
- #ifdef write
845
- # undef write
846
- #endif
847
- #ifdef read
848
- # undef read
849
- #endif
850
- #ifdef bind
851
- # undef bind
852
- #endif
853
- #ifdef close
854
- # undef close
855
- #endif
856
- #ifdef connect
857
- # undef connect
858
- #endif
859
-
860
-
861
- /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
862
- #ifndef NUM2LL
863
- #define NUM2LL(x) NUM2LONG((x))
864
- #endif
865
- #ifndef LL2NUM
866
- #define LL2NUM(x) INT2NUM((long) (x))
867
- #endif
868
- #ifndef ULL2NUM
869
- #define ULL2NUM(x) UINT2NUM((unsigned long) (x))
870
- #endif
871
-
872
- /* Ruby 1.7 doesn't (yet) define NUM2ULL() */
873
- #ifndef NUM2ULL
874
- #ifdef HAVE_LONG_LONG
875
- #define NUM2ULL(x) rb_num2ull((x))
876
- #else
877
- #define NUM2ULL(x) NUM2ULONG(x)
878
- #endif
879
- #endif
880
-
881
- /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
882
- /* Define these for older versions so we can just write code the new way */
883
- #ifndef RSTRING_LEN
884
- # define RSTRING_LEN(x) RSTRING(x)->len
885
- #endif
886
- #ifndef RSTRING_PTR
887
- # define RSTRING_PTR(x) RSTRING(x)->ptr
888
- #endif
889
- #ifndef RSTRING_END
890
- # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
891
- #endif
892
- #ifndef RARRAY_LEN
893
- # define RARRAY_LEN(x) RARRAY(x)->len
894
- #endif
895
- #ifndef RARRAY_PTR
896
- # define RARRAY_PTR(x) RARRAY(x)->ptr
897
- #endif
898
- #ifndef RFLOAT_VALUE
899
- # define RFLOAT_VALUE(x) RFLOAT(x)->value
900
- #endif
901
- #ifndef DOUBLE2NUM
902
- # define DOUBLE2NUM(x) rb_float_new(x)
903
- #endif
904
- #ifndef RHASH_TBL
905
- # define RHASH_TBL(x) (RHASH(x)->tbl)
906
- #endif
907
- #ifndef RHASH_ITER_LEV
908
- # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
909
- #endif
910
- #ifndef RHASH_IFNONE
911
- # define RHASH_IFNONE(x) (RHASH(x)->ifnone)
912
- #endif
913
- #ifndef RHASH_SIZE
914
- # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
915
- #endif
916
- #ifndef RHASH_EMPTY_P
917
- # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
918
- #endif
919
- #ifndef RSTRUCT_LEN
920
- # define RSTRUCT_LEN(x) RSTRUCT(x)->len
921
- #endif
922
- #ifndef RSTRUCT_PTR
923
- # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
924
- #endif
925
-
926
-
927
-
928
- /*
929
- * Need to be very careful about how these macros are defined, especially
930
- * when compiling C++ code or C code with an ANSI C compiler.
931
- *
932
- * VALUEFUNC(f) is a macro used to typecast a C function that implements
933
- * a Ruby method so that it can be passed as an argument to API functions
934
- * like rb_define_method() and rb_define_singleton_method().
935
- *
936
- * VOIDFUNC(f) is a macro used to typecast a C function that implements
937
- * either the "mark" or "free" stuff for a Ruby Data object, so that it
938
- * can be passed as an argument to API functions like Data_Wrap_Struct()
939
- * and Data_Make_Struct().
940
- */
941
-
942
- #ifdef __cplusplus
943
- # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
944
- # define PROTECTFUNC(f) ((VALUE (*)()) f)
945
- # define VALUEFUNC(f) ((VALUE (*)()) f)
946
- # define VOIDFUNC(f) ((void (*)()) f)
947
- # else
948
- # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
949
- # define PROTECTFUNC(f) ((VALUE (*)()) f)
950
- # define VALUEFUNC(f) ((VALUE (*)()) f)
951
- # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
952
- # else /* These definitions should work for Ruby 1.7+ */
953
- # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
954
- # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
955
- # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
956
- # endif
957
- # endif
958
- #else
959
- # define VALUEFUNC(f) (f)
960
- # define VOIDFUNC(f) (f)
961
- #endif
962
-
963
- /* Don't use for expressions have side effect */
964
- #ifndef RB_STRING_VALUE
965
- #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
966
- #endif
967
- #ifndef StringValue
968
- #define StringValue(s) RB_STRING_VALUE(s)
969
- #endif
970
- #ifndef StringValuePtr
971
- #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
972
- #endif
973
- #ifndef StringValueLen
974
- #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
975
- #endif
976
- #ifndef SafeStringValue
977
- #define SafeStringValue(v) do {\
978
- StringValue(v);\
979
- rb_check_safe_str(v);\
980
- } while (0)
981
- #endif
982
-
983
- #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
984
- #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
985
- #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
986
- #endif
987
-
988
- static VALUE _mSWIG = Qnil;
989
-
990
- /* -----------------------------------------------------------------------------
991
- * error manipulation
992
- * ----------------------------------------------------------------------------- */
993
-
994
-
995
- /* Define some additional error types */
996
- #define SWIG_ObjectPreviouslyDeletedError -100
997
-
998
-
999
- /* Define custom exceptions for errors that do not map to existing Ruby
1000
- exceptions. Note this only works for C++ since a global cannot be
1001
- initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
1002
-
1003
- SWIGINTERN VALUE
1004
- getNullReferenceError(void) {
1005
- static int init = 0;
1006
- static VALUE rb_eNullReferenceError ;
1007
- if (!init) {
1008
- init = 1;
1009
- rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
- }
1011
- return rb_eNullReferenceError;
1012
- }
1013
-
1014
- SWIGINTERN VALUE
1015
- getObjectPreviouslyDeletedError(void) {
1016
- static int init = 0;
1017
- static VALUE rb_eObjectPreviouslyDeleted ;
1018
- if (!init) {
1019
- init = 1;
1020
- rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
- }
1022
- return rb_eObjectPreviouslyDeleted;
1023
- }
1024
-
1025
-
1026
- SWIGINTERN VALUE
1027
- SWIG_Ruby_ErrorType(int SWIG_code) {
1028
- VALUE type;
1029
- switch (SWIG_code) {
1030
- case SWIG_MemoryError:
1031
- type = rb_eNoMemError;
1032
- break;
1033
- case SWIG_IOError:
1034
- type = rb_eIOError;
1035
- break;
1036
- case SWIG_RuntimeError:
1037
- type = rb_eRuntimeError;
1038
- break;
1039
- case SWIG_IndexError:
1040
- type = rb_eIndexError;
1041
- break;
1042
- case SWIG_TypeError:
1043
- type = rb_eTypeError;
1044
- break;
1045
- case SWIG_DivisionByZero:
1046
- type = rb_eZeroDivError;
1047
- break;
1048
- case SWIG_OverflowError:
1049
- type = rb_eRangeError;
1050
- break;
1051
- case SWIG_SyntaxError:
1052
- type = rb_eSyntaxError;
1053
- break;
1054
- case SWIG_ValueError:
1055
- type = rb_eArgError;
1056
- break;
1057
- case SWIG_SystemError:
1058
- type = rb_eFatal;
1059
- break;
1060
- case SWIG_AttributeError:
1061
- type = rb_eRuntimeError;
1062
- break;
1063
- case SWIG_NullReferenceError:
1064
- type = getNullReferenceError();
1065
- break;
1066
- case SWIG_ObjectPreviouslyDeletedError:
1067
- type = getObjectPreviouslyDeletedError();
1068
- break;
1069
- case SWIG_UnknownError:
1070
- type = rb_eRuntimeError;
1071
- break;
1072
- default:
1073
- type = rb_eRuntimeError;
1074
- }
1075
- return type;
1076
- }
1077
-
1078
-
1079
- /* This function is called when a user inputs a wrong argument to
1080
- a method.
1081
- */
1082
- SWIGINTERN
1083
- const char* Ruby_Format_TypeError( const char* msg,
1084
- const char* type,
1085
- const char* name,
1086
- const int argn,
1087
- VALUE input )
1088
- {
1089
- char buf[128];
1090
- VALUE str;
1091
- VALUE asStr;
1092
- if ( msg && *msg )
1093
- {
1094
- str = rb_str_new2(msg);
1095
- }
1096
- else
1097
- {
1098
- str = rb_str_new(NULL, 0);
1099
- }
1100
-
1101
- str = rb_str_cat2( str, "Expected argument " );
1102
- sprintf( buf, "%d of type ", argn-1 );
1103
- str = rb_str_cat2( str, buf );
1104
- str = rb_str_cat2( str, type );
1105
- str = rb_str_cat2( str, ", but got " );
1106
- str = rb_str_cat2( str, rb_obj_classname(input) );
1107
- str = rb_str_cat2( str, " " );
1108
- asStr = rb_inspect(input);
1109
- if ( RSTRING_LEN(asStr) > 30 )
1110
- {
1111
- str = rb_str_cat( str, StringValuePtr(asStr), 30 );
1112
- str = rb_str_cat2( str, "..." );
1113
- }
1114
- else
1115
- {
1116
- str = rb_str_append( str, asStr );
1117
- }
1118
-
1119
- if ( name )
1120
- {
1121
- str = rb_str_cat2( str, "\n\tin SWIG method '" );
1122
- str = rb_str_cat2( str, name );
1123
- str = rb_str_cat2( str, "'" );
1124
- }
1125
-
1126
- return StringValuePtr( str );
1127
- }
1128
-
1129
- /* This function is called when an overloaded method fails */
1130
- SWIGINTERN
1131
- void Ruby_Format_OverloadedError(
1132
- const int argc,
1133
- const int maxargs,
1134
- const char* method,
1135
- const char* prototypes
1136
- )
1137
- {
1138
- const char* msg = "Wrong # of arguments";
1139
- if ( argc <= maxargs ) msg = "Wrong arguments";
1140
- rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
1141
- "Possible C/C++ prototypes are:\n%s",
1142
- msg, method, prototypes);
1143
- }
1144
-
1145
- /* -----------------------------------------------------------------------------
1146
- * rubytracking.swg
1147
- *
1148
- * This file contains support for tracking mappings from
1149
- * Ruby objects to C++ objects. This functionality is needed
1150
- * to implement mark functions for Ruby's mark and sweep
1151
- * garbage collector.
1152
- * ----------------------------------------------------------------------------- */
1153
-
1154
- #ifdef __cplusplus
1155
- extern "C" {
1156
- #endif
1157
-
1158
- /* Ruby 1.8 actually assumes the first case. */
1159
- #if SIZEOF_VOIDP == SIZEOF_LONG
1160
- # define SWIG2NUM(v) LONG2NUM((unsigned long)v)
1161
- # define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
1162
- #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
1163
- # define SWIG2NUM(v) LL2NUM((unsigned long long)v)
1164
- # define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
1165
- #else
1166
- # error sizeof(void*) is not the same as long or long long
1167
- #endif
1168
-
1169
-
1170
- /* Global Ruby hash table to store Trackings from C/C++
1171
- structs to Ruby Objects.
1172
- */
1173
- static VALUE swig_ruby_trackings = Qnil;
1174
-
1175
- /* Global variable that stores a reference to the ruby
1176
- hash table delete function. */
1177
- static ID swig_ruby_hash_delete;
1178
-
1179
- /* Setup a Ruby hash table to store Trackings */
1180
- SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1181
- /* Create a ruby hash table to store Trackings from C++
1182
- objects to Ruby objects. */
1183
-
1184
- /* Try to see if some other .so has already created a
1185
- tracking hash table, which we keep hidden in an instance var
1186
- in the SWIG module.
1187
- This is done to allow multiple DSOs to share the same
1188
- tracking table.
1189
- */
1190
- ID trackings_id = rb_intern( "@__trackings__" );
1191
- VALUE verbose = rb_gv_get("VERBOSE");
1192
- rb_gv_set("VERBOSE", Qfalse);
1193
- swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
1194
- rb_gv_set("VERBOSE", verbose);
1195
-
1196
- /* No, it hasn't. Create one ourselves */
1197
- if ( swig_ruby_trackings == Qnil )
1198
- {
1199
- swig_ruby_trackings = rb_hash_new();
1200
- rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
1201
- }
1202
-
1203
- /* Now store a reference to the hash table delete function
1204
- so that we only have to look it up once.*/
1205
- swig_ruby_hash_delete = rb_intern("delete");
1206
- }
1207
-
1208
- /* Get a Ruby number to reference a pointer */
1209
- SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
1210
- /* We cast the pointer to an unsigned long
1211
- and then store a reference to it using
1212
- a Ruby number object. */
1213
-
1214
- /* Convert the pointer to a Ruby number */
1215
- return SWIG2NUM(ptr);
1216
- }
1217
-
1218
- /* Get a Ruby number to reference an object */
1219
- SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
1220
- /* We cast the object to an unsigned long
1221
- and then store a reference to it using
1222
- a Ruby number object. */
1223
-
1224
- /* Convert the Object to a Ruby number */
1225
- return SWIG2NUM(object);
1226
- }
1227
-
1228
- /* Get a Ruby object from a previously stored reference */
1229
- SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
1230
- /* The provided Ruby number object is a reference
1231
- to the Ruby object we want.*/
1232
-
1233
- /* Convert the Ruby number to a Ruby object */
1234
- return NUM2SWIG(reference);
1235
- }
1236
-
1237
- /* Add a Tracking from a C/C++ struct to a Ruby object */
1238
- SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
1239
- /* In a Ruby hash table we store the pointer and
1240
- the associated Ruby object. The trick here is
1241
- that we cannot store the Ruby object directly - if
1242
- we do then it cannot be garbage collected. So
1243
- instead we typecast it as a unsigned long and
1244
- convert it to a Ruby number object.*/
1245
-
1246
- /* Get a reference to the pointer as a Ruby number */
1247
- VALUE key = SWIG_RubyPtrToReference(ptr);
1248
-
1249
- /* Get a reference to the Ruby object as a Ruby number */
1250
- VALUE value = SWIG_RubyObjectToReference(object);
1251
-
1252
- /* Store the mapping to the global hash table. */
1253
- rb_hash_aset(swig_ruby_trackings, key, value);
1254
- }
1255
-
1256
- /* Get the Ruby object that owns the specified C/C++ struct */
1257
- SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
1258
- /* Get a reference to the pointer as a Ruby number */
1259
- VALUE key = SWIG_RubyPtrToReference(ptr);
1260
-
1261
- /* Now lookup the value stored in the global hash table */
1262
- VALUE value = rb_hash_aref(swig_ruby_trackings, key);
1263
-
1264
- if (value == Qnil) {
1265
- /* No object exists - return nil. */
1266
- return Qnil;
1267
- }
1268
- else {
1269
- /* Convert this value to Ruby object */
1270
- return SWIG_RubyReferenceToObject(value);
1271
- }
1272
- }
1273
-
1274
- /* Remove a Tracking from a C/C++ struct to a Ruby object. It
1275
- is very important to remove objects once they are destroyed
1276
- since the same memory address may be reused later to create
1277
- a new object. */
1278
- SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
1279
- /* Get a reference to the pointer as a Ruby number */
1280
- VALUE key = SWIG_RubyPtrToReference(ptr);
1281
-
1282
- /* Delete the object from the hash table by calling Ruby's
1283
- do this we need to call the Hash.delete method.*/
1284
- rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
1285
- }
1286
-
1287
- /* This is a helper method that unlinks a Ruby object from its
1288
- underlying C++ object. This is needed if the lifetime of the
1289
- Ruby object is longer than the C++ object */
1290
- SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
1291
- VALUE object = SWIG_RubyInstanceFor(ptr);
1292
-
1293
- if (object != Qnil) {
1294
- DATA_PTR(object) = 0;
1295
- }
1296
- }
1297
-
1298
-
1299
- #ifdef __cplusplus
1300
- }
1301
- #endif
1302
-
1303
- /* -----------------------------------------------------------------------------
1304
- * Ruby API portion that goes into the runtime
1305
- * ----------------------------------------------------------------------------- */
1306
-
1307
- #ifdef __cplusplus
1308
- extern "C" {
1309
- #endif
1310
-
1311
- SWIGINTERN VALUE
1312
- SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1313
- if (NIL_P(target)) {
1314
- target = o;
1315
- } else {
1316
- if (TYPE(target) != T_ARRAY) {
1317
- VALUE o2 = target;
1318
- target = rb_ary_new();
1319
- rb_ary_push(target, o2);
1320
- }
1321
- rb_ary_push(target, o);
1322
- }
1323
- return target;
1324
- }
1325
-
1326
- /* For ruby1.8.4 and earlier. */
1327
- #ifndef RUBY_INIT_STACK
1328
- RUBY_EXTERN void Init_stack(VALUE* addr);
1329
- # define RUBY_INIT_STACK \
1330
- VALUE variable_in_this_stack_frame; \
1331
- Init_stack(&variable_in_this_stack_frame);
1332
- #endif
1333
-
1334
-
1335
- #ifdef __cplusplus
1336
- }
1337
- #endif
1338
-
1339
-
1340
- /* -----------------------------------------------------------------------------
1341
- * rubyrun.swg
1342
- *
1343
- * This file contains the runtime support for Ruby modules
1344
- * and includes code for managing global variables and pointer
1345
- * type checking.
1346
- * ----------------------------------------------------------------------------- */
1347
-
1348
- /* For backward compatibility only */
1349
- #define SWIG_POINTER_EXCEPTION 0
1350
-
1351
- /* for raw pointers */
1352
- #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1353
- #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1354
- #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
1355
- #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
1356
- #define swig_owntype ruby_owntype
1357
-
1358
- /* for raw packed data */
1359
- #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
1360
- #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
1361
-
1362
- /* for class or struct pointers */
1363
- #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1364
- #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1365
-
1366
- /* for C or C++ function pointers */
1367
- #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
1368
- #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
1369
-
1370
- /* for C++ member pointers, ie, member methods */
1371
- #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
1372
- #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
1373
-
1374
-
1375
- /* Runtime API */
1376
-
1377
- #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
1378
- #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
1379
-
1380
-
1381
- /* Error manipulation */
1382
-
1383
- #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
1384
- #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
1385
- #define SWIG_fail goto fail
1386
-
1387
-
1388
- /* Ruby-specific SWIG API */
1389
-
1390
- #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
1391
- #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
1392
- #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
1393
- #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
1394
- #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
1395
-
1396
- #include "assert.h"
1397
-
1398
- /* -----------------------------------------------------------------------------
1399
- * pointers/data manipulation
1400
- * ----------------------------------------------------------------------------- */
1401
-
1402
- #ifdef __cplusplus
1403
- extern "C" {
1404
- #endif
1405
-
1406
- typedef struct {
1407
- VALUE klass;
1408
- VALUE mImpl;
1409
- void (*mark)(void *);
1410
- void (*destroy)(void *);
1411
- int trackObjects;
1412
- } swig_class;
1413
-
1414
-
1415
- /* Global pointer used to keep some internal SWIG stuff */
1416
- static VALUE _cSWIG_Pointer = Qnil;
1417
- static VALUE swig_runtime_data_type_pointer = Qnil;
1418
-
1419
- /* Global IDs used to keep some internal SWIG stuff */
1420
- static ID swig_arity_id = 0;
1421
- static ID swig_call_id = 0;
1422
-
1423
- /*
1424
- If your swig extension is to be run within an embedded ruby and has
1425
- director callbacks, you should set -DRUBY_EMBEDDED during compilation.
1426
- This will reset ruby's stack frame on each entry point from the main
1427
- program the first time a virtual director function is invoked (in a
1428
- non-recursive way).
1429
- If this is not done, you run the risk of Ruby trashing the stack.
1430
- */
1431
-
1432
- #ifdef RUBY_EMBEDDED
1433
-
1434
- # define SWIG_INIT_STACK \
1435
- if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
1436
- ++swig_virtual_calls;
1437
- # define SWIG_RELEASE_STACK --swig_virtual_calls;
1438
- # define Ruby_DirectorTypeMismatchException(x) \
1439
- rb_raise( rb_eTypeError, "%s", x ); return c_result;
1440
-
1441
- static unsigned int swig_virtual_calls = 0;
1442
-
1443
- #else /* normal non-embedded extension */
1444
-
1445
- # define SWIG_INIT_STACK
1446
- # define SWIG_RELEASE_STACK
1447
- # define Ruby_DirectorTypeMismatchException(x) \
1448
- throw Swig::DirectorTypeMismatchException( x );
1449
-
1450
- #endif /* RUBY_EMBEDDED */
1451
-
1452
-
1453
- SWIGRUNTIME VALUE
1454
- getExceptionClass(void) {
1455
- static int init = 0;
1456
- static VALUE rubyExceptionClass ;
1457
- if (!init) {
1458
- init = 1;
1459
- rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1460
- }
1461
- return rubyExceptionClass;
1462
- }
1463
-
1464
- /* This code checks to see if the Ruby object being raised as part
1465
- of an exception inherits from the Ruby class Exception. If so,
1466
- the object is simply returned. If not, then a new Ruby exception
1467
- object is created and that will be returned to Ruby.*/
1468
- SWIGRUNTIME VALUE
1469
- SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1470
- VALUE exceptionClass = getExceptionClass();
1471
- if (rb_obj_is_kind_of(obj, exceptionClass)) {
1472
- return obj;
1473
- } else {
1474
- return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
1475
- }
1476
- }
1477
-
1478
- /* Initialize Ruby runtime support */
1479
- SWIGRUNTIME void
1480
- SWIG_Ruby_InitRuntime(void)
1481
- {
1482
- if (_mSWIG == Qnil) {
1483
- _mSWIG = rb_define_module("SWIG");
1484
- swig_call_id = rb_intern("call");
1485
- swig_arity_id = rb_intern("arity");
1486
- }
1487
- }
1488
-
1489
- /* Define Ruby class for C type */
1490
- SWIGRUNTIME void
1491
- SWIG_Ruby_define_class(swig_type_info *type)
1492
- {
1493
- VALUE klass;
1494
- char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1495
- sprintf(klass_name, "TYPE%s", type->name);
1496
- if (NIL_P(_cSWIG_Pointer)) {
1497
- _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1498
- rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1499
- }
1500
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1501
- free((void *) klass_name);
1502
- }
1503
-
1504
- /* Create a new pointer object */
1505
- SWIGRUNTIME VALUE
1506
- SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1507
- {
1508
- int own = flags & SWIG_POINTER_OWN;
1509
- int track;
1510
- char *klass_name;
1511
- swig_class *sklass;
1512
- VALUE klass;
1513
- VALUE obj;
1514
-
1515
- if (!ptr)
1516
- return Qnil;
1517
-
1518
- if (type->clientdata) {
1519
- sklass = (swig_class *) type->clientdata;
1520
-
1521
- /* Are we tracking this class and have we already returned this Ruby object? */
1522
- track = sklass->trackObjects;
1523
- if (track) {
1524
- obj = SWIG_RubyInstanceFor(ptr);
1525
-
1526
- /* Check the object's type and make sure it has the correct type.
1527
- It might not in cases where methods do things like
1528
- downcast methods. */
1529
- if (obj != Qnil) {
1530
- VALUE value = rb_iv_get(obj, "@__swigtype__");
1531
- char* type_name = RSTRING_PTR(value);
1532
-
1533
- if (strcmp(type->name, type_name) == 0) {
1534
- return obj;
1535
- }
1536
- }
1537
- }
1538
-
1539
- /* Create a new Ruby object */
1540
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1541
- ( own ? VOIDFUNC(sklass->destroy) :
1542
- (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1543
- ), ptr);
1544
-
1545
- /* If tracking is on for this class then track this object. */
1546
- if (track) {
1547
- SWIG_RubyAddTracking(ptr, obj);
1548
- }
1549
- } else {
1550
- klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1551
- sprintf(klass_name, "TYPE%s", type->name);
1552
- klass = rb_const_get(_mSWIG, rb_intern(klass_name));
1553
- free((void *) klass_name);
1554
- obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1555
- }
1556
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1557
-
1558
- return obj;
1559
- }
1560
-
1561
- /* Create a new class instance (always owned) */
1562
- SWIGRUNTIME VALUE
1563
- SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1564
- {
1565
- VALUE obj;
1566
- swig_class *sklass = (swig_class *) type->clientdata;
1567
- obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1568
- rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1569
- return obj;
1570
- }
1571
-
1572
- /* Get type mangle from class name */
1573
- SWIGRUNTIMEINLINE char *
1574
- SWIG_Ruby_MangleStr(VALUE obj)
1575
- {
1576
- VALUE stype = rb_iv_get(obj, "@__swigtype__");
1577
- return StringValuePtr(stype);
1578
- }
1579
-
1580
- /* Acquire a pointer value */
1581
- typedef void (*ruby_owntype)(void*);
1582
-
1583
- SWIGRUNTIME ruby_owntype
1584
- SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
1585
- if (obj) {
1586
- ruby_owntype oldown = RDATA(obj)->dfree;
1587
- RDATA(obj)->dfree = own;
1588
- return oldown;
1589
- } else {
1590
- return 0;
1591
- }
1592
- }
1593
-
1594
- /* Convert a pointer value */
1595
- SWIGRUNTIME int
1596
- SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
1597
- {
1598
- char *c;
1599
- swig_cast_info *tc;
1600
- void *vptr = 0;
1601
-
1602
- /* Grab the pointer */
1603
- if (NIL_P(obj)) {
1604
- *ptr = 0;
1605
- return SWIG_OK;
1606
- } else {
1607
- if (TYPE(obj) != T_DATA) {
1608
- return SWIG_ERROR;
1609
- }
1610
- Data_Get_Struct(obj, void, vptr);
1611
- }
1612
-
1613
- if (own) *own = RDATA(obj)->dfree;
1614
-
1615
- /* Check to see if the input object is giving up ownership
1616
- of the underlying C struct or C++ object. If so then we
1617
- need to reset the destructor since the Ruby object no
1618
- longer owns the underlying C++ object.*/
1619
- if (flags & SWIG_POINTER_DISOWN) {
1620
- /* Is tracking on for this class? */
1621
- int track = 0;
1622
- if (ty && ty->clientdata) {
1623
- swig_class *sklass = (swig_class *) ty->clientdata;
1624
- track = sklass->trackObjects;
1625
- }
1626
-
1627
- if (track) {
1628
- /* We are tracking objects for this class. Thus we change the destructor
1629
- * to SWIG_RubyRemoveTracking. This allows us to
1630
- * remove the mapping from the C++ to Ruby object
1631
- * when the Ruby object is garbage collected. If we don't
1632
- * do this, then it is possible we will return a reference
1633
- * to a Ruby object that no longer exists thereby crashing Ruby. */
1634
- RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
1635
- } else {
1636
- RDATA(obj)->dfree = 0;
1637
- }
1638
- }
1639
-
1640
- /* Do type-checking if type info was provided */
1641
- if (ty) {
1642
- if (ty->clientdata) {
1643
- if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
1644
- if (vptr == 0) {
1645
- /* The object has already been deleted */
1646
- return SWIG_ObjectPreviouslyDeletedError;
1647
- }
1648
- *ptr = vptr;
1649
- return SWIG_OK;
1650
- }
1651
- }
1652
- if ((c = SWIG_MangleStr(obj)) == NULL) {
1653
- return SWIG_ERROR;
1654
- }
1655
- tc = SWIG_TypeCheck(c, ty);
1656
- if (!tc) {
1657
- return SWIG_ERROR;
1658
- } else {
1659
- int newmemory = 0;
1660
- *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
1661
- assert(!newmemory); /* newmemory handling not yet implemented */
1662
- }
1663
- } else {
1664
- *ptr = vptr;
1665
- }
1666
-
1667
- return SWIG_OK;
1668
- }
1669
-
1670
- /* Check convert */
1671
- SWIGRUNTIMEINLINE int
1672
- SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
1673
- {
1674
- char *c = SWIG_MangleStr(obj);
1675
- if (!c) return 0;
1676
- return SWIG_TypeCheck(c,ty) != 0;
1677
- }
1678
-
1679
- SWIGRUNTIME VALUE
1680
- SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1681
- char result[1024];
1682
- char *r = result;
1683
- if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1684
- *(r++) = '_';
1685
- r = SWIG_PackData(r, ptr, sz);
1686
- strcpy(r, type->name);
1687
- return rb_str_new2(result);
1688
- }
1689
-
1690
- /* Convert a packed value value */
1691
- SWIGRUNTIME int
1692
- SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1693
- swig_cast_info *tc;
1694
- const char *c;
1695
-
1696
- if (TYPE(obj) != T_STRING) goto type_error;
1697
- c = StringValuePtr(obj);
1698
- /* Pointer values must start with leading underscore */
1699
- if (*c != '_') goto type_error;
1700
- c++;
1701
- c = SWIG_UnpackData(c, ptr, sz);
1702
- if (ty) {
1703
- tc = SWIG_TypeCheck(c, ty);
1704
- if (!tc) goto type_error;
1705
- }
1706
- return SWIG_OK;
1707
-
1708
- type_error:
1709
- return SWIG_ERROR;
1710
- }
1711
-
1712
- SWIGRUNTIME swig_module_info *
1713
- SWIG_Ruby_GetModule(void)
1714
- {
1715
- VALUE pointer;
1716
- swig_module_info *ret = 0;
1717
- VALUE verbose = rb_gv_get("VERBOSE");
1718
-
1719
- /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
1720
- rb_gv_set("VERBOSE", Qfalse);
1721
-
1722
- /* first check if pointer already created */
1723
- pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
1724
- if (pointer != Qnil) {
1725
- Data_Get_Struct(pointer, swig_module_info, ret);
1726
- }
1727
-
1728
- /* reinstate warnings */
1729
- rb_gv_set("VERBOSE", verbose);
1730
- return ret;
1731
- }
1732
-
1733
- SWIGRUNTIME void
1734
- SWIG_Ruby_SetModule(swig_module_info *pointer)
1735
- {
1736
- /* register a new class */
1737
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1738
- /* create and store the structure pointer to a global variable */
1739
- swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1740
- rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1741
- }
1742
-
1743
- /* This function can be used to check whether a proc or method or similarly
1744
- callable function has been passed. Usually used in a %typecheck, like:
1745
-
1746
- %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
1747
- $result = SWIG_Ruby_isCallable( $input );
1748
- }
1749
- */
1750
- SWIGINTERN
1751
- int SWIG_Ruby_isCallable( VALUE proc )
1752
- {
1753
- if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
1754
- return 1;
1755
- return 0;
1756
- }
1757
-
1758
- /* This function can be used to check the arity (number of arguments)
1759
- a proc or method can take. Usually used in a %typecheck.
1760
- Valid arities will be that equal to minimal or those < 0
1761
- which indicate a variable number of parameters at the end.
1762
- */
1763
- SWIGINTERN
1764
- int SWIG_Ruby_arity( VALUE proc, int minimal )
1765
- {
1766
- if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
1767
- {
1768
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1769
- int arity = NUM2INT(num);
1770
- if ( arity < 0 && (arity+1) < -minimal ) return 1;
1771
- if ( arity == minimal ) return 1;
1772
- return 1;
1773
- }
1774
- return 0;
1775
- }
1776
-
1777
-
1778
- #ifdef __cplusplus
1779
- }
1780
- #endif
1781
-
1782
-
1783
-
1784
- #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1785
-
1786
- #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1787
-
1788
-
1789
-
1790
- /* -------- TYPES TABLE (BEGIN) -------- */
1791
-
1792
- #define SWIGTYPE_p_char swig_types[0]
1793
- static swig_type_info *swig_types[2];
1794
- static swig_module_info swig_module = {swig_types, 1, 0, 0, 0, 0};
1795
- #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1796
- #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1797
-
1798
- /* -------- TYPES TABLE (END) -------- */
1799
-
1800
- #define SWIG_init Init_Calendar
1801
- #define SWIG_name "Rho::Calendar"
1802
-
1803
- static VALUE mCalendar;
1804
-
1805
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1806
- #define SWIG_RUBY_THREAD_END_BLOCK
1807
-
1808
-
1809
- #define SWIGVERSION 0x020000
1810
- #define SWIG_VERSION SWIGVERSION
1811
-
1812
-
1813
- #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1814
- #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1815
-
1816
-
1817
- #include "ext/rho/rhoruby.h"
1818
-
1819
- extern VALUE event_fetch(VALUE params);
1820
- #define fetch event_fetch
1821
- extern VALUE event_fetch_by_id(const char *id);
1822
- #define fetch_by_id event_fetch_by_id
1823
- extern const char* event_save(VALUE event);
1824
- #define save event_save
1825
- extern void event_delete(const char *id);
1826
- #define delete event_delete
1827
-
1828
-
1829
- SWIGINTERN swig_type_info*
1830
- SWIG_pchar_descriptor(void)
1831
- {
1832
- static int init = 0;
1833
- static swig_type_info* info = 0;
1834
- if (!init) {
1835
- info = SWIG_TypeQuery("_p_char");
1836
- init = 1;
1837
- }
1838
- return info;
1839
- }
1840
-
1841
-
1842
- SWIGINTERN int
1843
- SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1844
- {
1845
- if (TYPE(obj) == T_STRING) {
1846
- #if defined(StringValuePtr)
1847
- char *cstr = StringValuePtr(obj);
1848
- #else
1849
- char *cstr = STR2CSTR(obj);
1850
- #endif
1851
- size_t size = RSTRING_LEN(obj) + 1;
1852
- if (cptr) {
1853
- if (alloc) {
1854
- if (*alloc == SWIG_NEWOBJ) {
1855
- *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1856
- } else {
1857
- *cptr = cstr;
1858
- *alloc = SWIG_OLDOBJ;
1859
- }
1860
- }
1861
- }
1862
- if (psize) *psize = size;
1863
- return SWIG_OK;
1864
- } else {
1865
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1866
- if (pchar_descriptor) {
1867
- void* vptr = 0;
1868
- if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
1869
- if (cptr) *cptr = (char *)vptr;
1870
- if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
1871
- if (alloc) *alloc = SWIG_OLDOBJ;
1872
- return SWIG_OK;
1873
- }
1874
- }
1875
- }
1876
- return SWIG_TypeError;
1877
- }
1878
-
1879
-
1880
-
1881
-
1882
-
1883
- SWIGINTERNINLINE VALUE
1884
- SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1885
- {
1886
- if (carray) {
1887
- if (size > LONG_MAX) {
1888
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1889
- return pchar_descriptor ?
1890
- SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil;
1891
- } else {
1892
- return rb_str_new(carray, (long)(size));
1893
- }
1894
- } else {
1895
- return Qnil;
1896
- }
1897
- }
1898
-
1899
-
1900
- SWIGINTERNINLINE VALUE
1901
- SWIG_FromCharPtr(const char *cptr)
1902
- {
1903
- return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
1904
- }
1905
-
1906
- SWIGINTERN VALUE
1907
- _wrap_fetch(int argc, VALUE *argv, VALUE self) {
1908
- VALUE arg1 = (VALUE) 0 ;
1909
- VALUE result;
1910
- VALUE vresult = Qnil;
1911
-
1912
- if ((argc < 1) || (argc > 1)) {
1913
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1914
- }
1915
- arg1 = argv[0];
1916
- {
1917
- Check_Type(arg1, T_HASH);
1918
- }
1919
- result = (VALUE)fetch(arg1);
1920
- vresult = result;
1921
- return vresult;
1922
- fail:
1923
- return Qnil;
1924
- }
1925
-
1926
-
1927
- SWIGINTERN VALUE
1928
- _wrap_fetch_by_id(int argc, VALUE *argv, VALUE self) {
1929
- char *arg1 = (char *) 0 ;
1930
- int res1 ;
1931
- char *buf1 = 0 ;
1932
- int alloc1 = 0 ;
1933
- VALUE result;
1934
- VALUE vresult = Qnil;
1935
-
1936
- if ((argc < 1) || (argc > 1)) {
1937
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1938
- }
1939
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
1940
- if (!SWIG_IsOK(res1)) {
1941
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","fetch_by_id", 1, argv[0] ));
1942
- }
1943
- arg1 = (char *)(buf1);
1944
- result = (VALUE)fetch_by_id((char const *)arg1);
1945
- vresult = result;
1946
- if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1947
- return vresult;
1948
- fail:
1949
- if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1950
- return Qnil;
1951
- }
1952
-
1953
-
1954
- SWIGINTERN VALUE
1955
- _wrap_save(int argc, VALUE *argv, VALUE self) {
1956
- VALUE arg1 = (VALUE) 0 ;
1957
- char *result = 0 ;
1958
- VALUE vresult = Qnil;
1959
-
1960
- if ((argc < 1) || (argc > 1)) {
1961
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1962
- }
1963
- arg1 = argv[0];
1964
- {
1965
- Check_Type(arg1, T_HASH);
1966
- }
1967
- result = (char *)save(arg1);
1968
- vresult = SWIG_FromCharPtr((const char *)result);
1969
- return vresult;
1970
- fail:
1971
- return Qnil;
1972
- }
1973
-
1974
-
1975
- SWIGINTERN VALUE
1976
- _wrap_delete(int argc, VALUE *argv, VALUE self) {
1977
- char *arg1 = (char *) 0 ;
1978
- int res1 ;
1979
- char *buf1 = 0 ;
1980
- int alloc1 = 0 ;
1981
-
1982
- if ((argc < 1) || (argc > 1)) {
1983
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1984
- }
1985
- res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
1986
- if (!SWIG_IsOK(res1)) {
1987
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","delete", 1, argv[0] ));
1988
- }
1989
- arg1 = (char *)(buf1);
1990
- delete((char const *)arg1);
1991
- if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1992
- return Qnil;
1993
- fail:
1994
- if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1995
- return Qnil;
1996
- }
1997
-
1998
-
1999
-
2000
- /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2001
-
2002
- static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
2003
-
2004
- static swig_type_info *swig_type_initial[] = {
2005
- &_swigt__p_char,
2006
- };
2007
-
2008
- static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
2009
-
2010
- static swig_cast_info *swig_cast_initial[] = {
2011
- _swigc__p_char,
2012
- };
2013
-
2014
-
2015
- /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2016
-
2017
- /* -----------------------------------------------------------------------------
2018
- * Type initialization:
2019
- * This problem is tough by the requirement that no dynamic
2020
- * memory is used. Also, since swig_type_info structures store pointers to
2021
- * swig_cast_info structures and swig_cast_info structures store pointers back
2022
- * to swig_type_info structures, we need some lookup code at initialization.
2023
- * The idea is that swig generates all the structures that are needed.
2024
- * The runtime then collects these partially filled structures.
2025
- * The SWIG_InitializeModule function takes these initial arrays out of
2026
- * swig_module, and does all the lookup, filling in the swig_module.types
2027
- * array with the correct data and linking the correct swig_cast_info
2028
- * structures together.
2029
- *
2030
- * The generated swig_type_info structures are assigned staticly to an initial
2031
- * array. We just loop through that array, and handle each type individually.
2032
- * First we lookup if this type has been already loaded, and if so, use the
2033
- * loaded structure instead of the generated one. Then we have to fill in the
2034
- * cast linked list. The cast data is initially stored in something like a
2035
- * two-dimensional array. Each row corresponds to a type (there are the same
2036
- * number of rows as there are in the swig_type_initial array). Each entry in
2037
- * a column is one of the swig_cast_info structures for that type.
2038
- * The cast_initial array is actually an array of arrays, because each row has
2039
- * a variable number of columns. So to actually build the cast linked list,
2040
- * we find the array of casts associated with the type, and loop through it
2041
- * adding the casts to the list. The one last trick we need to do is making
2042
- * sure the type pointer in the swig_cast_info struct is correct.
2043
- *
2044
- * First off, we lookup the cast->type name to see if it is already loaded.
2045
- * There are three cases to handle:
2046
- * 1) If the cast->type has already been loaded AND the type we are adding
2047
- * casting info to has not been loaded (it is in this module), THEN we
2048
- * replace the cast->type pointer with the type pointer that has already
2049
- * been loaded.
2050
- * 2) If BOTH types (the one we are adding casting info to, and the
2051
- * cast->type) are loaded, THEN the cast info has already been loaded by
2052
- * the previous module so we just ignore it.
2053
- * 3) Finally, if cast->type has not already been loaded, then we add that
2054
- * swig_cast_info to the linked list (because the cast->type) pointer will
2055
- * be correct.
2056
- * ----------------------------------------------------------------------------- */
2057
-
2058
- #ifdef __cplusplus
2059
- extern "C" {
2060
- #if 0
2061
- } /* c-mode */
2062
- #endif
2063
- #endif
2064
-
2065
- #if 0
2066
- #define SWIGRUNTIME_DEBUG
2067
- #endif
2068
-
2069
-
2070
- SWIGRUNTIME void
2071
- SWIG_InitializeModule(void *clientdata) {
2072
- size_t i;
2073
- swig_module_info *module_head, *iter;
2074
- int found, init;
2075
-
2076
- clientdata = clientdata;
2077
-
2078
- /* check to see if the circular list has been setup, if not, set it up */
2079
- if (swig_module.next==0) {
2080
- /* Initialize the swig_module */
2081
- swig_module.type_initial = swig_type_initial;
2082
- swig_module.cast_initial = swig_cast_initial;
2083
- swig_module.next = &swig_module;
2084
- init = 1;
2085
- } else {
2086
- init = 0;
2087
- }
2088
-
2089
- /* Try and load any already created modules */
2090
- module_head = SWIG_GetModule(clientdata);
2091
- if (!module_head) {
2092
- /* This is the first module loaded for this interpreter */
2093
- /* so set the swig module into the interpreter */
2094
- SWIG_SetModule(clientdata, &swig_module);
2095
- module_head = &swig_module;
2096
- } else {
2097
- /* the interpreter has loaded a SWIG module, but has it loaded this one? */
2098
- found=0;
2099
- iter=module_head;
2100
- do {
2101
- if (iter==&swig_module) {
2102
- found=1;
2103
- break;
2104
- }
2105
- iter=iter->next;
2106
- } while (iter!= module_head);
2107
-
2108
- /* if the is found in the list, then all is done and we may leave */
2109
- if (found) return;
2110
- /* otherwise we must add out module into the list */
2111
- swig_module.next = module_head->next;
2112
- module_head->next = &swig_module;
2113
- }
2114
-
2115
- /* When multiple interpeters are used, a module could have already been initialized in
2116
- a different interpreter, but not yet have a pointer in this interpreter.
2117
- In this case, we do not want to continue adding types... everything should be
2118
- set up already */
2119
- if (init == 0) return;
2120
-
2121
- /* Now work on filling in swig_module.types */
2122
- #ifdef SWIGRUNTIME_DEBUG
2123
- printf("SWIG_InitializeModule: size %d\n", swig_module.size);
2124
- #endif
2125
- for (i = 0; i < swig_module.size; ++i) {
2126
- swig_type_info *type = 0;
2127
- swig_type_info *ret;
2128
- swig_cast_info *cast;
2129
-
2130
- #ifdef SWIGRUNTIME_DEBUG
2131
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
2132
- #endif
2133
-
2134
- /* if there is another module already loaded */
2135
- if (swig_module.next != &swig_module) {
2136
- type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
2137
- }
2138
- if (type) {
2139
- /* Overwrite clientdata field */
2140
- #ifdef SWIGRUNTIME_DEBUG
2141
- printf("SWIG_InitializeModule: found type %s\n", type->name);
2142
- #endif
2143
- if (swig_module.type_initial[i]->clientdata) {
2144
- type->clientdata = swig_module.type_initial[i]->clientdata;
2145
- #ifdef SWIGRUNTIME_DEBUG
2146
- printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
2147
- #endif
2148
- }
2149
- } else {
2150
- type = swig_module.type_initial[i];
2151
- }
2152
-
2153
- /* Insert casting types */
2154
- cast = swig_module.cast_initial[i];
2155
- while (cast->type) {
2156
-
2157
- /* Don't need to add information already in the list */
2158
- ret = 0;
2159
- #ifdef SWIGRUNTIME_DEBUG
2160
- printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
2161
- #endif
2162
- if (swig_module.next != &swig_module) {
2163
- ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
2164
- #ifdef SWIGRUNTIME_DEBUG
2165
- if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
2166
- #endif
2167
- }
2168
- if (ret) {
2169
- if (type == swig_module.type_initial[i]) {
2170
- #ifdef SWIGRUNTIME_DEBUG
2171
- printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
2172
- #endif
2173
- cast->type = ret;
2174
- ret = 0;
2175
- } else {
2176
- /* Check for casting already in the list */
2177
- swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
2178
- #ifdef SWIGRUNTIME_DEBUG
2179
- if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
2180
- #endif
2181
- if (!ocast) ret = 0;
2182
- }
2183
- }
2184
-
2185
- if (!ret) {
2186
- #ifdef SWIGRUNTIME_DEBUG
2187
- printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
2188
- #endif
2189
- if (type->cast) {
2190
- type->cast->prev = cast;
2191
- cast->next = type->cast;
2192
- }
2193
- type->cast = cast;
2194
- }
2195
- cast++;
2196
- }
2197
- /* Set entry in modules->types array equal to the type */
2198
- swig_module.types[i] = type;
2199
- }
2200
- swig_module.types[i] = 0;
2201
-
2202
- #ifdef SWIGRUNTIME_DEBUG
2203
- printf("**** SWIG_InitializeModule: Cast List ******\n");
2204
- for (i = 0; i < swig_module.size; ++i) {
2205
- int j = 0;
2206
- swig_cast_info *cast = swig_module.cast_initial[i];
2207
- printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
2208
- while (cast->type) {
2209
- printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
2210
- cast++;
2211
- ++j;
2212
- }
2213
- printf("---- Total casts: %d\n",j);
2214
- }
2215
- printf("**** SWIG_InitializeModule: Cast List ******\n");
2216
- #endif
2217
- }
2218
-
2219
- /* This function will propagate the clientdata field of type to
2220
- * any new swig_type_info structures that have been added into the list
2221
- * of equivalent types. It is like calling
2222
- * SWIG_TypeClientData(type, clientdata) a second time.
2223
- */
2224
- SWIGRUNTIME void
2225
- SWIG_PropagateClientData(void) {
2226
- size_t i;
2227
- swig_cast_info *equiv;
2228
- static int init_run = 0;
2229
-
2230
- if (init_run) return;
2231
- init_run = 1;
2232
-
2233
- for (i = 0; i < swig_module.size; i++) {
2234
- if (swig_module.types[i]->clientdata) {
2235
- equiv = swig_module.types[i]->cast;
2236
- while (equiv) {
2237
- if (!equiv->converter) {
2238
- if (equiv->type && !equiv->type->clientdata)
2239
- SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
2240
- }
2241
- equiv = equiv->next;
2242
- }
2243
- }
2244
- }
2245
- }
2246
-
2247
- #ifdef __cplusplus
2248
- #if 0
2249
- { /* c-mode */
2250
- #endif
2251
- }
2252
- #endif
2253
-
2254
- /*
2255
-
2256
- */
2257
- #ifdef __cplusplus
2258
- extern "C"
2259
- #endif
2260
- SWIGEXPORT void Init_Calendar(void) {
2261
- size_t i;
2262
-
2263
- SWIG_InitRuntime();
2264
- mCalendar = rb_define_module("Rho");
2265
- mCalendar = rb_define_module_under(mCalendar, "Calendar");
2266
-
2267
- SWIG_InitializeModule(0);
2268
- for (i = 0; i < swig_module.size; i++) {
2269
- SWIG_define_class(swig_module.types[i]);
2270
- }
2271
-
2272
- SWIG_RubyInitializeTrackings();
2273
- rb_define_module_function(mCalendar, "fetch", _wrap_fetch, -1);
2274
- rb_define_module_function(mCalendar, "fetch_by_id", _wrap_fetch_by_id, -1);
2275
- rb_define_module_function(mCalendar, "save", _wrap_save, -1);
2276
- rb_define_module_function(mCalendar, "delete", _wrap_delete, -1);
2277
- }
2278
-
1
+ /* ----------------------------------------------------------------------------
2
+ * This file was automatically generated by SWIG (http://www.swig.org).
3
+ * Version 2.0.4
4
+ *
5
+ * This file is not intended to be easily readable and contains a number of
6
+ * coding conventions designed to improve portability and efficiency. Do not make
7
+ * changes to this file unless you know what you are doing--modify the SWIG
8
+ * interface file instead.
9
+ * ----------------------------------------------------------------------------- */
10
+
11
+ #define SWIGRUBY
12
+
13
+ /* -----------------------------------------------------------------------------
14
+ * This section contains generic SWIG labels for method/variable
15
+ * declarations/attributes, and other compiler dependent labels.
16
+ * ----------------------------------------------------------------------------- */
17
+
18
+ /* template workaround for compilers that cannot correctly implement the C++ standard */
19
+ #ifndef SWIGTEMPLATEDISAMBIGUATOR
20
+ # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
21
+ # define SWIGTEMPLATEDISAMBIGUATOR template
22
+ # elif defined(__HP_aCC)
23
+ /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
24
+ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
25
+ # define SWIGTEMPLATEDISAMBIGUATOR template
26
+ # else
27
+ # define SWIGTEMPLATEDISAMBIGUATOR
28
+ # endif
29
+ #endif
30
+
31
+ /* inline attribute */
32
+ #ifndef SWIGINLINE
33
+ # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
34
+ # define SWIGINLINE inline
35
+ # else
36
+ # define SWIGINLINE
37
+ # endif
38
+ #endif
39
+
40
+ /* attribute recognised by some compilers to avoid 'unused' warnings */
41
+ #ifndef SWIGUNUSED
42
+ # if defined(__GNUC__)
43
+ # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
44
+ # define SWIGUNUSED __attribute__ ((__unused__))
45
+ # else
46
+ # define SWIGUNUSED
47
+ # endif
48
+ # elif defined(__ICC)
49
+ # define SWIGUNUSED __attribute__ ((__unused__))
50
+ # else
51
+ # define SWIGUNUSED
52
+ # endif
53
+ #endif
54
+
55
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
56
+ # if defined(_MSC_VER)
57
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
58
+ # endif
59
+ #endif
60
+
61
+ #ifndef SWIGUNUSEDPARM
62
+ # ifdef __cplusplus
63
+ # define SWIGUNUSEDPARM(p)
64
+ # else
65
+ # define SWIGUNUSEDPARM(p) p SWIGUNUSED
66
+ # endif
67
+ #endif
68
+
69
+ /* internal SWIG method */
70
+ #ifndef SWIGINTERN
71
+ # define SWIGINTERN static SWIGUNUSED
72
+ #endif
73
+
74
+ /* internal inline SWIG method */
75
+ #ifndef SWIGINTERNINLINE
76
+ # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
77
+ #endif
78
+
79
+ /* exporting methods */
80
+ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
81
+ # ifndef GCC_HASCLASSVISIBILITY
82
+ # define GCC_HASCLASSVISIBILITY
83
+ # endif
84
+ #endif
85
+
86
+ #ifndef SWIGEXPORT
87
+ # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
88
+ # if defined(STATIC_LINKED)
89
+ # define SWIGEXPORT
90
+ # else
91
+ # define SWIGEXPORT __declspec(dllexport)
92
+ # endif
93
+ # else
94
+ # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
95
+ # define SWIGEXPORT __attribute__ ((visibility("default")))
96
+ # else
97
+ # define SWIGEXPORT
98
+ # endif
99
+ # endif
100
+ #endif
101
+
102
+ /* calling conventions for Windows */
103
+ #ifndef SWIGSTDCALL
104
+ # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
105
+ # define SWIGSTDCALL __stdcall
106
+ # else
107
+ # define SWIGSTDCALL
108
+ # endif
109
+ #endif
110
+
111
+ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
112
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
113
+ # define _CRT_SECURE_NO_DEPRECATE
114
+ #endif
115
+
116
+ /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
117
+ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
118
+ # define _SCL_SECURE_NO_DEPRECATE
119
+ #endif
120
+
121
+
122
+ /* -----------------------------------------------------------------------------
123
+ * This section contains generic SWIG labels for method/variable
124
+ * declarations/attributes, and other compiler dependent labels.
125
+ * ----------------------------------------------------------------------------- */
126
+
127
+ /* template workaround for compilers that cannot correctly implement the C++ standard */
128
+ #ifndef SWIGTEMPLATEDISAMBIGUATOR
129
+ # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
130
+ # define SWIGTEMPLATEDISAMBIGUATOR template
131
+ # elif defined(__HP_aCC)
132
+ /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
133
+ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
134
+ # define SWIGTEMPLATEDISAMBIGUATOR template
135
+ # else
136
+ # define SWIGTEMPLATEDISAMBIGUATOR
137
+ # endif
138
+ #endif
139
+
140
+ /* inline attribute */
141
+ #ifndef SWIGINLINE
142
+ # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
143
+ # define SWIGINLINE inline
144
+ # else
145
+ # define SWIGINLINE
146
+ # endif
147
+ #endif
148
+
149
+ /* attribute recognised by some compilers to avoid 'unused' warnings */
150
+ #ifndef SWIGUNUSED
151
+ # if defined(__GNUC__)
152
+ # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
153
+ # define SWIGUNUSED __attribute__ ((__unused__))
154
+ # else
155
+ # define SWIGUNUSED
156
+ # endif
157
+ # elif defined(__ICC)
158
+ # define SWIGUNUSED __attribute__ ((__unused__))
159
+ # else
160
+ # define SWIGUNUSED
161
+ # endif
162
+ #endif
163
+
164
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
165
+ # if defined(_MSC_VER)
166
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
167
+ # endif
168
+ #endif
169
+
170
+ #ifndef SWIGUNUSEDPARM
171
+ # ifdef __cplusplus
172
+ # define SWIGUNUSEDPARM(p)
173
+ # else
174
+ # define SWIGUNUSEDPARM(p) p SWIGUNUSED
175
+ # endif
176
+ #endif
177
+
178
+ /* internal SWIG method */
179
+ #ifndef SWIGINTERN
180
+ # define SWIGINTERN static SWIGUNUSED
181
+ #endif
182
+
183
+ /* internal inline SWIG method */
184
+ #ifndef SWIGINTERNINLINE
185
+ # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
186
+ #endif
187
+
188
+ /* exporting methods */
189
+ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
190
+ # ifndef GCC_HASCLASSVISIBILITY
191
+ # define GCC_HASCLASSVISIBILITY
192
+ # endif
193
+ #endif
194
+
195
+ #ifndef SWIGEXPORT
196
+ # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
197
+ # if defined(STATIC_LINKED)
198
+ # define SWIGEXPORT
199
+ # else
200
+ # define SWIGEXPORT __declspec(dllexport)
201
+ # endif
202
+ # else
203
+ # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
204
+ # define SWIGEXPORT __attribute__ ((visibility("default")))
205
+ # else
206
+ # define SWIGEXPORT
207
+ # endif
208
+ # endif
209
+ #endif
210
+
211
+ /* calling conventions for Windows */
212
+ #ifndef SWIGSTDCALL
213
+ # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
214
+ # define SWIGSTDCALL __stdcall
215
+ # else
216
+ # define SWIGSTDCALL
217
+ # endif
218
+ #endif
219
+
220
+ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
221
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
222
+ # define _CRT_SECURE_NO_DEPRECATE
223
+ #endif
224
+
225
+ /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
226
+ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
227
+ # define _SCL_SECURE_NO_DEPRECATE
228
+ #endif
229
+
230
+
231
+ /* -----------------------------------------------------------------------------
232
+ * swigrun.swg
233
+ *
234
+ * This file contains generic C API SWIG runtime support for pointer
235
+ * type checking.
236
+ * ----------------------------------------------------------------------------- */
237
+
238
+ /* This should only be incremented when either the layout of swig_type_info changes,
239
+ or for whatever reason, the runtime changes incompatibly */
240
+ #define SWIG_RUNTIME_VERSION "4"
241
+
242
+ /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
243
+ #ifdef SWIG_TYPE_TABLE
244
+ # define SWIG_QUOTE_STRING(x) #x
245
+ # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
246
+ # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
247
+ #else
248
+ # define SWIG_TYPE_TABLE_NAME
249
+ #endif
250
+
251
+ /*
252
+ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
253
+ creating a static or dynamic library from the SWIG runtime code.
254
+ In 99.9% of the cases, SWIG just needs to declare them as 'static'.
255
+
256
+ But only do this if strictly necessary, ie, if you have problems
257
+ with your compiler or suchlike.
258
+ */
259
+
260
+ #ifndef SWIGRUNTIME
261
+ # define SWIGRUNTIME SWIGINTERN
262
+ #endif
263
+
264
+ #ifndef SWIGRUNTIMEINLINE
265
+ # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
266
+ #endif
267
+
268
+ /* Generic buffer size */
269
+ #ifndef SWIG_BUFFER_SIZE
270
+ # define SWIG_BUFFER_SIZE 1024
271
+ #endif
272
+
273
+ /* Flags for pointer conversions */
274
+ #define SWIG_POINTER_DISOWN 0x1
275
+ #define SWIG_CAST_NEW_MEMORY 0x2
276
+
277
+ /* Flags for new pointer objects */
278
+ #define SWIG_POINTER_OWN 0x1
279
+
280
+
281
+ /*
282
+ Flags/methods for returning states.
283
+
284
+ The SWIG conversion methods, as ConvertPtr, return an integer
285
+ that tells if the conversion was successful or not. And if not,
286
+ an error code can be returned (see swigerrors.swg for the codes).
287
+
288
+ Use the following macros/flags to set or process the returning
289
+ states.
290
+
291
+ In old versions of SWIG, code such as the following was usually written:
292
+
293
+ if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
294
+ // success code
295
+ } else {
296
+ //fail code
297
+ }
298
+
299
+ Now you can be more explicit:
300
+
301
+ int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
302
+ if (SWIG_IsOK(res)) {
303
+ // success code
304
+ } else {
305
+ // fail code
306
+ }
307
+
308
+ which is the same really, but now you can also do
309
+
310
+ Type *ptr;
311
+ int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
312
+ if (SWIG_IsOK(res)) {
313
+ // success code
314
+ if (SWIG_IsNewObj(res) {
315
+ ...
316
+ delete *ptr;
317
+ } else {
318
+ ...
319
+ }
320
+ } else {
321
+ // fail code
322
+ }
323
+
324
+ I.e., now SWIG_ConvertPtr can return new objects and you can
325
+ identify the case and take care of the deallocation. Of course that
326
+ also requires SWIG_ConvertPtr to return new result values, such as
327
+
328
+ int SWIG_ConvertPtr(obj, ptr,...) {
329
+ if (<obj is ok>) {
330
+ if (<need new object>) {
331
+ *ptr = <ptr to new allocated object>;
332
+ return SWIG_NEWOBJ;
333
+ } else {
334
+ *ptr = <ptr to old object>;
335
+ return SWIG_OLDOBJ;
336
+ }
337
+ } else {
338
+ return SWIG_BADOBJ;
339
+ }
340
+ }
341
+
342
+ Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
343
+ more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
344
+ SWIG errors code.
345
+
346
+ Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
347
+ allows to return the 'cast rank', for example, if you have this
348
+
349
+ int food(double)
350
+ int fooi(int);
351
+
352
+ and you call
353
+
354
+ food(1) // cast rank '1' (1 -> 1.0)
355
+ fooi(1) // cast rank '0'
356
+
357
+ just use the SWIG_AddCast()/SWIG_CheckState()
358
+ */
359
+
360
+ #define SWIG_OK (0)
361
+ #define SWIG_ERROR (-1)
362
+ #define SWIG_IsOK(r) (r >= 0)
363
+ #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
364
+
365
+ /* The CastRankLimit says how many bits are used for the cast rank */
366
+ #define SWIG_CASTRANKLIMIT (1 << 8)
367
+ /* The NewMask denotes the object was created (using new/malloc) */
368
+ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
369
+ /* The TmpMask is for in/out typemaps that use temporal objects */
370
+ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
371
+ /* Simple returning values */
372
+ #define SWIG_BADOBJ (SWIG_ERROR)
373
+ #define SWIG_OLDOBJ (SWIG_OK)
374
+ #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
375
+ #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
376
+ /* Check, add and del mask methods */
377
+ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
378
+ #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
379
+ #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
380
+ #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
381
+ #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
382
+ #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
383
+
384
+ /* Cast-Rank Mode */
385
+ #if defined(SWIG_CASTRANK_MODE)
386
+ # ifndef SWIG_TypeRank
387
+ # define SWIG_TypeRank unsigned long
388
+ # endif
389
+ # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
390
+ # define SWIG_MAXCASTRANK (2)
391
+ # endif
392
+ # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
393
+ # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
394
+ SWIGINTERNINLINE int SWIG_AddCast(int r) {
395
+ return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
396
+ }
397
+ SWIGINTERNINLINE int SWIG_CheckState(int r) {
398
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
399
+ }
400
+ #else /* no cast-rank mode */
401
+ # define SWIG_AddCast
402
+ # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
403
+ #endif
404
+
405
+
406
+ #include <string.h>
407
+
408
+ #ifdef __cplusplus
409
+ extern "C" {
410
+ #endif
411
+
412
+ typedef void *(*swig_converter_func)(void *, int *);
413
+ typedef struct swig_type_info *(*swig_dycast_func)(void **);
414
+
415
+ /* Structure to store information on one type */
416
+ typedef struct swig_type_info {
417
+ const char *name; /* mangled name of this type */
418
+ const char *str; /* human readable name of this type */
419
+ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
420
+ struct swig_cast_info *cast; /* linked list of types that can cast into this type */
421
+ void *clientdata; /* language specific type data */
422
+ int owndata; /* flag if the structure owns the clientdata */
423
+ } swig_type_info;
424
+
425
+ /* Structure to store a type and conversion function used for casting */
426
+ typedef struct swig_cast_info {
427
+ swig_type_info *type; /* pointer to type that is equivalent to this type */
428
+ swig_converter_func converter; /* function to cast the void pointers */
429
+ struct swig_cast_info *next; /* pointer to next cast in linked list */
430
+ struct swig_cast_info *prev; /* pointer to the previous cast */
431
+ } swig_cast_info;
432
+
433
+ /* Structure used to store module information
434
+ * Each module generates one structure like this, and the runtime collects
435
+ * all of these structures and stores them in a circularly linked list.*/
436
+ typedef struct swig_module_info {
437
+ swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
438
+ size_t size; /* Number of types in this module */
439
+ struct swig_module_info *next; /* Pointer to next element in circularly linked list */
440
+ swig_type_info **type_initial; /* Array of initially generated type structures */
441
+ swig_cast_info **cast_initial; /* Array of initially generated casting structures */
442
+ void *clientdata; /* Language specific module data */
443
+ } swig_module_info;
444
+
445
+ /*
446
+ Compare two type names skipping the space characters, therefore
447
+ "char*" == "char *" and "Class<int>" == "Class<int >", etc.
448
+
449
+ Return 0 when the two name types are equivalent, as in
450
+ strncmp, but skipping ' '.
451
+ */
452
+ SWIGRUNTIME int
453
+ SWIG_TypeNameComp(const char *f1, const char *l1,
454
+ const char *f2, const char *l2) {
455
+ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
456
+ while ((*f1 == ' ') && (f1 != l1)) ++f1;
457
+ while ((*f2 == ' ') && (f2 != l2)) ++f2;
458
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
459
+ }
460
+ return (int)((l1 - f1) - (l2 - f2));
461
+ }
462
+
463
+ /*
464
+ Check type equivalence in a name list like <name1>|<name2>|...
465
+ Return 0 if not equal, 1 if equal
466
+ */
467
+ SWIGRUNTIME int
468
+ SWIG_TypeEquiv(const char *nb, const char *tb) {
469
+ int equiv = 0;
470
+ const char* te = tb + strlen(tb);
471
+ const char* ne = nb;
472
+ while (!equiv && *ne) {
473
+ for (nb = ne; *ne; ++ne) {
474
+ if (*ne == '|') break;
475
+ }
476
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
477
+ if (*ne) ++ne;
478
+ }
479
+ return equiv;
480
+ }
481
+
482
+ /*
483
+ Check type equivalence in a name list like <name1>|<name2>|...
484
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
485
+ */
486
+ SWIGRUNTIME int
487
+ SWIG_TypeCompare(const char *nb, const char *tb) {
488
+ int equiv = 0;
489
+ const char* te = tb + strlen(tb);
490
+ const char* ne = nb;
491
+ while (!equiv && *ne) {
492
+ for (nb = ne; *ne; ++ne) {
493
+ if (*ne == '|') break;
494
+ }
495
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
496
+ if (*ne) ++ne;
497
+ }
498
+ return equiv;
499
+ }
500
+
501
+
502
+ /*
503
+ Check the typename
504
+ */
505
+ SWIGRUNTIME swig_cast_info *
506
+ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
507
+ if (ty) {
508
+ swig_cast_info *iter = ty->cast;
509
+ while (iter) {
510
+ if (strcmp(iter->type->name, c) == 0) {
511
+ if (iter == ty->cast)
512
+ return iter;
513
+ /* Move iter to the top of the linked list */
514
+ iter->prev->next = iter->next;
515
+ if (iter->next)
516
+ iter->next->prev = iter->prev;
517
+ iter->next = ty->cast;
518
+ iter->prev = 0;
519
+ if (ty->cast) ty->cast->prev = iter;
520
+ ty->cast = iter;
521
+ return iter;
522
+ }
523
+ iter = iter->next;
524
+ }
525
+ }
526
+ return 0;
527
+ }
528
+
529
+ /*
530
+ Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
531
+ */
532
+ SWIGRUNTIME swig_cast_info *
533
+ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
534
+ if (ty) {
535
+ swig_cast_info *iter = ty->cast;
536
+ while (iter) {
537
+ if (iter->type == from) {
538
+ if (iter == ty->cast)
539
+ return iter;
540
+ /* Move iter to the top of the linked list */
541
+ iter->prev->next = iter->next;
542
+ if (iter->next)
543
+ iter->next->prev = iter->prev;
544
+ iter->next = ty->cast;
545
+ iter->prev = 0;
546
+ if (ty->cast) ty->cast->prev = iter;
547
+ ty->cast = iter;
548
+ return iter;
549
+ }
550
+ iter = iter->next;
551
+ }
552
+ }
553
+ return 0;
554
+ }
555
+
556
+ /*
557
+ Cast a pointer up an inheritance hierarchy
558
+ */
559
+ SWIGRUNTIMEINLINE void *
560
+ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
561
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
562
+ }
563
+
564
+ /*
565
+ Dynamic pointer casting. Down an inheritance hierarchy
566
+ */
567
+ SWIGRUNTIME swig_type_info *
568
+ SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
569
+ swig_type_info *lastty = ty;
570
+ if (!ty || !ty->dcast) return ty;
571
+ while (ty && (ty->dcast)) {
572
+ ty = (*ty->dcast)(ptr);
573
+ if (ty) lastty = ty;
574
+ }
575
+ return lastty;
576
+ }
577
+
578
+ /*
579
+ Return the name associated with this type
580
+ */
581
+ SWIGRUNTIMEINLINE const char *
582
+ SWIG_TypeName(const swig_type_info *ty) {
583
+ return ty->name;
584
+ }
585
+
586
+ /*
587
+ Return the pretty name associated with this type,
588
+ that is an unmangled type name in a form presentable to the user.
589
+ */
590
+ SWIGRUNTIME const char *
591
+ SWIG_TypePrettyName(const swig_type_info *type) {
592
+ /* The "str" field contains the equivalent pretty names of the
593
+ type, separated by vertical-bar characters. We choose
594
+ to print the last name, as it is often (?) the most
595
+ specific. */
596
+ if (!type) return NULL;
597
+ if (type->str != NULL) {
598
+ const char *last_name = type->str;
599
+ const char *s;
600
+ for (s = type->str; *s; s++)
601
+ if (*s == '|') last_name = s+1;
602
+ return last_name;
603
+ }
604
+ else
605
+ return type->name;
606
+ }
607
+
608
+ /*
609
+ Set the clientdata field for a type
610
+ */
611
+ SWIGRUNTIME void
612
+ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
613
+ swig_cast_info *cast = ti->cast;
614
+ /* if (ti->clientdata == clientdata) return; */
615
+ ti->clientdata = clientdata;
616
+
617
+ while (cast) {
618
+ if (!cast->converter) {
619
+ swig_type_info *tc = cast->type;
620
+ if (!tc->clientdata) {
621
+ SWIG_TypeClientData(tc, clientdata);
622
+ }
623
+ }
624
+ cast = cast->next;
625
+ }
626
+ }
627
+ SWIGRUNTIME void
628
+ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
629
+ SWIG_TypeClientData(ti, clientdata);
630
+ ti->owndata = 1;
631
+ }
632
+
633
+ /*
634
+ Search for a swig_type_info structure only by mangled name
635
+ Search is a O(log #types)
636
+
637
+ We start searching at module start, and finish searching when start == end.
638
+ Note: if start == end at the beginning of the function, we go all the way around
639
+ the circular list.
640
+ */
641
+ SWIGRUNTIME swig_type_info *
642
+ SWIG_MangledTypeQueryModule(swig_module_info *start,
643
+ swig_module_info *end,
644
+ const char *name) {
645
+ swig_module_info *iter = start;
646
+ do {
647
+ if (iter->size) {
648
+ register size_t l = 0;
649
+ register size_t r = iter->size - 1;
650
+ do {
651
+ /* since l+r >= 0, we can (>> 1) instead (/ 2) */
652
+ register size_t i = (l + r) >> 1;
653
+ const char *iname = iter->types[i]->name;
654
+ if (iname) {
655
+ register int compare = strcmp(name, iname);
656
+ if (compare == 0) {
657
+ return iter->types[i];
658
+ } else if (compare < 0) {
659
+ if (i) {
660
+ r = i - 1;
661
+ } else {
662
+ break;
663
+ }
664
+ } else if (compare > 0) {
665
+ l = i + 1;
666
+ }
667
+ } else {
668
+ break; /* should never happen */
669
+ }
670
+ } while (l <= r);
671
+ }
672
+ iter = iter->next;
673
+ } while (iter != end);
674
+ return 0;
675
+ }
676
+
677
+ /*
678
+ Search for a swig_type_info structure for either a mangled name or a human readable name.
679
+ It first searches the mangled names of the types, which is a O(log #types)
680
+ If a type is not found it then searches the human readable names, which is O(#types).
681
+
682
+ We start searching at module start, and finish searching when start == end.
683
+ Note: if start == end at the beginning of the function, we go all the way around
684
+ the circular list.
685
+ */
686
+ SWIGRUNTIME swig_type_info *
687
+ SWIG_TypeQueryModule(swig_module_info *start,
688
+ swig_module_info *end,
689
+ const char *name) {
690
+ /* STEP 1: Search the name field using binary search */
691
+ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
692
+ if (ret) {
693
+ return ret;
694
+ } else {
695
+ /* STEP 2: If the type hasn't been found, do a complete search
696
+ of the str field (the human readable name) */
697
+ swig_module_info *iter = start;
698
+ do {
699
+ register size_t i = 0;
700
+ for (; i < iter->size; ++i) {
701
+ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
702
+ return iter->types[i];
703
+ }
704
+ iter = iter->next;
705
+ } while (iter != end);
706
+ }
707
+
708
+ /* neither found a match */
709
+ return 0;
710
+ }
711
+
712
+ /*
713
+ Pack binary data into a string
714
+ */
715
+ SWIGRUNTIME char *
716
+ SWIG_PackData(char *c, void *ptr, size_t sz) {
717
+ static const char hex[17] = "0123456789abcdef";
718
+ register const unsigned char *u = (unsigned char *) ptr;
719
+ register const unsigned char *eu = u + sz;
720
+ for (; u != eu; ++u) {
721
+ register unsigned char uu = *u;
722
+ *(c++) = hex[(uu & 0xf0) >> 4];
723
+ *(c++) = hex[uu & 0xf];
724
+ }
725
+ return c;
726
+ }
727
+
728
+ /*
729
+ Unpack binary data from a string
730
+ */
731
+ SWIGRUNTIME const char *
732
+ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
733
+ register unsigned char *u = (unsigned char *) ptr;
734
+ register const unsigned char *eu = u + sz;
735
+ for (; u != eu; ++u) {
736
+ register char d = *(c++);
737
+ register unsigned char uu;
738
+ if ((d >= '0') && (d <= '9'))
739
+ uu = ((d - '0') << 4);
740
+ else if ((d >= 'a') && (d <= 'f'))
741
+ uu = ((d - ('a'-10)) << 4);
742
+ else
743
+ return (char *) 0;
744
+ d = *(c++);
745
+ if ((d >= '0') && (d <= '9'))
746
+ uu |= (d - '0');
747
+ else if ((d >= 'a') && (d <= 'f'))
748
+ uu |= (d - ('a'-10));
749
+ else
750
+ return (char *) 0;
751
+ *u = uu;
752
+ }
753
+ return c;
754
+ }
755
+
756
+ /*
757
+ Pack 'void *' into a string buffer.
758
+ */
759
+ SWIGRUNTIME char *
760
+ SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
761
+ char *r = buff;
762
+ if ((2*sizeof(void *) + 2) > bsz) return 0;
763
+ *(r++) = '_';
764
+ r = SWIG_PackData(r,&ptr,sizeof(void *));
765
+ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
766
+ strcpy(r,name);
767
+ return buff;
768
+ }
769
+
770
+ SWIGRUNTIME const char *
771
+ SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
772
+ if (*c != '_') {
773
+ if (strcmp(c,"NULL") == 0) {
774
+ *ptr = (void *) 0;
775
+ return name;
776
+ } else {
777
+ return 0;
778
+ }
779
+ }
780
+ return SWIG_UnpackData(++c,ptr,sizeof(void *));
781
+ }
782
+
783
+ SWIGRUNTIME char *
784
+ SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
785
+ char *r = buff;
786
+ size_t lname = (name ? strlen(name) : 0);
787
+ if ((2*sz + 2 + lname) > bsz) return 0;
788
+ *(r++) = '_';
789
+ r = SWIG_PackData(r,ptr,sz);
790
+ if (lname) {
791
+ strncpy(r,name,lname+1);
792
+ } else {
793
+ *r = 0;
794
+ }
795
+ return buff;
796
+ }
797
+
798
+ SWIGRUNTIME const char *
799
+ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
800
+ if (*c != '_') {
801
+ if (strcmp(c,"NULL") == 0) {
802
+ memset(ptr,0,sz);
803
+ return name;
804
+ } else {
805
+ return 0;
806
+ }
807
+ }
808
+ return SWIG_UnpackData(++c,ptr,sz);
809
+ }
810
+
811
+ #ifdef __cplusplus
812
+ }
813
+ #endif
814
+
815
+ /* Errors in SWIG */
816
+ #define SWIG_UnknownError -1
817
+ #define SWIG_IOError -2
818
+ #define SWIG_RuntimeError -3
819
+ #define SWIG_IndexError -4
820
+ #define SWIG_TypeError -5
821
+ #define SWIG_DivisionByZero -6
822
+ #define SWIG_OverflowError -7
823
+ #define SWIG_SyntaxError -8
824
+ #define SWIG_ValueError -9
825
+ #define SWIG_SystemError -10
826
+ #define SWIG_AttributeError -11
827
+ #define SWIG_MemoryError -12
828
+ #define SWIG_NullReferenceError -13
829
+
830
+
831
+
832
+ #include <ruby.h>
833
+
834
+ /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
835
+ * breaks using rb_intern as an lvalue, as SWIG does. We work around this
836
+ * issue for now by disabling this.
837
+ * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
838
+ */
839
+ #ifdef rb_intern
840
+ # undef rb_intern
841
+ #endif
842
+
843
+ /* Remove global macros defined in Ruby's win32.h */
844
+ #ifdef write
845
+ # undef write
846
+ #endif
847
+ #ifdef read
848
+ # undef read
849
+ #endif
850
+ #ifdef bind
851
+ # undef bind
852
+ #endif
853
+ #ifdef close
854
+ # undef close
855
+ #endif
856
+ #ifdef connect
857
+ # undef connect
858
+ #endif
859
+
860
+
861
+ /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
862
+ #ifndef NUM2LL
863
+ #define NUM2LL(x) NUM2LONG((x))
864
+ #endif
865
+ #ifndef LL2NUM
866
+ #define LL2NUM(x) INT2NUM((long) (x))
867
+ #endif
868
+ #ifndef ULL2NUM
869
+ #define ULL2NUM(x) UINT2NUM((unsigned long) (x))
870
+ #endif
871
+
872
+ /* Ruby 1.7 doesn't (yet) define NUM2ULL() */
873
+ #ifndef NUM2ULL
874
+ #ifdef HAVE_LONG_LONG
875
+ #define NUM2ULL(x) rb_num2ull((x))
876
+ #else
877
+ #define NUM2ULL(x) NUM2ULONG(x)
878
+ #endif
879
+ #endif
880
+
881
+ /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
882
+ /* Define these for older versions so we can just write code the new way */
883
+ #ifndef RSTRING_LEN
884
+ # define RSTRING_LEN(x) RSTRING(x)->len
885
+ #endif
886
+ #ifndef RSTRING_PTR
887
+ # define RSTRING_PTR(x) RSTRING(x)->ptr
888
+ #endif
889
+ #ifndef RSTRING_END
890
+ # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
891
+ #endif
892
+ #ifndef RARRAY_LEN
893
+ # define RARRAY_LEN(x) RARRAY(x)->len
894
+ #endif
895
+ #ifndef RARRAY_PTR
896
+ # define RARRAY_PTR(x) RARRAY(x)->ptr
897
+ #endif
898
+ #ifndef RFLOAT_VALUE
899
+ # define RFLOAT_VALUE(x) RFLOAT(x)->value
900
+ #endif
901
+ #ifndef DOUBLE2NUM
902
+ # define DOUBLE2NUM(x) rb_float_new(x)
903
+ #endif
904
+ #ifndef RHASH_TBL
905
+ # define RHASH_TBL(x) (RHASH(x)->tbl)
906
+ #endif
907
+ #ifndef RHASH_ITER_LEV
908
+ # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
909
+ #endif
910
+ #ifndef RHASH_IFNONE
911
+ # define RHASH_IFNONE(x) (RHASH(x)->ifnone)
912
+ #endif
913
+ #ifndef RHASH_SIZE
914
+ # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
915
+ #endif
916
+ #ifndef RHASH_EMPTY_P
917
+ # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
918
+ #endif
919
+ #ifndef RSTRUCT_LEN
920
+ # define RSTRUCT_LEN(x) RSTRUCT(x)->len
921
+ #endif
922
+ #ifndef RSTRUCT_PTR
923
+ # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
924
+ #endif
925
+
926
+
927
+
928
+ /*
929
+ * Need to be very careful about how these macros are defined, especially
930
+ * when compiling C++ code or C code with an ANSI C compiler.
931
+ *
932
+ * VALUEFUNC(f) is a macro used to typecast a C function that implements
933
+ * a Ruby method so that it can be passed as an argument to API functions
934
+ * like rb_define_method() and rb_define_singleton_method().
935
+ *
936
+ * VOIDFUNC(f) is a macro used to typecast a C function that implements
937
+ * either the "mark" or "free" stuff for a Ruby Data object, so that it
938
+ * can be passed as an argument to API functions like Data_Wrap_Struct()
939
+ * and Data_Make_Struct().
940
+ */
941
+
942
+ #ifdef __cplusplus
943
+ # ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
944
+ # define PROTECTFUNC(f) ((VALUE (*)()) f)
945
+ # define VALUEFUNC(f) ((VALUE (*)()) f)
946
+ # define VOIDFUNC(f) ((void (*)()) f)
947
+ # else
948
+ # ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
949
+ # define PROTECTFUNC(f) ((VALUE (*)()) f)
950
+ # define VALUEFUNC(f) ((VALUE (*)()) f)
951
+ # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
952
+ # else /* These definitions should work for Ruby 1.7+ */
953
+ # define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
954
+ # define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
955
+ # define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
956
+ # endif
957
+ # endif
958
+ #else
959
+ # define VALUEFUNC(f) (f)
960
+ # define VOIDFUNC(f) (f)
961
+ #endif
962
+
963
+ /* Don't use for expressions have side effect */
964
+ #ifndef RB_STRING_VALUE
965
+ #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
966
+ #endif
967
+ #ifndef StringValue
968
+ #define StringValue(s) RB_STRING_VALUE(s)
969
+ #endif
970
+ #ifndef StringValuePtr
971
+ #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
972
+ #endif
973
+ #ifndef StringValueLen
974
+ #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
975
+ #endif
976
+ #ifndef SafeStringValue
977
+ #define SafeStringValue(v) do {\
978
+ StringValue(v);\
979
+ rb_check_safe_str(v);\
980
+ } while (0)
981
+ #endif
982
+
983
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
984
+ #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
985
+ #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
986
+ #endif
987
+
988
+ static VALUE _mSWIG = Qnil;
989
+
990
+ /* -----------------------------------------------------------------------------
991
+ * error manipulation
992
+ * ----------------------------------------------------------------------------- */
993
+
994
+
995
+ /* Define some additional error types */
996
+ #define SWIG_ObjectPreviouslyDeletedError -100
997
+
998
+
999
+ /* Define custom exceptions for errors that do not map to existing Ruby
1000
+ exceptions. Note this only works for C++ since a global cannot be
1001
+ initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1002
+
1003
+ SWIGINTERN VALUE
1004
+ getNullReferenceError(void) {
1005
+ static int init = 0;
1006
+ static VALUE rb_eNullReferenceError ;
1007
+ if (!init) {
1008
+ init = 1;
1009
+ rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1010
+ }
1011
+ return rb_eNullReferenceError;
1012
+ }
1013
+
1014
+ SWIGINTERN VALUE
1015
+ getObjectPreviouslyDeletedError(void) {
1016
+ static int init = 0;
1017
+ static VALUE rb_eObjectPreviouslyDeleted ;
1018
+ if (!init) {
1019
+ init = 1;
1020
+ rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1021
+ }
1022
+ return rb_eObjectPreviouslyDeleted;
1023
+ }
1024
+
1025
+
1026
+ SWIGINTERN VALUE
1027
+ SWIG_Ruby_ErrorType(int SWIG_code) {
1028
+ VALUE type;
1029
+ switch (SWIG_code) {
1030
+ case SWIG_MemoryError:
1031
+ type = rb_eNoMemError;
1032
+ break;
1033
+ case SWIG_IOError:
1034
+ type = rb_eIOError;
1035
+ break;
1036
+ case SWIG_RuntimeError:
1037
+ type = rb_eRuntimeError;
1038
+ break;
1039
+ case SWIG_IndexError:
1040
+ type = rb_eIndexError;
1041
+ break;
1042
+ case SWIG_TypeError:
1043
+ type = rb_eTypeError;
1044
+ break;
1045
+ case SWIG_DivisionByZero:
1046
+ type = rb_eZeroDivError;
1047
+ break;
1048
+ case SWIG_OverflowError:
1049
+ type = rb_eRangeError;
1050
+ break;
1051
+ case SWIG_SyntaxError:
1052
+ type = rb_eSyntaxError;
1053
+ break;
1054
+ case SWIG_ValueError:
1055
+ type = rb_eArgError;
1056
+ break;
1057
+ case SWIG_SystemError:
1058
+ type = rb_eFatal;
1059
+ break;
1060
+ case SWIG_AttributeError:
1061
+ type = rb_eRuntimeError;
1062
+ break;
1063
+ case SWIG_NullReferenceError:
1064
+ type = getNullReferenceError();
1065
+ break;
1066
+ case SWIG_ObjectPreviouslyDeletedError:
1067
+ type = getObjectPreviouslyDeletedError();
1068
+ break;
1069
+ case SWIG_UnknownError:
1070
+ type = rb_eRuntimeError;
1071
+ break;
1072
+ default:
1073
+ type = rb_eRuntimeError;
1074
+ }
1075
+ return type;
1076
+ }
1077
+
1078
+
1079
+ /* This function is called when a user inputs a wrong argument to
1080
+ a method.
1081
+ */
1082
+ SWIGINTERN
1083
+ const char* Ruby_Format_TypeError( const char* msg,
1084
+ const char* type,
1085
+ const char* name,
1086
+ const int argn,
1087
+ VALUE input )
1088
+ {
1089
+ char buf[128];
1090
+ VALUE str;
1091
+ VALUE asStr;
1092
+ if ( msg && *msg )
1093
+ {
1094
+ str = rb_str_new2(msg);
1095
+ }
1096
+ else
1097
+ {
1098
+ str = rb_str_new(NULL, 0);
1099
+ }
1100
+
1101
+ str = rb_str_cat2( str, "Expected argument " );
1102
+ sprintf( buf, "%d of type ", argn-1 );
1103
+ str = rb_str_cat2( str, buf );
1104
+ str = rb_str_cat2( str, type );
1105
+ str = rb_str_cat2( str, ", but got " );
1106
+ str = rb_str_cat2( str, rb_obj_classname(input) );
1107
+ str = rb_str_cat2( str, " " );
1108
+ asStr = rb_inspect(input);
1109
+ if ( RSTRING_LEN(asStr) > 30 )
1110
+ {
1111
+ str = rb_str_cat( str, StringValuePtr(asStr), 30 );
1112
+ str = rb_str_cat2( str, "..." );
1113
+ }
1114
+ else
1115
+ {
1116
+ str = rb_str_append( str, asStr );
1117
+ }
1118
+
1119
+ if ( name )
1120
+ {
1121
+ str = rb_str_cat2( str, "\n\tin SWIG method '" );
1122
+ str = rb_str_cat2( str, name );
1123
+ str = rb_str_cat2( str, "'" );
1124
+ }
1125
+
1126
+ return StringValuePtr( str );
1127
+ }
1128
+
1129
+ /* This function is called when an overloaded method fails */
1130
+ SWIGINTERN
1131
+ void Ruby_Format_OverloadedError(
1132
+ const int argc,
1133
+ const int maxargs,
1134
+ const char* method,
1135
+ const char* prototypes
1136
+ )
1137
+ {
1138
+ const char* msg = "Wrong # of arguments";
1139
+ if ( argc <= maxargs ) msg = "Wrong arguments";
1140
+ rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
1141
+ "Possible C/C++ prototypes are:\n%s",
1142
+ msg, method, prototypes);
1143
+ }
1144
+
1145
+ /* -----------------------------------------------------------------------------
1146
+ * rubytracking.swg
1147
+ *
1148
+ * This file contains support for tracking mappings from
1149
+ * Ruby objects to C++ objects. This functionality is needed
1150
+ * to implement mark functions for Ruby's mark and sweep
1151
+ * garbage collector.
1152
+ * ----------------------------------------------------------------------------- */
1153
+
1154
+ #ifdef __cplusplus
1155
+ extern "C" {
1156
+ #endif
1157
+
1158
+ /* Ruby 1.8 actually assumes the first case. */
1159
+ #if SIZEOF_VOIDP == SIZEOF_LONG
1160
+ # define SWIG2NUM(v) LONG2NUM((unsigned long)v)
1161
+ # define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
1162
+ #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
1163
+ # define SWIG2NUM(v) LL2NUM((unsigned long long)v)
1164
+ # define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
1165
+ #else
1166
+ # error sizeof(void*) is not the same as long or long long
1167
+ #endif
1168
+
1169
+
1170
+ /* Global Ruby hash table to store Trackings from C/C++
1171
+ structs to Ruby Objects.
1172
+ */
1173
+ static VALUE swig_ruby_trackings = Qnil;
1174
+
1175
+ /* Global variable that stores a reference to the ruby
1176
+ hash table delete function. */
1177
+ static ID swig_ruby_hash_delete;
1178
+
1179
+ /* Setup a Ruby hash table to store Trackings */
1180
+ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1181
+ /* Create a ruby hash table to store Trackings from C++
1182
+ objects to Ruby objects. */
1183
+
1184
+ /* Try to see if some other .so has already created a
1185
+ tracking hash table, which we keep hidden in an instance var
1186
+ in the SWIG module.
1187
+ This is done to allow multiple DSOs to share the same
1188
+ tracking table.
1189
+ */
1190
+ ID trackings_id = rb_intern( "@__trackings__" );
1191
+ VALUE verbose = rb_gv_get("VERBOSE");
1192
+ rb_gv_set("VERBOSE", Qfalse);
1193
+ swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
1194
+ rb_gv_set("VERBOSE", verbose);
1195
+
1196
+ /* No, it hasn't. Create one ourselves */
1197
+ if ( swig_ruby_trackings == Qnil )
1198
+ {
1199
+ swig_ruby_trackings = rb_hash_new();
1200
+ rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
1201
+ }
1202
+
1203
+ /* Now store a reference to the hash table delete function
1204
+ so that we only have to look it up once.*/
1205
+ swig_ruby_hash_delete = rb_intern("delete");
1206
+ }
1207
+
1208
+ /* Get a Ruby number to reference a pointer */
1209
+ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
1210
+ /* We cast the pointer to an unsigned long
1211
+ and then store a reference to it using
1212
+ a Ruby number object. */
1213
+
1214
+ /* Convert the pointer to a Ruby number */
1215
+ return SWIG2NUM(ptr);
1216
+ }
1217
+
1218
+ /* Get a Ruby number to reference an object */
1219
+ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
1220
+ /* We cast the object to an unsigned long
1221
+ and then store a reference to it using
1222
+ a Ruby number object. */
1223
+
1224
+ /* Convert the Object to a Ruby number */
1225
+ return SWIG2NUM(object);
1226
+ }
1227
+
1228
+ /* Get a Ruby object from a previously stored reference */
1229
+ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
1230
+ /* The provided Ruby number object is a reference
1231
+ to the Ruby object we want.*/
1232
+
1233
+ /* Convert the Ruby number to a Ruby object */
1234
+ return NUM2SWIG(reference);
1235
+ }
1236
+
1237
+ /* Add a Tracking from a C/C++ struct to a Ruby object */
1238
+ SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
1239
+ /* In a Ruby hash table we store the pointer and
1240
+ the associated Ruby object. The trick here is
1241
+ that we cannot store the Ruby object directly - if
1242
+ we do then it cannot be garbage collected. So
1243
+ instead we typecast it as a unsigned long and
1244
+ convert it to a Ruby number object.*/
1245
+
1246
+ /* Get a reference to the pointer as a Ruby number */
1247
+ VALUE key = SWIG_RubyPtrToReference(ptr);
1248
+
1249
+ /* Get a reference to the Ruby object as a Ruby number */
1250
+ VALUE value = SWIG_RubyObjectToReference(object);
1251
+
1252
+ /* Store the mapping to the global hash table. */
1253
+ rb_hash_aset(swig_ruby_trackings, key, value);
1254
+ }
1255
+
1256
+ /* Get the Ruby object that owns the specified C/C++ struct */
1257
+ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
1258
+ /* Get a reference to the pointer as a Ruby number */
1259
+ VALUE key = SWIG_RubyPtrToReference(ptr);
1260
+
1261
+ /* Now lookup the value stored in the global hash table */
1262
+ VALUE value = rb_hash_aref(swig_ruby_trackings, key);
1263
+
1264
+ if (value == Qnil) {
1265
+ /* No object exists - return nil. */
1266
+ return Qnil;
1267
+ }
1268
+ else {
1269
+ /* Convert this value to Ruby object */
1270
+ return SWIG_RubyReferenceToObject(value);
1271
+ }
1272
+ }
1273
+
1274
+ /* Remove a Tracking from a C/C++ struct to a Ruby object. It
1275
+ is very important to remove objects once they are destroyed
1276
+ since the same memory address may be reused later to create
1277
+ a new object. */
1278
+ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
1279
+ /* Get a reference to the pointer as a Ruby number */
1280
+ VALUE key = SWIG_RubyPtrToReference(ptr);
1281
+
1282
+ /* Delete the object from the hash table by calling Ruby's
1283
+ do this we need to call the Hash.delete method.*/
1284
+ rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
1285
+ }
1286
+
1287
+ /* This is a helper method that unlinks a Ruby object from its
1288
+ underlying C++ object. This is needed if the lifetime of the
1289
+ Ruby object is longer than the C++ object */
1290
+ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
1291
+ VALUE object = SWIG_RubyInstanceFor(ptr);
1292
+
1293
+ if (object != Qnil) {
1294
+ DATA_PTR(object) = 0;
1295
+ }
1296
+ }
1297
+
1298
+
1299
+ #ifdef __cplusplus
1300
+ }
1301
+ #endif
1302
+
1303
+ /* -----------------------------------------------------------------------------
1304
+ * Ruby API portion that goes into the runtime
1305
+ * ----------------------------------------------------------------------------- */
1306
+
1307
+ #ifdef __cplusplus
1308
+ extern "C" {
1309
+ #endif
1310
+
1311
+ SWIGINTERN VALUE
1312
+ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1313
+ if (NIL_P(target)) {
1314
+ target = o;
1315
+ } else {
1316
+ if (TYPE(target) != T_ARRAY) {
1317
+ VALUE o2 = target;
1318
+ target = rb_ary_new();
1319
+ rb_ary_push(target, o2);
1320
+ }
1321
+ rb_ary_push(target, o);
1322
+ }
1323
+ return target;
1324
+ }
1325
+
1326
+ /* For ruby1.8.4 and earlier. */
1327
+ #ifndef RUBY_INIT_STACK
1328
+ RUBY_EXTERN void Init_stack(VALUE* addr);
1329
+ # define RUBY_INIT_STACK \
1330
+ VALUE variable_in_this_stack_frame; \
1331
+ Init_stack(&variable_in_this_stack_frame);
1332
+ #endif
1333
+
1334
+
1335
+ #ifdef __cplusplus
1336
+ }
1337
+ #endif
1338
+
1339
+
1340
+ /* -----------------------------------------------------------------------------
1341
+ * rubyrun.swg
1342
+ *
1343
+ * This file contains the runtime support for Ruby modules
1344
+ * and includes code for managing global variables and pointer
1345
+ * type checking.
1346
+ * ----------------------------------------------------------------------------- */
1347
+
1348
+ /* For backward compatibility only */
1349
+ #define SWIG_POINTER_EXCEPTION 0
1350
+
1351
+ /* for raw pointers */
1352
+ #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1353
+ #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1354
+ #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
1355
+ #define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
1356
+ #define swig_owntype ruby_owntype
1357
+
1358
+ /* for raw packed data */
1359
+ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
1360
+ #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
1361
+
1362
+ /* for class or struct pointers */
1363
+ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1364
+ #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1365
+
1366
+ /* for C or C++ function pointers */
1367
+ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
1368
+ #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
1369
+
1370
+ /* for C++ member pointers, ie, member methods */
1371
+ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
1372
+ #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
1373
+
1374
+
1375
+ /* Runtime API */
1376
+
1377
+ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
1378
+ #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
1379
+
1380
+
1381
+ /* Error manipulation */
1382
+
1383
+ #define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
1384
+ #define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
1385
+ #define SWIG_fail goto fail
1386
+
1387
+
1388
+ /* Ruby-specific SWIG API */
1389
+
1390
+ #define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
1391
+ #define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
1392
+ #define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
1393
+ #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
1394
+ #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
1395
+
1396
+ #include "assert.h"
1397
+
1398
+ /* -----------------------------------------------------------------------------
1399
+ * pointers/data manipulation
1400
+ * ----------------------------------------------------------------------------- */
1401
+
1402
+ #ifdef __cplusplus
1403
+ extern "C" {
1404
+ #endif
1405
+
1406
+ typedef struct {
1407
+ VALUE klass;
1408
+ VALUE mImpl;
1409
+ void (*mark)(void *);
1410
+ void (*destroy)(void *);
1411
+ int trackObjects;
1412
+ } swig_class;
1413
+
1414
+
1415
+ /* Global pointer used to keep some internal SWIG stuff */
1416
+ static VALUE _cSWIG_Pointer = Qnil;
1417
+ static VALUE swig_runtime_data_type_pointer = Qnil;
1418
+
1419
+ /* Global IDs used to keep some internal SWIG stuff */
1420
+ static ID swig_arity_id = 0;
1421
+ static ID swig_call_id = 0;
1422
+
1423
+ /*
1424
+ If your swig extension is to be run within an embedded ruby and has
1425
+ director callbacks, you should set -DRUBY_EMBEDDED during compilation.
1426
+ This will reset ruby's stack frame on each entry point from the main
1427
+ program the first time a virtual director function is invoked (in a
1428
+ non-recursive way).
1429
+ If this is not done, you run the risk of Ruby trashing the stack.
1430
+ */
1431
+
1432
+ #ifdef RUBY_EMBEDDED
1433
+
1434
+ # define SWIG_INIT_STACK \
1435
+ if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
1436
+ ++swig_virtual_calls;
1437
+ # define SWIG_RELEASE_STACK --swig_virtual_calls;
1438
+ # define Ruby_DirectorTypeMismatchException(x) \
1439
+ rb_raise( rb_eTypeError, "%s", x ); return c_result;
1440
+
1441
+ static unsigned int swig_virtual_calls = 0;
1442
+
1443
+ #else /* normal non-embedded extension */
1444
+
1445
+ # define SWIG_INIT_STACK
1446
+ # define SWIG_RELEASE_STACK
1447
+ # define Ruby_DirectorTypeMismatchException(x) \
1448
+ throw Swig::DirectorTypeMismatchException( x );
1449
+
1450
+ #endif /* RUBY_EMBEDDED */
1451
+
1452
+
1453
+ SWIGRUNTIME VALUE
1454
+ getExceptionClass(void) {
1455
+ static int init = 0;
1456
+ static VALUE rubyExceptionClass ;
1457
+ if (!init) {
1458
+ init = 1;
1459
+ rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1460
+ }
1461
+ return rubyExceptionClass;
1462
+ }
1463
+
1464
+ /* This code checks to see if the Ruby object being raised as part
1465
+ of an exception inherits from the Ruby class Exception. If so,
1466
+ the object is simply returned. If not, then a new Ruby exception
1467
+ object is created and that will be returned to Ruby.*/
1468
+ SWIGRUNTIME VALUE
1469
+ SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1470
+ VALUE exceptionClass = getExceptionClass();
1471
+ if (rb_obj_is_kind_of(obj, exceptionClass)) {
1472
+ return obj;
1473
+ } else {
1474
+ return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
1475
+ }
1476
+ }
1477
+
1478
+ /* Initialize Ruby runtime support */
1479
+ SWIGRUNTIME void
1480
+ SWIG_Ruby_InitRuntime(void)
1481
+ {
1482
+ if (_mSWIG == Qnil) {
1483
+ _mSWIG = rb_define_module("SWIG");
1484
+ swig_call_id = rb_intern("call");
1485
+ swig_arity_id = rb_intern("arity");
1486
+ }
1487
+ }
1488
+
1489
+ /* Define Ruby class for C type */
1490
+ SWIGRUNTIME void
1491
+ SWIG_Ruby_define_class(swig_type_info *type)
1492
+ {
1493
+ VALUE klass;
1494
+ char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1495
+ sprintf(klass_name, "TYPE%s", type->name);
1496
+ if (NIL_P(_cSWIG_Pointer)) {
1497
+ _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1498
+ rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1499
+ }
1500
+ klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1501
+ free((void *) klass_name);
1502
+ }
1503
+
1504
+ /* Create a new pointer object */
1505
+ SWIGRUNTIME VALUE
1506
+ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1507
+ {
1508
+ int own = flags & SWIG_POINTER_OWN;
1509
+ int track;
1510
+ char *klass_name;
1511
+ swig_class *sklass;
1512
+ VALUE klass;
1513
+ VALUE obj;
1514
+
1515
+ if (!ptr)
1516
+ return Qnil;
1517
+
1518
+ if (type->clientdata) {
1519
+ sklass = (swig_class *) type->clientdata;
1520
+
1521
+ /* Are we tracking this class and have we already returned this Ruby object? */
1522
+ track = sklass->trackObjects;
1523
+ if (track) {
1524
+ obj = SWIG_RubyInstanceFor(ptr);
1525
+
1526
+ /* Check the object's type and make sure it has the correct type.
1527
+ It might not in cases where methods do things like
1528
+ downcast methods. */
1529
+ if (obj != Qnil) {
1530
+ VALUE value = rb_iv_get(obj, "@__swigtype__");
1531
+ char* type_name = RSTRING_PTR(value);
1532
+
1533
+ if (strcmp(type->name, type_name) == 0) {
1534
+ return obj;
1535
+ }
1536
+ }
1537
+ }
1538
+
1539
+ /* Create a new Ruby object */
1540
+ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1541
+ ( own ? VOIDFUNC(sklass->destroy) :
1542
+ (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1543
+ ), ptr);
1544
+
1545
+ /* If tracking is on for this class then track this object. */
1546
+ if (track) {
1547
+ SWIG_RubyAddTracking(ptr, obj);
1548
+ }
1549
+ } else {
1550
+ klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1551
+ sprintf(klass_name, "TYPE%s", type->name);
1552
+ klass = rb_const_get(_mSWIG, rb_intern(klass_name));
1553
+ free((void *) klass_name);
1554
+ obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1555
+ }
1556
+ rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1557
+
1558
+ return obj;
1559
+ }
1560
+
1561
+ /* Create a new class instance (always owned) */
1562
+ SWIGRUNTIME VALUE
1563
+ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1564
+ {
1565
+ VALUE obj;
1566
+ swig_class *sklass = (swig_class *) type->clientdata;
1567
+ obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1568
+ rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1569
+ return obj;
1570
+ }
1571
+
1572
+ /* Get type mangle from class name */
1573
+ SWIGRUNTIMEINLINE char *
1574
+ SWIG_Ruby_MangleStr(VALUE obj)
1575
+ {
1576
+ VALUE stype = rb_iv_get(obj, "@__swigtype__");
1577
+ return StringValuePtr(stype);
1578
+ }
1579
+
1580
+ /* Acquire a pointer value */
1581
+ typedef void (*ruby_owntype)(void*);
1582
+
1583
+ SWIGRUNTIME ruby_owntype
1584
+ SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
1585
+ if (obj) {
1586
+ ruby_owntype oldown = RDATA(obj)->dfree;
1587
+ RDATA(obj)->dfree = own;
1588
+ return oldown;
1589
+ } else {
1590
+ return 0;
1591
+ }
1592
+ }
1593
+
1594
+ /* Convert a pointer value */
1595
+ SWIGRUNTIME int
1596
+ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
1597
+ {
1598
+ char *c;
1599
+ swig_cast_info *tc;
1600
+ void *vptr = 0;
1601
+
1602
+ /* Grab the pointer */
1603
+ if (NIL_P(obj)) {
1604
+ *ptr = 0;
1605
+ return SWIG_OK;
1606
+ } else {
1607
+ if (TYPE(obj) != T_DATA) {
1608
+ return SWIG_ERROR;
1609
+ }
1610
+ Data_Get_Struct(obj, void, vptr);
1611
+ }
1612
+
1613
+ if (own) *own = RDATA(obj)->dfree;
1614
+
1615
+ /* Check to see if the input object is giving up ownership
1616
+ of the underlying C struct or C++ object. If so then we
1617
+ need to reset the destructor since the Ruby object no
1618
+ longer owns the underlying C++ object.*/
1619
+ if (flags & SWIG_POINTER_DISOWN) {
1620
+ /* Is tracking on for this class? */
1621
+ int track = 0;
1622
+ if (ty && ty->clientdata) {
1623
+ swig_class *sklass = (swig_class *) ty->clientdata;
1624
+ track = sklass->trackObjects;
1625
+ }
1626
+
1627
+ if (track) {
1628
+ /* We are tracking objects for this class. Thus we change the destructor
1629
+ * to SWIG_RubyRemoveTracking. This allows us to
1630
+ * remove the mapping from the C++ to Ruby object
1631
+ * when the Ruby object is garbage collected. If we don't
1632
+ * do this, then it is possible we will return a reference
1633
+ * to a Ruby object that no longer exists thereby crashing Ruby. */
1634
+ RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
1635
+ } else {
1636
+ RDATA(obj)->dfree = 0;
1637
+ }
1638
+ }
1639
+
1640
+ /* Do type-checking if type info was provided */
1641
+ if (ty) {
1642
+ if (ty->clientdata) {
1643
+ if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
1644
+ if (vptr == 0) {
1645
+ /* The object has already been deleted */
1646
+ return SWIG_ObjectPreviouslyDeletedError;
1647
+ }
1648
+ *ptr = vptr;
1649
+ return SWIG_OK;
1650
+ }
1651
+ }
1652
+ if ((c = SWIG_MangleStr(obj)) == NULL) {
1653
+ return SWIG_ERROR;
1654
+ }
1655
+ tc = SWIG_TypeCheck(c, ty);
1656
+ if (!tc) {
1657
+ return SWIG_ERROR;
1658
+ } else {
1659
+ int newmemory = 0;
1660
+ *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
1661
+ assert(!newmemory); /* newmemory handling not yet implemented */
1662
+ }
1663
+ } else {
1664
+ *ptr = vptr;
1665
+ }
1666
+
1667
+ return SWIG_OK;
1668
+ }
1669
+
1670
+ /* Check convert */
1671
+ SWIGRUNTIMEINLINE int
1672
+ SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
1673
+ {
1674
+ char *c = SWIG_MangleStr(obj);
1675
+ if (!c) return 0;
1676
+ return SWIG_TypeCheck(c,ty) != 0;
1677
+ }
1678
+
1679
+ SWIGRUNTIME VALUE
1680
+ SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1681
+ char result[1024];
1682
+ char *r = result;
1683
+ if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1684
+ *(r++) = '_';
1685
+ r = SWIG_PackData(r, ptr, sz);
1686
+ strcpy(r, type->name);
1687
+ return rb_str_new2(result);
1688
+ }
1689
+
1690
+ /* Convert a packed value value */
1691
+ SWIGRUNTIME int
1692
+ SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1693
+ swig_cast_info *tc;
1694
+ const char *c;
1695
+
1696
+ if (TYPE(obj) != T_STRING) goto type_error;
1697
+ c = StringValuePtr(obj);
1698
+ /* Pointer values must start with leading underscore */
1699
+ if (*c != '_') goto type_error;
1700
+ c++;
1701
+ c = SWIG_UnpackData(c, ptr, sz);
1702
+ if (ty) {
1703
+ tc = SWIG_TypeCheck(c, ty);
1704
+ if (!tc) goto type_error;
1705
+ }
1706
+ return SWIG_OK;
1707
+
1708
+ type_error:
1709
+ return SWIG_ERROR;
1710
+ }
1711
+
1712
+ SWIGRUNTIME swig_module_info *
1713
+ SWIG_Ruby_GetModule(void)
1714
+ {
1715
+ VALUE pointer;
1716
+ swig_module_info *ret = 0;
1717
+ VALUE verbose = rb_gv_get("VERBOSE");
1718
+
1719
+ /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
1720
+ rb_gv_set("VERBOSE", Qfalse);
1721
+
1722
+ /* first check if pointer already created */
1723
+ pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
1724
+ if (pointer != Qnil) {
1725
+ Data_Get_Struct(pointer, swig_module_info, ret);
1726
+ }
1727
+
1728
+ /* reinstate warnings */
1729
+ rb_gv_set("VERBOSE", verbose);
1730
+ return ret;
1731
+ }
1732
+
1733
+ SWIGRUNTIME void
1734
+ SWIG_Ruby_SetModule(swig_module_info *pointer)
1735
+ {
1736
+ /* register a new class */
1737
+ VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1738
+ /* create and store the structure pointer to a global variable */
1739
+ swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1740
+ rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1741
+ }
1742
+
1743
+ /* This function can be used to check whether a proc or method or similarly
1744
+ callable function has been passed. Usually used in a %typecheck, like:
1745
+
1746
+ %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
1747
+ $result = SWIG_Ruby_isCallable( $input );
1748
+ }
1749
+ */
1750
+ SWIGINTERN
1751
+ int SWIG_Ruby_isCallable( VALUE proc )
1752
+ {
1753
+ if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
1754
+ return 1;
1755
+ return 0;
1756
+ }
1757
+
1758
+ /* This function can be used to check the arity (number of arguments)
1759
+ a proc or method can take. Usually used in a %typecheck.
1760
+ Valid arities will be that equal to minimal or those < 0
1761
+ which indicate a variable number of parameters at the end.
1762
+ */
1763
+ SWIGINTERN
1764
+ int SWIG_Ruby_arity( VALUE proc, int minimal )
1765
+ {
1766
+ if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
1767
+ {
1768
+ VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1769
+ int arity = NUM2INT(num);
1770
+ if ( arity < 0 && (arity+1) < -minimal ) return 1;
1771
+ if ( arity == minimal ) return 1;
1772
+ return 1;
1773
+ }
1774
+ return 0;
1775
+ }
1776
+
1777
+
1778
+ #ifdef __cplusplus
1779
+ }
1780
+ #endif
1781
+
1782
+
1783
+
1784
+ #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1785
+
1786
+ #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1787
+
1788
+
1789
+
1790
+ /* -------- TYPES TABLE (BEGIN) -------- */
1791
+
1792
+ #define SWIGTYPE_p_char swig_types[0]
1793
+ static swig_type_info *swig_types[2];
1794
+ static swig_module_info swig_module = {swig_types, 1, 0, 0, 0, 0};
1795
+ #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1796
+ #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1797
+
1798
+ /* -------- TYPES TABLE (END) -------- */
1799
+
1800
+ #define SWIG_init Init_Calendar
1801
+ #define SWIG_name "Rho::Calendar"
1802
+
1803
+ static VALUE mCalendar;
1804
+
1805
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1806
+ #define SWIG_RUBY_THREAD_END_BLOCK
1807
+
1808
+
1809
+ #define SWIGVERSION 0x020004
1810
+ #define SWIG_VERSION SWIGVERSION
1811
+
1812
+
1813
+ #define SWIG_as_voidptr(a) (void *)((const void *)(a))
1814
+ #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
1815
+
1816
+
1817
+ #include "ext/rho/rhoruby.h"
1818
+
1819
+ extern VALUE event_fetch(VALUE params);
1820
+ #define fetch event_fetch
1821
+ extern VALUE event_fetch_by_id(const char *id);
1822
+ #define fetch_by_id event_fetch_by_id
1823
+ extern const char* event_save(VALUE event);
1824
+ #define save event_save
1825
+ extern void event_delete(const char *id);
1826
+ #define delete event_delete
1827
+
1828
+
1829
+ SWIGINTERN swig_type_info*
1830
+ SWIG_pchar_descriptor(void)
1831
+ {
1832
+ static int init = 0;
1833
+ static swig_type_info* info = 0;
1834
+ if (!init) {
1835
+ info = SWIG_TypeQuery("_p_char");
1836
+ init = 1;
1837
+ }
1838
+ return info;
1839
+ }
1840
+
1841
+
1842
+ SWIGINTERN int
1843
+ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1844
+ {
1845
+ if (TYPE(obj) == T_STRING) {
1846
+ #if defined(StringValuePtr)
1847
+ char *cstr = StringValuePtr(obj);
1848
+ #else
1849
+ char *cstr = STR2CSTR(obj);
1850
+ #endif
1851
+ size_t size = RSTRING_LEN(obj) + 1;
1852
+ if (cptr) {
1853
+ if (alloc) {
1854
+ if (*alloc == SWIG_NEWOBJ) {
1855
+ *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
1856
+ } else {
1857
+ *cptr = cstr;
1858
+ *alloc = SWIG_OLDOBJ;
1859
+ }
1860
+ }
1861
+ }
1862
+ if (psize) *psize = size;
1863
+ return SWIG_OK;
1864
+ } else {
1865
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1866
+ if (pchar_descriptor) {
1867
+ void* vptr = 0;
1868
+ if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
1869
+ if (cptr) *cptr = (char *)vptr;
1870
+ if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
1871
+ if (alloc) *alloc = SWIG_OLDOBJ;
1872
+ return SWIG_OK;
1873
+ }
1874
+ }
1875
+ }
1876
+ return SWIG_TypeError;
1877
+ }
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+ SWIGINTERNINLINE VALUE
1884
+ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
1885
+ {
1886
+ if (carray) {
1887
+ if (size > LONG_MAX) {
1888
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1889
+ return pchar_descriptor ?
1890
+ SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil;
1891
+ } else {
1892
+ return rb_str_new(carray, (long)(size));
1893
+ }
1894
+ } else {
1895
+ return Qnil;
1896
+ }
1897
+ }
1898
+
1899
+
1900
+ SWIGINTERNINLINE VALUE
1901
+ SWIG_FromCharPtr(const char *cptr)
1902
+ {
1903
+ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
1904
+ }
1905
+
1906
+ SWIGINTERN VALUE
1907
+ _wrap_fetch(int argc, VALUE *argv, VALUE self) {
1908
+ VALUE arg1 = (VALUE) 0 ;
1909
+ VALUE result;
1910
+ VALUE vresult = Qnil;
1911
+
1912
+ if ((argc < 1) || (argc > 1)) {
1913
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1914
+ }
1915
+ arg1 = argv[0];
1916
+ {
1917
+ Check_Type(arg1, T_HASH);
1918
+ }
1919
+ result = (VALUE)fetch(arg1);
1920
+ vresult = result;
1921
+ return vresult;
1922
+ fail:
1923
+ return Qnil;
1924
+ }
1925
+
1926
+
1927
+ SWIGINTERN VALUE
1928
+ _wrap_fetch_by_id(int argc, VALUE *argv, VALUE self) {
1929
+ char *arg1 = (char *) 0 ;
1930
+ int res1 ;
1931
+ char *buf1 = 0 ;
1932
+ int alloc1 = 0 ;
1933
+ VALUE result;
1934
+ VALUE vresult = Qnil;
1935
+
1936
+ if ((argc < 1) || (argc > 1)) {
1937
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1938
+ }
1939
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
1940
+ if (!SWIG_IsOK(res1)) {
1941
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","fetch_by_id", 1, argv[0] ));
1942
+ }
1943
+ arg1 = (char *)(buf1);
1944
+ result = (VALUE)fetch_by_id((char const *)arg1);
1945
+ vresult = result;
1946
+ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1947
+ return vresult;
1948
+ fail:
1949
+ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1950
+ return Qnil;
1951
+ }
1952
+
1953
+
1954
+ SWIGINTERN VALUE
1955
+ _wrap_save(int argc, VALUE *argv, VALUE self) {
1956
+ VALUE arg1 = (VALUE) 0 ;
1957
+ char *result = 0 ;
1958
+ VALUE vresult = Qnil;
1959
+
1960
+ if ((argc < 1) || (argc > 1)) {
1961
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1962
+ }
1963
+ arg1 = argv[0];
1964
+ {
1965
+ Check_Type(arg1, T_HASH);
1966
+ }
1967
+ result = (char *)save(arg1);
1968
+ vresult = SWIG_FromCharPtr((const char *)result);
1969
+ return vresult;
1970
+ fail:
1971
+ return Qnil;
1972
+ }
1973
+
1974
+
1975
+ SWIGINTERN VALUE
1976
+ _wrap_delete(int argc, VALUE *argv, VALUE self) {
1977
+ char *arg1 = (char *) 0 ;
1978
+ int res1 ;
1979
+ char *buf1 = 0 ;
1980
+ int alloc1 = 0 ;
1981
+
1982
+ if ((argc < 1) || (argc > 1)) {
1983
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
1984
+ }
1985
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
1986
+ if (!SWIG_IsOK(res1)) {
1987
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","delete", 1, argv[0] ));
1988
+ }
1989
+ arg1 = (char *)(buf1);
1990
+ delete((char const *)arg1);
1991
+ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1992
+ return Qnil;
1993
+ fail:
1994
+ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
1995
+ return Qnil;
1996
+ }
1997
+
1998
+
1999
+
2000
+ /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
2001
+
2002
+ static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
2003
+
2004
+ static swig_type_info *swig_type_initial[] = {
2005
+ &_swigt__p_char,
2006
+ };
2007
+
2008
+ static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
2009
+
2010
+ static swig_cast_info *swig_cast_initial[] = {
2011
+ _swigc__p_char,
2012
+ };
2013
+
2014
+
2015
+ /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
2016
+
2017
+ /* -----------------------------------------------------------------------------
2018
+ * Type initialization:
2019
+ * This problem is tough by the requirement that no dynamic
2020
+ * memory is used. Also, since swig_type_info structures store pointers to
2021
+ * swig_cast_info structures and swig_cast_info structures store pointers back
2022
+ * to swig_type_info structures, we need some lookup code at initialization.
2023
+ * The idea is that swig generates all the structures that are needed.
2024
+ * The runtime then collects these partially filled structures.
2025
+ * The SWIG_InitializeModule function takes these initial arrays out of
2026
+ * swig_module, and does all the lookup, filling in the swig_module.types
2027
+ * array with the correct data and linking the correct swig_cast_info
2028
+ * structures together.
2029
+ *
2030
+ * The generated swig_type_info structures are assigned staticly to an initial
2031
+ * array. We just loop through that array, and handle each type individually.
2032
+ * First we lookup if this type has been already loaded, and if so, use the
2033
+ * loaded structure instead of the generated one. Then we have to fill in the
2034
+ * cast linked list. The cast data is initially stored in something like a
2035
+ * two-dimensional array. Each row corresponds to a type (there are the same
2036
+ * number of rows as there are in the swig_type_initial array). Each entry in
2037
+ * a column is one of the swig_cast_info structures for that type.
2038
+ * The cast_initial array is actually an array of arrays, because each row has
2039
+ * a variable number of columns. So to actually build the cast linked list,
2040
+ * we find the array of casts associated with the type, and loop through it
2041
+ * adding the casts to the list. The one last trick we need to do is making
2042
+ * sure the type pointer in the swig_cast_info struct is correct.
2043
+ *
2044
+ * First off, we lookup the cast->type name to see if it is already loaded.
2045
+ * There are three cases to handle:
2046
+ * 1) If the cast->type has already been loaded AND the type we are adding
2047
+ * casting info to has not been loaded (it is in this module), THEN we
2048
+ * replace the cast->type pointer with the type pointer that has already
2049
+ * been loaded.
2050
+ * 2) If BOTH types (the one we are adding casting info to, and the
2051
+ * cast->type) are loaded, THEN the cast info has already been loaded by
2052
+ * the previous module so we just ignore it.
2053
+ * 3) Finally, if cast->type has not already been loaded, then we add that
2054
+ * swig_cast_info to the linked list (because the cast->type) pointer will
2055
+ * be correct.
2056
+ * ----------------------------------------------------------------------------- */
2057
+
2058
+ #ifdef __cplusplus
2059
+ extern "C" {
2060
+ #if 0
2061
+ } /* c-mode */
2062
+ #endif
2063
+ #endif
2064
+
2065
+ #if 0
2066
+ #define SWIGRUNTIME_DEBUG
2067
+ #endif
2068
+
2069
+
2070
+ SWIGRUNTIME void
2071
+ SWIG_InitializeModule(void *clientdata) {
2072
+ size_t i;
2073
+ swig_module_info *module_head, *iter;
2074
+ int found, init;
2075
+
2076
+ clientdata = clientdata;
2077
+
2078
+ /* check to see if the circular list has been setup, if not, set it up */
2079
+ if (swig_module.next==0) {
2080
+ /* Initialize the swig_module */
2081
+ swig_module.type_initial = swig_type_initial;
2082
+ swig_module.cast_initial = swig_cast_initial;
2083
+ swig_module.next = &swig_module;
2084
+ init = 1;
2085
+ } else {
2086
+ init = 0;
2087
+ }
2088
+
2089
+ /* Try and load any already created modules */
2090
+ module_head = SWIG_GetModule(clientdata);
2091
+ if (!module_head) {
2092
+ /* This is the first module loaded for this interpreter */
2093
+ /* so set the swig module into the interpreter */
2094
+ SWIG_SetModule(clientdata, &swig_module);
2095
+ module_head = &swig_module;
2096
+ } else {
2097
+ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
2098
+ found=0;
2099
+ iter=module_head;
2100
+ do {
2101
+ if (iter==&swig_module) {
2102
+ found=1;
2103
+ break;
2104
+ }
2105
+ iter=iter->next;
2106
+ } while (iter!= module_head);
2107
+
2108
+ /* if the is found in the list, then all is done and we may leave */
2109
+ if (found) return;
2110
+ /* otherwise we must add out module into the list */
2111
+ swig_module.next = module_head->next;
2112
+ module_head->next = &swig_module;
2113
+ }
2114
+
2115
+ /* When multiple interpeters are used, a module could have already been initialized in
2116
+ a different interpreter, but not yet have a pointer in this interpreter.
2117
+ In this case, we do not want to continue adding types... everything should be
2118
+ set up already */
2119
+ if (init == 0) return;
2120
+
2121
+ /* Now work on filling in swig_module.types */
2122
+ #ifdef SWIGRUNTIME_DEBUG
2123
+ printf("SWIG_InitializeModule: size %d\n", swig_module.size);
2124
+ #endif
2125
+ for (i = 0; i < swig_module.size; ++i) {
2126
+ swig_type_info *type = 0;
2127
+ swig_type_info *ret;
2128
+ swig_cast_info *cast;
2129
+
2130
+ #ifdef SWIGRUNTIME_DEBUG
2131
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
2132
+ #endif
2133
+
2134
+ /* if there is another module already loaded */
2135
+ if (swig_module.next != &swig_module) {
2136
+ type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
2137
+ }
2138
+ if (type) {
2139
+ /* Overwrite clientdata field */
2140
+ #ifdef SWIGRUNTIME_DEBUG
2141
+ printf("SWIG_InitializeModule: found type %s\n", type->name);
2142
+ #endif
2143
+ if (swig_module.type_initial[i]->clientdata) {
2144
+ type->clientdata = swig_module.type_initial[i]->clientdata;
2145
+ #ifdef SWIGRUNTIME_DEBUG
2146
+ printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
2147
+ #endif
2148
+ }
2149
+ } else {
2150
+ type = swig_module.type_initial[i];
2151
+ }
2152
+
2153
+ /* Insert casting types */
2154
+ cast = swig_module.cast_initial[i];
2155
+ while (cast->type) {
2156
+
2157
+ /* Don't need to add information already in the list */
2158
+ ret = 0;
2159
+ #ifdef SWIGRUNTIME_DEBUG
2160
+ printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
2161
+ #endif
2162
+ if (swig_module.next != &swig_module) {
2163
+ ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
2164
+ #ifdef SWIGRUNTIME_DEBUG
2165
+ if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
2166
+ #endif
2167
+ }
2168
+ if (ret) {
2169
+ if (type == swig_module.type_initial[i]) {
2170
+ #ifdef SWIGRUNTIME_DEBUG
2171
+ printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
2172
+ #endif
2173
+ cast->type = ret;
2174
+ ret = 0;
2175
+ } else {
2176
+ /* Check for casting already in the list */
2177
+ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
2178
+ #ifdef SWIGRUNTIME_DEBUG
2179
+ if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
2180
+ #endif
2181
+ if (!ocast) ret = 0;
2182
+ }
2183
+ }
2184
+
2185
+ if (!ret) {
2186
+ #ifdef SWIGRUNTIME_DEBUG
2187
+ printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
2188
+ #endif
2189
+ if (type->cast) {
2190
+ type->cast->prev = cast;
2191
+ cast->next = type->cast;
2192
+ }
2193
+ type->cast = cast;
2194
+ }
2195
+ cast++;
2196
+ }
2197
+ /* Set entry in modules->types array equal to the type */
2198
+ swig_module.types[i] = type;
2199
+ }
2200
+ swig_module.types[i] = 0;
2201
+
2202
+ #ifdef SWIGRUNTIME_DEBUG
2203
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
2204
+ for (i = 0; i < swig_module.size; ++i) {
2205
+ int j = 0;
2206
+ swig_cast_info *cast = swig_module.cast_initial[i];
2207
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
2208
+ while (cast->type) {
2209
+ printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
2210
+ cast++;
2211
+ ++j;
2212
+ }
2213
+ printf("---- Total casts: %d\n",j);
2214
+ }
2215
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
2216
+ #endif
2217
+ }
2218
+
2219
+ /* This function will propagate the clientdata field of type to
2220
+ * any new swig_type_info structures that have been added into the list
2221
+ * of equivalent types. It is like calling
2222
+ * SWIG_TypeClientData(type, clientdata) a second time.
2223
+ */
2224
+ SWIGRUNTIME void
2225
+ SWIG_PropagateClientData(void) {
2226
+ size_t i;
2227
+ swig_cast_info *equiv;
2228
+ static int init_run = 0;
2229
+
2230
+ if (init_run) return;
2231
+ init_run = 1;
2232
+
2233
+ for (i = 0; i < swig_module.size; i++) {
2234
+ if (swig_module.types[i]->clientdata) {
2235
+ equiv = swig_module.types[i]->cast;
2236
+ while (equiv) {
2237
+ if (!equiv->converter) {
2238
+ if (equiv->type && !equiv->type->clientdata)
2239
+ SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
2240
+ }
2241
+ equiv = equiv->next;
2242
+ }
2243
+ }
2244
+ }
2245
+ }
2246
+
2247
+ #ifdef __cplusplus
2248
+ #if 0
2249
+ { /* c-mode */
2250
+ #endif
2251
+ }
2252
+ #endif
2253
+
2254
+ /*
2255
+
2256
+ */
2257
+ #ifdef __cplusplus
2258
+ extern "C"
2259
+ #endif
2260
+ SWIGEXPORT void Init_Calendar(void) {
2261
+ size_t i;
2262
+
2263
+ SWIG_InitRuntime();
2264
+ mCalendar = rb_define_module("Rho");
2265
+ mCalendar = rb_define_module_under(mCalendar, "Calendar");
2266
+
2267
+ SWIG_InitializeModule(0);
2268
+ for (i = 0; i < swig_module.size; i++) {
2269
+ SWIG_define_class(swig_module.types[i]);
2270
+ }
2271
+
2272
+ SWIG_RubyInitializeTrackings();
2273
+ rb_define_module_function(mCalendar, "fetch", _wrap_fetch, -1);
2274
+ rb_define_module_function(mCalendar, "fetch_by_id", _wrap_fetch_by_id, -1);
2275
+ rb_define_module_function(mCalendar, "save", _wrap_save, -1);
2276
+ rb_define_module_function(mCalendar, "delete", _wrap_delete, -1);
2277
+ }
2278
+