virtualbox 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/Readme.md +5 -21
- data/VERSION +1 -1
- data/docs/WhatsNew.md +9 -47
- data/lib/virtualbox.rb +7 -30
- data/lib/virtualbox/abstract_model.rb +25 -5
- data/lib/virtualbox/abstract_model/attributable.rb +5 -1
- data/lib/virtualbox/abstract_model/dirty.rb +2 -0
- data/lib/virtualbox/abstract_model/interface_attributes.rb +96 -0
- data/lib/virtualbox/abstract_model/relatable.rb +19 -8
- data/lib/virtualbox/appliance.rb +59 -0
- data/lib/virtualbox/audio_adapter.rb +44 -0
- data/lib/virtualbox/bios.rb +44 -0
- data/lib/virtualbox/com.rb +23 -0
- data/lib/virtualbox/com/abstract_enum.rb +42 -0
- data/lib/virtualbox/com/abstract_implementer.rb +43 -0
- data/lib/virtualbox/com/abstract_interface.rb +165 -0
- data/lib/virtualbox/com/ffi/interface.rb +141 -0
- data/lib/virtualbox/com/ffi/interfaces.rb +42 -0
- data/lib/virtualbox/com/ffi/util.rb +101 -0
- data/lib/virtualbox/com/ffi/vboxxpcomc.rb +31 -0
- data/lib/virtualbox/com/ffi_interface.rb +65 -0
- data/lib/virtualbox/com/implementer/base.rb +52 -0
- data/lib/virtualbox/com/implementer/ffi.rb +350 -0
- data/lib/virtualbox/com/implementer/mscom.rb +165 -0
- data/lib/virtualbox/com/implementer/nil.rb +10 -0
- data/lib/virtualbox/com/interface/appliance.rb +20 -0
- data/lib/virtualbox/com/interface/audio_adapter.rb +13 -0
- data/lib/virtualbox/com/interface/audio_controller_type.rb +9 -0
- data/lib/virtualbox/com/interface/audio_driver_type.rb +9 -0
- data/lib/virtualbox/com/interface/bios_boot_menu_mode.rb +9 -0
- data/lib/virtualbox/com/interface/bios_settings.rb +19 -0
- data/lib/virtualbox/com/interface/clipboard_mode.rb +9 -0
- data/lib/virtualbox/com/interface/console.rb +48 -0
- data/lib/virtualbox/com/interface/cpu_property_type.rb +9 -0
- data/lib/virtualbox/com/interface/device_type.rb +9 -0
- data/lib/virtualbox/com/interface/dhcp_server.rb +20 -0
- data/lib/virtualbox/com/interface/firmware_type.rb +9 -0
- data/lib/virtualbox/com/interface/guest_os_type.rb +21 -0
- data/lib/virtualbox/com/interface/host.rb +40 -0
- data/lib/virtualbox/com/interface/host_network_interface.rb +28 -0
- data/lib/virtualbox/com/interface/host_network_interface_medium_type.rb +9 -0
- data/lib/virtualbox/com/interface/host_network_interface_status.rb +9 -0
- data/lib/virtualbox/com/interface/host_network_interface_type.rb +9 -0
- data/lib/virtualbox/com/interface/host_usb_device.rb +11 -0
- data/lib/virtualbox/com/interface/host_usb_device_filter.rb +11 -0
- data/lib/virtualbox/com/interface/hw_virt_ex_property_type.rb +9 -0
- data/lib/virtualbox/com/interface/machine.rb +103 -0
- data/lib/virtualbox/com/interface/machine_state.rb +12 -0
- data/lib/virtualbox/com/interface/medium.rb +48 -0
- data/lib/virtualbox/com/interface/medium_attachment.rb +16 -0
- data/lib/virtualbox/com/interface/medium_format.rb +16 -0
- data/lib/virtualbox/com/interface/medium_state.rb +9 -0
- data/lib/virtualbox/com/interface/medium_type.rb +9 -0
- data/lib/virtualbox/com/interface/medium_variant.rb +9 -0
- data/lib/virtualbox/com/interface/network_adapter.rb +28 -0
- data/lib/virtualbox/com/interface/network_adapter_type.rb +9 -0
- data/lib/virtualbox/com/interface/network_attachment_type.rb +9 -0
- data/lib/virtualbox/com/interface/nsiexception.rb +21 -0
- data/lib/virtualbox/com/interface/nsisupports.rb +13 -0
- data/lib/virtualbox/com/interface/parallel_port.rb +15 -0
- data/lib/virtualbox/com/interface/port_mode.rb +9 -0
- data/lib/virtualbox/com/interface/progress.rb +58 -0
- data/lib/virtualbox/com/interface/serial_port.rb +17 -0
- data/lib/virtualbox/com/interface/session.rb +16 -0
- data/lib/virtualbox/com/interface/session_state.rb +9 -0
- data/lib/virtualbox/com/interface/session_type.rb +9 -0
- data/lib/virtualbox/com/interface/shared_folder.rb +15 -0
- data/lib/virtualbox/com/interface/snapshot.rb +18 -0
- data/lib/virtualbox/com/interface/storage_bus.rb +9 -0
- data/lib/virtualbox/com/interface/storage_controller.rb +21 -0
- data/lib/virtualbox/com/interface/storage_controller_type.rb +9 -0
- data/lib/virtualbox/com/interface/system_properties.rb +35 -0
- data/lib/virtualbox/com/interface/usb_controller.rb +18 -0
- data/lib/virtualbox/com/interface/usb_device.rb +22 -0
- data/lib/virtualbox/com/interface/usb_device_filter.rb +21 -0
- data/lib/virtualbox/com/interface/usb_device_filter_action.rb +9 -0
- data/lib/virtualbox/com/interface/usb_device_state.rb +9 -0
- data/lib/virtualbox/com/interface/virtual_box_error_info.rb +15 -0
- data/lib/virtualbox/com/interface/virtual_system_description.rb +17 -0
- data/lib/virtualbox/com/interface/virtual_system_description_type.rb +12 -0
- data/lib/virtualbox/com/interface/virtual_system_description_value_type.rb +9 -0
- data/lib/virtualbox/com/interface/virtualbox.rb +54 -0
- data/lib/virtualbox/com/interface/vrdp_auth_type.rb +9 -0
- data/lib/virtualbox/com/interface/vrdp_server.rb +17 -0
- data/lib/virtualbox/com/mscom_interface.rb +22 -0
- data/lib/virtualbox/com/util.rb +18 -0
- data/lib/virtualbox/dvd.rb +7 -94
- data/lib/virtualbox/exceptions.rb +24 -0
- data/lib/virtualbox/ext/glob_loader.rb +22 -0
- data/lib/virtualbox/ext/logger.rb +38 -0
- data/lib/virtualbox/ext/platform.rb +1 -1
- data/lib/virtualbox/extra_data.rb +25 -37
- data/lib/virtualbox/forwarded_port.rb +35 -13
- data/lib/virtualbox/global.rb +22 -80
- data/lib/virtualbox/hard_drive.rb +30 -97
- data/lib/virtualbox/lib.rb +82 -0
- data/lib/virtualbox/media.rb +7 -6
- data/lib/virtualbox/medium.rb +138 -0
- data/lib/virtualbox/medium_attachment.rb +61 -0
- data/lib/virtualbox/network_adapter.rb +134 -0
- data/lib/virtualbox/shared_folder.rb +53 -78
- data/lib/virtualbox/storage_controller.rb +76 -20
- data/lib/virtualbox/system_properties.rb +74 -0
- data/lib/virtualbox/usb_controller.rb +55 -0
- data/lib/virtualbox/version.rb +15 -0
- data/lib/virtualbox/virtual_system_description.rb +47 -0
- data/lib/virtualbox/vm.rb +160 -272
- data/test/test_helper.rb +0 -108
- data/test/virtualbox/abstract_model/attributable_test.rb +7 -1
- data/test/virtualbox/abstract_model/dirty_test.rb +1 -1
- data/test/virtualbox/abstract_model/interface_attributes_test.rb +169 -0
- data/test/virtualbox/abstract_model/relatable_test.rb +20 -0
- data/test/virtualbox/abstract_model_test.rb +40 -5
- data/test/virtualbox/appliance_test.rb +152 -0
- data/test/virtualbox/audio_adapter_test.rb +83 -0
- data/test/virtualbox/bios_test.rb +83 -0
- data/test/virtualbox/com/abstract_enum_test.rb +48 -0
- data/test/virtualbox/com/abstract_implementer_test.rb +39 -0
- data/test/virtualbox/com/abstract_interface_test.rb +139 -0
- data/test/virtualbox/com/ffi/interface_test.rb +249 -0
- data/test/virtualbox/com/ffi/util_test.rb +86 -0
- data/test/virtualbox/com/ffi_interface_test.rb +42 -0
- data/test/virtualbox/com/implementer/base_test.rb +37 -0
- data/test/virtualbox/com/implementer/ffi_test.rb +519 -0
- data/test/virtualbox/com/implementer/mscom_test.rb +208 -0
- data/test/virtualbox/com/mscom_interface_test.rb +17 -0
- data/test/virtualbox/com/util_test.rb +17 -0
- data/test/virtualbox/dvd_test.rb +4 -95
- data/test/virtualbox/ext/platform_test.rb +8 -0
- data/test/virtualbox/extra_data_test.rb +78 -102
- data/test/virtualbox/forwarded_port_test.rb +57 -7
- data/test/virtualbox/global_test.rb +25 -115
- data/test/virtualbox/hard_drive_test.rb +49 -212
- data/test/virtualbox/lib_test.rb +93 -0
- data/test/virtualbox/medium_attachment_test.rb +147 -0
- data/test/virtualbox/medium_test.rb +192 -0
- data/test/virtualbox/network_adapter_test.rb +160 -0
- data/test/virtualbox/shared_folder_test.rb +144 -160
- data/test/virtualbox/storage_controller_test.rb +166 -45
- data/test/virtualbox/system_properties_test.rb +87 -0
- data/test/virtualbox/usb_controller_test.rb +104 -0
- data/test/virtualbox/version_test.rb +34 -0
- data/test/virtualbox/virtual_system_description_test.rb +61 -0
- data/test/virtualbox/vm_test.rb +288 -322
- data/test/virtualbox_test.rb +1 -9
- data/virtualbox.gemspec +139 -23
- metadata +143 -27
- data/lib/virtualbox/attached_device.rb +0 -249
- data/lib/virtualbox/command.rb +0 -109
- data/lib/virtualbox/image.rb +0 -137
- data/lib/virtualbox/nic.rb +0 -111
- data/lib/virtualbox/system_property.rb +0 -55
- data/lib/virtualbox/usb.rb +0 -72
- data/test/virtualbox/attached_device_test.rb +0 -303
- data/test/virtualbox/command_test.rb +0 -152
- data/test/virtualbox/image_test.rb +0 -190
- data/test/virtualbox/nic_test.rb +0 -76
- data/test/virtualbox/system_property_test.rb +0 -71
- data/test/virtualbox/usb_test.rb +0 -35
@@ -0,0 +1,28 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class HostNetworkInterface < AbstractInterface
|
5
|
+
IID = "ce6fae58-7642-4102-b5db-c9005c2320a8"
|
6
|
+
|
7
|
+
property :name, WSTRING, :readonly => true
|
8
|
+
property :id, WSTRING, :readonly => true
|
9
|
+
property :network_name, WSTRING, :readonly => true
|
10
|
+
property :dhcp_enabled, T_BOOL, :readonly => true
|
11
|
+
property :ip_address, WSTRING, :readonly => true
|
12
|
+
property :network_mask, WSTRING, :readonly => true
|
13
|
+
property :ip_v6_supported, T_BOOL, :readonly => true
|
14
|
+
property :ip_v6_address, WSTRING, :readonly => true
|
15
|
+
property :ip_v6_network_mask_prefix_length, T_UINT32, :readonly => true
|
16
|
+
property :hardware_address, WSTRING, :readonly => true
|
17
|
+
property :medium_type, :HostNetworkInterfaceMediumType, :readonly => true
|
18
|
+
property :status, :HostNetworkInterfaceStatus, :readonly => true
|
19
|
+
property :interface_type, :HostNetworkInterfaceType, :readonly => true
|
20
|
+
|
21
|
+
function :enable_static_ip_config, nil, [WSTRING, WSTRING]
|
22
|
+
function :enable_static_ip_config_v6, nil, [WSTRING, T_UINT32]
|
23
|
+
function :enable_dynamic_ip_config, nil, []
|
24
|
+
function :dhcp_rediscover, nil, []
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class Machine < AbstractInterface
|
5
|
+
IID_STR = "99404f50-dd10-40d3-889b-dd2f79f1e95e"
|
6
|
+
|
7
|
+
property :parent, :VirtualBox, :readonly => true
|
8
|
+
property :accessible, T_BOOL, :readonly => true
|
9
|
+
property :access_error, :VirtualBoxErrorInfo, :readonly => true
|
10
|
+
property :name, WSTRING
|
11
|
+
property :description, WSTRING
|
12
|
+
property :id, WSTRING, :readonly => true
|
13
|
+
property :os_type_id, WSTRING
|
14
|
+
property :hardware_version, WSTRING
|
15
|
+
property :hardware_uuid, WSTRING
|
16
|
+
property :cpu_count, T_UINT32
|
17
|
+
property :memory_size, T_UINT32
|
18
|
+
property :memory_balloon_size, T_UINT32
|
19
|
+
property :statistics_update_interval, T_UINT32
|
20
|
+
property :vram_size, T_UINT32
|
21
|
+
property :accelerate_3d_enabled, T_BOOL
|
22
|
+
property :accelerate_2d_video_enabled, T_BOOL
|
23
|
+
property :monitor_count, T_UINT32
|
24
|
+
property :bios_settings, :BIOSSettings, :readonly => true
|
25
|
+
property :firmware_type, :FirmwareType
|
26
|
+
property :snapshot_folder, WSTRING
|
27
|
+
property :vrdp_server, :VRDPServer, :readonly => true
|
28
|
+
property :medium_attachments, [:MediumAttachment], :readonly => true
|
29
|
+
property :usb_controller, :USBController, :readonly => true
|
30
|
+
property :audio_adapter, :AudioAdapter, :readonly => true
|
31
|
+
property :storage_controllers, [:StorageController], :readonly => true
|
32
|
+
property :settings_file_path, WSTRING, :readonly => true
|
33
|
+
property :settings_modified, T_BOOL, :readonly => true
|
34
|
+
property :session_state, :SessionState, :readonly => true
|
35
|
+
property :session_type, WSTRING, :readonly => true
|
36
|
+
property :session_pid, T_UINT32, :readonly => true
|
37
|
+
property :state, :MachineState, :readonly => true
|
38
|
+
property :last_state_change, T_INT64, :readonly => true
|
39
|
+
property :state_file_path, WSTRING, :readonly => true
|
40
|
+
property :log_folder, WSTRING, :readonly => true
|
41
|
+
property :current_snapshot, :Snapshot, :readonly => true
|
42
|
+
property :snapshot_count, T_UINT32, :readonly => true
|
43
|
+
property :current_state_modified, T_BOOL, :readonly => true
|
44
|
+
property :shared_folders, [:SharedFolder], :readonly => true
|
45
|
+
property :clipboard_mode, :ClipboardMode
|
46
|
+
property :guest_property_notification_patterns, WSTRING
|
47
|
+
property :teleporter_enabled, T_BOOL
|
48
|
+
property :teleporter_port, T_UINT32
|
49
|
+
property :teleporter_address, WSTRING
|
50
|
+
property :teleporter_password, WSTRING
|
51
|
+
|
52
|
+
function :set_boot_order, nil, [T_UINT32, :DeviceType]
|
53
|
+
function :get_boot_order, :DeviceType, [T_UINT32]
|
54
|
+
function :attach_device, nil, [WSTRING, T_INT32, T_INT32, :DeviceType, WSTRING]
|
55
|
+
function :detach_device, nil, [WSTRING, T_INT32, T_INT32]
|
56
|
+
function :passthrough_device, nil, [WSTRING, T_INT32, T_INT32, T_BOOL]
|
57
|
+
function :mount_medium, nil, [WSTRING, T_INT32, T_INT32, WSTRING, T_BOOL]
|
58
|
+
function :get_medium, :Medium, [WSTRING, T_INT32, T_INT32]
|
59
|
+
function :get_medium_attachments_of_controller, [:MediumAttachments], [WSTRING]
|
60
|
+
function :get_medium_attachment, :MediumAttachment, [WSTRING, T_INT32, T_INT32]
|
61
|
+
function :get_network_adapter, :NetworkAdapter, [T_UINT32]
|
62
|
+
function :add_storage_controller, :StorageController, [WSTRING, T_UINT32]
|
63
|
+
function :get_storage_controller_by_name, :StorageController, [WSTRING]
|
64
|
+
function :get_storage_controller_by_instance, :StorageController, [T_UINT32]
|
65
|
+
function :remove_storage_controller, nil, [WSTRING]
|
66
|
+
function :get_serial_port, :SerialPort, [T_UINT32]
|
67
|
+
function :get_parallel_port, :ParallelPort, [T_UINT32]
|
68
|
+
function :get_extra_data_keys, [WSTRING], []
|
69
|
+
function :get_extra_data, WSTRING, [WSTRING]
|
70
|
+
function :set_extra_data, nil, [WSTRING, WSTRING]
|
71
|
+
function :get_cpu_property, T_BOOL, [:CpuPropertyType]
|
72
|
+
function :set_cpu_property, nil, [:CpuPropertyType, T_BOOL]
|
73
|
+
function :get_cpu_id_leaf, nil, [T_UINT32, [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
74
|
+
function :set_cpu_id_leaf, nil, [T_UINT32, T_UINT32, T_UINT32, T_UINT32, T_UINT32]
|
75
|
+
function :remove_cpu_id_leaf, nil, [T_UINT32]
|
76
|
+
function :remove_all_cpu_id_leafs, nil, []
|
77
|
+
function :get_hw_virt_ex_property, T_BOOL, [:HWVirtExPropertyType]
|
78
|
+
function :set_hw_virt_ex_property, T_BOOL, [:HWVirtExPropertyType]
|
79
|
+
function :save_settings, nil, []
|
80
|
+
function :discard_settings, nil, []
|
81
|
+
function :delete_settings, nil, []
|
82
|
+
function :export, :VirtualSystemDescription, [:Appliance]
|
83
|
+
function :get_snapshot, :Snapshot, [WSTRING]
|
84
|
+
function :find_snapshot, :Snapshot, [WSTRING]
|
85
|
+
function :set_current_snapshot, nil, [WSTRING]
|
86
|
+
function :create_shared_folder, nil, [WSTRING, WSTRING, T_BOOL]
|
87
|
+
function :remove_shared_folder, nil, [WSTRING]
|
88
|
+
function :can_show_console_window, T_BOOL, []
|
89
|
+
function :show_console_window, T_UINT64, []
|
90
|
+
function :get_guest_property, nil, [WSTRING, [:out, WSTRING], [:out, T_UINT64], [:out, WSTRING]]
|
91
|
+
function :get_guest_property_value, WSTRING, [WSTRING]
|
92
|
+
function :get_guest_property_timestamp, T_UINT64, [WSTRING]
|
93
|
+
function :set_guest_property, nil, [WSTRING, WSTRING, WSTRING]
|
94
|
+
function :set_guest_propetty_value, nil, [WSTRING, WSTRING]
|
95
|
+
function :enumerate_guest_properties, nil, [WSTRING, [:out, [WSTRING]], [:out, [WSTRING]], [:out, [T_UINT64]], [:out, [WSTRING]]]
|
96
|
+
function :query_saved_thumbnail_size, nil, [[:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
97
|
+
function :read_saved_thumbnail_to_array, [T_UINT8], [T_BOOL, [:out, T_UINT32], [:out, T_UINT32]]
|
98
|
+
function :query_saved_screenshot_png_size, nil, [[:out, T_UINT32], [:out, T_UINT32], [:out, T_UINT32]]
|
99
|
+
function :read_saved_png_screenshot_to_array, [T_UINT8], [[:out, T_UINT32], [:out, T_UINT32]]
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class MachineState < AbstractEnum
|
5
|
+
map [:null, :powered_off, :saved, :teleported, :aborted, :running, :paused, :stuck,
|
6
|
+
:teleporting, :live_snapshotting, :starting, :stopping, :saving, :restoring,
|
7
|
+
:teleporting_paused_vm, :teleporting_in, :restoring_snapshot, :deleting_snapshot,
|
8
|
+
:setting_up]
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class Medium < AbstractInterface
|
5
|
+
IID = "aa8167ba-df72-4738-b740-9b84377ba9f1"
|
6
|
+
|
7
|
+
property :id, WSTRING, :readonly => true
|
8
|
+
property :description, WSTRING
|
9
|
+
property :state, :MediumState, :readonly => true
|
10
|
+
property :location, WSTRING
|
11
|
+
property :name, WSTRING, :readonly => true
|
12
|
+
property :device_type, :DeviceType, :readonly => true
|
13
|
+
property :host_drive, T_BOOL, :readonly => true
|
14
|
+
property :size, T_UINT64, :readonly => true
|
15
|
+
property :format, WSTRING, :readonly => true
|
16
|
+
property :type, :MediumType
|
17
|
+
property :parent, :Medium, :readonly => true
|
18
|
+
property :children, [:Medium], :readonly => true
|
19
|
+
property :base, :Medium, :readonly => true
|
20
|
+
property :read_only, T_BOOL, :readonly => true
|
21
|
+
property :logical_size, T_UINT64, :readonly => true
|
22
|
+
property :auto_reset, T_BOOL
|
23
|
+
property :last_access_error, WSTRING, :readonly => true
|
24
|
+
property :machine_ids, [WSTRING], :readonly => true
|
25
|
+
|
26
|
+
function :refresh_state, :MediumState, []
|
27
|
+
function :get_snapshot_ids, [WSTRING], [WSTRING]
|
28
|
+
function :lock_read, :MediumState, []
|
29
|
+
function :unlock_read, :MediumState, []
|
30
|
+
function :lock_write, :MediumState, []
|
31
|
+
function :unlock_write, :MediumState, []
|
32
|
+
function :close, nil, []
|
33
|
+
function :get_property, WSTRING, [WSTRING]
|
34
|
+
function :set_property, nil, [WSTRING, WSTRING]
|
35
|
+
function :get_properties, [WSTRING], [WSTRING, [:out, [WSTRING]]]
|
36
|
+
function :set_properties, nil, [[WSTRING], [WSTRING]]
|
37
|
+
function :create_base_storage, :Progress, [T_UINT64, :MediumVariant]
|
38
|
+
function :delete_storage, :Progress, []
|
39
|
+
function :create_diff_storage, :Progress, [:Medium, :MediumVariant]
|
40
|
+
function :merge_to, :Progress, [WSTRING]
|
41
|
+
function :clone_to, :Progress, [:Medium, :MediumVariant, :Medium]
|
42
|
+
function :compact, :Progress, []
|
43
|
+
function :resize, :Progress, [T_UINT64]
|
44
|
+
function :reset, :Progress, []
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class MediumAttachment < AbstractInterface
|
5
|
+
IID = "e58eb3eb-8627-428b-bdf8-34487c848de5"
|
6
|
+
|
7
|
+
property :medium, :Medium, :readonly => true
|
8
|
+
property :controller, WSTRING, :readonly => true
|
9
|
+
property :port, T_INT32, :readonly => true
|
10
|
+
property :device, T_INT32, :readonly => true
|
11
|
+
property :type, :DeviceType, :readonly => true
|
12
|
+
property :passthrough, T_BOOL, :readonly => true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class MediumFormat < AbstractInterface
|
5
|
+
IID = "89f52554-d469-4799-9fad-1705e86a08b1"
|
6
|
+
|
7
|
+
property :id, WSTRING, :readonly => true
|
8
|
+
property :name, WSTRING, :readonly => true
|
9
|
+
property :file_extensions, [WSTRING], :readonly => true
|
10
|
+
property :capabilities, T_UINT32, :readonly => true
|
11
|
+
|
12
|
+
function :describe_properties, nil, [[:out, [WSTRING]], [:out, [WSTRING]], [:out, [:DataType]], [:out, [T_UINT32]], [:out, [WSTRING]]]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class NetworkAdapter < AbstractInterface
|
5
|
+
IID = "65607a27-2b73-4d43-b4cc-0ba2c817fbde"
|
6
|
+
|
7
|
+
property :adapter_type, :NetworkAdapterType
|
8
|
+
property :slot, T_UINT32, :readonly => true
|
9
|
+
property :enabled, T_BOOL
|
10
|
+
property :mac_address, WSTRING
|
11
|
+
property :attachment_type, :NetworkAttachmentType, :readonly => true
|
12
|
+
property :host_interface, WSTRING
|
13
|
+
property :internal_network, WSTRING
|
14
|
+
property :nat_network, WSTRING
|
15
|
+
property :cable_connected, T_BOOL
|
16
|
+
property :line_speed, T_UINT32
|
17
|
+
property :trace_enabled, T_BOOL
|
18
|
+
property :trace_file, WSTRING
|
19
|
+
|
20
|
+
function :attach_to_nat, nil, []
|
21
|
+
function :attach_to_bridged_interface, nil, []
|
22
|
+
function :attach_to_internal_network, nil, []
|
23
|
+
function :attach_to_host_only_interface, nil, []
|
24
|
+
function :detach, nil, []
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class NSIException < AbstractInterface
|
5
|
+
IID = "f3a8d3b4-c424-4edc-8bf6-8974c983ba78"
|
6
|
+
|
7
|
+
property :message, WSTRING, :readonly => true
|
8
|
+
property :result, T_UINT32, :readonly => true
|
9
|
+
property :name, WSTRING, :readonly => true
|
10
|
+
property :filename, WSTRING, :readonly => true
|
11
|
+
property :line_number, T_UINT32, :readonly => true
|
12
|
+
property :column_number, T_UINT32, :readonly => true
|
13
|
+
property :location, :NSIStackFrame, :readonly => true
|
14
|
+
property :inner, :NSIException, :readonly => true
|
15
|
+
property :data, :NSISupports, :readonly => true
|
16
|
+
|
17
|
+
function :to_string, WSTRING, []
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
# This interface is actually only used with the FFI implementer but
|
5
|
+
# is created here to allow easier usage with the FFI abstractions.
|
6
|
+
class NSISupports < AbstractInterface
|
7
|
+
function :QueryInterface, :pointer, [:pointer]
|
8
|
+
function :AddRef, nil, []
|
9
|
+
function :Release, nil, []
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module VirtualBox
|
2
|
+
module COM
|
3
|
+
module Interface
|
4
|
+
class ParallelPort < AbstractInterface
|
5
|
+
IID = "0c925f06-dd10-4b77-8de8-294d738c3214"
|
6
|
+
|
7
|
+
property :slot, T_UINT32, :readonly => true
|
8
|
+
property :enabled, T_BOOL
|
9
|
+
property :io_base, T_UINT32
|
10
|
+
property :irq, T_UINT32
|
11
|
+
property :path, WSTRING
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|