VirtualBox

Changeset 33776 in vbox for trunk/src


Ignore:
Timestamp:
Nov 4, 2010 3:15:08 PM (14 years ago)
Author:
vboxsync
Message:

Main/IGuest::updateGuestAdditions: Introduced additional flags parameter for later use.

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r33672 r33776  
    12981298        ComPtr<IProgress> progress;
    12991299        CHECK_ERROR_BREAK(guest, UpdateGuestAdditions(Bstr(Utf8Source).raw(),
     1300                                                      0 /* Flags, not used. */,
    13001301                                                      progress.asOutParam()));
    13011302        rc = showProgress(progress);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r33756 r33776  
    364364    CGuest guest = session().GetConsole().GetGuest();
    365365#ifdef DEBUG_andy
    366     CProgress progressInstall = guest.UpdateGuestAdditions("c:\\Downloads\\VBoxGuestAdditions-r67158.iso");
     366    CProgress progressInstall = guest.UpdateGuestAdditions("c:\\Downloads\\VBoxGuestAdditions_3.2.8.iso", 0);
    367367#else
    368     CProgress progressInstall = guest.UpdateGuestAdditions(strSource);
     368    CProgress progressInstall = guest.UpdateGuestAdditions(strSource, 0 /* Flags, not used. */);
    369369#endif
    370370    bool fResult = guest.isOk();
  • trunk/src/VBox/Main/GuestImpl.cpp

    r33756 r33776  
    24002400}
    24012401
    2402 STDMETHODIMP Guest::UpdateGuestAdditions(IN_BSTR aSource, IProgress **aProgress)
     2402STDMETHODIMP Guest::UpdateGuestAdditions(IN_BSTR aSource, ULONG aFlags, IProgress **aProgress)
    24032403{
    24042404#ifndef VBOX_WITH_GUEST_CONTROL
     
    24082408    CheckComArgOutPointerValid(aProgress);
    24092409
     2410    if (aFlags != 0) /* Flags are not supported at the moment. */
     2411        return setError(E_INVALIDARG, tr("Unknown flags (%#x)"), aFlags);
     2412
    24102413    AutoCaller autoCaller(this);
    24112414    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     
    24452448
    24462449    if (SUCCEEDED(rc))
     2450    {
    24472451        /* Return progress to the caller. */
    24482452        progress.queryInterfaceTo(aProgress);
    2449 
     2453    }
    24502454    return rc;
    24512455#endif /* VBOX_WITH_GUEST_CONTROL */
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r33767 r33776  
    76957695  <interface
    76967696     name="IGuest" extends="$unknown"
    7697      uuid="5a4f265c-0c0e-495a-8ff6-7d68682e276b"
     7697     uuid="ded6983f-5c81-4bf9-90af-73f65fd9b728"
    76987698     wsmap="managed"
    76997699     >
     
    79747974      <param name="flags" type="unsigned long" dir="out">
    79757975        <desc>
    7976           Additional flags of process status (not used at the moment).
     7976          Additional flags of process status. Not used at the moment and
     7977          must be set to 0.
    79777978        </desc>
    79787979      </param>
     
    80698070        <desc>
    80708071          Path to the Guest Additions .ISO file to use for the upate.
     8072        </desc>
     8073      </param>
     8074      <param name="flags" type="unsigned long" dir="in">
     8075        <desc>
     8076          Additional flags for update process. Not used at the moment and
     8077          must be set to 0.
    80718078        </desc>
    80728079      </param>
  • trunk/src/VBox/Main/include/GuestImpl.h

    r33723 r33776  
    105105                                     ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon, ULONG *aMemShared, ULONG *aMemCache,
    106106                                     ULONG *aPageTotal, ULONG *aMemAllocTotal, ULONG *aMemFreeTotal, ULONG *aMemBalloonTotal, ULONG *aMemSharedTotal);
    107     STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, IProgress **aProgress);
     107    STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, ULONG aFlags, IProgress **aProgress);
    108108
    109109    // Public methods that are not in IDL (only called internally).
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