VirtualBox

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


Ignore:
Timestamp:
Aug 8, 2012 8:07:09 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79873
Message:

Guest Control 2.0: Update.

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

Legend:

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

    r42643 r42673  
    275275{
    276276    /** Helper function to extract the data from
    277      *  a guest stream block. */
    278     int From(const GuestProcessStreamBlock &strmBlk);
     277     *  a certin VBoxService tool's guest stream block. */
     278    int FromLs(const GuestProcessStreamBlock &strmBlk);
     279    int FromStat(const GuestProcessStreamBlock &strmBlk);
    279280
    280281    int64_t              mAccessTime;
     
    365366public:
    366367
    367     void Clear();
     368    void Clear(void);
    368369
    369370#ifdef DEBUG
    370     void Dump();
     371    void DumpToLog(void) const;
    371372#endif
    372373
     
    382383
    383384    uint32_t GetUInt32(const char *pszKey) const;
     385
     386    bool IsEmpty(void) { return m_mapPairs.empty(); }
    384387
    385388    int SetValue(const char *pszKey, const char *pszValue);
  • trunk/src/VBox/Main/include/GuestDirectoryImpl.h

    r42525 r42673  
    2121
    2222#include "VirtualBoxBase.h"
     23#include "GuestCtrlImplPrivate.h"
    2324
     25class GuestProcess;
    2426class GuestSession;
    2527
     
    4345    DECLARE_EMPTY_CTOR_DTOR(GuestDirectory)
    4446
    45     int     init(GuestSession *aSession, const Utf8Str &strPath);
     47    int     init(GuestSession *aSession, const Utf8Str &strPath, const Utf8Str &strFilter = "", uint32_t uFlags = 0);
    4648    void    uninit(void);
    4749    HRESULT FinalConstruct(void);
     
    5254     * @{ */
    5355    STDMETHOD(COMGETTER(DirectoryName))(BSTR *aName);
    54 
     56    STDMETHOD(COMGETTER(Filter))(BSTR *aFilter);
     57    STDMETHOD(Close)(void);
    5558    STDMETHOD(Read)(IFsObjInfo **aInfo);
    5659    /** @}  */
     
    6366private:
    6467
     68    /** @name Private internal methods.
     69     * @{ */
     70    int parseData(GuestProcessStreamBlock &streamBlock);
     71    /** @}  */
     72
    6573    struct Data
    6674    {
    67         GuestSession           *mParent;
    68         Utf8Str                 mName;
    69         ComPtr<IGuestFsObjInfo> mFsObjInfo;
     75        GuestSession              *mParent;
     76        Utf8Str                    mName;
     77        Utf8Str                    mFilter;
     78        uint32_t                   mFlags;
     79        /** The stdout stream object which contains all
     80         *  read out data for parsing. Must be persisent
     81         *  between several read() calls. */
     82        GuestProcessStream         mStream;
     83        /** The guest process which is responsible for
     84         *  getting the stdout stream. */
     85        ComObjPtr<GuestProcess>    mProcess;
    7086    } mData;
    7187};
  • trunk/src/VBox/Main/include/GuestFsObjInfoImpl.h

    r42530 r42673  
    4242    DECLARE_EMPTY_CTOR_DTOR(GuestFsObjInfo)
    4343
    44     HRESULT init(void);
     44    int     init(const GuestFsObjData &objData);
    4545    void    uninit(void);
    4646    HRESULT FinalConstruct(void);
     
    5555    STDMETHOD(COMGETTER(ChangeTime))(LONG64 *aChangeTime);
    5656    STDMETHOD(COMGETTER(DeviceNumber))(ULONG *aDeviceNumber);
    57     STDMETHOD(COMGETTER(FileAttrs))(BSTR *aFileAttrs);
    58     STDMETHOD(COMGETTER(GenerationID))(ULONG *aGenerationID);
     57    STDMETHOD(COMGETTER(FileAttributes))(BSTR *aFileAttrs);
     58    STDMETHOD(COMGETTER(GenerationId))(ULONG *aGenerationId);
    5959    STDMETHOD(COMGETTER(GID))(ULONG *aGID);
    6060    STDMETHOD(COMGETTER(GroupName))(BSTR *aGroupName);
     
    6262    STDMETHOD(COMGETTER(ModificationTime))(LONG64 *aModificationTime);
    6363    STDMETHOD(COMGETTER(Name))(BSTR *aName);
    64     STDMETHOD(COMGETTER(NodeID))(LONG64 *aNodeID);
    65     STDMETHOD(COMGETTER(NodeIDDevice))(ULONG *aNodeIDDevice);
    66     STDMETHOD(COMGETTER(ObjectSize))(ULONG *aObjectSize);
     64    STDMETHOD(COMGETTER(NodeId))(LONG64 *aNodeId);
     65    STDMETHOD(COMGETTER(NodeIdDevice))(ULONG *aNodeIdDevice);
     66    STDMETHOD(COMGETTER(ObjectSize))(LONG64 *aObjectSize);
    6767    STDMETHOD(COMGETTER(Type))(FsObjType_T *aType);
    6868    STDMETHOD(COMGETTER(UID))(ULONG *aUID);
  • trunk/src/VBox/Main/include/GuestProcessImpl.h

    r42634 r42673  
    7474    int callbackDispatcher(uint32_t uContextID, uint32_t uFunction, void *pvData, size_t cbData);
    7575    inline bool callbackExists(uint32_t uContextID);
     76    inline int checkPID(uint32_t uPID);
    7677    void close(void);
    7778    bool isReady(void);
     
    8384    int terminateProcess(void);
    8485    int waitFor(uint32_t fWaitFlags, ULONG uTimeoutMS, GuestProcessWaitResult &guestResult);
     86    int waitForStart(uint32_t uTimeoutMS);
    8587    int writeData(uint32_t uHandle, uint32_t uFlags, void *pvData, size_t cbData, uint32_t uTimeoutMS, uint32_t *puWritten);
    8688    /** @}  */
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r42657 r42673  
    157157    STDMETHOD(DirectoryCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestDirectory **aDirectory);
    158158    STDMETHOD(DirectoryExists)(IN_BSTR aPath, BOOL *aExists);
    159     STDMETHOD(DirectoryOpen)(IN_BSTR aPath, IN_BSTR aFilter, IN_BSTR aFlags, IGuestDirectory **aDirectory);
     159    STDMETHOD(DirectoryOpen)(IN_BSTR aPath, IN_BSTR aFilter, ComSafeArrayIn(DirectoryOpenFlag_T, aFlags), IGuestDirectory **aDirectory);
    160160    STDMETHOD(DirectoryQueryInfo)(IN_BSTR aPath, IGuestFsObjInfo **aInfo);
    161161    STDMETHOD(DirectoryRemove)(IN_BSTR aPath);
     
    205205    int                     directoryClose(ComObjPtr<GuestDirectory> pDirectory);
    206206    int                     directoryCreateInternal(const Utf8Str &strPath, uint32_t uMode, uint32_t uFlags, ComObjPtr<GuestDirectory> &pDirectory);
     207    int                     directoryOpenInternal(const Utf8Str &strPath, const Utf8Str &strFilter, uint32_t uFlags, ComObjPtr<GuestDirectory> &pDirectory);
    207208    int                     dispatchToProcess(uint32_t uContextID, uint32_t uFunction, void *pvData, size_t cbData);
    208209    int                     fileClose(ComObjPtr<GuestFile> pFile);
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