Changeset 42673 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Aug 8, 2012 8:07:09 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79873
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r42643 r42673 275 275 { 276 276 /** 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); 279 280 280 281 int64_t mAccessTime; … … 365 366 public: 366 367 367 void Clear( );368 void Clear(void); 368 369 369 370 #ifdef DEBUG 370 void Dump ();371 void DumpToLog(void) const; 371 372 #endif 372 373 … … 382 383 383 384 uint32_t GetUInt32(const char *pszKey) const; 385 386 bool IsEmpty(void) { return m_mapPairs.empty(); } 384 387 385 388 int SetValue(const char *pszKey, const char *pszValue); -
trunk/src/VBox/Main/include/GuestDirectoryImpl.h
r42525 r42673 21 21 22 22 #include "VirtualBoxBase.h" 23 #include "GuestCtrlImplPrivate.h" 23 24 25 class GuestProcess; 24 26 class GuestSession; 25 27 … … 43 45 DECLARE_EMPTY_CTOR_DTOR(GuestDirectory) 44 46 45 int init(GuestSession *aSession, const Utf8Str &strPath );47 int init(GuestSession *aSession, const Utf8Str &strPath, const Utf8Str &strFilter = "", uint32_t uFlags = 0); 46 48 void uninit(void); 47 49 HRESULT FinalConstruct(void); … … 52 54 * @{ */ 53 55 STDMETHOD(COMGETTER(DirectoryName))(BSTR *aName); 54 56 STDMETHOD(COMGETTER(Filter))(BSTR *aFilter); 57 STDMETHOD(Close)(void); 55 58 STDMETHOD(Read)(IFsObjInfo **aInfo); 56 59 /** @} */ … … 63 66 private: 64 67 68 /** @name Private internal methods. 69 * @{ */ 70 int parseData(GuestProcessStreamBlock &streamBlock); 71 /** @} */ 72 65 73 struct Data 66 74 { 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; 70 86 } mData; 71 87 }; -
trunk/src/VBox/Main/include/GuestFsObjInfoImpl.h
r42530 r42673 42 42 DECLARE_EMPTY_CTOR_DTOR(GuestFsObjInfo) 43 43 44 HRESULT init(void);44 int init(const GuestFsObjData &objData); 45 45 void uninit(void); 46 46 HRESULT FinalConstruct(void); … … 55 55 STDMETHOD(COMGETTER(ChangeTime))(LONG64 *aChangeTime); 56 56 STDMETHOD(COMGETTER(DeviceNumber))(ULONG *aDeviceNumber); 57 STDMETHOD(COMGETTER(FileAttr s))(BSTR *aFileAttrs);58 STDMETHOD(COMGETTER(GenerationI D))(ULONG *aGenerationID);57 STDMETHOD(COMGETTER(FileAttributes))(BSTR *aFileAttrs); 58 STDMETHOD(COMGETTER(GenerationId))(ULONG *aGenerationId); 59 59 STDMETHOD(COMGETTER(GID))(ULONG *aGID); 60 60 STDMETHOD(COMGETTER(GroupName))(BSTR *aGroupName); … … 62 62 STDMETHOD(COMGETTER(ModificationTime))(LONG64 *aModificationTime); 63 63 STDMETHOD(COMGETTER(Name))(BSTR *aName); 64 STDMETHOD(COMGETTER(NodeI D))(LONG64 *aNodeID);65 STDMETHOD(COMGETTER(NodeI DDevice))(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); 67 67 STDMETHOD(COMGETTER(Type))(FsObjType_T *aType); 68 68 STDMETHOD(COMGETTER(UID))(ULONG *aUID); -
trunk/src/VBox/Main/include/GuestProcessImpl.h
r42634 r42673 74 74 int callbackDispatcher(uint32_t uContextID, uint32_t uFunction, void *pvData, size_t cbData); 75 75 inline bool callbackExists(uint32_t uContextID); 76 inline int checkPID(uint32_t uPID); 76 77 void close(void); 77 78 bool isReady(void); … … 83 84 int terminateProcess(void); 84 85 int waitFor(uint32_t fWaitFlags, ULONG uTimeoutMS, GuestProcessWaitResult &guestResult); 86 int waitForStart(uint32_t uTimeoutMS); 85 87 int writeData(uint32_t uHandle, uint32_t uFlags, void *pvData, size_t cbData, uint32_t uTimeoutMS, uint32_t *puWritten); 86 88 /** @} */ -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42657 r42673 157 157 STDMETHOD(DirectoryCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestDirectory **aDirectory); 158 158 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); 160 160 STDMETHOD(DirectoryQueryInfo)(IN_BSTR aPath, IGuestFsObjInfo **aInfo); 161 161 STDMETHOD(DirectoryRemove)(IN_BSTR aPath); … … 205 205 int directoryClose(ComObjPtr<GuestDirectory> pDirectory); 206 206 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); 207 208 int dispatchToProcess(uint32_t uContextID, uint32_t uFunction, void *pvData, size_t cbData); 208 209 int fileClose(ComObjPtr<GuestFile> pFile);
Note:
See TracChangeset
for help on using the changeset viewer.