VirtualBox

Changeset 42411 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jul 26, 2012 2:07:13 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79508
Message:

Guest Control 2.0: Update.

Location:
trunk/src/VBox/Main/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h

    r42358 r42411  
    127127    void Destroy(void);
    128128
     129    int FillData(const void *pData, size_t cbData);
     130
    129131    int Init(eVBoxGuestCtrlCallbackType enmType);
    130132
  • trunk/src/VBox/Main/include/GuestImpl.h

    r42354 r42411  
    134134    STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, ULONG aFlags, IProgress **aProgress);
    135135    STDMETHOD(CreateSession)(IN_BSTR aUser, IN_BSTR aPassword, IN_BSTR aDomain, IN_BSTR aSessionName, IGuestSession **aGuestSession);
     136    STDMETHOD(FindSession)(IN_BSTR aSessionName, ComSafeArrayOut(IGuestSession *, aSessions));
    136137
    137138    // Public methods that are not in IDL (only called internally).
  • trunk/src/VBox/Main/include/GuestProcessImpl.h

    r42358 r42411  
    5757    STDMETHOD(COMGETTER(ExecutablePath))(BSTR *aExecutablePath);
    5858    STDMETHOD(COMGETTER(ExitCode))(LONG *aExitCode);
     59    STDMETHOD(COMGETTER(Name))(BSTR *aName);
    5960    STDMETHOD(COMGETTER(Pid))(ULONG *aPID);
    6061    STDMETHOD(COMGETTER(Status))(ProcessStatus_T *aStatus);
     
    6263    STDMETHOD(Read)(ULONG aHandle, ULONG aSize, ULONG aTimeoutMS, ComSafeArrayOut(BYTE, aData));
    6364    STDMETHOD(Terminate)(void);
    64     STDMETHOD(WaitFor)(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitResult_T *aReason);
     65    STDMETHOD(WaitFor)(ULONG aWaitFlags, ULONG aTimeoutMS, ProcessWaitResult_T *aReason);
     66    STDMETHOD(WaitForArray)(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitResult_T *aReason);
    6567    STDMETHOD(Write)(ULONG aHandle, ComSafeArrayIn(BYTE, aData), ULONG aTimeoutMS, ULONG *aWritten);
    6668    /** @}  */
     
    7981    int terminateProcess(void);
    8082    int waitFor(uint32_t fWaitFlags, ULONG uTimeoutMS, GuestProcessWaitResult &guestResult);
    81     HRESULT waitResultToErrorEx(const GuestProcessWaitResult &waitResult, bool fLog);
    8283    int writeData(ULONG uHandle, BYTE const *pbData, size_t cbData, ULONG uTimeoutMS, ULONG *puWritten);
    8384    /** @}  */
     
    8889    inline int callbackAdd(GuestCtrlCallback *pCallback, ULONG *puContextID);
    8990    inline int callbackRemove(ULONG uContextID);
     91    inline bool isAlive(void);
     92    HRESULT hgcmResultToError(int rc);
    9093    int onGuestDisconnected(GuestCtrlCallback *pCallback, PCALLBACKDATACLIENTDISCONNECTED pData);
    9194    int onProcessInputStatus(GuestCtrlCallback *pCallback, PCALLBACKDATAEXECINSTATUS pData);
     
    9699    int signalWaiters(ProcessWaitResult_T enmWaitResult, int rc = VINF_SUCCESS);
    97100    static DECLCALLBACK(int) startProcessThread(RTTHREAD Thread, void *pvUser);
     101    HRESULT waitResultToErrorEx(const GuestProcessWaitResult &waitResult, bool fLog);
    98102    /** @}  */
    99103
     
    109113        /** All related callbacks to this process. */
    110114        GuestCtrlCallbacks       mCallbacks;
     115        /** The process' name. */
     116        Utf8Str                  mName;
    111117        /** The process start information. */
    112118        GuestProcessInfo         mProcess;
     
    119125        /** The current process status. */
    120126        ProcessStatus_T          mStatus;
    121         /** Flag indicating whether the process has been started
    122          *  so that it can't be started a second time. */
    123         bool                     mStarted;
    124127        /** The next upcoming context ID. */
    125128        ULONG                    mNextContextID;
     129        /** The mutex for protecting the waiter(s). */
     130        RTSEMMUTEX               mWaitMutex;
    126131        /** How many waiters? At the moment there can only
    127132         *  be one. */
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r42354 r42411  
    6161    STDMETHOD(COMGETTER(Id))(ULONG *aId);
    6262    STDMETHOD(COMGETTER(Timeout))(ULONG *aTimeout);
     63    STDMETHOD(COMSETTER(Timeout))(ULONG aTimeout);
    6364    STDMETHOD(COMGETTER(Environment))(ComSafeArrayOut(BSTR, aEnvironment));
    6465    STDMETHOD(COMGETTER(Processes))(ComSafeArrayOut(IGuestProcess *, aProcesses));
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