VirtualBox

Changeset 55613 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
May 3, 2015 4:12:35 AM (10 years ago)
Author:
vboxsync
Message:

IGuestSession: Added a pathStyle attribute (read-only) that translates the OS type reported by the guest additions into a DOS, UNIX or Unknown path styles values. Added two methods fsExists and fsQueryInfo that aren't as narrow minded as fileQueryInfo and directoryQueryInfo and has parameters for how to treat symbolic links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r55611 r55613  
    1036810368
    1036910369  <enum
     10370    name="PathStyle"
     10371    uuid="97303a5b-42e8-0a55-d16f-d2a92c295261"
     10372    >
     10373    <desc>
     10374      The path style of a system.
     10375      (Values matches the RTPATH_STR_F_STYLE_XXX defines in iprt/path.h!)
     10376    </desc>
     10377    <const name="DOS"     value="1">
     10378      <desc>DOS-style paths with forward and backward slashes, drive
     10379      letters and UNC.  Known from DOS, OS/2 and Windows.</desc>
     10380    </const>
     10381    <const name="UNIX"    value="2">
     10382      <desc>UNIX-style paths with forward slashes only.</desc>
     10383    </const>
     10384    <const name="Unknown" value="8">
     10385      <desc>
     10386        The path style is not known, most likely because the guest additions
     10387        aren't active yet.
     10388      </desc>
     10389    </const>
     10390  </enum>
     10391
     10392  <enum
    1037010393    name="FileStatus"
    1037110394    uuid="8c86468b-b97b-4080-8914-e29f5b0abd2c"
     
    1077610799  <interface
    1077710800    name="IGuestSession" extends="$unknown"
    10778     uuid="bb890975-4903-38f8-4bc2-f39341f95533"
     10801    uuid="c003c35e-4dc4-4111-4771-51befc3c1d30"
    1077910802    wsmap="managed"
    1078010803    >
     
    1088710910      <desc>
    1088810911        Returns all current guest processes.
     10912      </desc>
     10913    </attribute>
     10914    <attribute name="pathStyle" type="PathStyle" readonly="yes">
     10915      <desc>
     10916        The style of paths used by the guest.  Handy for giving the right kind
     10917        of path specifications to <link to="fileOpen"/> and similar methods.
    1088910918      </desc>
    1089010919    </attribute>
     
    1146211491      <param name="acl" type="wstring" dir="in">
    1146311492        <desc>Actual ACL string to set. Must comply with the guest OS.</desc>
     11493      </param>
     11494    </method>
     11495
     11496    <method name="fsExists">
     11497      <desc>
     11498        Checks whether a file system object (file, directory, etc) exists in
     11499        the guest or not.
     11500
     11501        <result name="VBOX_E_IPRT_ERROR">
     11502          Error while checking existence of the file specified.
     11503        </result>
     11504      </desc>
     11505      <param name="path" type="wstring" dir="in">
     11506        <desc>Path to the file system object to check the existance of.</desc>
     11507      </param>
     11508      <param name="followSymlinks" type="boolean" dir="in">
     11509        <desc>
     11510           If @c true symbolic links will be followed and the target must
     11511           exists and be accessible, otherwise, if @c false we'll be happy
     11512           with a dangling symbolic link.
     11513         </desc>
     11514      </param>
     11515      <param name="exists" type="boolean" dir="return">
     11516        <desc>Returns @c true if the file exists, @c false if not.</desc>
     11517      </param>
     11518    </method>
     11519
     11520    <method name="fsQueryInfo">
     11521      <desc>
     11522        Queries information about a file system object (file, directory, etc)
     11523        in the guest.
     11524
     11525        <result name="VBOX_E_OBJECT_NOT_FOUND">
     11526          The file system object was not found.
     11527        </result>
     11528        <result name="VBOX_E_IPRT_ERROR">
     11529          Error while querying information.
     11530        </result>
     11531      </desc>
     11532      <param name="path" type="wstring" dir="in">
     11533        <desc>Path to the file system object to gather information about</desc>
     11534      </param>
     11535      <param name="followSymlinks" type="boolean" dir="in">
     11536        <desc>
     11537           Information about symbolic links is returned if @c false.  Otherwise,
     11538           symbolic links are followed and the returned information concerns
     11539           itself with the symlink target if @c true.
     11540         </desc>
     11541      </param>
     11542      <param name="info" type="IGuestFsObjInfo" dir="return">
     11543        <desc><link to="IGuestFsObjInfo"/> object containing the information.</desc>
    1146411544      </param>
    1146511545    </method>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette