VirtualBox

Changeset 102831 in vbox


Ignore:
Timestamp:
Jan 11, 2024 8:56:53 AM (11 months ago)
Author:
vboxsync
Message:

Guest Control: Added a new guest feature flag to indicate Guest Additions support for retrieving guest mount points. bugref:10415

Location:
trunk
Files:
4 edited

Legend:

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

    r102654 r102831  
    832832/** Supports specifying the working directory for run / start. */
    833833#define VBOX_GUESTCTRL_GF_0_PROCESS_CWD             RT_BIT_64(5)
     834/** Supports enumerating the guest mount points / drive letters.
     835 *  @since 7.1 */
     836#define VBOX_GUESTCTRL_GF_0_MOUNT_POINTS_ENUM       RT_BIT_64(6)
    834837/** Bit that must be set in the 2nd parameter, will be cleared if the host reponds
    835838 * correctly (old hosts might not). */
     
    16881691
    16891692#endif /* !VBOX_INCLUDED_HostServices_GuestControlSvc_h */
    1690 
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r99120 r102831  
    262262                                      | VBOX_GUESTCTRL_GF_0_TOOLBOX_AS_CMDS
    263263#endif /* VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS */
    264                                       | VBOX_GUESTCTRL_GF_0_SHUTDOWN;
     264                                      | VBOX_GUESTCTRL_GF_0_SHUTDOWN
     265                                      | VBOX_GUESTCTRL_GF_0_MOUNT_POINTS_ENUM;
    265266        rc = VbglR3GuestCtrlReportFeatures(g_idControlSvcClient, fGuestFeatures, &g_fControlHostFeatures0);
    266267        if (RT_SUCCESS(rc))
    267268            VGSvcVerbose(3, "Host features: %#RX64\n", g_fControlHostFeatures0);
    268269        else
    269             VGSvcVerbose(1, "Warning! Feature reporing failed: %Rrc\n", rc);
     270            VGSvcVerbose(1, "Warning! Feature reporting failed: %Rrc\n", rc);
    270271
    271272        return VINF_SUCCESS;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r102749 r102831  
    24502450
    24512451    com::SafeArray<BSTR> mountPoints;
    2452     CHECK_ERROR(pCtx->pGuestSession, COMGETTER(MountPoints)(ComSafeArrayAsOutParam(mountPoints)));
     2452    CHECK_ERROR_RET(pCtx->pGuestSession, COMGETTER(MountPoints)(ComSafeArrayAsOutParam(mountPoints)), RTEXITCODE_FAILURE);
    24532453
    24542454    for (size_t i = 0; i < mountPoints.size(); ++i)
     
    24582458        RTPrintf("Found %zu mount points\n", mountPoints.size());
    24592459
    2460     return FAILED(hrc) ? RTEXITCODE_FAILURE : RTEXITCODE_SUCCESS;
     2460    return RTEXITCODE_SUCCESS;
    24612461}
    24622462
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r102680 r102831  
    31563156 *
    31573157 * @returns VBox status code.
     3158 * @retval  VERR_NOT_SUPPORTED if the installed Guest Additions do not support this feature.
    31583159 * @param   vecMountPoints      Where to return the mount points (guest-style paths).
    31593160 * @param   pvrcGuest           Guest VBox status code, when returning
     
    31663167{
    31673168    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     3169
     3170    if (!(mParent->i_getGuestControlFeatures0() & VBOX_GUESTCTRL_GF_0_MOUNT_POINTS_ENUM))
     3171        return VERR_NOT_SUPPORTED;
    31683172
    31693173    GuestWaitEvent *pEvent = NULL;
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