Changeset 74761 in vbox for trunk/src/VBox
- Timestamp:
- Oct 11, 2018 11:26:32 AM (6 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r74734 r74761 444 444 <desc> 445 445 Guest Control reported an error from the guest side. 446 </desc> 447 </result> 448 449 <result name="VBOX_E_TIMEOUT" value="0x80BB0010"> 450 <desc> 451 The operation ran into an explicitly requested timeout. 446 452 </desc> 447 453 </result> … … 2621 2627 </param> 2622 2628 <param name="forceNewUuid" type="boolean" dir="in"> 2623 2624 2625 2626 2627 2629 <desc>Allows the caller to request a completely new medium UUID for 2630 the image which is to be opened. Useful if one intends to open an exact 2631 copy of a previously opened image, as this would normally fail due to 2632 the duplicate UUID.</desc> 2633 </param> 2628 2634 <param name="medium" type="IMedium" dir="return"> 2629 2635 <desc>Opened medium object.</desc> … … 2884 2890 </method> 2885 2891 2886 2892 <!-- 2887 2893 Returns the NATNetwork by name, e.g. for adding port forward rule or deletion. 2888 2889 2894 --> 2895 <method name="findNATNetworkByName"> 2890 2896 <param name="networkName" type="wstring" dir="in"/> 2891 2897 <param name="network" type="INATNetwork" dir="return"/> … … 2893 2899 <!-- 2894 2900 Deletes given NAT network. 2895 2901 --> 2896 2902 <method name="removeNATNetwork"> 2897 2903 <param name="network" type="INATNetwork" dir="in"/> 2898 2904 </method> 2899 2905 … … 5464 5470 set by one of <link to="#takeSnapshot" />, <link to="#deleteSnapshot" /> 5465 5471 or <link to="#restoreSnapshot" />, depending on which was called last. 5466 See <link to="ISnapshot"/> for details.5472 See <link to="ISnapshot"/> for details. 5467 5473 </desc> 5468 5474 </attribute> … … 6511 6517 </result> 6512 6518 6513 6519 </desc> 6514 6520 <param name="name" type="wstring" dir="in"> 6515 6521 <desc>Name of the storage controller.</desc> … … 10250 10256 <attribute name="proxyURL" type="wstring" readonly="no"> 10251 10257 <desc> 10252 Proxy server URL for the <link to="ProxyMode::Manual" /> proxy mode.10253 10254 The format is: [{type}"://"][{userid}[@{password}]:]{server}[":"{port}]10255 10256 Valid types are: http (default), https, socks4, socks4a, socks5, socks5h and direct.10257 Please note that these are proxy types defining how the proxy operates rather than10258 how to proxy any similarly named protocol (i.e. don't confuse a http-proxy with10259 proxying the http protocol, as a http-proxy usually can proxy https and other protocols too).10260 10261 The port number defaults to 80 for http, 443 for https and 1080 for the socks ones.10262 10263 <note>The password is currently stored as plain text! Use the <link to="ProxyMode::System" />10264 mode if you consider the proxy password to be sensitive.</note>10265 10266 An empty string will cause the behavior to be identical to <link to="ProxyMode::System" />.10267 For compatibility with libproxy, an URL starting with "direct://" will cause10268 <link to="ProxyMode::NoProxy" /> behavior.10258 Proxy server URL for the <link to="ProxyMode::Manual" /> proxy mode. 10259 10260 The format is: [{type}"://"][{userid}[@{password}]:]{server}[":"{port}] 10261 10262 Valid types are: http (default), https, socks4, socks4a, socks5, socks5h and direct. 10263 Please note that these are proxy types defining how the proxy operates rather than 10264 how to proxy any similarly named protocol (i.e. don't confuse a http-proxy with 10265 proxying the http protocol, as a http-proxy usually can proxy https and other protocols too). 10266 10267 The port number defaults to 80 for http, 443 for https and 1080 for the socks ones. 10268 10269 <note>The password is currently stored as plain text! Use the <link to="ProxyMode::System" /> 10270 mode if you consider the proxy password to be sensitive.</note> 10271 10272 An empty string will cause the behavior to be identical to <link to="ProxyMode::System" />. 10273 For compatibility with libproxy, an URL starting with "direct://" will cause 10274 <link to="ProxyMode::NoProxy" /> behavior. 10269 10275 </desc> 10270 10276 </attribute> … … 11378 11384 <desc>Process terminated abnormally.</desc> 11379 11385 </const> 11380 11386 <const name="TimedOutKilled" value="512"> 11381 11387 <desc>Process timed out and was killed.</desc> 11382 11388 </const> … … 11680 11686 <attribute name="protocolVersion" type="unsigned long" readonly="yes"> 11681 11687 <desc>Returns the protocol version which is used to communicate 11682 with the guest.</desc>11688 with the guest.</desc> 11683 11689 </attribute> 11684 11690 … … 12174 12180 <td>Update</td> 12175 12181 <td>Only copy when the source file is newer than the destination 12176 file or when the destination file is missing.</td>12182 file or when the destination file is missing.</td> 12177 12183 </tr> 12178 12184 </table> … … 12229 12235 <td>Update</td> 12230 12236 <td>Only copy when the source file is newer than the destination 12231 file or when the destination file is missing.</td>12237 file or when the destination file is missing.</td> 12232 12238 </tr> 12233 12239 </table> … … 12406 12412 If @c false, a symbolic link in the final component will make the 12407 12413 method return @c false (because a symlink isn't a directory). 12408 12414 </desc> 12409 12415 </param> 12410 12416 <param name="exists" type="boolean" dir="return"> … … 12483 12489 <desc>Zero or more <link to="DirectoryRemoveRecFlag"/> flags. 12484 12490 <note>WARNING! SPECIFYING <link to="DirectoryRemoveRecFlag_ContentAndDir"/> IS 12485 12491 MANDATORY AT THE MOMENT!!</note> 12486 12492 </desc> 12487 12493 </param> … … 12670 12676 characters in the template will be replaced by a random 12671 12677 alphanumeric string to produce a unique name. 12672 12678 </desc> 12673 12679 </param> 12674 12680 <param name="mode" type="unsigned long" dir="in"> … … 12718 12724 If @c false, a symbolic link in the final component will make the 12719 12725 method return @c false (because a symlink isn't a regular file). 12720 12726 </desc> 12721 12727 </param> 12722 12728 <param name="exists" type="boolean" dir="return"> … … 12827 12833 <param name="followSymlinks" type="boolean" dir="in"> 12828 12834 <desc> 12829 12830 12831 12832 12833 12835 It @c true, symbolic links in the final path component will be 12836 followed to their target, and the size of the target is returned. 12837 If @c false, symbolic links in the final path component will make 12838 the method call fail (symblink is not a regular file). 12839 </desc> 12834 12840 </param> 12835 12841 <param name="size" type="long long" dir="return"> … … 12855 12861 <param name="followSymlinks" type="boolean" dir="in"> 12856 12862 <desc> 12857 12858 12859 12860 12861 12863 If @c true, symbolic links in the final component will be followed 12864 and the method will instead check if the target exists. 12865 If @c false, symbolic links in the final component will satisfy the 12866 method and it will return @c true in @a exists. 12867 </desc> 12862 12868 </param> 12863 12869 <param name="exists" type="boolean" dir="return"> … … 12884 12890 <param name="followSymlinks" type="boolean" dir="in"> 12885 12891 <desc> 12886 12887 12888 12889 12892 Information about symbolic links is returned if @c false. Otherwise, 12893 symbolic links are followed and the returned information concerns 12894 itself with the symlink target if @c true. 12895 </desc> 12890 12896 </param> 12891 12897 <param name="info" type="IGuestFsObjInfo" dir="return"> … … 12987 12993 otherwise, if @c false, the method will work directly on a symbolic 12988 12994 link in the final component. 12989 12995 </desc> 12990 12996 </param> 12991 12997 <param name="acl" type="wstring" dir="in"> … … 16394 16400 </desc> 16395 16401 <param name="writable" type="boolean" dir="in"> 16396 16397 16402 <desc>Set this to open the medium for both reading and writing. When 16403 not set the medium is opened readonly.</desc> 16398 16404 </param> 16399 16405 <param name="password" type="wstring" dir="in"> … … 16639 16645 16640 16646 <!-- 16647 // IDataStream 16648 ///////////////////////////////////////////////////////////////////////// 16649 --> 16650 16651 <interface 16652 name="IDataStream" extends="$unknown" 16653 uuid="a338ed20-58d9-43ae-8b03-c1fd7088ef15" 16654 wsmap="managed" 16655 reservedMethods="4" reservedAttributes="8" 16656 > 16657 <desc> 16658 The IDataStream interface is used to retrieve a data stream. It is 16659 returned by <link to="IMedium::convertToStream"/>. 16660 </desc> 16661 16662 <attribute name="readSize" type="unsigned long" readonly="yes"> 16663 <desc>Recommended size of a read. Requesting a larger read may be 16664 possible in certain situations, but it is not guaranteed.</desc> 16665 </attribute> 16666 16667 <method name="read"> 16668 <desc> 16669 Read data from the stream. 16670 <result name="VBOX_E_TIMEOUT"> 16671 Waiting time has expired. 16672 </result> 16673 </desc> 16674 <param name="size" type="unsigned long" dir="in"> 16675 <desc>How many bytes to try read.</desc> 16676 </param> 16677 <param name="timeoutMS" type="unsigned long" dir="in"> 16678 <desc> 16679 Timeout (in ms) for limiting the wait time for data to be available. 16680 Pass 0 for an infinite timeout. 16681 </desc> 16682 </param> 16683 <param name="data" type="octet" dir="return" safearray="yes"> 16684 <desc>Array of data read. This may be shorter than the specified size. 16685 Returning a zero-sized array indicates the end of the stream, if the 16686 status is successful.</desc> 16687 </param> 16688 </method> 16689 16690 </interface> 16691 16692 <!-- 16641 16693 // IMediumIO 16642 16694 ///////////////////////////////////////////////////////////////////////// … … 16658 16710 <interface 16659 16711 name="IMediumIO" extends="$unknown" 16660 uuid=" 43b03a91-ea1a-4bdb-506f-8c418b72d6a3"16712 uuid="e4b301a9-5f86-4d65-ad1b-87ca284fb1c8" 16661 16713 wsmap="managed" 16662 16714 reservedMethods="4" reservedAttributes="8" … … 16749 16801 <param name="wholeDiskInOneEntry" type="boolean" dir="in"> 16750 16802 <desc> 16751 When @c true a partition table entry for the whole disk is created. 16752 Otherwise the partition table is empty. 16753 </desc> 16803 When @c true a partition table entry for the whole disk is created. 16804 Otherwise the partition table is empty. 16805 </desc> 16806 </param> 16807 </method> 16808 16809 <method name="convertToStream"> 16810 <desc> 16811 Converts the currently opened image into a stream of the specified 16812 image type/variant. It is sufficient to open the image in read-only 16813 mode. Only few types and variants are supported due to the inherent 16814 restrictions of the output style. 16815 <result name="VBOX_E_NOT_SUPPORTED"> 16816 The requested format/variant combination cannot handle stream output. 16817 </result> 16818 <result name="VBOX_E_FILE_ERROR"> 16819 An error occurred during the conversion. 16820 </result> 16821 </desc> 16822 <param name="format" type="wstring" dir="in"> 16823 <desc>Identifier of the storage format to use for output.</desc> 16824 </param> 16825 <param name="variant" type="MediumVariant" safearray="yes" dir="in"> 16826 <desc>The partition table format.</desc> 16827 </param> 16828 <param name="bufferSize" type="unsigned long" dir="in"> 16829 <desc> 16830 Requested buffer size (in bytes) for efficient conversion. Sizes 16831 which are too small or too large are silently truncated to suitable 16832 values. Tens to hundreds of Megabytes are a good choice. 16833 </desc> 16834 </param> 16835 <param name="stream" type="IDataStream" dir="out"> 16836 <desc>Data stream object for reading the target image.</desc> 16837 </param> 16838 <param name="progress" type="IProgress" dir="return"> 16839 <desc>Progress object to track the operation completion.</desc> 16754 16840 </param> 16755 16841 </method> … … 18020 18106 <method name="querySourceBitmap" wsmap="suppress"> 18021 18107 <desc> 18022 18108 Obtains the guest screen bitmap parameters. 18023 18109 </desc> 18024 18110 <param name="screenId" type="unsigned long" dir="in"/> … … 18028 18114 <method name="notifyScaleFactorChange"> 18029 18115 <desc> 18030 18116 Notify OpenGL HGCM host service about graphics content scaling factor change. 18031 18117 </desc> 18032 18118 <param name="screenId" type="unsigned long" dir="in"/> … … 18037 18123 <method name="notifyHiDPIOutputPolicyChange"> 18038 18124 <desc> 18039 18125 Notify OpenGL HGCM host service about HiDPI monitor scaling policy change. 18040 18126 </desc> 18041 18127 <param name="fUnscaledHiDPI" type="boolean" dir="in"/> … … 18539 18625 PortMode_HostPipe, the host serial device name when 18540 18626 <link to="ISerialPort::hostMode"/> is PortMode_HostDevice or the TCP 18541 <b>port</b> (server) or <b>hostname:port</b> (client) when18627 <b>port</b> (server) or <b>hostname:port</b> (client) when 18542 18628 <link to="ISerialPort::hostMode"/> is PortMode_TCP. 18543 18629 For those cases, setting a @c null or empty string as the attribute's … … 22202 22288 --> 22203 22289 <enum 22204 22205 22290 name="BandwidthGroupType" 22291 uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e"> 22206 22292 22207 22293 <desc> -
trunk/src/VBox/Main/include/MediumIOImpl.h
r72948 r74761 52 52 HRESULT formatFAT(BOOL a_fQuick); 53 53 HRESULT initializePartitionTable(PartitionTableType_T a_enmFormat, BOOL a_fWholeDiskInOneEntry); 54 HRESULT convertToStream(const com::Utf8Str &aFormat, 55 const std::vector<MediumVariant_T> &aVariant, 56 ULONG aBufferSize, 57 ComPtr<IDataStream> &aStream, 58 ComPtr<IProgress> &aProgress); 54 59 HRESULT close(); 55 60 /** @} */ -
trunk/src/VBox/Main/src-server/MediumIOImpl.cpp
r73505 r74761 394 394 } 395 395 396 HRESULT MediumIO::convertToStream(const com::Utf8Str &aFormat, 397 const std::vector<MediumVariant_T> &aVariant, 398 ULONG aBufferSize, 399 ComPtr<IDataStream> &aStream, 400 ComPtr<IProgress> &aProgress) 401 { 402 return E_NOTIMPL; 403 } 404 396 405 HRESULT MediumIO::close() 397 406 {
Note:
See TracChangeset
for help on using the changeset viewer.