VirtualBox

Changeset 99262 in vbox for trunk/include/VBox/HostServices


Ignore:
Timestamp:
Apr 3, 2023 3:17:07 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156645
Message:

Guest Control: Implements IGuestSession::fsQueryInfo() and IGuestSession::fsQueryFreeSpace(). bugref:10414

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestControlSvc.h

    r99256 r99262  
    268268     */
    269269    HOST_MSG_FS_CREATE_TEMP = 335,
     270    /**
     271     * Retrieves information about a guest file system.
     272     */
     273    HOST_MSG_FS_QUERY_INFO = 336,
    270274#endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
    271275    /** Blow the type up to 32-bits. */
     
    318322        RT_CASE_RET_STR(HOST_MSG_FS_OBJ_QUERY_INFO);
    319323        RT_CASE_RET_STR(HOST_MSG_FS_CREATE_TEMP);
     324        RT_CASE_RET_STR(HOST_MSG_FS_QUERY_INFO);
    320325#endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
    321326        RT_CASE_RET_STR(HOST_MSG_32BIT_HACK);
     
    772777{
    773778    /** Unknown fs notification type; do not use. */
    774     GUEST_FS_NOTIFYTYPE_UNKNOWN     = 0,
     779    GUEST_FS_NOTIFYTYPE_UNKNOWN        = 0,
     780    /** Temporary directory creation notification from the guest.
     781     *  @since 7.1 */
     782    GUEST_FS_NOTIFYTYPE_CREATE_TEMP    = 1,
     783    /** File system object query information notification from the guest.
     784     *  @since 7.1 */
     785    GUEST_FS_NOTIFYTYPE_QUERY_OBJ_INFO = 2,
    775786    /** File system query information notification from the guest.
    776787     *  @since 7.1 */
    777     GUEST_FS_NOTIFYTYPE_QUERY_INFO  = 2,
    778     /** Temporary directory creation notification from the guest.
    779      *  @since 7.1 */
    780     GUEST_FS_NOTIFYTYPE_CREATE_TEMP = 1
     788    GUEST_FS_NOTIFYTYPE_QUERY_INFO     = 3
    781789};
    782790
     
    968976    HGCMFunctionParameter mode;
    969977} HGCMMsgFsCreateTemp;
     978
     979/**
     980 * Queries information of a file system on the guest.
     981 */
     982typedef struct HGCMMsgFsQueryInfo
     983{
     984    VBGLIOCHGCMCALL hdr;
     985    /** Context ID. */
     986    HGCMFunctionParameter context;
     987    /** Path to query file system information for. */
     988    HGCMFunctionParameter path;
     989} HGCMMsgFsQueryInfo;
    970990
    971991/**
     
    16181638    {
    16191639        /**
    1620          * Parameters used for \a type GUEST_FS_NOTIFYTYPE_QUERY_INFO.
     1640         * Parameters used for \a type GUEST_FS_NOTIFYTYPE_CREATE_TEMP.
     1641         *
     1642         * @since 7.1
     1643         */
     1644        struct
     1645        {
     1646            /** The create temporary file / directory when \a rc
     1647             *  indicates success. */
     1648            HGCMFunctionParameter path;
     1649        } createtemp;
     1650        /**
     1651         * Parameters used for \a type GUEST_FS_NOTIFYTYPE_QUERY_OBJ_INFO.
    16211652         *
    16221653         * @since 7.1
     
    16331664             *  the first group always is the primary group. */
    16341665            HGCMFunctionParameter groups;
    1635         } queryinfo;
     1666        } queryobjinfo;
    16361667        /**
    1637          * Parameters used for \a type GUEST_FS_NOTIFYTYPE_CREATE_TEMP.
     1668         * Parameters used for \a type GUEST_FS_NOTIFYTYPE_QUERY_INFO.
    16381669         *
    16391670         * @since 7.1
     
    16411672        struct
    16421673        {
    1643             /** The create temporary file / directory when \a rc
    1644              *  indicates success. */
    1645             HGCMFunctionParameter path;
    1646         } createtemp;
     1674            /** File system object information (GSTCTLFSINFO). */
     1675            HGCMFunctionParameter fs_info;
     1676        } queryinfo;
    16471677    } u;
    16481678} HGCMReplyFsNotify;
Note: See TracChangeset for help on using the changeset viewer.

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