virtualbox 0.8.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. data/Rakefile +11 -5
  2. data/TODO.md +7 -0
  3. data/lib/virtualbox.rb +34 -8
  4. data/lib/virtualbox/abstract_model.rb +7 -8
  5. data/lib/virtualbox/abstract_model/attributable.rb +16 -2
  6. data/lib/virtualbox/abstract_model/interface_attributes.rb +10 -1
  7. data/lib/virtualbox/abstract_model/relatable.rb +11 -0
  8. data/lib/virtualbox/appliance.rb +1 -1
  9. data/lib/virtualbox/com.rb +13 -12
  10. data/lib/virtualbox/com/abstract_enum.rb +21 -5
  11. data/lib/virtualbox/com/abstract_interface.rb +11 -0
  12. data/lib/virtualbox/com/base_interface.rb +1 -32
  13. data/lib/virtualbox/com/{ffi/vboxxpcomc.rb → ffi.rb} +7 -0
  14. data/lib/virtualbox/com/ffi/interface.rb +10 -27
  15. data/lib/virtualbox/com/ffi/util.rb +32 -2
  16. data/lib/virtualbox/com/ffi_interface.rb +8 -2
  17. data/lib/virtualbox/com/implementer.rb +10 -0
  18. data/lib/virtualbox/com/implementer/base.rb +10 -3
  19. data/lib/virtualbox/com/implementer/ffi.rb +40 -13
  20. data/lib/virtualbox/com/implementer/mscom.rb +18 -1
  21. data/lib/virtualbox/com/interface/4.0.x/{access_mode.rb → AccessMode.rb} +1 -1
  22. data/lib/virtualbox/com/interface/4.0.x/{appliance.rb → Appliance.rb} +0 -0
  23. data/lib/virtualbox/com/interface/4.0.x/{audio_adapter.rb → AudioAdapter.rb} +1 -1
  24. data/lib/virtualbox/com/interface/4.0.x/{audio_controller_type.rb → AudioControllerType.rb} +0 -0
  25. data/lib/virtualbox/com/interface/4.0.x/{audio_driver_type.rb → AudioDriverType.rb} +0 -0
  26. data/lib/virtualbox/com/interface/4.0.x/{auth_type.rb → AuthType.rb} +0 -0
  27. data/lib/virtualbox/com/interface/4.0.x/{bios_boot_menu_mode.rb → BIOSBootMenuMode.rb} +0 -0
  28. data/lib/virtualbox/com/interface/4.0.x/{bios_settings.rb → BIOSSettings.rb} +1 -1
  29. data/lib/virtualbox/com/interface/4.0.x/{bandwidth_control.rb → BandwidthControl.rb} +0 -0
  30. data/lib/virtualbox/com/interface/4.0.x/{bandwidth_group.rb → BandwidthGroup.rb} +0 -0
  31. data/lib/virtualbox/com/interface/4.0.x/{bandwidth_group_type.rb → BandwidthGroupType.rb} +0 -0
  32. data/lib/virtualbox/com/interface/4.0.x/{chipset_type.rb → ChipsetType.rb} +0 -0
  33. data/lib/virtualbox/com/interface/4.0.x/{cleanup_mode.rb → CleanupMode.rb} +0 -0
  34. data/lib/virtualbox/com/interface/4.0.x/{clipboard_mode.rb → ClipboardMode.rb} +0 -0
  35. data/lib/virtualbox/com/interface/4.0.x/{console.rb → Console.rb} +0 -0
  36. data/lib/virtualbox/com/interface/4.0.x/{cpu_property_type.rb → CpuPropertyType.rb} +0 -0
  37. data/lib/virtualbox/com/interface/4.0.x/{dhcp_server.rb → DHCPServer.rb} +0 -0
  38. data/lib/virtualbox/com/interface/4.0.x/{data_type.rb → DataType.rb} +0 -0
  39. data/lib/virtualbox/com/interface/4.0.x/{device_type.rb → DeviceType.rb} +0 -0
  40. data/lib/virtualbox/com/interface/4.0.x/{event_source.rb → EventSource.rb} +0 -0
  41. data/lib/virtualbox/com/interface/4.0.x/{fault_tolerance_state.rb → FaultToleranceState.rb} +0 -0
  42. data/lib/virtualbox/com/interface/4.0.x/{firmware_type.rb → FirmwareType.rb} +0 -0
  43. data/lib/virtualbox/com/interface/4.0.x/{guest.rb → Guest.rb} +0 -0
  44. data/lib/virtualbox/com/interface/4.0.x/{guest_os_type.rb → GuestOSType.rb} +0 -0
  45. data/lib/virtualbox/com/interface/4.0.x/{hw_virt_ex_property_type.rb → HWVirtExPropertyType.rb} +0 -0
  46. data/lib/virtualbox/com/interface/4.0.x/{host.rb → Host.rb} +6 -6
  47. data/lib/virtualbox/com/interface/4.0.x/{host_network_interface.rb → HostNetworkInterface.rb} +0 -0
  48. data/lib/virtualbox/com/interface/4.0.x/{host_network_interface_medium_type.rb → HostNetworkInterfaceMediumType.rb} +0 -0
  49. data/lib/virtualbox/com/interface/4.0.x/{host_network_interface_status.rb → HostNetworkInterfaceStatus.rb} +0 -0
  50. data/lib/virtualbox/com/interface/4.0.x/{host_network_interface_type.rb → HostNetworkInterfaceType.rb} +0 -0
  51. data/lib/virtualbox/com/interface/4.0.x/{host_usb_device.rb → HostUSBDevice.rb} +3 -1
  52. data/lib/virtualbox/com/interface/4.0.x/{host_usb_device_filter.rb → HostUSBDeviceFilter.rb} +3 -1
  53. data/lib/virtualbox/com/interface/4.0.x/{keyboard_hid_type.rb → KeyboardHidType.rb} +0 -0
  54. data/lib/virtualbox/com/interface/4.0.x/{lock_type.rb → LockType.rb} +0 -0
  55. data/lib/virtualbox/com/interface/4.0.x/{machine.rb → Machine.rb} +0 -0
  56. data/lib/virtualbox/com/interface/4.0.x/{machine_state.rb → MachineState.rb} +0 -0
  57. data/lib/virtualbox/com/interface/4.0.x/{medium.rb → Medium.rb} +0 -0
  58. data/lib/virtualbox/com/interface/4.0.x/{medium_attachment.rb → MediumAttachment.rb} +0 -0
  59. data/lib/virtualbox/com/interface/4.0.x/{medium_format.rb → MediumFormat.rb} +0 -0
  60. data/lib/virtualbox/com/interface/4.0.x/{medium_state.rb → MediumState.rb} +0 -0
  61. data/lib/virtualbox/com/interface/4.0.x/{medium_type.rb → MediumType.rb} +0 -0
  62. data/lib/virtualbox/com/interface/4.0.x/{medium_variant.rb → MediumVariant.rb} +0 -0
  63. data/lib/virtualbox/com/interface/4.0.x/{nat_alias_mode.rb → NATAliasMode.rb} +0 -0
  64. data/lib/virtualbox/com/interface/4.0.x/{nat_engine.rb → NATEngine.rb} +0 -0
  65. data/lib/virtualbox/com/interface/4.0.x/{nat_protocol.rb → NATProtocol.rb} +0 -0
  66. data/lib/virtualbox/com/interface/4.0.x/{nsiexception.rb → NSIException.rb} +0 -0
  67. data/lib/virtualbox/com/interface/4.0.x/{nsisupports.rb → NSISupports.rb} +3 -0
  68. data/lib/virtualbox/com/interface/4.0.x/{network_adapter.rb → NetworkAdapter.rb} +0 -0
  69. data/lib/virtualbox/com/interface/4.0.x/{network_adapter_type.rb → NetworkAdapterType.rb} +0 -0
  70. data/lib/virtualbox/com/interface/4.0.x/{network_attachment_type.rb → NetworkAttachmentType.rb} +0 -0
  71. data/lib/virtualbox/com/interface/4.0.x/{parallel_port.rb → ParallelPort.rb} +0 -0
  72. data/lib/virtualbox/com/interface/4.0.x/{pci_device_attachment.rb → PciDeviceAttachment.rb} +0 -0
  73. data/lib/virtualbox/com/interface/4.0.x/{pointing_hid_type.rb → PointingHidType.rb} +0 -0
  74. data/lib/virtualbox/com/interface/4.0.x/{port_mode.rb → PortMode.rb} +0 -0
  75. data/lib/virtualbox/com/interface/4.0.x/{progress.rb → Progress.rb} +0 -0
  76. data/lib/virtualbox/com/interface/4.0.x/{serial_port.rb → SerialPort.rb} +0 -0
  77. data/lib/virtualbox/com/interface/4.0.x/{session.rb → Session.rb} +0 -0
  78. data/lib/virtualbox/com/interface/4.0.x/{session_state.rb → SessionState.rb} +0 -0
  79. data/lib/virtualbox/com/interface/4.0.x/{session_type.rb → SessionType.rb} +0 -0
  80. data/lib/virtualbox/com/interface/4.0.x/{shared_folder.rb → SharedFolder.rb} +0 -0
  81. data/lib/virtualbox/com/interface/4.0.x/{snapshot.rb → Snapshot.rb} +0 -0
  82. data/lib/virtualbox/com/interface/4.0.x/{storage_bus.rb → StorageBus.rb} +0 -0
  83. data/lib/virtualbox/com/interface/4.0.x/{storage_controller.rb → StorageController.rb} +0 -0
  84. data/lib/virtualbox/com/interface/4.0.x/{storage_controller_type.rb → StorageControllerType.rb} +0 -0
  85. data/lib/virtualbox/com/interface/4.0.x/{system_properties.rb → SystemProperties.rb} +0 -0
  86. data/lib/virtualbox/com/interface/4.0.x/{usb_controller.rb → USBController.rb} +0 -0
  87. data/lib/virtualbox/com/interface/4.0.x/{usb_device.rb → USBDevice.rb} +0 -0
  88. data/lib/virtualbox/com/interface/4.0.x/{usb_device_filter.rb → USBDeviceFilter.rb} +0 -0
  89. data/lib/virtualbox/com/interface/4.0.x/{usb_device_filter_action.rb → USBDeviceFilterAction.rb} +0 -0
  90. data/lib/virtualbox/com/interface/4.0.x/{usb_device_state.rb → USBDeviceState.rb} +0 -0
  91. data/lib/virtualbox/com/interface/4.0.x/{vrde_server.rb → VRDEServer.rb} +0 -0
  92. data/lib/virtualbox/com/interface/4.0.x/{virtualbox.rb → VirtualBox.rb} +1 -1
  93. data/lib/virtualbox/com/interface/4.0.x/{virtual_box_error_info.rb → VirtualBoxErrorInfo.rb} +3 -1
  94. data/lib/virtualbox/com/interface/4.0.x/{virtual_system_description.rb → VirtualSystemDescription.rb} +0 -0
  95. data/lib/virtualbox/com/interface/4.0.x/{virtual_system_description_type.rb → VirtualSystemDescriptionType.rb} +0 -0
  96. data/lib/virtualbox/com/interface/4.0.x/{virtual_system_description_value_type.rb → VirtualSystemDescriptionValueType.rb} +0 -0
  97. data/lib/virtualbox/com/interface/{3.2.x/access_mode.rb → 4.1.x/AccessMode.rb} +2 -2
  98. data/lib/virtualbox/com/interface/4.1.x/AdditionsFacility.rb +17 -0
  99. data/lib/virtualbox/com/interface/4.1.x/AdditionsFacilityClass.rb +17 -0
  100. data/lib/virtualbox/com/interface/4.1.x/AdditionsFacilityStatus.rb +19 -0
  101. data/lib/virtualbox/com/interface/4.1.x/AdditionsFacilityType.rb +17 -0
  102. data/lib/virtualbox/com/interface/4.1.x/AdditionsRunLevelType.rb +14 -0
  103. data/lib/virtualbox/com/interface/{3.2.x/appliance.rb → 4.1.x/Appliance.rb} +5 -4
  104. data/lib/virtualbox/com/interface/{3.1.x/audio_adapter.rb → 4.1.x/AudioAdapter.rb} +2 -2
  105. data/lib/virtualbox/com/interface/{3.1.x/audio_controller_type.rb → 4.1.x/AudioControllerType.rb} +2 -2
  106. data/lib/virtualbox/com/interface/{3.2.x/audio_driver_type.rb → 4.1.x/AudioDriverType.rb} +2 -2
  107. data/lib/virtualbox/com/interface/{3.1.x/vrdp_auth_type.rb → 4.1.x/AuthType.rb} +3 -3
  108. data/lib/virtualbox/com/interface/{3.1.x/bios_boot_menu_mode.rb → 4.1.x/BIOSBootMenuMode.rb} +2 -2
  109. data/lib/virtualbox/com/interface/{3.2.x/bios_settings.rb → 4.1.x/BIOSSettings.rb} +2 -2
  110. data/lib/virtualbox/com/interface/4.1.x/BandwidthControl.rb +18 -0
  111. data/lib/virtualbox/com/interface/4.1.x/BandwidthGroup.rb +16 -0
  112. data/lib/virtualbox/com/interface/4.1.x/BandwidthGroupType.rb +11 -0
  113. data/lib/virtualbox/com/interface/4.1.x/ChipsetType.rb +11 -0
  114. data/lib/virtualbox/com/interface/4.1.x/CleanupMode.rb +12 -0
  115. data/lib/virtualbox/com/interface/{3.2.x/clipboard_mode.rb → 4.1.x/ClipboardMode.rb} +2 -2
  116. data/lib/virtualbox/com/interface/4.1.x/CloneMode.rb +13 -0
  117. data/lib/virtualbox/com/interface/4.1.x/CloneOptions.rb +14 -0
  118. data/lib/virtualbox/com/interface/{3.1.x/console.rb → 4.1.x/Console.rb} +10 -7
  119. data/lib/virtualbox/com/interface/{3.2.x/cpu_property_type.rb → 4.1.x/CpuPropertyType.rb} +2 -2
  120. data/lib/virtualbox/com/interface/{3.1.x/dhcp_server.rb → 4.1.x/DHCPServer.rb} +2 -2
  121. data/lib/virtualbox/com/interface/4.1.x/DataType.rb +11 -0
  122. data/lib/virtualbox/com/interface/{3.1.x/device_type.rb → 4.1.x/DeviceType.rb} +2 -2
  123. data/lib/virtualbox/com/interface/4.1.x/DirectoryCreateFlag.rb +12 -0
  124. data/lib/virtualbox/com/interface/4.1.x/DirectoryOpenFlag.rb +11 -0
  125. data/lib/virtualbox/com/interface/{3.2.x/guest.rb → 4.1.x/EventSource.rb} +4 -4
  126. data/lib/virtualbox/com/interface/4.1.x/ExecuteProcessFlag.rb +15 -0
  127. data/lib/virtualbox/com/interface/4.1.x/ExecuteProcessStatus.rb +19 -0
  128. data/lib/virtualbox/com/interface/4.1.x/FaultToleranceState.rb +11 -0
  129. data/lib/virtualbox/com/interface/{3.1.x/firmware_type.rb → 4.1.x/FirmwareType.rb} +2 -2
  130. data/lib/virtualbox/com/interface/4.1.x/Guest.rb +36 -0
  131. data/lib/virtualbox/com/interface/4.1.x/GuestDirEntry.rb +15 -0
  132. data/lib/virtualbox/com/interface/4.1.x/GuestDirEntryType.rb +14 -0
  133. data/lib/virtualbox/com/interface/{3.2.x/guest_os_type.rb → 4.1.x/GuestOSType.rb} +2 -2
  134. data/lib/virtualbox/com/interface/{3.1.x/hw_virt_ex_property_type.rb → 4.1.x/HWVirtExPropertyType.rb} +4 -3
  135. data/lib/virtualbox/com/interface/{3.1.x/host.rb → 4.1.x/Host.rb} +8 -6
  136. data/lib/virtualbox/com/interface/{3.1.x/host_network_interface.rb → 4.1.x/HostNetworkInterface.rb} +2 -2
  137. data/lib/virtualbox/com/interface/{3.1.x/host_network_interface_medium_type.rb → 4.1.x/HostNetworkInterfaceMediumType.rb} +2 -2
  138. data/lib/virtualbox/com/interface/{3.2.x/host_network_interface_status.rb → 4.1.x/HostNetworkInterfaceStatus.rb} +2 -2
  139. data/lib/virtualbox/com/interface/{3.1.x/host_network_interface_type.rb → 4.1.x/HostNetworkInterfaceType.rb} +2 -2
  140. data/lib/virtualbox/com/interface/{3.1.x/host_usb_device.rb → 4.1.x/HostUSBDevice.rb} +4 -2
  141. data/lib/virtualbox/com/interface/{3.2.x/host_usb_device_filter.rb → 4.1.x/HostUSBDeviceFilter.rb} +4 -2
  142. data/lib/virtualbox/com/interface/4.1.x/ImportOptions.rb +12 -0
  143. data/lib/virtualbox/com/interface/{3.2.x/keyboard_hid_type.rb → 4.1.x/KeyboardHidType.rb} +2 -2
  144. data/lib/virtualbox/com/interface/4.1.x/LockType.rb +11 -0
  145. data/lib/virtualbox/com/interface/{3.2.x/machine.rb → 4.1.x/Machine.rb} +34 -15
  146. data/lib/virtualbox/com/interface/{3.1.x/machine_state.rb → 4.1.x/MachineState.rb} +1 -1
  147. data/lib/virtualbox/com/interface/{3.2.x/medium.rb → 4.1.x/Medium.rb} +5 -2
  148. data/lib/virtualbox/com/interface/{3.1.x/medium_attachment.rb → 4.1.x/MediumAttachment.rb} +6 -2
  149. data/lib/virtualbox/com/interface/{3.1.x/medium_format.rb → 4.1.x/MediumFormat.rb} +2 -2
  150. data/lib/virtualbox/com/interface/{3.1.x/medium_state.rb → 4.1.x/MediumState.rb} +2 -2
  151. data/lib/virtualbox/com/interface/{3.2.x/medium_type.rb → 4.1.x/MediumType.rb} +2 -2
  152. data/lib/virtualbox/com/interface/{3.1.x/medium_variant.rb → 4.1.x/MediumVariant.rb} +2 -2
  153. data/lib/virtualbox/com/interface/{3.2.x/nat_alias_mode.rb → 4.1.x/NATAliasMode.rb} +2 -2
  154. data/lib/virtualbox/com/interface/{3.2.x/nat_engine.rb → 4.1.x/NATEngine.rb} +2 -2
  155. data/lib/virtualbox/com/interface/{3.2.x/nat_protocol.rb → 4.1.x/NATProtocol.rb} +2 -2
  156. data/lib/virtualbox/com/interface/{3.1.x/nsiexception.rb → 4.1.x/NSIException.rb} +2 -2
  157. data/lib/virtualbox/com/interface/{3.1.x/nsisupports.rb → 4.1.x/NSISupports.rb} +4 -1
  158. data/lib/virtualbox/com/interface/{3.2.x/network_adapter.rb → 4.1.x/NetworkAdapter.rb} +11 -11
  159. data/lib/virtualbox/com/interface/4.1.x/NetworkAdapterPromiscModePolicy.rb +13 -0
  160. data/lib/virtualbox/com/interface/{3.1.x/network_adapter_type.rb → 4.1.x/NetworkAdapterType.rb} +2 -2
  161. data/lib/virtualbox/com/interface/{3.1.x/network_attachment_type.rb → 4.1.x/NetworkAttachmentType.rb} +3 -3
  162. data/lib/virtualbox/com/interface/{3.2.x/parallel_port.rb → 4.1.x/ParallelPort.rb} +2 -2
  163. data/lib/virtualbox/com/interface/4.1.x/PciDeviceAttachment.rb +16 -0
  164. data/lib/virtualbox/com/interface/{3.2.x/pointing_hid_type.rb → 4.1.x/PointingHidType.rb} +2 -2
  165. data/lib/virtualbox/com/interface/{3.1.x/port_mode.rb → 4.1.x/PortMode.rb} +1 -1
  166. data/lib/virtualbox/com/interface/4.1.x/ProcessOutputFlag.rb +12 -0
  167. data/lib/virtualbox/com/interface/{3.2.x/progress.rb → 4.1.x/Progress.rb} +3 -1
  168. data/lib/virtualbox/com/interface/{3.1.x/serial_port.rb → 4.1.x/SerialPort.rb} +2 -2
  169. data/lib/virtualbox/com/interface/{3.2.x/session.rb → 4.1.x/Session.rb} +2 -2
  170. data/lib/virtualbox/com/interface/{3.1.x/session_state.rb → 4.1.x/SessionState.rb} +2 -2
  171. data/lib/virtualbox/com/interface/{3.1.x/session_type.rb → 4.1.x/SessionType.rb} +3 -3
  172. data/lib/virtualbox/com/interface/4.1.x/SettingsVersion.rb +25 -0
  173. data/lib/virtualbox/com/interface/{3.1.x/shared_folder.rb → 4.1.x/SharedFolder.rb} +2 -2
  174. data/lib/virtualbox/com/interface/{3.1.x/snapshot.rb → 4.1.x/Snapshot.rb} +3 -2
  175. data/lib/virtualbox/com/interface/{3.2.x/storage_bus.rb → 4.1.x/StorageBus.rb} +2 -2
  176. data/lib/virtualbox/com/interface/{3.2.x/storage_controller.rb → 4.1.x/StorageController.rb} +3 -2
  177. data/lib/virtualbox/com/interface/{3.2.x/storage_controller_type.rb → 4.1.x/StorageControllerType.rb} +2 -2
  178. data/lib/virtualbox/com/interface/4.1.x/StorageDeviceChangedEvent.rb +14 -0
  179. data/lib/virtualbox/com/interface/{3.2.x/system_properties.rb → 4.1.x/SystemProperties.rb} +8 -6
  180. data/lib/virtualbox/com/interface/{3.2.x/usb_controller.rb → 4.1.x/USBController.rb} +2 -2
  181. data/lib/virtualbox/com/interface/{3.1.x/usb_device.rb → 4.1.x/USBDevice.rb} +2 -2
  182. data/lib/virtualbox/com/interface/{3.1.x/usb_device_filter.rb → 4.1.x/USBDeviceFilter.rb} +2 -2
  183. data/lib/virtualbox/com/interface/{3.2.x/usb_device_filter_action.rb → 4.1.x/USBDeviceFilterAction.rb} +2 -2
  184. data/lib/virtualbox/com/interface/{3.2.x/usb_device_state.rb → 4.1.x/USBDeviceState.rb} +2 -2
  185. data/lib/virtualbox/com/interface/4.1.x/VRDEServer.rb +23 -0
  186. data/lib/virtualbox/com/interface/{3.2.x/virtualbox.rb → 4.1.x/VirtualBox.rb} +13 -27
  187. data/lib/virtualbox/com/interface/{3.2.x/virtual_box_error_info.rb → 4.1.x/VirtualBoxErrorInfo.rb} +4 -2
  188. data/lib/virtualbox/com/interface/{3.2.x/virtual_system_description.rb → 4.1.x/VirtualSystemDescription.rb} +2 -2
  189. data/lib/virtualbox/com/interface/4.1.x/VirtualSystemDescriptionType.rb +34 -0
  190. data/lib/virtualbox/com/interface/{3.2.x/virtual_system_description_value_type.rb → 4.1.x/VirtualSystemDescriptionValueType.rb} +1 -1
  191. data/lib/virtualbox/com/util.rb +30 -8
  192. data/lib/virtualbox/exceptions.rb +14 -13
  193. data/lib/virtualbox/extra_data.rb +2 -0
  194. data/lib/virtualbox/hard_drive.rb +1 -1
  195. data/lib/virtualbox/host_network_interface.rb +1 -1
  196. data/lib/virtualbox/lib.rb +2 -0
  197. data/lib/virtualbox/medium.rb +2 -0
  198. data/lib/virtualbox/network_adapter.rb +6 -22
  199. data/lib/virtualbox/proxies.rb +6 -0
  200. data/lib/virtualbox/system_properties.rb +0 -1
  201. data/lib/virtualbox/version.rb +28 -30
  202. data/lib/virtualbox/vm.rb +75 -55
  203. data/test/test_helper.rb +2 -5
  204. data/test/virtualbox/abstract_model/attributable_test.rb +22 -0
  205. data/test/virtualbox/abstract_model/relatable_test.rb +21 -0
  206. data/test/virtualbox/abstract_model_test.rb +1 -8
  207. data/test/virtualbox/com/abstract_enum_test.rb +1 -1
  208. data/test/virtualbox/com/ffi/interface_test.rb +9 -6
  209. data/test/virtualbox/com/ffi/util_test.rb +0 -11
  210. data/test/virtualbox/com/implementer/ffi_test.rb +7 -21
  211. data/test/virtualbox/com/util_test.rb +0 -10
  212. data/test/virtualbox/host_network_interface_test.rb +1 -1
  213. data/test/virtualbox/network_adapter_test.rb +6 -32
  214. data/test/virtualbox/version_test.rb +1 -5
  215. data/test/virtualbox/vm_test.rb +11 -17
  216. data/virtualbox.gemspec +4 -2
  217. metadata +224 -250
  218. data/lib/virtualbox/com/ffi/interfaces.rb +0 -64
  219. data/lib/virtualbox/com/interface/3.1.x/access_mode.rb +0 -11
  220. data/lib/virtualbox/com/interface/3.1.x/appliance.rb +0 -22
  221. data/lib/virtualbox/com/interface/3.1.x/audio_driver_type.rb +0 -11
  222. data/lib/virtualbox/com/interface/3.1.x/bios_settings.rb +0 -21
  223. data/lib/virtualbox/com/interface/3.1.x/clipboard_mode.rb +0 -11
  224. data/lib/virtualbox/com/interface/3.1.x/cpu_property_type.rb +0 -11
  225. data/lib/virtualbox/com/interface/3.1.x/guest_os_type.rb +0 -23
  226. data/lib/virtualbox/com/interface/3.1.x/host_network_interface_status.rb +0 -11
  227. data/lib/virtualbox/com/interface/3.1.x/host_usb_device_filter.rb +0 -13
  228. data/lib/virtualbox/com/interface/3.1.x/machine.rb +0 -105
  229. data/lib/virtualbox/com/interface/3.1.x/medium.rb +0 -50
  230. data/lib/virtualbox/com/interface/3.1.x/medium_type.rb +0 -11
  231. data/lib/virtualbox/com/interface/3.1.x/network_adapter.rb +0 -30
  232. data/lib/virtualbox/com/interface/3.1.x/parallel_port.rb +0 -17
  233. data/lib/virtualbox/com/interface/3.1.x/progress.rb +0 -63
  234. data/lib/virtualbox/com/interface/3.1.x/session.rb +0 -18
  235. data/lib/virtualbox/com/interface/3.1.x/storage_bus.rb +0 -11
  236. data/lib/virtualbox/com/interface/3.1.x/storage_controller.rb +0 -23
  237. data/lib/virtualbox/com/interface/3.1.x/storage_controller_type.rb +0 -11
  238. data/lib/virtualbox/com/interface/3.1.x/system_properties.rb +0 -37
  239. data/lib/virtualbox/com/interface/3.1.x/usb_controller.rb +0 -20
  240. data/lib/virtualbox/com/interface/3.1.x/usb_device_filter_action.rb +0 -11
  241. data/lib/virtualbox/com/interface/3.1.x/usb_device_state.rb +0 -11
  242. data/lib/virtualbox/com/interface/3.1.x/virtual_box_error_info.rb +0 -17
  243. data/lib/virtualbox/com/interface/3.1.x/virtual_system_description.rb +0 -19
  244. data/lib/virtualbox/com/interface/3.1.x/virtual_system_description_type.rb +0 -14
  245. data/lib/virtualbox/com/interface/3.1.x/virtual_system_description_value_type.rb +0 -11
  246. data/lib/virtualbox/com/interface/3.1.x/virtualbox.rb +0 -67
  247. data/lib/virtualbox/com/interface/3.1.x/vrdp_server.rb +0 -19
  248. data/lib/virtualbox/com/interface/3.2.x/audio_adapter.rb +0 -15
  249. data/lib/virtualbox/com/interface/3.2.x/audio_controller_type.rb +0 -11
  250. data/lib/virtualbox/com/interface/3.2.x/bios_boot_menu_mode.rb +0 -11
  251. data/lib/virtualbox/com/interface/3.2.x/console.rb +0 -50
  252. data/lib/virtualbox/com/interface/3.2.x/device_type.rb +0 -11
  253. data/lib/virtualbox/com/interface/3.2.x/dhcp_server.rb +0 -22
  254. data/lib/virtualbox/com/interface/3.2.x/firmware_type.rb +0 -11
  255. data/lib/virtualbox/com/interface/3.2.x/host.rb +0 -43
  256. data/lib/virtualbox/com/interface/3.2.x/host_network_interface.rb +0 -30
  257. data/lib/virtualbox/com/interface/3.2.x/host_network_interface_medium_type.rb +0 -11
  258. data/lib/virtualbox/com/interface/3.2.x/host_network_interface_type.rb +0 -11
  259. data/lib/virtualbox/com/interface/3.2.x/host_usb_device.rb +0 -13
  260. data/lib/virtualbox/com/interface/3.2.x/hw_virt_ex_property_type.rb +0 -11
  261. data/lib/virtualbox/com/interface/3.2.x/machine_state.rb +0 -14
  262. data/lib/virtualbox/com/interface/3.2.x/medium_attachment.rb +0 -18
  263. data/lib/virtualbox/com/interface/3.2.x/medium_format.rb +0 -18
  264. data/lib/virtualbox/com/interface/3.2.x/medium_state.rb +0 -11
  265. data/lib/virtualbox/com/interface/3.2.x/medium_variant.rb +0 -11
  266. data/lib/virtualbox/com/interface/3.2.x/network_adapter_type.rb +0 -11
  267. data/lib/virtualbox/com/interface/3.2.x/network_attachment_type.rb +0 -11
  268. data/lib/virtualbox/com/interface/3.2.x/nsiexception.rb +0 -23
  269. data/lib/virtualbox/com/interface/3.2.x/nsisupports.rb +0 -15
  270. data/lib/virtualbox/com/interface/3.2.x/port_mode.rb +0 -11
  271. data/lib/virtualbox/com/interface/3.2.x/serial_port.rb +0 -19
  272. data/lib/virtualbox/com/interface/3.2.x/session_state.rb +0 -11
  273. data/lib/virtualbox/com/interface/3.2.x/session_type.rb +0 -11
  274. data/lib/virtualbox/com/interface/3.2.x/shared_folder.rb +0 -17
  275. data/lib/virtualbox/com/interface/3.2.x/snapshot.rb +0 -20
  276. data/lib/virtualbox/com/interface/3.2.x/usb_device.rb +0 -24
  277. data/lib/virtualbox/com/interface/3.2.x/usb_device_filter.rb +0 -23
  278. data/lib/virtualbox/com/interface/3.2.x/virtual_system_description_type.rb +0 -14
  279. data/lib/virtualbox/com/interface/3.2.x/vrdp_auth_type.rb +0 -11
  280. data/lib/virtualbox/com/interface/3.2.x/vrdp_server.rb +0 -21
  281. data/lib/virtualbox/ext/glob_loader.rb +0 -35
@@ -0,0 +1,12 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class DirectoryCreateFlag < AbstractEnum
6
+ map :none => 0,
7
+ :parents => 1
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class DirectoryOpenFlag < AbstractEnum
6
+ map :none => 0
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,13 +1,13 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_2_X
5
- class Guest < AbstractInterface
6
- IID = "TODO"
4
+ module Version_4_1_X
5
+ class EventSource < AbstractInterface
6
+ IID_STR = "TODO"
7
7
 
8
8
  # TODO
9
9
  end
10
10
  end
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -0,0 +1,15 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class ExecuteProcessFlag < AbstractEnum
6
+ map :none => 0,
7
+ :wait_for_process_start_only => 1,
8
+ :ignore_orphaned_processes => 2,
9
+ :hidden => 4,
10
+ :no_profile => 8
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class ExecuteProcessStatus < AbstractEnum
6
+ map :undefined => 0,
7
+ :started => 1,
8
+ :terminated_normally => 2,
9
+ :terminated_signal => 3,
10
+ :terminated_abnormally => 4,
11
+ :timed_out_killed => 5,
12
+ :timed_out_abnormally => 6,
13
+ :down => 7,
14
+ :error => 8
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class FaultToleranceState < AbstractEnum
6
+ map [:null, :inactive, :master, :standby]
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,11 +1,11 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class FirmwareType < AbstractEnum
6
6
  map [:bios, :efi, :efi32, :efi64, :efidual]
7
7
  end
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -0,0 +1,36 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class Guest < AbstractInterface
6
+ IID = "af2766d9-ebff-455f-b5ce-c6f855b8f584"
7
+
8
+ property :os_type_id, WSTRING, :readonly => true
9
+ property :additions_run_level, :AdditionsRunLevelType, :readonly => true
10
+ property :additions_version, WSTRING, :readonly => true
11
+ property :facilities, [:AdditionsFacility], :readonly => true
12
+ property :memory_balloon_size, T_UINT32
13
+ property :statistics_update_interval, T_UINT32
14
+
15
+ function :internal_get_statistics, nil, [[:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
16
+ function :get_facility_status, :AdditionsFacilityStatus, [:AdditionsFacilityType, [:out, T_UINT64]]
17
+ function :get_additions_status, T_BOOL, [:AdditionsRunLevelType]
18
+ function :set_credentials, nil, [WSTRING, WSTRING, WSTRING, T_BOOL]
19
+ function :execute_process, :Progress, [WSTRING, T_UINT32, [WSTRING], [WSTRING], WSTRING, WSTRING, T_UINT32, [:out, T_UINT32]]
20
+ function :get_process_output, [T_UINT8], [T_UINT32, T_UINT32, T_UINT32, T_INT64]
21
+ function :get_process_status, :ExecuteProcessStatus, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32]]
22
+ function :copy_from_guest, :Progress, [WSTRING, WSTRING, WSTRING, WSTRING, T_UINT32]
23
+ function :copy_to_guest, :Progress, [WSTRING, WSTRING, WSTRING, WSTRING, T_UINT32]
24
+ function :directory_close, nil, [T_UINT32]
25
+ function :directory_create, nil, [WSTRING, WSTRING, WSTRING, T_UINT32, T_UINT32]
26
+ function :directory_open, T_UINT32, [WSTRING, WSTRING, T_UINT32, WSTRING, WSTRING]
27
+ function :directory_read, :GuestDirEntry, [T_UINT32]
28
+ function :file_exists, T_BOOL, [WSTRING, WSTRING, WSTRING]
29
+ function :file_query_size, T_INT64, [WSTRING, WSTRING, WSTRING]
30
+ function :set_process_input, T_UINT32, [T_UINT32, T_UINT32, T_UINT32, [T_UINT8]]
31
+ function :update_guest_additions, :Progress, [WSTRING, T_UINT32]
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class GuestDirEntry < AbstractInterface
6
+ IID = "20a66efc-c2f6-4438-826f-38454c04369e"
7
+
8
+ property :node_id, T_INT64, :readonly => true
9
+ property :name, WSTRING, :readonly => true
10
+ property :type, :GuestDirEntryType, :readonly => true
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class GuestDirEntryType < AbstractEnum
6
+ map :unknown => 0,
7
+ :directory => 4,
8
+ :file => 10,
9
+ :symlink => 12
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,7 +1,7 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_2_X
4
+ module Version_4_1_X
5
5
  class GuestOSType < AbstractInterface
6
6
  IID = "cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
7
7
 
@@ -30,4 +30,4 @@ module VirtualBox
30
30
  end
31
31
  end
32
32
  end
33
- end
33
+ end
@@ -1,11 +1,12 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class HWVirtExPropertyType < AbstractEnum
6
- map [:null, :enabled, :exclusive, :vpid, :nested_paging]
6
+ map [:null, :enabled, :exclusive, :vpid, :nested_paging, :large_pages,
7
+ :force]
7
8
  end
8
9
  end
9
10
  end
10
11
  end
11
- end
12
+ end
@@ -1,7 +1,7 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class Host < AbstractInterface
6
6
  IID_STR = "e380cbfc-ae65-4fa6-899e-45ded6b3132a"
7
7
 
@@ -10,16 +10,17 @@ module VirtualBox
10
10
  property :usb_devices, [:HostUSBDevice], :readonly => true
11
11
  property :usb_device_filters, [:HostUSBDeviceFilter], :readonly => true
12
12
  property :network_interfaces, [:HostNetworkInterface], :readonly => true
13
- property :processor_count, T_ULONG, :readonly => true
14
- property :processor_online_count, T_ULONG, :readonly => true
15
- property :memory_size, T_ULONG, :readonly => true
16
- property :memory_available, T_ULONG, :readonly => true
13
+ property :processor_count, T_UINT64, :readonly => true
14
+ property :processor_online_count, T_UINT64, :readonly => true
15
+ property :processor_core_count, T_UINT64, :readonly => true
16
+ property :memory_size, T_UINT64, :readonly => true
17
+ property :memory_available, T_UINT64, :readonly => true
17
18
  property :operating_system, WSTRING, :readonly => true
18
19
  property :os_version, WSTRING, :readonly => true
19
20
  property :utc_time, T_INT64, :readonly => true
20
21
  property :acceleration_3d_available, T_BOOL, :readonly => true
21
22
 
22
- function :get_processor_speed, T_ULONG, [T_UINT32]
23
+ function :get_processor_speed, T_UINT64, [T_UINT32]
23
24
  function :get_processor_feature, T_BOOL, [T_UINT32] # TODO ENUM
24
25
  function :get_processor_description, WSTRING, [T_UINT32]
25
26
  function :get_processor_cpu_id_leaf, nil, [T_UINT32, T_UINT32, T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
@@ -35,6 +36,7 @@ module VirtualBox
35
36
  function :find_host_network_interfaces_of_type, [:HostNetworkInterface], [:HostNetworkInterfaceType]
36
37
  function :find_usb_device_by_id, :HostUSBDevice, [WSTRING]
37
38
  function :find_usb_device_by_address, :HostUSBDevice, [WSTRING]
39
+ function :generate_mac_address, WSTRING, []
38
40
  end
39
41
  end
40
42
  end
@@ -1,7 +1,7 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class HostNetworkInterface < AbstractInterface
6
6
  IID = "ce6fae58-7642-4102-b5db-c9005c2320a8"
7
7
 
@@ -27,4 +27,4 @@ module VirtualBox
27
27
  end
28
28
  end
29
29
  end
30
- end
30
+ end
@@ -1,11 +1,11 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class HostNetworkInterfaceMediumType < AbstractEnum
6
6
  map [:unknown, :ethernet, :ppp, :slip]
7
7
  end
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,11 +1,11 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_2_X
4
+ module Version_4_1_X
5
5
  class HostNetworkInterfaceStatus < AbstractEnum
6
6
  map [:unknown, :up, :down]
7
7
  end
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,11 +1,11 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class HostNetworkInterfaceType < AbstractEnum
6
6
  map [:null, :bridged, :host_only]
7
7
  end
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -1,13 +1,15 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_1_X
4
+ module Version_4_1_X
5
5
  class HostUSBDevice < AbstractInterface
6
6
  IID = "173b4b44-d268-4334-a00d-b6521c9a740a"
7
7
 
8
+ parent :USBDevice
9
+
8
10
  property :state, :USBDeviceState, :readonly => true
9
11
  end
10
12
  end
11
13
  end
12
14
  end
13
- end
15
+ end
@@ -1,13 +1,15 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_2_X
4
+ module Version_4_1_X
5
5
  class HostUSBDeviceFilter < AbstractInterface
6
6
  IID = "4cc70246-d74a-400f-8222-3900489c0374"
7
7
 
8
+ parent :USBDeviceFilter
9
+
8
10
  property :action, :USBDeviceFilterAction
9
11
  end
10
12
  end
11
13
  end
12
14
  end
13
- end
15
+ end
@@ -0,0 +1,12 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class ImportOptions < AbstractEnum
6
+ map :keep_all_macs => 1,
7
+ :keep_all_nats => 2
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,11 +1,11 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_2_X
4
+ module Version_4_1_X
5
5
  class KeyboardHidType < AbstractEnum
6
6
  map [:null, :none, :ps2_keyboard, :usb_keyboard, :combo_keyboard]
7
7
  end
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -0,0 +1,11 @@
1
+ module VirtualBox
2
+ module COM
3
+ module Interface
4
+ module Version_4_1_X
5
+ class LockType < AbstractEnum
6
+ map [:null, :shared, :write]
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,7 +1,7 @@
1
1
  module VirtualBox
2
2
  module COM
3
3
  module Interface
4
- module Version_3_2_X
4
+ module Version_4_1_X
5
5
  class Machine < AbstractInterface
6
6
  IID_STR = "99404f50-dd10-40d3-889b-dd2f79f1e95e"
7
7
 
@@ -16,20 +16,24 @@ module VirtualBox
16
16
  property :hardware_uuid, WSTRING
17
17
  property :cpu_count, T_UINT32
18
18
  property :cpu_hot_plug_enabled, T_BOOL
19
- property :memory_size, T_UINT32
20
- property :memory_balloon_size, T_UINT32
19
+ property :cpu_execution_cap, T_UINT64
20
+ property :memory_size, T_UINT64
21
+ property :memory_balloon_size, T_UINT64
21
22
  property :page_fusion_enabled, T_BOOL
22
23
  property :vram_size, T_UINT32
23
24
  property :accelerate_3d_enabled, T_BOOL
24
25
  property :accelerate_2d_video_enabled, T_BOOL
25
- property :monitor_count, T_UINT32
26
+ property :monitor_count, T_UINT64
26
27
  property :bios_settings, :BIOSSettings, :readonly => true
27
28
  property :firmware_type, :FirmwareType
28
29
  property :pointing_hid_type, T_UINT32
29
30
  property :keyboard_hid_type, T_UINT32
30
31
  property :hpet_enabled, T_BOOL
32
+ property :chipset_type, :ChipsetType
31
33
  property :snapshot_folder, WSTRING
32
- property :vrdp_server, :VRDPServer, :readonly => true
34
+ property :vrde_server, :VRDEServer, :readonly => true
35
+ property :emulated_usb_web_camera_enabled, T_BOOL
36
+ property :emulated_usb_card_reader_enabled, T_BOOL
33
37
  property :medium_attachments, [:MediumAttachment], :readonly => true
34
38
  property :usb_controller, :USBController, :readonly => true
35
39
  property :audio_adapter, :AudioAdapter, :readonly => true
@@ -38,7 +42,7 @@ module VirtualBox
38
42
  property :settings_modified, T_BOOL, :readonly => true
39
43
  property :session_state, :SessionState, :readonly => true
40
44
  property :session_type, WSTRING, :readonly => true
41
- property :session_pid, T_UINT32, :readonly => true
45
+ property :session_pid, T_UINT64, :readonly => true
42
46
  property :state, :MachineState, :readonly => true
43
47
  property :last_state_change, T_INT64, :readonly => true
44
48
  property :state_file_path, WSTRING, :readonly => true
@@ -53,25 +57,39 @@ module VirtualBox
53
57
  property :teleporter_port, T_UINT32
54
58
  property :teleporter_address, WSTRING
55
59
  property :teleporter_password, WSTRING
60
+ property :fault_tolerance_state, :FaultToleranceState
61
+ property :fault_tolerance_port, T_UINT64
62
+ property :fault_tolerance_address, WSTRING
63
+ property :fault_tolerance_password, WSTRING
64
+ property :fault_tolerance_sync_interval, T_UINT64
56
65
  property :rtc_use_utc, T_BOOL
57
66
  property :io_cache_enabled, T_BOOL
58
67
  property :io_cache_size, T_UINT32
59
- property :io_bandwidth_max, T_UINT32
68
+ property :bandwidth_control, :BandwidthControl, :readonly => true
69
+ property :pci_device_assignments, [:PciDeviceAttachment], :readonly => true
60
70
 
71
+ function :lock_machine, nil, [:Session, :LockType]
72
+ function :launch_vm_process, :Progress, [:Session, WSTRING, WSTRING]
61
73
  function :set_boot_order, nil, [T_UINT32, :DeviceType]
62
- function :get_boot_order, :DeviceType, [T_UINT32]
63
- function :attach_device, nil, [WSTRING, T_INT32, T_INT32, :DeviceType, WSTRING]
74
+ function :get_boot_order, :DeviceType, [T_UINT64]
75
+ function :attach_device, nil, [WSTRING, T_INT32, T_INT32, :DeviceType, :Medium]
64
76
  function :detach_device, nil, [WSTRING, T_INT32, T_INT32]
65
77
  function :passthrough_device, nil, [WSTRING, T_INT32, T_INT32, T_BOOL]
66
- function :mount_medium, nil, [WSTRING, T_INT32, T_INT32, WSTRING, T_BOOL]
78
+ function :temporary_eject_device, nil, [WSTRING, T_INT32, T_INT32, T_BOOL]
79
+ function :non_rational_device, nil, [WSTRING, T_INT32, T_INT32, T_BOOL]
80
+ function :set_bandwidth_group_for_device, nil, [WSTRING, T_INT64, T_INT64, :BandwidthGroup]
81
+ function :mount_medium, nil, [WSTRING, T_INT32, T_INT32, :Medium, T_BOOL]
67
82
  function :get_medium, :Medium, [WSTRING, T_INT32, T_INT32]
68
83
  function :get_medium_attachments_of_controller, [:MediumAttachments], [WSTRING]
69
84
  function :get_medium_attachment, :MediumAttachment, [WSTRING, T_INT32, T_INT32]
85
+ function :attach_host_pci_device, nil, [T_INT32, T_INT32, :EventContext, T_BOOL]
86
+ function :detach_host_pci_device, nil, [T_INT32]
70
87
  function :get_network_adapter, :NetworkAdapter, [T_UINT32]
71
88
  function :add_storage_controller, :StorageController, [WSTRING, :StorageBus]
72
89
  function :get_storage_controller_by_name, :StorageController, [WSTRING]
73
90
  function :get_storage_controller_by_instance, :StorageController, [T_UINT32]
74
91
  function :remove_storage_controller, nil, [WSTRING]
92
+ function :set_storage_controller_bootable, nil, [WSTRING, T_BOOL]
75
93
  function :get_serial_port, :SerialPort, [T_UINT32]
76
94
  function :get_parallel_port, :ParallelPort, [T_UINT32]
77
95
  function :get_extra_data_keys, [WSTRING], []
@@ -87,12 +105,11 @@ module VirtualBox
87
105
  function :set_hw_virt_ex_property, nil, [:HWVirtExPropertyType, T_BOOL]
88
106
  function :save_settings, nil, []
89
107
  function :discard_settings, nil, []
90
- function :delete_settings, nil, []
91
- function :export, :VirtualSystemDescription, [:Appliance]
92
- function :get_snapshot, :Snapshot, [WSTRING]
108
+ function :unregister, [:Medium], [:CleanupMode]
109
+ function :delete, :Progress, [[:Medium]]
110
+ function :export, :VirtualSystemDescription, [:Appliance, WSTRING]
93
111
  function :find_snapshot, :Snapshot, [WSTRING]
94
- function :set_current_snapshot, nil, [WSTRING]
95
- function :create_shared_folder, nil, [WSTRING, WSTRING, T_BOOL]
112
+ function :create_shared_folder, nil, [WSTRING, WSTRING, T_BOOL, T_BOOL]
96
113
  function :remove_shared_folder, nil, [WSTRING]
97
114
  function :can_show_console_window, T_BOOL, []
98
115
  function :show_console_window, T_UINT64, []
@@ -102,6 +119,7 @@ module VirtualBox
102
119
  function :set_guest_property, nil, [WSTRING, WSTRING, WSTRING]
103
120
  function :set_guest_propetty_value, nil, [WSTRING, WSTRING]
104
121
  function :enumerate_guest_properties, nil, [WSTRING, [:out, [WSTRING]], [:out, [WSTRING]], [:out, [T_UINT64]], [:out, [WSTRING]]]
122
+ function :query_saved_guest_size, nil, [T_UINT64, [:out, T_UINT64], [:out, T_UINT64]]
105
123
  function :query_saved_thumbnail_size, nil, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
106
124
  function :read_saved_thumbnail_to_array, [T_UINT8], [T_UINT32, T_BOOL, [:out, T_UINT32], [:out, T_UINT32]]
107
125
  function :query_saved_screenshot_png_size, nil, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
@@ -111,6 +129,7 @@ module VirtualBox
111
129
  function :get_cpu_status, T_BOOL, [T_UINT32]
112
130
  function :query_log_filename, WSTRING, [T_UINT32]
113
131
  function :read_log, [T_UINT8], [T_UINT32, T_UINT64, T_UINT64]
132
+ function :clone_to, :Progress, [:Machine, :CloneMode, [:CloneOptions]]
114
133
  end
115
134
  end
116
135
  end